@motopays/pay-form 1.0.21 → 1.0.22-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +180 -137
- package/README.md +604 -408
- package/index.d.ts +250 -0
- package/index.js +3 -0
- package/package.json +24 -20
- package/styles.css +1 -0
- package/lib/index.js +0 -3
- package/lib/styles/styles.css +0 -1
package/lib/index.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
(()=>{"use strict";var e,_={},p={};function n(e){var a=p[e];if(void 0!==a)return a.exports;var r=p[e]={exports:{}};return _[e].call(r.exports,r,r.exports,n),r.exports}n.m=_,e=[],n.O=(a,r,o,f)=>{if(!r){var u=1/0;for(t=0;t<e.length;t++){for(var[r,o,f]=e[t],s=!0,l=0;l<r.length;l++)(!1&f||u>=f)&&Object.keys(n.O).every(h=>n.O[h](r[l]))?r.splice(l--,1):(s=!1,f<u&&(u=f));if(s){e.splice(t--,1);var c=o();void 0!==c&&(a=c)}}return a}f=f||0;for(var t=e.length;t>0&&e[t-1][2]>f;t--)e[t]=e[t-1];e[t]=[r,o,f]},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={666:0};n.O.j=o=>0===e[o];var a=(o,f)=>{var l,c,[t,u,s]=f,v=0;if(t.some(d=>0!==e[d])){for(l in u)n.o(u,l)&&(n.m[l]=u[l]);if(s)var b=s(n)}for(o&&o(f);v<t.length;v++)n.o(e,c=t[v])&&e[c]&&e[c][0](),e[c]=0;return n.O(b)},r=self.webpackChunkweb_component=self.webpackChunkweb_component||[];r.forEach(a.bind(null,0)),r.push=a.bind(null,r.push.bind(r))})()})();
|
|
2
|
-
"use strict";(self.webpackChunkweb_component=self.webpackChunkweb_component||[]).push([[429],{512:(ie,Ee,de)=>{de(583)},583:()=>{!function(e){const n=e.performance;function i(M){n&&n.mark&&n.mark(M)}function o(M,E){n&&n.measure&&n.measure(M,E)}i("Zone");const c=e.__Zone_symbol_prefix||"__zone_symbol__";function a(M){return c+M}const y=!0===e[a("forceDuplicateZoneCheck")];if(e.Zone){if(y||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let d=(()=>{class M{constructor(t,r){this._parent=t,this._name=r?r.name||"unnamed":"<root>",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}static assertZonePatched(){if(e.Promise!==oe.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 t=M.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return re}static __load_patch(t,r,k=!1){if(oe.hasOwnProperty(t)){if(!k&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const C="Zone:"+t;i(C),oe[t]=r(e,M,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}get(t){const r=this.getZoneWith(t);if(r)return r._properties[t]}getZoneWith(t){let r=this;for(;r;){if(r._properties.hasOwnProperty(t))return r;r=r._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,r){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const k=this._zoneDelegate.intercept(this,t,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(t,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,r,k,C)}finally{U=U.parent}}runGuarded(t,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(t,r,k){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||K).name+"; Execution: "+this.name+")");if(t.state===x&&(t.type===Q||t.type===w))return;const C=t.state!=p;C&&t._transitionTo(p,j),t.runCount++;const $=re;re=t,U={parent:U,zone:this};try{t.type==w&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{t.state!==x&&t.state!==h&&(t.type==Q||t.data&&t.data.isPeriodic?C&&t._transitionTo(j,p):(t.runCount=0,this._updateTaskCount(t,-1),C&&t._transitionTo(x,p,x))),U=U.parent,re=$}}scheduleTask(t){if(t.zone&&t.zone!==this){let k=this;for(;k;){if(k===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);k=k.parent}}t._transitionTo(X,x);const r=[];t._zoneDelegates=r,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(k){throw t._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return t._zoneDelegates===r&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(j,X),t}scheduleMicroTask(t,r,k,C){return this.scheduleTask(new m(I,t,r,k,C,void 0))}scheduleMacroTask(t,r,k,C,$){return this.scheduleTask(new m(w,t,r,k,C,$))}scheduleEventTask(t,r,k,C,$){return this.scheduleTask(new m(Q,t,r,k,C,$))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||K).name+"; Execution: "+this.name+")");t._transitionTo(G,j,p);try{this._zoneDelegate.cancelTask(this,t)}catch(r){throw t._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(t,-1),t._transitionTo(x,G),t.runCount=0,t}_updateTaskCount(t,r){const k=t._zoneDelegates;-1==r&&(t._zoneDelegates=null);for(let C=0;C<k.length;C++)k[C]._updateTaskCount(t.type,r)}}return M.__symbol__=a,M})();const P={name:"",onHasTask:(M,E,t,r)=>M.hasTask(t,r),onScheduleTask:(M,E,t,r)=>M.scheduleTask(t,r),onInvokeTask:(M,E,t,r,k,C)=>M.invokeTask(t,r,k,C),onCancelTask:(M,E,t,r)=>M.cancelTask(t,r)};class v{constructor(E,t,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=E,this._parentDelegate=t,this._forkZS=r&&(r&&r.onFork?r:t._forkZS),this._forkDlgt=r&&(r.onFork?t:t._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:t._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:t._interceptZS),this._interceptDlgt=r&&(r.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:t._invokeZS),this._invokeDlgt=r&&(r.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:t._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:t._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:t._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:t._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||t&&t._hasTaskZS)&&(this._hasTaskZS=k?r:P,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=E,r.onScheduleTask||(this._scheduleTaskZS=P,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=P,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=P,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(E,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,E,t):new d(E,t)}intercept(E,t,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,E,t,r):t}invoke(E,t,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,E,t,r,k,C):t.apply(r,k)}handleError(E,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,E,t)}scheduleTask(E,t){let r=t;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,E,t),r||(r=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=I)throw new Error("Task is missing scheduleFn.");R(t)}return r}invokeTask(E,t,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,E,t,r,k):t.callback.apply(r,k)}cancelTask(E,t){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,E,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");r=t.cancelFn(t)}return r}hasTask(E,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,E,t)}catch(r){this.handleError(E,r)}}_updateTaskCount(E,t){const r=this._taskCounts,k=r[E],C=r[E]=k+t;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:E})}}class m{constructor(E,t,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=E,this.source=t,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=E===Q&&k&&k.useG?m.invokeTask:function(){return m.invokeTask.call(e,l,this,arguments)}}static invokeTask(E,t,r){E||(E=this),ee++;try{return E.runCount++,E.zone.runTask(E,t,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(E,t,r){if(this._state!==t&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${E}', expecting state '${t}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=E,E==x&&(this._zoneDelegates=null)}toString(){return this.data&&void 0!==this.data.handleId?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 L=a("setTimeout"),Z=a("Promise"),N=a("then");let J,B=[],H=!1;function q(M){if(J||e[Z]&&(J=e[Z].resolve(0)),J){let E=J[N];E||(E=J.then),E.call(J,M)}else e[L](M,0)}function R(M){0===ee&&0===B.length&&q(_),M&&B.push(M)}function _(){if(!H){for(H=!0;B.length;){const M=B;B=[];for(let E=0;E<M.length;E++){const t=M[E];try{t.zone.runTask(t,null,null)}catch(r){z.onUnhandledError(r)}}}z.microtaskDrainDone(),H=!1}}const K={name:"NO ZONE"},x="notScheduled",X="scheduling",j="scheduled",p="running",G="canceling",h="unknown",I="microTask",w="macroTask",Q="eventTask",oe={},z={symbol:a,currentZoneFrame:()=>U,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("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:q};let U={parent:null,zone:new d(null,null)},re=null,ee=0;function W(){}o("Zone","Zone"),e.Zone=d}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global);const ie=Object.getOwnPropertyDescriptor,Ee=Object.defineProperty,de=Object.getPrototypeOf,ge=Object.create,Ve=Array.prototype.slice,Oe="addEventListener",Se="removeEventListener",Ze=Zone.__symbol__(Oe),Ne=Zone.__symbol__(Se),ce="true",ae="false",ke=Zone.__symbol__("");function Ie(e,n){return Zone.current.wrap(e,n)}function Me(e,n,i,o,c){return Zone.current.scheduleMacroTask(e,n,i,o,c)}const A=Zone.__symbol__,Pe="undefined"!=typeof window,Te=Pe?window:void 0,Y=Pe&&Te||"object"==typeof self&&self||global;function Le(e,n){for(let i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=Ie(e[i],n+"_"+i));return e}function Fe(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}const Be="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&void 0!==Y.process&&"[object process]"==={}.toString.call(Y.process),je=!we&&!Be&&!(!Pe||!Te.HTMLElement),Ue=void 0!==Y.process&&"[object process]"==={}.toString.call(Y.process)&&!Be&&!(!Pe||!Te.HTMLElement),Re={},We=function(e){if(!(e=e||Y.event))return;let n=Re[e.type];n||(n=Re[e.type]=A("ON_PROPERTY"+e.type));const i=this||e.target||Y,o=i[n];let c;if(je&&i===Te&&"error"===e.type){const a=e;c=o&&o.call(this,a.message,a.filename,a.lineno,a.colno,a.error),!0===c&&e.preventDefault()}else c=o&&o.apply(this,arguments),null!=c&&!c&&e.preventDefault();return c};function qe(e,n,i){let o=ie(e,n);if(!o&&i&&ie(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=A("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete o.writable,delete o.value;const a=o.get,y=o.set,d=n.slice(2);let P=Re[d];P||(P=Re[d]=A("ON_PROPERTY"+d)),o.set=function(v){let m=this;!m&&e===Y&&(m=Y),m&&("function"==typeof m[P]&&m.removeEventListener(d,We),y&&y.call(m,null),m[P]=v,"function"==typeof v&&m.addEventListener(d,We,!1))},o.get=function(){let v=this;if(!v&&e===Y&&(v=Y),!v)return null;const m=v[P];if(m)return m;if(a){let L=a.call(this);if(L)return o.set.call(this,L),"function"==typeof v.removeAttribute&&v.removeAttribute(n),L}return null},Ee(e,n,o),e[c]=!0}function Xe(e,n,i){if(n)for(let o=0;o<n.length;o++)qe(e,"on"+n[o],i);else{const o=[];for(const c in e)"on"==c.slice(0,2)&&o.push(c);for(let c=0;c<o.length;c++)qe(e,o[c],i)}}const ne=A("originalInstance");function ve(e){const n=Y[e];if(!n)return;Y[A(e)]=n,Y[e]=function(){const c=Le(arguments,e);switch(c.length){case 0:this[ne]=new n;break;case 1:this[ne]=new n(c[0]);break;case 2:this[ne]=new n(c[0],c[1]);break;case 3:this[ne]=new n(c[0],c[1],c[2]);break;case 4:this[ne]=new n(c[0],c[1],c[2],c[3]);break;default:throw new Error("Arg list too long.")}},ue(Y[e],n);const i=new n(function(){});let o;for(o in i)"XMLHttpRequest"===e&&"responseBlob"===o||function(c){"function"==typeof i[c]?Y[e].prototype[c]=function(){return this[ne][c].apply(this[ne],arguments)}:Ee(Y[e].prototype,c,{set:function(a){"function"==typeof a?(this[ne][c]=Ie(a,e+"."+c),ue(this[ne][c],a)):this[ne][c]=a},get:function(){return this[ne][c]}})}(o);for(o in n)"prototype"!==o&&n.hasOwnProperty(o)&&(Y[e][o]=n[o])}function le(e,n,i){let o=e;for(;o&&!o.hasOwnProperty(n);)o=de(o);!o&&e[n]&&(o=e);const c=A(n);let a=null;if(o&&(!(a=o[c])||!o.hasOwnProperty(c))&&(a=o[c]=o[n],Fe(o&&ie(o,n)))){const d=i(a,c,n);o[n]=function(){return d(this,arguments)},ue(o[n],a)}return a}function lt(e,n,i){let o=null;function c(a){const y=a.data;return y.args[y.cbIdx]=function(){a.invoke.apply(this,arguments)},o.apply(y.target,y.args),a}o=le(e,n,a=>function(y,d){const P=i(y,d);return P.cbIdx>=0&&"function"==typeof d[P.cbIdx]?Me(P.name,d[P.cbIdx],P,c):a.apply(y,d)})}function ue(e,n){e[A("OriginalDelegate")]=n}let ze=!1,Ae=!1;function ft(){if(ze)return Ae;ze=!0;try{const e=Te.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ae=!0)}catch(e){}return Ae}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],P=!0===e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),m=y("then");i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const Z=y("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[Z];"function"==typeof u&&u.call(this,l)}catch(u){}}function B(l){return l&&l.then}function H(l){return l}function J(l){return t.reject(l)}const q=y("state"),R=y("value"),_=y("finally"),K=y("parentPromiseValue"),x=y("parentPromiseState"),j=null,p=!0,G=!1;function I(l,u){return s=>{try{z(l,u,s)}catch(f){z(l,!1,f)}}}const w=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},oe=y("currentTaskTrace");function z(l,u,s){const f=w();if(l===s)throw new TypeError("Promise resolved with itself");if(l[q]===j){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(b){return f(()=>{z(l,!1,b)})(),l}if(u!==G&&s instanceof t&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==j)re(s),z(l,s[q],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(b){f(()=>{z(l,!1,b)})()}else{l[q]=u;const b=l[R];if(l[R]=s,l[_]===_&&u===p&&(l[q]=l[x],l[R]=l[K]),u===G&&s instanceof Error){const T=n.currentTask&&n.currentTask.data&&n.currentTask.data.__creationTrace__;T&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:T})}for(let T=0;T<b.length;)ee(l,b[T++],b[T++],b[T++],b[T++]);if(0==b.length&&u==G){l[q]=0;let T=s;try{throw new Error("Uncaught (in promise): "+function a(l){return l&&l.toString===Object.prototype.toString?(l.constructor&&l.constructor.name||"")+": "+JSON.stringify(l):l?l.toString():Object.prototype.toString.call(l)}(s)+(s&&s.stack?"\n"+s.stack:""))}catch(D){T=D}P&&(T.throwOriginal=!0),T.rejection=s,T.promise=l,T.zone=n.current,T.task=n.currentTask,d.push(T),i.scheduleMicroTask()}}}return l}const U=y("rejectionHandledHandler");function re(l){if(0===l[q]){try{const u=n[U];u&&"function"==typeof u&&u.call(this,{rejection:l[R],promise:l})}catch(u){}l[q]=G;for(let u=0;u<d.length;u++)l===d[u].promise&&d.splice(u,1)}}function ee(l,u,s,f,g){re(l);const b=l[q],T=b?"function"==typeof f?f:H:"function"==typeof g?g:J;u.scheduleMicroTask("Promise.then",()=>{try{const D=l[R],O=!!s&&_===s[_];O&&(s[K]=D,s[x]=b);const S=u.run(T,void 0,O&&T!==J&&T!==H?[]:[D]);z(s,!0,S)}catch(D){z(s,!1,D)}},s)}const M=function(){},E=e.AggregateError;class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),p,u)}static reject(u){return z(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new E([],"All promises were rejected"));const s=[];let f=0;try{for(let T of u)f++,s.push(t.resolve(T))}catch(T){return Promise.reject(new E([],"All promises were rejected"))}if(0===f)return Promise.reject(new E([],"All promises were rejected"));let g=!1;const b=[];return new t((T,D)=>{for(let O=0;O<s.length;O++)s[O].then(S=>{g||(g=!0,T(S))},S=>{b.push(S),f--,0===f&&(g=!0,D(new E(b,"All promises were rejected")))})})}static race(u){let s,f,g=new this((D,O)=>{s=D,f=O});function b(D){s(D)}function T(D){f(D)}for(let D of u)B(D)||(D=this.resolve(D)),D.then(b,T);return g}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,b=new this((S,V)=>{f=S,g=V}),T=2,D=0;const O=[];for(let S of u){B(S)||(S=this.resolve(S));const V=D;try{S.then(F=>{O[V]=s?s.thenCallback(F):F,T--,0===T&&f(O)},F=>{s?(O[V]=s.errorCallback(F),T--,0===T&&f(O)):g(F)})}catch(F){g(F)}T++,D++}return T-=2,0===T&&f(O),b}constructor(u){const s=this;if(!(s instanceof t))throw new Error("Must be an instanceof Promise.");s[q]=j,s[R]=[];try{const f=w();u&&u(f(I(s,p)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,s){var f;let g=null===(f=this.constructor)||void 0===f?void 0:f[Symbol.species];(!g||"function"!=typeof g)&&(g=this.constructor||t);const b=new g(M),T=n.current;return this[q]==j?this[R].push(T,b,u,s):ee(this,T,b,u,s),b}catch(u){return this.then(null,u)}finally(u){var s;let f=null===(s=this.constructor)||void 0===s?void 0:s[Symbol.species];(!f||"function"!=typeof f)&&(f=t);const g=new f(M);g[_]=_;const b=n.current;return this[q]==j?this[R].push(b,g,u,u):ee(this,b,g,u,u),g}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const r=e[v]=e.Promise;e.Promise=t;const k=y("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[m]=f,l.prototype.then=function(g,b){return new t((D,O)=>{f.call(this,D,O)}).then(g,b)},l[k]=!0}return i.patchThen=C,r&&(C(r),le(e,"fetch",l=>function $(l){return function(u,s){let f=l.apply(u,s);if(f instanceof t)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,t}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,i=A("OriginalDelegate"),o=A("Promise"),c=A("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const m=e[o];if(m)return n.call(m)}if(this===Error){const m=e[c];if(m)return n.call(m)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const y=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":y.call(this)}});let ye=!1;if("undefined"!=typeof window)try{const e=Object.defineProperty({},"passive",{get:function(){ye=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){ye=!1}const ht={useG:!0},te={},Ye={},$e=new RegExp("^"+ke+"(\\w+)(true|false)$"),Ke=A("propagationStopped");function Je(e,n){const i=(n?n(e):e)+ae,o=(n?n(e):e)+ce,c=ke+i,a=ke+o;te[e]={},te[e][ae]=c,te[e][ce]=a}function dt(e,n,i,o){const c=o&&o.add||Oe,a=o&&o.rm||Se,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",P=A(c),v="."+c+":",Z=function(R,_,K){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=p=>x.handleEvent(p),R.originalDelegate=x);try{R.invoke(R,_,[K])}catch(p){X=p}const j=R.options;return j&&"object"==typeof j&&j.once&&_[a].call(_,K.type,R.originalDelegate?R.originalDelegate:R.callback,j),X};function N(R,_,K){if(!(_=_||e.event))return;const x=R||_.target||e,X=x[te[_.type][K?ce:ae]];if(X){const j=[];if(1===X.length){const p=Z(X[0],x,_);p&&j.push(p)}else{const p=X.slice();for(let G=0;G<p.length&&(!_||!0!==_[Ke]);G++){const h=Z(p[G],x,_);h&&j.push(h)}}if(1===j.length)throw j[0];for(let p=0;p<j.length;p++){const G=j[p];n.nativeScheduleMicroTask(()=>{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function J(R,_){if(!R)return!1;let K=!0;_&&void 0!==_.useG&&(K=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let j=!1;_&&void 0!==_.rt&&(j=_.rt);let p=R;for(;p&&!p.hasOwnProperty(c);)p=de(p);if(!p&&R[c]&&(p=R),!p||p[P])return!1;const G=_&&_.eventNameToString,h={},I=p[P]=p[c],w=p[A(a)]=p[a],Q=p[A(y)]=p[y],oe=p[A(d)]=p[d];let z;function U(s,f){return!ye&&"object"==typeof s&&s?!!s.capture:ye&&f?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?Object.assign(Object.assign({},s),{passive:!0}):s:{passive:!0}:s}_&&_.prepend&&(z=p[A(_.prepend)]=p[_.prepend]);const t=K?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=K?function(s){if(!s.isRemoved){const f=te[s.eventName];let g;f&&(g=f[s.capture?ce:ae]);const b=g&&s.target[g];if(b)for(let T=0;T<b.length;T++)if(b[T]===s){b.splice(T,1),s.isRemoved=!0,0===b.length&&(s.allRemoved=!0,s.target[g]=null);break}}if(s.allRemoved)return w.call(s.target,s.eventName,s.capture?H:B,s.options)}:function(s){return w.call(s.target,s.eventName,s.invoke,s.options)},C=_&&_.diff?_.diff:function(s,f){const g=typeof f;return"function"===g&&s.callback===f||"object"===g&&s.originalDelegate===f},$=Zone[A("UNPATCHED_EVENTS")],l=e[A("PASSIVE_EVENTS")],u=function(s,f,g,b,T=!1,D=!1){return function(){const O=this||e;let S=arguments[0];_&&_.transferEventName&&(S=_.transferEventName(S));let V=arguments[1];if(!V)return s.apply(this,arguments);if(we&&"uncaughtException"===S)return s.apply(this,arguments);let F=!1;if("function"!=typeof V){if(!V.handleEvent)return s.apply(this,arguments);F=!0}if(x&&!x(s,V,O,arguments))return;const fe=ye&&!!l&&-1!==l.indexOf(S),se=U(arguments[2],fe);if($)for(let _e=0;_e<$.length;_e++)if(S===$[_e])return fe?s.call(O,S,V,se):s.apply(this,arguments);const xe=!!se&&("boolean"==typeof se||se.capture),nt=!(!se||"object"!=typeof se)&&se.once,gt=Zone.current;let Ge=te[S];Ge||(Je(S,G),Ge=te[S]);const rt=Ge[xe?ce:ae];let De,me=O[rt],ot=!1;if(me){if(ot=!0,X)for(let _e=0;_e<me.length;_e++)if(C(me[_e],V))return}else me=O[rt]=[];const st=O.constructor.name,it=Ye[st];it&&(De=it[S]),De||(De=st+f+(G?G(S):S)),h.options=se,nt&&(h.options.once=!1),h.target=O,h.capture=xe,h.eventName=S,h.isExisting=ot;const be=K?ht:void 0;be&&(be.taskData=h);const he=gt.scheduleEventTask(De,V,be,g,b);return h.target=null,be&&(be.taskData=null),nt&&(se.once=!0),!ye&&"boolean"==typeof he.options||(he.options=se),he.target=O,he.capture=xe,he.eventName=S,F&&(he.originalDelegate=V),D?me.unshift(he):me.push(he),T?O:void 0}};return p[c]=u(I,v,t,r,j),z&&(p.prependListener=u(z,".prependListener:",function(s){return z.call(h.target,h.eventName,s.invoke,h.options)},r,j,!0)),p[a]=function(){const s=this||e;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=arguments[2],b=!!g&&("boolean"==typeof g||g.capture),T=arguments[1];if(!T)return w.apply(this,arguments);if(x&&!x(w,T,s,arguments))return;const D=te[f];let O;D&&(O=D[b?ce:ae]);const S=O&&s[O];if(S)for(let V=0;V<S.length;V++){const F=S[V];if(C(F,T))return S.splice(V,1),F.isRemoved=!0,0===S.length&&(F.allRemoved=!0,s[O]=null,"string"==typeof f)&&(s[ke+"ON_PROPERTY"+f]=null),F.zone.cancelTask(F),j?s:void 0}return w.apply(this,arguments)},p[y]=function(){const s=this||e;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=[],b=Qe(s,G?G(f):f);for(let T=0;T<b.length;T++){const D=b[T];g.push(D.originalDelegate?D.originalDelegate:D.callback)}return g},p[d]=function(){const s=this||e;let f=arguments[0];if(f){_&&_.transferEventName&&(f=_.transferEventName(f));const g=te[f];if(g){const D=s[g[ae]],O=s[g[ce]];if(D){const S=D.slice();for(let V=0;V<S.length;V++){const F=S[V];this[a].call(this,f,F.originalDelegate?F.originalDelegate:F.callback,F.options)}}if(O){const S=O.slice();for(let V=0;V<S.length;V++){const F=S[V];this[a].call(this,f,F.originalDelegate?F.originalDelegate:F.callback,F.options)}}}}else{const g=Object.keys(s);for(let b=0;b<g.length;b++){const D=$e.exec(g[b]);let O=D&&D[1];O&&"removeListener"!==O&&this[d].call(this,O)}this[d].call(this,"removeListener")}if(j)return this},ue(p[c],I),ue(p[a],w),oe&&ue(p[d],oe),Q&&ue(p[y],Q),!0}let q=[];for(let R=0;R<i.length;R++)q[R]=J(i[R],o);return q}function Qe(e,n){if(!n){const a=[];for(let y in e){const d=$e.exec(y);let P=d&&d[1];if(P&&(!n||P===n)){const v=e[y];if(v)for(let m=0;m<v.length;m++)a.push(v[m])}}return a}let i=te[n];i||(Je(n),i=te[n]);const o=e[i[ae]],c=e[i[ce]];return o?c?o.concat(c):o.slice():c?c.slice():[]}function _t(e,n){const i=e.Event;i&&i.prototype&&n.patchMethod(i.prototype,"stopImmediatePropagation",o=>function(c,a){c[Ke]=!0,o&&o.apply(c,a)})}function Et(e,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const y=n[a]=n[o];n[o]=function(d,P,v){return P&&P.prototype&&c.forEach(function(m){const L=`${i}.${o}::`+m,Z=P.prototype;try{if(Z.hasOwnProperty(m)){const N=e.ObjectGetOwnPropertyDescriptor(Z,m);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,L),e._redefineProperty(P.prototype,m,N)):Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}else Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}catch(N){}}),y.call(n,d,P,v)},e.attachOriginToPatched(n[o],y)}function et(e,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===e);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function tt(e,n,i,o){e&&Xe(e,et(e,n,i),o)}function He(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(e,n,i)=>{const o=He(e);i.patchOnProperties=Xe,i.patchMethod=le,i.bindArguments=Le,i.patchMacroTask=lt;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");e[a]&&(e[c]=e[a]),e[c]&&(n[c]=n[a]=e[c]),i.patchEventPrototype=_t,i.patchEventTarget=dt,i.isIEOrEdge=ft,i.ObjectDefineProperty=Ee,i.ObjectGetOwnPropertyDescriptor=ie,i.ObjectCreate=ge,i.ArraySlice=Ve,i.patchClass=ve,i.wrapWithCurrentZone=Ie,i.filterProperties=et,i.attachOriginToPatched=ue,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:Ye,zoneSymbolEventNames:te,eventNames:o,isBrowser:je,isMix:Ue,isNode:we,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:ke,ADD_EVENT_LISTENER_STR:Oe,REMOVE_EVENT_LISTENER_STR:Se})});const Ce=A("zoneTask");function pe(e,n,i,o){let c=null,a=null;i+=o;const y={};function d(v){const m=v.data;return m.args[0]=function(){return v.invoke.apply(this,arguments)},m.handleId=c.apply(e,m.args),v}function P(v){return a.call(e,v.data.handleId)}c=le(e,n+=o,v=>function(m,L){if("function"==typeof L[0]){const Z={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?L[1]||0:void 0,args:L},N=L[0];L[0]=function(){try{return N.apply(this,arguments)}finally{Z.isPeriodic||("number"==typeof Z.handleId?delete y[Z.handleId]:Z.handleId&&(Z.handleId[Ce]=null))}};const B=Me(n,L[0],Z,d,P);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[Ce]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(e,L)}),a=le(e,i,v=>function(m,L){const Z=L[0];let N;"number"==typeof Z?N=y[Z]:(N=Z&&Z[Ce],N||(N=Z)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof Z?delete y[Z]:Z&&(Z[Ce]=null),N.zone.cancelTask(N)):v.apply(e,L)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{i.patchMethod(e,"queueMicrotask",o=>function(c,a){n.current.scheduleMicroTask("queueMicrotask",a[0])})}),Zone.__load_patch("timers",e=>{const n="set",i="clear";pe(e,n,i,"Timeout"),pe(e,n,i,"Interval"),pe(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{pe(e,"request","cancel","AnimationFrame"),pe(e,"mozRequest","mozCancel","AnimationFrame"),pe(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let o=0;o<i.length;o++)le(e,i[o],(a,y,d)=>function(P,v){return n.current.run(a,e,v,d)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function mt(e,n){n.patchEventPrototype(e,n)})(e,i),function pt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let P=0;P<i.length;P++){const v=i[P],Z=y+(v+a),N=y+(v+c);o[v]={},o[v][a]=Z,o[v][c]=N}const d=e.EventTarget;d&&d.prototype&&n.patchEventTarget(e,n,[d&&d.prototype])}(e,i);const o=e.XMLHttpRequestEventTarget;o&&o.prototype&&i.patchEventTarget(e,i,[o.prototype])}),Zone.__load_patch("MutationObserver",(e,n,i)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{ve("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{ve("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function Tt(e,n){if(we&&!Ue||Zone[e.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(je){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ut(){try{const e=Te.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(e){}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];tt(c,He(c),i&&i.concat(a),de(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c<o.length;c++){const a=n[o[c]];a&&a.prototype&&tt(a.prototype,He(a.prototype),i)}}(i,e)}),Zone.__load_patch("customElements",(e,n,i)=>{!function yt(e,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",(e,n)=>{!function P(v){const m=v.XMLHttpRequest;if(!m)return;const L=m.prototype;let N=L[Ze],B=L[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Ze],B=I[Ne]}}const H="readystatechange",J="scheduled";function q(h){const I=h.data,w=I.target;w[a]=!1,w[d]=!1;const Q=w[c];N||(N=w[Ze],B=w[Ne]),Q&&B.call(w,H,Q);const oe=w[c]=()=>{if(w.readyState===w.DONE)if(!I.aborted&&w[a]&&h.state===J){const U=w[n.__symbol__("loadfalse")];if(0!==w.status&&U&&U.length>0){const re=h.invoke;h.invoke=function(){const ee=w[n.__symbol__("loadfalse")];for(let W=0;W<ee.length;W++)ee[W]===h&&ee.splice(W,1);!I.aborted&&h.state===J&&re.call(h)},U.push(h)}else h.invoke()}else!I.aborted&&!1===w[a]&&(w[d]=!0)};return N.call(w,H,oe),w[i]||(w[i]=h),p.apply(w,I.args),w[a]=!0,h}function R(){}function _(h){const I=h.data;return I.aborted=!0,G.apply(I.target,I.args)}const K=le(L,"open",()=>function(h,I){return h[o]=0==I[2],h[y]=I[1],K.apply(h,I)}),X=A("fetchTaskAborting"),j=A("fetchTaskScheduling"),p=le(L,"send",()=>function(h,I){if(!0===n.current[j]||h[o])return p.apply(h,I);{const w={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},Q=Me("XMLHttpRequest.send",R,w,q,_);h&&!0===h[d]&&!w.aborted&&Q.state===J&&Q.invoke()}}),G=le(L,"abort",()=>function(h,I){const w=function Z(h){return h[i]}(h);if(w&&"string"==typeof w.type){if(null==w.cancelFn||w.data&&w.data.aborted)return;w.zone.cancelTask(w)}else if(!0===n.current[X])return G.apply(h,I)})}(e);const i=A("xhrTask"),o=A("xhrSync"),c=A("xhrListener"),a=A("xhrScheduled"),y=A("xhrURL"),d=A("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function at(e,n){const i=e.constructor.name;for(let o=0;o<n.length;o++){const c=n[o],a=e[c];if(a){if(!Fe(ie(e,c)))continue;e[c]=(d=>{const P=function(){return d.apply(this,Le(arguments,i+"."+c))};return ue(P,d),P})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(o){return function(c){Qe(e,o).forEach(y=>{const d=e.PromiseRejectionEvent;if(d){const P=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(P)}})}}e.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[A("rejectionHandledHandler")]=i("rejectionhandled"))})}},ie=>{ie(ie.s=512)}]);
|
|
3
|
-
"use strict";(self.webpackChunkweb_component=self.webpackChunkweb_component||[]).push([[179],{679:(cr,mt,sn)=>{function xe(n){return"function"==typeof n}function bn(n){const e=n(r=>{Error.call(r),r.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Ot=bn(n=>function(e){n(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Je(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class Ut{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const s of e)s.remove(this);else e.remove(this);const{initialTeardown:r}=this;if(xe(r))try{r()}catch(s){t=s instanceof Ot?s.errors:[s]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const s of i)try{wt(s)}catch(o){t=null!=t?t:[],o instanceof Ot?t=[...t,...o.errors]:t.push(o)}}if(t)throw new Ot(t)}}add(t){var e;if(t&&t!==this)if(this.closed)wt(t);else{if(t instanceof Ut){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&Je(e,t)}remove(t){const{_finalizers:e}=this;e&&Je(e,t),t instanceof Ut&&t._removeParent(this)}}Ut.EMPTY=(()=>{const n=new Ut;return n.closed=!0,n})();const ur=Ut.EMPTY;function pn(n){return n instanceof Ut||n&&"closed"in n&&xe(n.remove)&&xe(n.add)&&xe(n.unsubscribe)}function wt(n){xe(n)?n():n.unsubscribe()}const xn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},wn={setTimeout(n,t,...e){const{delegate:r}=wn;return(null==r?void 0:r.setTimeout)?r.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=wn;return((null==t?void 0:t.clearTimeout)||clearTimeout)(n)},delegate:void 0};function Ys(n){wn.setTimeout(()=>{const{onUnhandledError:t}=xn;if(!t)throw n;t(n)})}function _a(){}const va=it("C",void 0,void 0);function it(n,t,e){return{kind:n,value:t,error:e}}let St=null;function Gn(n){if(xn.useDeprecatedSynchronousErrorHandling){const t=!St;if(t&&(St={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:r}=St;if(St=null,e)throw r}}else n()}class Kd extends Ut{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,pn(t)&&t.add(this)):this.destination=e3}static create(t,e,r){return new ba(t,e,r)}next(t){this.isStopped?Qd(function Ke(n){return it("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Qd(function Zr(n){return it("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Qd(va,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const YC=Function.prototype.bind;function Zd(n,t){return YC.call(n,t)}class JC{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(r){Wl(r)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(r){Wl(r)}else Wl(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){Wl(e)}}}class ba extends Kd{constructor(t,e,r){let i;if(super(),xe(t)||!t)i={next:null!=t?t:void 0,error:null!=e?e:void 0,complete:null!=r?r:void 0};else{let s;this&&xn.useDeprecatedNextContext?(s=Object.create(t),s.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&Zd(t.next,s),error:t.error&&Zd(t.error,s),complete:t.complete&&Zd(t.complete,s)}):i=t}this.destination=new JC(i)}}function Wl(n){xn.useDeprecatedSynchronousErrorHandling?function us(n){xn.useDeprecatedSynchronousErrorHandling&&St&&(St.errorThrown=!0,St.error=n)}(n):Ys(n)}function Qd(n,t){const{onStoppedNotification:e}=xn;e&&wn.setTimeout(()=>e(n,t))}const e3={closed:!0,next:_a,error:function XC(n){throw n},complete:_a},Yd="function"==typeof Symbol&&Symbol.observable||"@@observable";function Js(n){return n}function Ug(n){return 0===n.length?Js:1===n.length?n[0]:function(e){return n.reduce((r,i)=>i(r),e)}}let Zt=(()=>{class n{constructor(e){e&&(this._subscribe=e)}lift(e){const r=new n;return r.source=this,r.operator=e,r}subscribe(e,r,i){const s=function r3(n){return n&&n instanceof Kd||function n3(n){return n&&xe(n.next)&&xe(n.error)&&xe(n.complete)}(n)&&pn(n)}(e)?e:new ba(e,r,i);return Gn(()=>{const{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(e){try{return this._subscribe(e)}catch(r){e.error(r)}}forEach(e,r){return new(r=zg(r))((i,s)=>{const o=new ba({next:a=>{try{e(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:i});this.subscribe(o)})}_subscribe(e){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(e)}[Yd](){return this}pipe(...e){return Ug(e)(this)}toPromise(e){return new(e=zg(e))((r,i)=>{let s;this.subscribe(o=>s=o,o=>i(o),()=>r(s))})}}return n.create=t=>new n(t),n})();function zg(n){var t;return null!==(t=null!=n?n:xn.Promise)&&void 0!==t?t:Promise}const i3=bn(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Qt=(()=>{class n extends Zt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const r=new qg(this,this);return r.operator=e,r}_throwIfClosed(){if(this.closed)throw new i3}next(e){Gn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(e)}})}error(e){Gn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:r}=this;for(;r.length;)r.shift().error(e)}})}complete(){Gn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:r,isStopped:i,observers:s}=this;return r||i?ur:(this.currentObservers=null,s.push(e),new Ut(()=>{this.currentObservers=null,Je(s,e)}))}_checkFinalizedStatuses(e){const{hasError:r,thrownError:i,isStopped:s}=this;r?e.error(i):s&&e.complete()}asObservable(){const e=new Zt;return e.source=this,e}}return n.create=(t,e)=>new qg(t,e),n})();class qg extends Qt{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)}error(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:ur}}function An(n){return t=>{if(function s3(n){return xe(null==n?void 0:n.lift)}(t))return t.lift(function(e){try{return n(e,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function mn(n,t,e,r,i){return new o3(n,t,e,r,i)}class o3 extends Kd{constructor(t,e,r,i,s,o){super(t),this.onFinalize=s,this.shouldUnsubscribe=o,this._next=e?function(a){try{e(a)}catch(l){t.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function Ft(n,t){return An((e,r)=>{let i=0;e.subscribe(mn(r,s=>{r.next(n.call(t,s,i++))}))})}function Kl(n,t,e,r){return new(e||(e=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 e?s:new e(function(o){o(s)})}(u.value).then(a,l)}c((r=r.apply(n,t||[])).next())})}function Ri(n){return this instanceof Ri?(this.v=n,this):new Ri(n)}function Kg(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=e.apply(n,t||[]),s=[];return i={},a("next"),a("throw"),a("return",function o(f){return function(m){return Promise.resolve(m).then(f,d)}}),i[Symbol.asyncIterator]=function(){return this},i;function a(f,m){r[f]&&(i[f]=function(y){return new Promise(function(C,E){s.push([f,y,C,E])>1||l(f,y)})},m&&(i[f]=m(i[f])))}function l(f,m){try{!function c(f){f.value instanceof Ri?Promise.resolve(f.value.v).then(u,d):h(s[0][2],f)}(r[f](m))}catch(y){h(s[0][3],y)}}function u(f){l("next",f)}function d(f){l("throw",f)}function h(f,m){f(m),s.shift(),s.length&&l(s[0][0],s[0][1])}}function Zg(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=n[Symbol.asyncIterator];return t?t.call(n):(n=function th(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(s){e[s]=n[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=n[s](o)).done,o.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Qg=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function Yg(n){return xe(null==n?void 0:n.then)}function Jg(n){return xe(n[Yd])}function Xg(n){return Symbol.asyncIterator&&xe(null==n?void 0:n[Symbol.asyncIterator])}function e1(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const t1=function T3(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function n1(n){return xe(null==n?void 0:n[t1])}function r1(n){return Kg(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:r,done:i}=yield Ri(e.read());if(i)return yield Ri(void 0);yield yield Ri(r)}}finally{e.releaseLock()}})}function i1(n){return xe(null==n?void 0:n.getReader)}function dr(n){if(n instanceof Zt)return n;if(null!=n){if(Jg(n))return function x3(n){return new Zt(t=>{const e=n[Yd]();if(xe(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(Qg(n))return function A3(n){return new Zt(t=>{for(let e=0;e<n.length&&!t.closed;e++)t.next(n[e]);t.complete()})}(n);if(Yg(n))return function I3(n){return new Zt(t=>{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,Ys)})}(n);if(Xg(n))return s1(n);if(n1(n))return function k3(n){return new Zt(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(i1(n))return function P3(n){return s1(r1(n))}(n)}throw e1(n)}function s1(n){return new Zt(t=>{(function N3(n,t){var e,r,i,s;return Kl(this,void 0,void 0,function*(){try{for(e=Zg(n);!(r=yield e.next()).done;)if(t.next(r.value),t.closed)return}catch(o){i={error:o}}finally{try{r&&!r.done&&(s=e.return)&&(yield s.call(e))}finally{if(i)throw i.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function mi(n,t,e,r=0,i=!1){const s=t.schedule(function(){e(),i?n.add(this.schedule(null,r)):this.unsubscribe()},r);if(n.add(s),!i)return s}function Zl(n,t,e=1/0){return xe(t)?Zl((r,i)=>Ft((s,o)=>t(r,s,i,o))(dr(n(r,i))),e):("number"==typeof t&&(e=t),An((r,i)=>function O3(n,t,e,r,i,s,o,a){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&t.complete()},f=y=>c<r?m(y):l.push(y),m=y=>{s&&t.next(y),c++;let C=!1;dr(e(y,u++)).subscribe(mn(t,E=>{null==i||i(E),s?f(E):t.next(E)},()=>{C=!0},void 0,()=>{if(C)try{for(c--;l.length&&c<r;){const E=l.shift();o?mi(t,o,()=>m(E)):m(E)}h()}catch(E){t.error(E)}}))};return n.subscribe(mn(t,f,()=>{d=!0,h()})),()=>{null==a||a()}}(r,i,n,e)))}function o1(n=1/0){return Zl(Js,n)}const a1=new Zt(n=>n.complete());function l1(n){return n&&xe(n.schedule)}function nh(n){return n[n.length-1]}function c1(n){return xe(nh(n))?n.pop():void 0}function wa(n){return l1(nh(n))?n.pop():void 0}function u1(n,t=0){return An((e,r)=>{e.subscribe(mn(r,i=>mi(r,n,()=>r.next(i),t),()=>mi(r,n,()=>r.complete(),t),i=>mi(r,n,()=>r.error(i),t)))})}function d1(n,t=0){return An((e,r)=>{r.add(n.schedule(()=>e.subscribe(r),t))})}function h1(n,t){if(!n)throw new Error("Iterable cannot be null");return new Zt(e=>{mi(e,t,()=>{const r=n[Symbol.asyncIterator]();mi(e,t,()=>{r.next().then(i=>{i.done?e.complete():e.next(i.value)})},0,!0)})})}function ds(n,t){return t?function H3(n,t){if(null!=n){if(Jg(n))return function L3(n,t){return dr(n).pipe(d1(t),u1(t))}(n,t);if(Qg(n))return function V3(n,t){return new Zt(e=>{let r=0;return t.schedule(function(){r===n.length?e.complete():(e.next(n[r++]),e.closed||this.schedule())})})}(n,t);if(Yg(n))return function $3(n,t){return dr(n).pipe(d1(t),u1(t))}(n,t);if(Xg(n))return h1(n,t);if(n1(n))return function B3(n,t){return new Zt(e=>{let r;return mi(e,t,()=>{r=n[t1](),mi(e,t,()=>{let i,s;try{({value:i,done:s}=r.next())}catch(o){return void e.error(o)}s?e.complete():e.next(i)},0,!0)}),()=>xe(null==r?void 0:r.return)&&r.return()})}(n,t);if(i1(n))return function j3(n,t){return h1(r1(n),t)}(n,t)}throw e1(n)}(n,t):dr(n)}function f1(...n){const t=wa(n),e=function R3(n,t){return"number"==typeof nh(n)?n.pop():t}(n,1/0),r=n;return r.length?1===r.length?dr(r[0]):o1(e)(ds(r,t)):a1}function p1(n={}){const{connector:t=(()=>new Qt),resetOnError:e=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=n;return s=>{let o,a,l,c=0,u=!1,d=!1;const h=()=>{null==a||a.unsubscribe(),a=void 0},f=()=>{h(),o=l=void 0,u=d=!1},m=()=>{const y=o;f(),null==y||y.unsubscribe()};return An((y,C)=>{c++,!d&&!u&&h();const E=l=null!=l?l:t();C.add(()=>{c--,0===c&&!d&&!u&&(a=rh(m,i))}),E.subscribe(C),!o&&c>0&&(o=new ba({next:D=>E.next(D),error:D=>{d=!0,h(),a=rh(f,e,D),E.error(D)},complete:()=>{u=!0,h(),a=rh(f,r),E.complete()}}),dr(y).subscribe(o))})(s)}}function rh(n,t,...e){if(!0===t)return void n();if(!1===t)return;const r=new ba({next:()=>{r.unsubscribe(),n()}});return t(...e).subscribe(r)}function st(n){for(let t in n)if(n[t]===st)return t;throw Error("Could not find renamed property on target object.")}function ih(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function et(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(et).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function sh(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const U3=st({__forward_ref__:st});function Xe(n){return n.__forward_ref__=Xe,n.toString=function(){return et(this())},n}function Ie(n){return m1(n)?n():n}function m1(n){return"function"==typeof n&&n.hasOwnProperty(U3)&&n.__forward_ref__===Xe}class se extends Error{constructor(t,e){super(function oh(n,t){return`NG0${Math.abs(n)}${t?": "+t:""}`}(t,e)),this.code=t}}function De(n){return"string"==typeof n?n:null==n?"":String(n)}function gn(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():De(n)}function Ql(n,t){const e=t?` in ${t}`:"";throw new se(-201,`No provider for ${gn(n)} found${e}`)}function Kn(n,t){null==n&&function tt(n,t,e,r){throw new Error(`ASSERTION ERROR: ${n}`+(null==r?"":` [Expected=> ${e} ${r} ${t} <=Actual]`))}(t,n,null,"!=")}function ce(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function gt(n){return{providers:n.providers||[],imports:n.imports||[]}}function ah(n){return g1(n,Yl)||g1(n,_1)}function g1(n,t){return n.hasOwnProperty(t)?n[t]:null}function y1(n){return n&&(n.hasOwnProperty(lh)||n.hasOwnProperty(Q3))?n[lh]:null}const Yl=st({\u0275prov:st}),lh=st({\u0275inj:st}),_1=st({ngInjectableDef:st}),Q3=st({ngInjectorDef:st});var Me=(()=>((Me=Me||{})[Me.Default=0]="Default",Me[Me.Host=1]="Host",Me[Me.Self=2]="Self",Me[Me.SkipSelf=4]="SkipSelf",Me[Me.Optional=8]="Optional",Me))();let ch;function Li(n){const t=ch;return ch=n,t}function v1(n,t,e){const r=ah(n);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:e&Me.Optional?null:void 0!==t?t:void Ql(et(n),"Injector")}function $i(n){return{toString:n}.toString()}var Mr=(()=>((Mr=Mr||{})[Mr.OnPush=0]="OnPush",Mr[Mr.Default=1]="Default",Mr))(),Tr=(()=>{return(n=Tr||(Tr={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",Tr;var n})();const J3="undefined"!=typeof globalThis&&globalThis,X3="undefined"!=typeof window&&window,e4="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,rt=J3||"undefined"!=typeof global&&global||X3||e4,Xs={},ot=[],Jl=st({\u0275cmp:st}),uh=st({\u0275dir:st}),dh=st({\u0275pipe:st}),b1=st({\u0275mod:st}),yi=st({\u0275fac:st}),Ca=st({__NG_ELEMENT_ID__:st});let t4=0;function Mt(n){return $i(()=>{const e={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Mr.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||ot,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Tr.Emulated,id:"c",styles:n.styles||ot,_:null,setInput:null,schemas:n.schemas||null,tView:null},i=n.directives,s=n.features,o=n.pipes;return r.id+=t4++,r.inputs=E1(n.inputs,e),r.outputs=E1(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(w1):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(C1):null,r})}function w1(n){return yn(n)||function Vi(n){return n[uh]||null}(n)}function C1(n){return function hs(n){return n[dh]||null}(n)}const D1={};function Ct(n){return $i(()=>{const t={type:n.type,bootstrap:n.bootstrap||ot,declarations:n.declarations||ot,imports:n.imports||ot,exports:n.exports||ot,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(D1[n.id]=n.type),t})}function E1(n,t){if(null==n)return Xs;const e={};for(const r in n)if(n.hasOwnProperty(r)){let i=n[r],s=i;Array.isArray(i)&&(s=i[1],i=i[0]),e[i]=r,t&&(t[i]=s)}return e}const we=Mt;function yt(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function yn(n){return n[Jl]||null}function hr(n,t){const e=n[b1]||null;if(!e&&!0===t)throw new Error(`Type ${et(n)} does not have '\u0275mod' property.`);return e}function Qr(n){return Array.isArray(n)&&"object"==typeof n[1]}function Ar(n){return Array.isArray(n)&&!0===n[1]}function ph(n){return 0!=(8&n.flags)}function nc(n){return 2==(2&n.flags)}function rc(n){return 1==(1&n.flags)}function Ir(n){return null!==n.template}function a4(n){return 0!=(512&n[2])}function gs(n,t){return n.hasOwnProperty(yi)?n[yi]:null}class M1{constructor(t,e,r){this.previousValue=t,this.currentValue=e,this.firstChange=r}isFirstChange(){return this.firstChange}}function kr(){return T1}function T1(n){return n.type.prototype.ngOnChanges&&(n.setInput=d4),u4}function u4(){const n=A1(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===Xs)n.previous=t;else for(let r in t)e[r]=t[r];n.current=null,this.ngOnChanges(t)}}function d4(n,t,e,r){const i=A1(n)||function h4(n,t){return n[x1]=t}(n,{previous:Xs,current:null}),s=i.current||(i.current={}),o=i.previous,a=this.declaredInputs[e],l=o[a];s[a]=new M1(l&&l.currentValue,t,o===Xs),n[r]=t}kr.ngInherit=!0;const x1="__ngSimpleChanges__";function A1(n){return n[x1]||null}let vh;function bh(){return void 0!==vh?vh:"undefined"!=typeof document?document:void 0}function Lt(n){return!!n.listen}const I1={createRenderer:(n,t)=>bh()};function Yt(n){for(;Array.isArray(n);)n=n[0];return n}function ic(n,t){return Yt(t[n])}function Qn(n,t){return Yt(t[n.index])}function wh(n,t){return n.data[t]}function io(n,t){return n[t]}function Yn(n,t){const e=t[n];return Qr(e)?e:e[0]}function k1(n){return 4==(4&n[2])}function Ch(n){return 128==(128&n[2])}function Bi(n,t){return null==t?null:n[t]}function P1(n){n[18]=0}function Dh(n,t){n[5]+=t;let e=n,r=n[3];for(;null!==r&&(1===t&&1===e[5]||-1===t&&0===e[5]);)r[5]+=t,e=r,r=r[3]}const Ee={lFrame:j1(null),bindingsEnabled:!0};function O1(){return Ee.bindingsEnabled}function $(){return Ee.lFrame.lView}function qe(){return Ee.lFrame.tView}function Et(n){return Ee.lFrame.contextLView=n,n[8]}function on(){let n=F1();for(;null!==n&&64===n.type;)n=n.parent;return n}function F1(){return Ee.lFrame.currentTNode}function Yr(n,t){const e=Ee.lFrame;e.currentTNode=n,e.isParent=t}function Eh(){return Ee.lFrame.isParent}function Sh(){Ee.lFrame.isParent=!1}function kn(){const n=Ee.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function so(){return Ee.lFrame.bindingIndex++}function vi(n){const t=Ee.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function A4(n,t){const e=Ee.lFrame;e.bindingIndex=e.bindingRootIndex=n,Mh(t)}function Mh(n){Ee.lFrame.currentDirectiveIndex=n}function Th(n){const t=Ee.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function $1(){return Ee.lFrame.currentQueryIndex}function xh(n){Ee.lFrame.currentQueryIndex=n}function k4(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function V1(n,t,e){if(e&Me.SkipSelf){let i=t,s=n;for(;!(i=i.parent,null!==i||e&Me.Host||(i=k4(s),null===i||(s=s[15],10&i.type))););if(null===i)return!1;t=i,n=s}const r=Ee.lFrame=B1();return r.currentTNode=t,r.lView=n,!0}function oc(n){const t=B1(),e=n[1];Ee.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function B1(){const n=Ee.lFrame,t=null===n?null:n.child;return null===t?j1(n):t}function j1(n){const t={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:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function H1(){const n=Ee.lFrame;return Ee.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const U1=H1;function ac(){const n=H1();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Pn(){return Ee.lFrame.selectedIndex}function ji(n){Ee.lFrame.selectedIndex=n}function Tt(){const n=Ee.lFrame;return wh(n.tView,n.selectedIndex)}function lc(n,t){for(let e=t.directiveStart,r=t.directiveEnd;e<r;e++){const s=n.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-e,o),a&&((n.contentHooks||(n.contentHooks=[])).push(e,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(e,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-e,l),c&&((n.viewHooks||(n.viewHooks=[])).push(e,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(e,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(e,u)}}function cc(n,t,e){z1(n,t,3,e)}function uc(n,t,e,r){(3&n[2])===e&&z1(n,t,e,r)}function Ah(n,t){let e=n[2];(3&e)===t&&(e&=2047,e+=1,n[2]=e)}function z1(n,t,e,r){const s=null!=r?r:-1,o=t.length-1;let a=0;for(let l=void 0!==r?65535&n[18]:0;l<o;l++)if("number"==typeof t[l+1]){if(a=t[l],null!=r&&a>=r)break}else t[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(B4(n,e,t,l),n[18]=(4294901760&n[18])+l+2),l++}function B4(n,t,e,r){const i=e[r]<0,s=e[r+1],a=n[i?-e[r]:e[r]];if(i){if(n[2]>>11<n[18]>>16&&(3&n[2])===t){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class Ta{constructor(t,e,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=r}}function dc(n,t,e){const r=Lt(n);let i=0;for(;i<e.length;){const s=e[i];if("number"==typeof s){if(0!==s)break;i++;const o=e[i++],a=e[i++],l=e[i++];r?n.setAttribute(t,a,l,o):t.setAttributeNS(o,a,l)}else{const o=s,a=e[++i];kh(o)?r&&n.setProperty(t,o,a):r?n.setAttribute(t,o,a):t.setAttribute(o,a),i++}}return i}function q1(n){return 3===n||4===n||6===n}function kh(n){return 64===n.charCodeAt(0)}function hc(n,t){if(null!==t&&0!==t.length)if(null===n||0===n.length)n=t.slice();else{let e=-1;for(let r=0;r<t.length;r++){const i=t[r];"number"==typeof i?e=i:0===e||G1(n,e,i,null,-1===e||2===e?t[++r]:null)}}return n}function G1(n,t,e,r,i){let s=0,o=n.length;if(-1===t)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===t){o=-1;break}if(a>t){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===e){if(null===r)return void(null!==i&&(n[s+1]=i));if(r===n[s+1])return void(n[s+2]=i)}s++,null!==r&&s++,null!==i&&s++}-1!==o&&(n.splice(o,0,t),s=o+1),n.splice(s++,0,e),null!==r&&n.splice(s++,0,r),null!==i&&n.splice(s++,0,i)}function W1(n){return-1!==n}function oo(n){return 32767&n}function ao(n,t){let e=function q4(n){return n>>16}(n),r=t;for(;e>0;)r=r[15],e--;return r}let Ph=!0;function fc(n){const t=Ph;return Ph=n,t}let G4=0;function Aa(n,t){const e=Oh(n,t);if(-1!==e)return e;const r=t[1];r.firstCreatePass&&(n.injectorIndex=t.length,Nh(r.data,n),Nh(t,null),Nh(r.blueprint,null));const i=pc(n,t),s=n.injectorIndex;if(W1(i)){const o=oo(i),a=ao(i,t),l=a[1].data;for(let c=0;c<8;c++)t[s+c]=a[o+c]|l[o+c]}return t[s+8]=i,s}function Nh(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Oh(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function pc(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,r=null,i=t;for(;null!==i;){const s=i[1],o=s.type;if(r=2===o?s.declTNode:1===o?i[6]:null,null===r)return-1;if(e++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|e<<16}return-1}function mc(n,t,e){!function W4(n,t,e){let r;"string"==typeof e?r=e.charCodeAt(0)||0:e.hasOwnProperty(Ca)&&(r=e[Ca]),null==r&&(r=e[Ca]=G4++);const i=255&r;t.data[n+(i>>5)]|=1<<i}(n,t,e)}function Q1(n,t,e){if(e&Me.Optional)return n;Ql(t,"NodeInjector")}function Y1(n,t,e,r){if(e&Me.Optional&&void 0===r&&(r=null),0==(e&(Me.Self|Me.Host))){const i=n[9],s=Li(void 0);try{return i?i.get(t,r,e&Me.Optional):v1(t,r,e&Me.Optional)}finally{Li(s)}}return Q1(r,t,e)}function J1(n,t,e,r=Me.Default,i){if(null!==n){const s=function Y4(n){if("string"==typeof n)return n.charCodeAt(0)||0;const t=n.hasOwnProperty(Ca)?n[Ca]:void 0;return"number"==typeof t?t>=0?255&t:Z4:t}(e);if("function"==typeof s){if(!V1(t,n,r))return r&Me.Host?Q1(i,e,r):Y1(t,e,r,i);try{const o=s(r);if(null!=o||r&Me.Optional)return o;Ql(e)}finally{U1()}}else if("number"==typeof s){let o=null,a=Oh(n,t),l=-1,c=r&Me.Host?t[16][6]:null;for((-1===a||r&Me.SkipSelf)&&(l=-1===a?pc(n,t):t[a+8],-1!==l&&t0(r,!1)?(o=t[1],a=oo(l),t=ao(l,t)):a=-1);-1!==a;){const u=t[1];if(e0(s,a,u.data)){const d=Q4(a,t,e,o,r,c);if(d!==X1)return d}l=t[a+8],-1!==l&&t0(r,t[1].data[a+8]===c)&&e0(s,a,t)?(o=u,a=oo(l),t=ao(l,t)):a=-1}}}return Y1(t,e,r,i)}const X1={};function Z4(){return new lo(on(),$())}function Q4(n,t,e,r,i,s){const o=t[1],a=o.data[n+8],u=gc(a,o,e,null==r?nc(a)&&Ph:r!=o&&0!=(3&a.type),i&Me.Host&&s===a);return null!==u?Ia(t,o,u,a):X1}function gc(n,t,e,r,i){const s=n.providerIndexes,o=t.data,a=1048575&s,l=n.directiveStart,u=s>>20,h=i?a+u:n.directiveEnd;for(let f=r?a:a+u;f<h;f++){const m=o[f];if(f<l&&e===m||f>=l&&m.type===e)return f}if(i){const f=o[l];if(f&&Ir(f)&&f.type===e)return l}return null}function Ia(n,t,e,r){let i=n[e];const s=t.data;if(function j4(n){return n instanceof Ta}(i)){const o=i;o.resolving&&function z3(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new se(-200,`Circular dependency in DI detected for ${n}${e}`)}(gn(s[e]));const a=fc(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Li(o.injectImpl):null;V1(n,r,Me.Default);try{i=n[e]=o.factory(void 0,s,n,r),t.firstCreatePass&&e>=r.directiveStart&&function V4(n,t,e){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=t.type.prototype;if(r){const o=T1(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o)}i&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,i),s&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s))}(e,s[e],t)}finally{null!==l&&Li(l),fc(a),o.resolving=!1,U1()}}return i}function e0(n,t,e){return!!(e[t+(n>>5)]&1<<n)}function t0(n,t){return!(n&Me.Self||n&Me.Host&&t)}class lo{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,r){return J1(this._tNode,this._lView,t,r,e)}}function hn(n){return $i(()=>{const t=n.prototype.constructor,e=t[yi]||Fh(t),r=Object.prototype;let i=Object.getPrototypeOf(n.prototype).constructor;for(;i&&i!==r;){const s=i[yi]||Fh(i);if(s&&s!==e)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function Fh(n){return m1(n)?()=>{const t=Fh(Ie(n));return t&&t()}:gs(n)}const uo="__parameters__";function fo(n,t,e){return $i(()=>{const r=function Lh(n){return function(...e){if(n){const r=n(...e);for(const i in r)this[i]=r[i]}}}(t);function i(...s){if(this instanceof i)return r.apply(this,s),this;const o=new i(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(uo)?l[uo]:Object.defineProperty(l,uo,{value:[]})[uo];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return e&&(i.prototype=Object.create(e.prototype)),i.prototype.ngMetadataName=n,i.annotationCls=i,i})}class pe{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ce({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}function mr(n,t){void 0===t&&(t=n);for(let e=0;e<n.length;e++){let r=n[e];Array.isArray(r)?(t===n&&(t=n.slice(0,e)),mr(r,t)):t!==n&&t.push(r)}return t}function Jr(n,t){n.forEach(e=>Array.isArray(e)?Jr(e,t):t(e))}function r0(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function yc(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Na(n,t){const e=[];for(let r=0;r<n;r++)e.push(t);return e}function Jn(n,t,e){let r=po(n,t);return r>=0?n[1|r]=e:(r=~r,function t5(n,t,e,r){let i=n.length;if(i==t)n.push(e,r);else if(1===i)n.push(r,n[0]),n[0]=e;else{for(i--,n.push(n[i-1],n[i]);i>t;)n[i]=n[i-2],i--;n[t]=e,n[t+1]=r}}(n,r,t,e)),r}function Vh(n,t){const e=po(n,t);if(e>=0)return n[1|e]}function po(n,t){return function a0(n,t,e){let r=0,i=n.length>>e;for(;i!==r;){const s=r+(i-r>>1),o=n[s<<e];if(t===o)return s<<e;o>t?i=s:r=s+1}return~(i<<e)}(n,t,1)}const Oa={},jh="__NG_DI_FLAG__",vc="ngTempTokenPath",l5=/\n/gm,c0="__source",u5=st({provide:String,useValue:st});let Fa;function u0(n){const t=Fa;return Fa=n,t}function d5(n,t=Me.Default){if(void 0===Fa)throw new se(203,"");return null===Fa?v1(n,void 0,t):Fa.get(n,t&Me.Optional?null:void 0,t)}function K(n,t=Me.Default){return(function Y3(){return ch}()||d5)(Ie(n),t)}const bc=K;function Hh(n){const t=[];for(let e=0;e<n.length;e++){const r=Ie(n[e]);if(Array.isArray(r)){if(0===r.length)throw new se(900,"");let i,s=Me.Default;for(let o=0;o<r.length;o++){const a=r[o],l=h5(a);"number"==typeof l?-1===l?i=a.token:s|=l:i=a}t.push(K(i,s))}else t.push(K(r))}return t}function Ra(n,t){return n[jh]=t,n.prototype[jh]=t,n}function h5(n){return n[jh]}const wc=Ra(fo("Optional"),8),Cc=Ra(fo("SkipSelf"),4);var Xn=(()=>((Xn=Xn||{})[Xn.Important=1]="Important",Xn[Xn.DashCase=2]="DashCase",Xn))();const _0="__ngContext__";function Dn(n,t){n[_0]=t}function Gh(n){const t=function $a(n){return n[_0]||null}(n);return t?Array.isArray(t)?t:t.lView:null}function Kh(n,t){return undefined(n,t)}function Va(n){const t=n[3];return Ar(t)?t[3]:t}function Zh(n){return S0(n[13])}function Qh(n){return S0(n[4])}function S0(n){for(;null!==n&&!Ar(n);)n=n[4];return n}function go(n,t,e,r,i){if(null!=r){let s,o=!1;Ar(r)?s=r:Qr(r)&&(o=!0,r=r[0]);const a=Yt(r);0===n&&null!==e?null==i?k0(t,e,a):ys(t,e,a,i||null,!0):1===n&&null!==e?ys(t,e,a,i||null,!0):2===n?function rf(n,t,e){const r=Ec(n,t);r&&function U5(n,t,e,r){Lt(n)?n.removeChild(t,e,r):t.removeChild(e)}(n,r,t,e)}(t,a,o):3===n&&t.destroyNode(a),null!=s&&function G5(n,t,e,r,i){const s=e[7];s!==Yt(e)&&go(t,n,r,s,i);for(let a=10;a<e.length;a++){const l=e[a];Ba(l[1],l,n,t,r,s)}}(t,n,s,e,i)}}function Jh(n,t,e){if(Lt(n))return n.createElement(t,e);{const r=null!==e?function g4(n){const t=n.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(e):null;return null===r?n.createElement(t):n.createElementNS(r,t)}}function T0(n,t){const e=n[9],r=e.indexOf(t),i=t[3];1024&t[2]&&(t[2]&=-1025,Dh(i,-1)),e.splice(r,1)}function Xh(n,t){if(n.length<=10)return;const e=10+t,r=n[e];if(r){const i=r[17];null!==i&&i!==n&&T0(i,r),t>0&&(n[e-1][4]=r[4]);const s=yc(n,10+t);!function F5(n,t){Ba(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const o=s[19];null!==o&&o.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function x0(n,t){if(!(256&t[2])){const e=t[11];Lt(e)&&e.destroyNode&&Ba(n,t,e,3,null,null),function $5(n){let t=n[13];if(!t)return ef(n[1],n);for(;t;){let e=null;if(Qr(t))e=t[13];else{const r=t[10];r&&(e=r)}if(!e){for(;t&&!t[4]&&t!==n;)Qr(t)&&ef(t[1],t),t=t[3];null===t&&(t=n),Qr(t)&&ef(t[1],t),e=t&&t[4]}t=e}}(t)}}function ef(n,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function H5(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let r=0;r<e.length;r+=2){const i=t[e[r]];if(!(i instanceof Ta)){const s=e[r+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=i[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(i)}finally{}}}}(n,t),function j5(n,t){const e=n.cleanup,r=t[7];let i=-1;if(null!==e)for(let s=0;s<e.length-1;s+=2)if("string"==typeof e[s]){const o=e[s+1],a="function"==typeof o?o(t):Yt(t[o]),l=r[i=e[s+2]],c=e[s+3];"boolean"==typeof c?a.removeEventListener(e[s],l,c):c>=0?r[i=c]():r[i=-c].unsubscribe(),s+=2}else{const o=r[i=e[s+1]];e[s].call(o)}if(null!==r){for(let s=i+1;s<r.length;s++)r[s]();t[7]=null}}(n,t),1===t[1].type&&Lt(t[11])&&t[11].destroy();const e=t[17];if(null!==e&&Ar(t[3])){e!==t[3]&&T0(e,t);const r=t[19];null!==r&&r.detachView(n)}}}function A0(n,t,e){return function I0(n,t,e){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return e[0];if(2&r.flags){const i=n.data[r.directiveStart].encapsulation;if(i===Tr.None||i===Tr.Emulated)return null}return Qn(r,e)}(n,t.parent,e)}function ys(n,t,e,r,i){Lt(n)?n.insertBefore(t,e,r,i):t.insertBefore(e,r,i)}function k0(n,t,e){Lt(n)?n.appendChild(t,e):t.appendChild(e)}function P0(n,t,e,r,i){null!==r?ys(n,t,e,r,i):k0(n,t,e)}function Ec(n,t){return Lt(n)?n.parentNode(t):t.parentNode}function N0(n,t,e){return F0(n,t,e)}let Tc,xc,F0=function O0(n,t,e){return 40&n.type?Qn(n,e):null};function Sc(n,t,e,r){const i=A0(n,r,t),s=t[11],a=N0(r.parent||t[6],r,t);if(null!=i)if(Array.isArray(e))for(let l=0;l<e.length;l++)P0(s,i,e[l],a,!1);else P0(s,i,e,a,!1)}function Mc(n,t){if(null!==t){const e=t.type;if(3&e)return Qn(t,n);if(4&e)return nf(-1,n[t.index]);if(8&e){const r=t.child;if(null!==r)return Mc(n,r);{const i=n[t.index];return Ar(i)?nf(-1,i):Yt(i)}}if(32&e)return Kh(t,n)()||Yt(n[t.index]);{const r=L0(n,t);return null!==r?Array.isArray(r)?r[0]:Mc(Va(n[16]),r):Mc(n,t.next)}}return null}function L0(n,t){return null!==t?n[16][6].projection[t.projection]:null}function nf(n,t){const e=10+n+1;if(e<t.length){const r=t[e],i=r[1].firstChild;if(null!==i)return Mc(r,i)}return t[7]}function sf(n,t,e,r,i,s,o){for(;null!=e;){const a=r[e.index],l=e.type;if(o&&0===t&&(a&&Dn(Yt(a),r),e.flags|=4),64!=(64&e.flags))if(8&l)sf(n,t,e.child,r,i,s,!1),go(t,n,i,a,s);else if(32&l){const c=Kh(e,r);let u;for(;u=c();)go(t,n,i,u,s);go(t,n,i,a,s)}else 16&l?$0(n,t,r,e,i,s):go(t,n,i,a,s);e=o?e.projectionNext:e.next}}function Ba(n,t,e,r,i,s){sf(e,r,n.firstChild,t,i,s,!1)}function $0(n,t,e,r,i,s){const o=e[16],l=o[6].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)go(t,n,i,l[c],s);else sf(n,t,l,o[3],i,s,!0)}function V0(n,t,e){Lt(n)?n.setAttribute(t,"style",e):t.style.cssText=e}function of(n,t,e){Lt(n)?""===e?n.removeAttribute(t,"class"):n.setAttribute(t,"class",e):t.className=e}function _s(n){var t;return(null===(t=function af(){if(void 0===Tc&&(Tc=null,rt.trustedTypes))try{Tc=rt.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Tc}())||void 0===t?void 0:t.createHTML(n))||n}function B0(n){var t;return(null===(t=function lf(){if(void 0===xc&&(xc=null,rt.trustedTypes))try{xc=rt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return xc}())||void 0===t?void 0:t.createHTML(n))||n}class vs{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Y5 extends vs{getTypeName(){return"HTML"}}class J5 extends vs{getTypeName(){return"Style"}}class X5 extends vs{getTypeName(){return"Script"}}class e6 extends vs{getTypeName(){return"URL"}}class t6 extends vs{getTypeName(){return"ResourceURL"}}function er(n){return n instanceof vs?n.changingThisBreaksApplicationSecurity:n}function Xr(n,t){const e=U0(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}function U0(n){return n instanceof vs&&n.getTypeName()||null}class a6{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(_s(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class l6{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const r=this.inertDocument.createElement("body");e.appendChild(r)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=_s(t),e;const r=this.inertDocument.createElement("body");return r.innerHTML=_s(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0<i;i--){const o=e.item(i).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&t.removeAttribute(o)}let r=t.firstChild;for(;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}const u6=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,d6=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function ja(n){return(n=String(n)).match(u6)||n.match(d6)?n:"unsafe:"+n}function q0(n){return(n=String(n)).split(",").map(t=>ja(t.trim())).join(", ")}function ei(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function Ha(...n){const t={};for(const e of n)for(const r in e)e.hasOwnProperty(r)&&(t[r]=!0);return t}const G0=ei("area,br,col,hr,img,wbr"),W0=ei("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),K0=ei("rp,rt"),cf=Ha(G0,Ha(W0,ei("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")),Ha(K0,ei("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")),Ha(K0,W0)),uf=ei("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),df=ei("srcset"),Z0=Ha(uf,df,ei("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,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ei("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")),h6=ei("script,style,template");class f6{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,r=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?r=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,r&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let i=this.checkClobberedElement(e,e.nextSibling);if(i){e=i;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!cf.hasOwnProperty(e))return this.sanitizedSomething=!0,!h6.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const r=t.attributes;for(let i=0;i<r.length;i++){const s=r.item(i),o=s.name,a=o.toLowerCase();if(!Z0.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;uf[a]&&(l=ja(l)),df[a]&&(l=q0(l)),this.buf.push(" ",o,'="',Q0(l),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();cf.hasOwnProperty(e)&&!G0.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Q0(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const p6=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m6=/([^\#-~ |!])/g;function Q0(n){return n.replace(/&/g,"&").replace(p6,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(m6,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Ac;function Y0(n,t){let e=null;try{Ac=Ac||function z0(n){const t=new l6(n);return function c6(){try{return!!(new window.DOMParser).parseFromString(_s(""),"text/html")}catch(n){return!1}}()?new a6(t):t}(n);let r=t?String(t):"";e=Ac.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=e.innerHTML,e=Ac.getInertBodyElement(r)}while(r!==s);return _s((new f6).sanitizeChildren(hf(e)||e))}finally{if(e){const r=hf(e)||e;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function hf(n){return"content"in n&&function g6(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var at=(()=>((at=at||{})[at.NONE=0]="NONE",at[at.HTML=1]="HTML",at[at.STYLE=2]="STYLE",at[at.SCRIPT=3]="SCRIPT",at[at.URL=4]="URL",at[at.RESOURCE_URL=5]="RESOURCE_URL",at))();function ff(n){const t=Ua();return t?B0(t.sanitize(at.HTML,n)||""):Xr(n,"HTML")?B0(er(n)):Y0(bh(),De(n))}function bs(n){const t=Ua();return t?t.sanitize(at.URL,n)||"":Xr(n,"URL")?er(n):ja(De(n))}function Ua(){const n=$();return n&&n[12]}function mf(n){return n.ngOriginalError}function M6(n,...t){n.error(...t)}class za{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),r=function S6(n){return n&&n.ngErrorLogger||M6}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&mf(t);for(;e&&mf(e);)e=mf(e);return e||null}}const N6=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(rt))();function X0(n){return n.ownerDocument.defaultView}function ey(n){return n.ownerDocument}function ti(n){return n instanceof Function?n():n}function ny(n,t,e){let r=n.length;for(;;){const i=n.indexOf(t,e);if(-1===i)return i;if(0===i||n.charCodeAt(i-1)<=32){const s=t.length;if(i+s===r||n.charCodeAt(i+s)<=32)return i}e=i+1}}const ry="ng-template";function F6(n,t,e){let r=0;for(;r<n.length;){let i=n[r++];if(e&&"class"===i){if(i=n[r],-1!==ny(i.toLowerCase(),t,0))return!0}else if(1===i){for(;r<n.length&&"string"==typeof(i=n[r++]);)if(i.toLowerCase()===t)return!0;return!1}}return!1}function iy(n){return 4===n.type&&n.value!==ry}function R6(n,t,e){return t===(4!==n.type||e?n.value:ry)}function L6(n,t,e){let r=4;const i=n.attrs||[],s=function B6(n){for(let t=0;t<n.length;t++)if(q1(n[t]))return t;return n.length}(i);let o=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!o)if(4&r){if(r=2|1&r,""!==l&&!R6(n,l,e)||""===l&&1===t.length){if(Pr(r))return!1;o=!0}}else{const c=8&r?l:t[++a];if(8&r&&null!==n.attrs){if(!F6(n.attrs,c,e)){if(Pr(r))return!1;o=!0}continue}const d=$6(8&r?"class":l,i,iy(n),e);if(-1===d){if(Pr(r))return!1;o=!0;continue}if(""!==c){let h;h=d>s?"":i[d+1].toLowerCase();const f=8&r?h:null;if(f&&-1!==ny(f,c,0)||2&r&&c!==h){if(Pr(r))return!1;o=!0}}}}else{if(!o&&!Pr(r)&&!Pr(l))return!1;if(o&&Pr(l))continue;o=!1,r=l|1&r}}return Pr(r)||o}function Pr(n){return 0==(1&n)}function $6(n,t,e,r){if(null===t)return-1;let i=0;if(r||!e){let s=!1;for(;i<t.length;){const o=t[i];if(o===n)return i;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=t[++i];for(;"string"==typeof a;)a=t[++i];continue}if(4===o)break;if(0===o){i+=4;continue}}i+=s?1:2}return-1}return function j6(n,t){let e=n.indexOf(4);if(e>-1)for(e++;e<n.length;){const r=n[e];if("number"==typeof r)return-1;if(r===t)return e;e++}return-1}(t,n)}function sy(n,t,e=!1){for(let r=0;r<t.length;r++)if(L6(n,t[r],e))return!0;return!1}function H6(n,t){e:for(let e=0;e<t.length;e++){const r=t[e];if(n.length===r.length){for(let i=0;i<n.length;i++)if(n[i]!==r[i])continue e;return!0}}return!1}function oy(n,t){return n?":not("+t.trim()+")":t}function U6(n){let t=n[0],e=1,r=2,i="",s=!1;for(;e<n.length;){let o=n[e];if("string"==typeof o)if(2&r){const a=n[++e];i+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?i+="."+o:4&r&&(i+=" "+o);else""!==i&&!Pr(o)&&(t+=oy(s,i),i=""),r=o,s=s||!Pr(r);e++}return""!==i&&(t+=oy(s,i)),t}const Se={};function P(n){ay(qe(),$(),Pn()+n,!1)}function ay(n,t,e,r){if(!r)if(3==(3&t[2])){const s=n.preOrderCheckHooks;null!==s&&cc(t,s,e)}else{const s=n.preOrderHooks;null!==s&&uc(t,s,0,e)}ji(e)}function Ic(n,t){return n<<17|t<<2}function Nr(n){return n>>17&32767}function gf(n){return 2|n}function bi(n){return(131068&n)>>2}function yf(n,t){return-131069&n|t<<2}function _f(n){return 1|n}function _y(n,t){const e=n.contentQueries;if(null!==e)for(let r=0;r<e.length;r+=2){const i=e[r],s=e[r+1];if(-1!==s){const o=n.data[s];xh(i),o.contentQueries(2,t[s],s)}}}function qa(n,t,e,r,i,s,o,a,l,c){const u=t.blueprint.slice();return u[0]=i,u[2]=140|r,P1(u),u[3]=u[15]=n,u[8]=e,u[10]=o||n&&n[10],u[11]=a||n&&n[11],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=s,u[16]=2==t.type?n[16]:u,u}function _o(n,t,e,r,i){let s=n.data[t];if(null===s)s=function Tf(n,t,e,r,i){const s=F1(),o=Eh(),l=n.data[t]=function a9(n,t,e,r,i,s){return{type:e,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,e,t,r,i);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,t,e,r,i),function x4(){return Ee.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=e,s.value=r,s.attrs=i;const o=function Ma(){const n=Ee.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Yr(s,!0),s}function vo(n,t,e,r){if(0===e)return-1;const i=t.length;for(let s=0;s<e;s++)t.push(r),n.blueprint.push(r),n.data.push(null);return i}function Ga(n,t,e){oc(t);try{const r=n.viewQuery;null!==r&&Rf(1,r,e);const i=n.template;null!==i&&vy(n,t,i,1,e),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&_y(n,t),n.staticViewQueries&&Rf(2,n.viewQuery,e);const s=n.components;null!==s&&function i9(n,t){for(let e=0;e<t.length;e++)S9(n,t[e])}(t,s)}catch(r){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),r}finally{t[2]&=-5,ac()}}function bo(n,t,e,r){const i=t[2];if(256!=(256&i)){oc(t);try{P1(t),function R1(n){return Ee.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==e&&vy(n,t,e,2,r);const o=3==(3&i);if(o){const c=n.preOrderCheckHooks;null!==c&&cc(t,c,null)}else{const c=n.preOrderHooks;null!==c&&uc(t,c,0,null),Ah(t,0)}if(function D9(n){for(let t=Zh(n);null!==t;t=Qh(t)){if(!t[2])continue;const e=t[9];for(let r=0;r<e.length;r++){const i=e[r],s=i[3];0==(1024&i[2])&&Dh(s,1),i[2]|=1024}}}(t),function C9(n){for(let t=Zh(n);null!==t;t=Qh(t))for(let e=10;e<t.length;e++){const r=t[e],i=r[1];Ch(r)&&bo(i,r,i.template,r[8])}}(t),null!==n.contentQueries&&_y(n,t),o){const c=n.contentCheckHooks;null!==c&&cc(t,c)}else{const c=n.contentHooks;null!==c&&uc(t,c,1),Ah(t,1)}!function n9(n,t){const e=n.hostBindingOpCodes;if(null!==e)try{for(let r=0;r<e.length;r++){const i=e[r];if(i<0)ji(~i);else{const s=i,o=e[++r],a=e[++r];A4(o,s),a(2,t[s])}}}finally{ji(-1)}}(n,t);const a=n.components;null!==a&&function r9(n,t){for(let e=0;e<t.length;e++)E9(n,t[e])}(t,a);const l=n.viewQuery;if(null!==l&&Rf(2,l,r),o){const c=n.viewCheckHooks;null!==c&&cc(t,c)}else{const c=n.viewHooks;null!==c&&uc(t,c,2),Ah(t,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),t[2]&=-73,1024&t[2]&&(t[2]&=-1025,Dh(t[3],-1))}finally{ac()}}}function s9(n,t,e,r){const i=t[10],o=k1(t);try{!o&&i.begin&&i.begin(),o&&Ga(n,t,r),bo(n,t,e,r)}finally{!o&&i.end&&i.end()}}function vy(n,t,e,r,i){const s=Pn(),o=2&r;try{ji(-1),o&&t.length>20&&ay(n,t,20,!1),e(r,i)}finally{ji(s)}}function by(n,t,e){if(ph(t)){const i=t.directiveEnd;for(let s=t.directiveStart;s<i;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,e[s],s)}}}function xf(n,t,e){!O1()||(function p9(n,t,e,r){const i=e.directiveStart,s=e.directiveEnd;n.firstCreatePass||Aa(e,t),Dn(r,t);const o=e.initialInputs;for(let a=i;a<s;a++){const l=n.data[a],c=Ir(l);c&&v9(t,e,l);const u=Ia(t,n,a,e);Dn(u,t),null!==o&&b9(0,a-i,u,l,0,o),c&&(Yn(e.index,t)[8]=u)}}(n,t,e,Qn(e,t)),128==(128&e.flags)&&function m9(n,t,e){const r=e.directiveStart,i=e.directiveEnd,o=e.index,a=function I4(){return Ee.lFrame.currentDirectiveIndex}();try{ji(o);for(let l=r;l<i;l++){const c=n.data[l],u=t[l];Mh(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&xy(c,u)}}finally{ji(-1),Mh(a)}}(n,t,e))}function Af(n,t,e=Qn){const r=t.localNames;if(null!==r){let i=t.index+1;for(let s=0;s<r.length;s+=2){const o=r[s+1],a=-1===o?e(t,n):n[o];n[i++]=a}}}function wy(n){const t=n.tView;return null===t||t.incompleteFirstPass?n.tView=Nc(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):t}function Nc(n,t,e,r,i,s,o,a,l,c){const u=20+r,d=u+i,h=function o9(n,t){const e=[];for(let r=0;r<t;r++)e.push(r<n?null:Se);return e}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:e,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,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:f,incompleteFirstPass:!1}}function Ey(n,t,e,r){const i=Oy(t);null===e?i.push(r):(i.push(e),n.firstCreatePass&&Fy(n).push(r,i.length-1))}function Sy(n,t,e){for(let r in n)if(n.hasOwnProperty(r)){const i=n[r];(e=null===e?{}:e).hasOwnProperty(r)?e[r].push(t,i):e[r]=[t,i]}return e}function tr(n,t,e,r,i,s,o,a){const l=Qn(t,e);let u,c=t.inputs;!a&&null!=c&&(u=c[r])?($y(n,e,u,r,i),nc(t)&&function u9(n,t){const e=Yn(t,n);16&e[2]||(e[2]|=64)}(e,t.index)):3&t.type&&(r=function c9(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(r),i=null!=o?o(i,t.value||"",r):i,Lt(s)?s.setProperty(l,r,i):kh(r)||(l.setProperty?l.setProperty(r,i):l[r]=i))}function If(n,t,e,r){let i=!1;if(O1()){const s=function g9(n,t,e){const r=n.directiveRegistry;let i=null;if(r)for(let s=0;s<r.length;s++){const o=r[s];sy(e,o.selectors,!1)&&(i||(i=[]),mc(Aa(e,t),n,o.type),Ir(o)?(Ay(n,e),i.unshift(o)):i.push(o))}return i}(n,t,e),o=null===r?null:{"":-1};if(null!==s){i=!0,Iy(e,n.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=vo(n,t,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];e.mergedAttrs=hc(e.mergedAttrs,d.hostAttrs),ky(n,e,t,c,d),_9(c,d,o),null!==d.contentQueries&&(e.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e.index),l=!0),c++}!function l9(n,t){const r=t.directiveEnd,i=n.data,s=t.attrs,o=[];let a=null,l=null;for(let c=t.directiveStart;c<r;c++){const u=i[c],d=u.inputs,h=null===s||iy(t)?null:w9(d,s);o.push(h),a=Sy(d,c,a),l=Sy(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=l}(n,e)}o&&function y9(n,t,e){if(t){const r=n.localNames=[];for(let i=0;i<t.length;i+=2){const s=e[t[i+1]];if(null==s)throw new se(-301,!1);r.push(t[i],s)}}}(e,r,o)}return e.mergedAttrs=hc(e.mergedAttrs,e.attrs),i}function Ty(n,t,e,r,i,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~t.index;(function f9(n){let t=n.length;for(;t>0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(r,i,o)}}function xy(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function Ay(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function _9(n,t,e){if(e){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)e[t.exportAs[r]]=n;Ir(t)&&(e[""]=n)}}function Iy(n,t,e){n.flags|=1,n.directiveStart=t,n.directiveEnd=t+e,n.providerIndexes=t}function ky(n,t,e,r,i){n.data[r]=i;const s=i.factory||(i.factory=gs(i.type)),o=new Ta(s,Ir(i),null);n.blueprint[r]=o,e[r]=o,Ty(n,t,0,r,vo(n,e,i.hostVars,Se),i)}function v9(n,t,e){const r=Qn(t,n),i=wy(e),s=n[10],o=Oc(n,qa(n,i,null,e.onPush?64:16,r,t,s,s.createRenderer(r,e),null,null));n[t.index]=o}function ni(n,t,e,r,i,s){const o=Qn(n,t);!function kf(n,t,e,r,i,s,o){if(null==s)Lt(n)?n.removeAttribute(t,i,e):t.removeAttribute(i);else{const a=null==o?De(s):o(s,r||"",i);Lt(n)?n.setAttribute(t,i,a,e):e?t.setAttributeNS(e,i,a):t.setAttribute(i,a)}}(t[11],o,s,n.value,e,r,i)}function b9(n,t,e,r,i,s){const o=s[t];if(null!==o){const a=r.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?r.setInput(e,d,c,u):e[u]=d}}}function w9(n,t){let e=null,r=0;for(;r<t.length;){const i=t[r];if(0!==i)if(5!==i){if("number"==typeof i)break;n.hasOwnProperty(i)&&(null===e&&(e=[]),e.push(i,n[i],t[r+1])),r+=2}else r+=2;else r+=4}return e}function Py(n,t,e,r){return new Array(n,!0,!1,t,null,0,r,e,null,null)}function E9(n,t){const e=Yn(t,n);if(Ch(e)){const r=e[1];80&e[2]?bo(r,e,r.template,e[8]):e[5]>0&&Pf(e)}}function Pf(n){for(let r=Zh(n);null!==r;r=Qh(r))for(let i=10;i<r.length;i++){const s=r[i];if(1024&s[2]){const o=s[1];bo(o,s,o.template,s[8])}else s[5]>0&&Pf(s)}const e=n[1].components;if(null!==e)for(let r=0;r<e.length;r++){const i=Yn(e[r],n);Ch(i)&&i[5]>0&&Pf(i)}}function S9(n,t){const e=Yn(t,n),r=e[1];(function M9(n,t){for(let e=t.length;e<n.blueprint.length;e++)t.push(n.blueprint[e])})(r,e),Ga(r,e,e[8])}function Oc(n,t){return n[13]?n[14][4]=t:n[13]=t,n[14]=t,t}function Nf(n){for(;n;){n[2]|=64;const t=Va(n);if(a4(n)&&!t)return n;n=t}return null}function Ny(n){!function Of(n){for(let t=0;t<n.components.length;t++){const e=n.components[t],r=Gh(e),i=r[1];s9(i,r,i.template,e)}}(n[8])}function Rf(n,t,e){xh(0),t(n,e)}const x9=(()=>Promise.resolve(null))();function Oy(n){return n[7]||(n[7]=[])}function Fy(n){return n.cleanup||(n.cleanup=[])}function Ly(n,t){const e=n[9],r=e?e.get(za,null):null;r&&r.handleError(t)}function $y(n,t,e,r,i){for(let s=0;s<e.length;){const o=e[s++],a=e[s++],l=t[o],c=n.data[o];null!==c.setInput?c.setInput(l,i,r,a):l[a]=i}}function wi(n,t,e){const r=ic(t,n);!function M0(n,t,e){Lt(n)?n.setValue(t,e):t.textContent=e}(n[11],r,e)}function Fc(n,t,e){let r=e?n.styles:null,i=e?n.classes:null,s=0;if(null!==t)for(let o=0;o<t.length;o++){const a=t[o];"number"==typeof a?s=a:1==s?i=sh(i,a):2==s&&(r=sh(r,a+": "+t[++o]+";"))}e?n.styles=r:n.stylesWithoutHost=r,e?n.classes=i:n.classesWithoutHost=i}const Lf=new pe("INJECTOR",-1);class Vy{get(t,e=Oa){if(e===Oa){const r=new Error(`NullInjectorError: No provider for ${et(t)}!`);throw r.name="NullInjectorError",r}return e}}const $f=new pe("Set Injector scope."),Wa={},k9={};let Vf;function By(){return void 0===Vf&&(Vf=new Vy),Vf}function jy(n,t=null,e=null,r){const i=Hy(n,t,e,r);return i._resolveInjectorDefTypes(),i}function Hy(n,t=null,e=null,r){return new P9(n,e,t||By(),r)}class P9{constructor(t,e,r,i=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&Jr(e,a=>this.processProvider(a,t,e)),Jr([t],a=>this.processInjectorType(a,[],s)),this.records.set(Lf,wo(void 0,this));const o=this.records.get($f);this.scope=null!=o?o.value:null,this.source=i||("object"==typeof t?null:et(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Oa,r=Me.Default){this.assertNotDestroyed();const i=u0(this),s=Li(void 0);try{if(!(r&Me.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function B9(n){return"function"==typeof n||"object"==typeof n&&n instanceof pe}(t)&&ah(t);a=l&&this.injectableDefInScope(l)?wo(Bf(t),Wa):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&Me.Self?By():this.parent).get(t,e=r&Me.Optional&&e===Oa?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[vc]=o[vc]||[]).unshift(et(t)),i)throw o;return function f5(n,t,e,r){const i=n[vc];throw t[c0]&&i.unshift(t[c0]),n.message=function p5(n,t,e,r=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let i=et(t);if(Array.isArray(t))i=t.map(et).join(" -> ");else if("object"==typeof t){let s=[];for(let o in t)if(t.hasOwnProperty(o)){let a=t[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):et(a)))}i=`{${s.join(", ")}}`}return`${e}${r?"("+r+")":""}[${i}]: ${n.replace(l5,"\n ")}`}("\n"+n.message,i,e,r),n.ngTokenPath=i,n[vc]=null,n}(o,t,"R3InjectorError",this.source)}throw o}finally{Li(s),u0(i)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,i)=>t.push(et(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new se(205,!1)}processInjectorType(t,e,r){if(!(t=Ie(t)))return!1;let i=y1(t);const s=null==i&&t.ngModule||void 0,o=void 0===s?t:s,a=-1!==r.indexOf(o);if(void 0!==s&&(i=y1(s)),null==i)return!1;if(null!=i.imports&&!a){let u;r.push(o);try{Jr(i.imports,d=>{this.processInjectorType(d,e,r)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:h,providers:f}=u[d];Jr(f,m=>this.processProvider(m,h,f||ot))}}this.injectorDefTypes.add(o);const l=gs(o)||(()=>new o);this.records.set(o,wo(l,Wa));const c=i.providers;if(null!=c&&!a){const u=t;Jr(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,r){let i=Co(t=Ie(t))?t:Ie(t&&t.provide);const s=function O9(n,t,e){return zy(n)?wo(void 0,n.useValue):wo(Uy(n),Wa)}(t);if(Co(t)||!0!==t.multi)this.records.get(i);else{let o=this.records.get(i);o||(o=wo(void 0,Wa,!0),o.factory=()=>Hh(o.multi),this.records.set(i,o)),i=t,o.multi.push(t)}this.records.set(i,s)}hydrate(t,e){return e.value===Wa&&(e.value=k9,e.value=e.factory()),"object"==typeof e.value&&e.value&&function V9(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=Ie(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Bf(n){const t=ah(n),e=null!==t?t.factory:gs(n);if(null!==e)return e;if(n instanceof pe)throw new se(204,!1);if(n instanceof Function)return function N9(n){const t=n.length;if(t>0)throw Na(t,"?"),new se(204,!1);const e=function K3(n){const t=n&&(n[Yl]||n[_1]);if(t){const e=function Z3(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new se(204,!1)}function Uy(n,t,e){let r;if(Co(n)){const i=Ie(n);return gs(i)||Bf(i)}if(zy(n))r=()=>Ie(n.useValue);else if(function R9(n){return!(!n||!n.useFactory)}(n))r=()=>n.useFactory(...Hh(n.deps||[]));else if(function F9(n){return!(!n||!n.useExisting)}(n))r=()=>K(Ie(n.useExisting));else{const i=Ie(n&&(n.useClass||n.provide));if(!function $9(n){return!!n.deps}(n))return gs(i)||Bf(i);r=()=>new i(...Hh(n.deps))}return r}function wo(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function zy(n){return null!==n&&"object"==typeof n&&u5 in n}function Co(n){return"function"==typeof n}let _t=(()=>{class n{static create(e,r){var i;if(Array.isArray(e))return jy({name:""},r,e,"");{const s=null!==(i=e.name)&&void 0!==i?i:"";return jy({name:s},e.parent,e.providers,s)}}}return n.THROW_IF_NOT_FOUND=Oa,n.NULL=new Vy,n.\u0275prov=ce({token:n,providedIn:"any",factory:()=>K(Lf)}),n.__NG_ELEMENT_ID__=-1,n})();function K9(n,t){lc(Gh(n)[1],on())}function Ue(n){let t=function n_(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const r=[n];for(;t;){let i;if(Ir(n))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new se(903,"");i=t.\u0275dir}if(i){if(e){r.push(i);const o=n;o.inputs=Uf(n.inputs),o.declaredInputs=Uf(n.declaredInputs),o.outputs=Uf(n.outputs);const a=i.hostBindings;a&&J9(n,a);const l=i.viewQuery,c=i.contentQueries;if(l&&Q9(n,l),c&&Y9(n,c),ih(n.inputs,i.inputs),ih(n.declaredInputs,i.declaredInputs),ih(n.outputs,i.outputs),Ir(i)&&i.data.animation){const u=n.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(n),a===Ue&&(e=!1)}}t=Object.getPrototypeOf(t)}!function Z9(n){let t=0,e=null;for(let r=n.length-1;r>=0;r--){const i=n[r];i.hostVars=t+=i.hostVars,i.hostAttrs=hc(i.hostAttrs,e=hc(e,i.hostAttrs))}}(r)}function Uf(n){return n===Xs?{}:n===ot?[]:n}function Q9(n,t){const e=n.viewQuery;n.viewQuery=e?(r,i)=>{t(r,i),e(r,i)}:t}function Y9(n,t){const e=n.contentQueries;n.contentQueries=e?(r,i,s)=>{t(r,i,s),e(r,i,s)}:t}function J9(n,t){const e=n.hostBindings;n.hostBindings=e?(r,i)=>{t(r,i),e(r,i)}:t}let Rc=null;function Do(){if(!Rc){const n=rt.Symbol;if(n&&n.iterator)Rc=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const r=t[e];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Rc=r)}}}return Rc}function Ka(n){return!!zf(n)&&(Array.isArray(n)||!(n instanceof Map)&&Do()in n)}function zf(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function ri(n,t,e){return n[t]=e}function En(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function ws(n,t,e,r){const i=En(n,t,e);return En(n,t+1,r)||i}function Sn(n,t,e,r){const i=$();return En(i,so(),t)&&(qe(),ni(Tt(),i,n,t,e,r)),Sn}function J(n,t,e,r,i,s,o,a){const l=$(),c=qe(),u=n+20,d=c.firstCreatePass?function sD(n,t,e,r,i,s,o,a,l){const c=t.consts,u=_o(t,n,4,o||null,Bi(c,a));If(t,e,u,Bi(c,l)),lc(t,u);const d=u.tViews=Nc(2,u,r,i,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,c,l,t,e,r,i,s,o):c.data[u];Yr(d,!1);const h=l[11].createComment("");Sc(c,l,h,d),Dn(h,l),Oc(l,l[u]=Py(h,l,h,d)),rc(d)&&xf(c,l,d),null!=o&&Af(l,d,a)}function Cs(n){return io(function T4(){return Ee.lFrame.contextLView}(),20+n)}function k(n,t=Me.Default){const e=$();return null===e?K(n,t):J1(on(),e,Ie(n),t)}function N(n,t,e){const r=$();return En(r,so(),t)&&tr(qe(),Tt(),r,n,t,r[11],e,!1),N}function Zf(n,t,e,r,i){const o=i?"class":"style";$y(n,e,t.inputs[o],o,r)}function H(n,t,e,r){const i=$(),s=qe(),o=20+n,a=i[11],l=i[o]=Jh(a,t,function $4(){return Ee.lFrame.currentNamespace}()),c=s.firstCreatePass?function TD(n,t,e,r,i,s,o){const a=t.consts,c=_o(t,n,2,i,Bi(a,s));return If(t,e,c,Bi(a,o)),null!==c.attrs&&Fc(c,c.attrs,!1),null!==c.mergedAttrs&&Fc(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(o,s,i,0,t,e,r):s.data[o];Yr(c,!0);const u=c.mergedAttrs;null!==u&&dc(a,l,u);const d=c.classes;null!==d&&of(a,l,d);const h=c.styles;return null!==h&&V0(a,l,h),64!=(64&c.flags)&&Sc(s,i,l,c),0===function C4(){return Ee.lFrame.elementDepthCount}()&&Dn(l,i),function D4(){Ee.lFrame.elementDepthCount++}(),rc(c)&&(xf(s,i,c),by(s,c,i)),null!==r&&Af(i,c),H}function U(){let n=on();Eh()?Sh():(n=n.parent,Yr(n,!1));const t=n;!function E4(){Ee.lFrame.elementDepthCount--}();const e=qe();return e.firstCreatePass&&(lc(e,n),ph(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function U4(n){return 0!=(16&n.flags)}(t)&&Zf(e,t,$(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function z4(n){return 0!=(32&n.flags)}(t)&&Zf(e,t,$(),t.stylesWithoutHost,!1),U}function Ze(n,t,e,r){return H(n,t,e,r),U(),Ze}function lt(n,t,e){const r=$(),i=qe(),s=n+20,o=i.firstCreatePass?function xD(n,t,e,r,i){const s=t.consts,o=Bi(s,r),a=_o(t,n,8,"ng-container",o);return null!==o&&Fc(a,o,!0),If(t,e,a,Bi(s,i)),null!==t.queries&&t.queries.elementStart(t,a),a}(s,i,r,t,e):i.data[s];Yr(o,!0);const a=r[s]=r[11].createComment("");return Sc(i,r,a,o),Dn(a,r),rc(o)&&(xf(i,r,o),by(i,o,r)),null!=e&&Af(r,o),lt}function ct(){let n=on();const t=qe();return Eh()?Sh():(n=n.parent,Yr(n,!1)),t.firstCreatePass&&(lc(t,n),ph(n)&&t.queries.elementEnd(n)),ct}function Vc(n,t,e){return lt(n,t,e),ct(),Vc}function Mn(){return $()}function Bc(n){return!!n&&"function"==typeof n.then}function C_(n){return!!n&&"function"==typeof n.subscribe}const D_=C_;function Oe(n,t,e,r){const i=$(),s=qe(),o=on();return function S_(n,t,e,r,i,s,o,a){const l=rc(r),u=n.firstCreatePass&&Fy(n),d=t[8],h=Oy(t);let f=!0;if(3&r.type||a){const C=Qn(r,t),E=a?a(C):C,D=h.length,O=a?j=>a(Yt(j[r.index])):r.index;if(Lt(e)){let j=null;if(!a&&l&&(j=function AD(n,t,e,r){const i=n.cleanup;if(null!=i)for(let s=0;s<i.length-1;s+=2){const o=i[s];if(o===e&&i[s+1]===r){const a=t[7],l=i[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,t,i,r.index)),null!==j)(j.__ngLastListenerFn__||j).__ngNextListenerFn__=s,j.__ngLastListenerFn__=s,f=!1;else{s=Qf(r,t,d,s,!1);const ie=e.listen(E,i,s);h.push(s,ie),u&&u.push(i,O,D,D+1)}}else s=Qf(r,t,d,s,!0),E.addEventListener(i,s,o),h.push(s),u&&u.push(i,O,D,o)}else s=Qf(r,t,d,s,!1);const m=r.outputs;let y;if(f&&null!==m&&(y=m[i])){const C=y.length;if(C)for(let E=0;E<C;E+=2){const G=t[y[E]][y[E+1]].subscribe(s),Ce=h.length;h.push(s,G),u&&u.push(i,r.index,Ce,-(Ce+1))}}}(s,i,i[11],o,n,t,!!e,r),Oe}function M_(n,t,e,r){try{return!1!==e(r)}catch(i){return Ly(n,i),!1}}function Qf(n,t,e,r,i){return function s(o){if(o===Function)return r;const a=2&n.flags?Yn(n.index,t):t;0==(32&t[2])&&Nf(a);let l=M_(t,0,r,o),c=s.__ngNextListenerFn__;for(;c;)l=M_(t,0,c,o)&&l,c=c.__ngNextListenerFn__;return i&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function Y(n=1){return function P4(n){return(Ee.lFrame.contextLView=function N4(n,t){for(;n>0;)t=t[15],n--;return t}(n,Ee.lFrame.contextLView))[8]}(n)}function ID(n,t){let e=null;const r=function V6(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let i=0;i<t.length;i++){const s=t[i];if("*"!==s){if(null===r?sy(n,s,!0):H6(r,s))return i}else e=i}return e}function Yf(n,t=0,e){const r=$(),i=qe(),s=_o(i,20+n,16,null,e||null);null===s.projection&&(s.projection=t),Sh(),64!=(64&s.flags)&&function q5(n,t,e){$0(t[11],0,t,e,A0(n,e,t),N0(e.parent||t[6],e,t))}(i,r,s)}function L_(n,t,e,r,i){const s=n[e+1],o=null===t;let a=r?Nr(s):bi(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];ND(n[a],t)&&(l=!0,n[a+1]=r?_f(u):gf(u)),a=r?Nr(u):bi(u)}l&&(n[e+1]=r?gf(s):_f(s))}function ND(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&po(n,t)>=0}const ln={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function $_(n){return n.substring(ln.key,ln.keyEnd)}function V_(n,t){const e=ln.textEnd;return e===t?-1:(t=ln.keyEnd=function LD(n,t,e){for(;t<e&&n.charCodeAt(t)>32;)t++;return t}(n,ln.key=t,e),Oo(n,t,e))}function Oo(n,t,e){for(;t<e&&n.charCodeAt(t)<=32;)t++;return t}function Fo(n,t,e){return Rr(n,t,e,!1),Fo}function Fr(n,t){return Rr(n,t,null,!0),Fr}function Ci(n){!function Lr(n,t,e,r){const i=qe(),s=vi(2);i.firstUpdatePass&&q_(i,null,s,r);const o=$();if(e!==Se&&En(o,s,e)){const a=i.data[Pn()];if(Z_(a,r)&&!z_(i,s)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=sh(l,e||"")),Zf(i,a,o,e,r)}else!function GD(n,t,e,r,i,s,o,a){i===Se&&(i=ot);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 h=l<i.length?i[l+1]:void 0,f=c<s.length?s[c+1]:void 0;let y,m=null;u===d?(l+=2,c+=2,h!==f&&(m=d,y=f)):null===d||null!==u&&u<d?(l+=2,m=u):(c+=2,m=d,y=f),null!==m&&W_(n,t,e,r,m,y,o,a),u=l<i.length?i[l]:null,d=c<s.length?s[c]:null}}(i,a,o,o[11],o[s+1],o[s+1]=function qD(n,t,e){if(null==e||""===e)return ot;const r=[],i=er(e);if(Array.isArray(i))for(let s=0;s<i.length;s++)n(r,i[s],!0);else if("object"==typeof i)for(const s in i)i.hasOwnProperty(s)&&n(r,s,i[s]);else"string"==typeof i&&t(r,i);return r}(n,t,e),r,s)}}(Jn,si,n,!0)}function si(n,t){for(let e=function FD(n){return function j_(n){ln.key=0,ln.keyEnd=0,ln.value=0,ln.valueEnd=0,ln.textEnd=n.length}(n),V_(n,Oo(n,0,ln.textEnd))}(t);e>=0;e=V_(t,e))Jn(n,$_(t),!0)}function Rr(n,t,e,r){const i=$(),s=qe(),o=vi(2);s.firstUpdatePass&&q_(s,n,o,r),t!==Se&&En(i,o,t)&&W_(s,s.data[Pn()],i,i[11],n,i[o+1]=function WD(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=et(er(n)))),n}(t,e),r,o)}function z_(n,t){return t>=n.expandoStartIndex}function q_(n,t,e,r){const i=n.data;if(null===i[e+1]){const s=i[Pn()],o=z_(n,e);Z_(s,r)&&null===t&&!o&&(t=!1),t=function jD(n,t,e,r){const i=Th(n);let s=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(e=Qa(e=Xf(null,n,t,e,r),t.attrs,r),s=null);else{const o=t.directiveStylingLast;if(-1===o||n[o]!==i)if(e=Xf(i,n,t,e,r),null===s){let l=function HD(n,t,e){const r=e?t.classBindings:t.styleBindings;if(0!==bi(r))return n[Nr(r)]}(n,t,r);void 0!==l&&Array.isArray(l)&&(l=Xf(null,n,t,l[1],r),l=Qa(l,t.attrs,r),function UD(n,t,e,r){n[Nr(e?t.classBindings:t.styleBindings)]=r}(n,t,r,l))}else s=function zD(n,t,e){let r;const i=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<i;s++)r=Qa(r,n[s].hostAttrs,e);return Qa(r,t.attrs,e)}(n,t,r)}return void 0!==s&&(r?t.residualClasses=s:t.residualStyles=s),e}(i,s,t,r),function kD(n,t,e,r,i,s){let o=s?t.classBindings:t.styleBindings,a=Nr(o),l=bi(o);n[r]=e;let u,c=!1;if(Array.isArray(e)){const d=e;u=d[1],(null===u||po(d,u)>0)&&(c=!0)}else u=e;if(i)if(0!==l){const h=Nr(n[a+1]);n[r+1]=Ic(h,a),0!==h&&(n[h+1]=yf(n[h+1],r)),n[a+1]=function G6(n,t){return 131071&n|t<<17}(n[a+1],r)}else n[r+1]=Ic(a,0),0!==a&&(n[a+1]=yf(n[a+1],r)),a=r;else n[r+1]=Ic(l,0),0===a?a=r:n[l+1]=yf(n[l+1],r),l=r;c&&(n[r+1]=gf(n[r+1])),L_(n,u,r,!0),L_(n,u,r,!1),function PD(n,t,e,r,i){const s=i?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof t&&po(s,t)>=0&&(e[r+1]=_f(e[r+1]))}(t,u,n,r,s),o=Ic(a,l),s?t.classBindings=o:t.styleBindings=o}(i,s,t,e,o,r)}}function Xf(n,t,e,r,i){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<o&&(s=t[a],r=Qa(r,s.hostAttrs,i),s!==n);)a++;return null!==n&&(e.directiveStylingLast=a),r}function Qa(n,t,e){const r=e?1:2;let i=-1;if(null!==t)for(let s=0;s<t.length;s++){const o=t[s];"number"==typeof o?i=o:i===r&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),Jn(n,o,!!e||t[++s]))}return void 0===n?null:n}function W_(n,t,e,r,i,s,o,a){if(!(3&t.type))return;const l=n.data,c=l[a+1];jc(function uy(n){return 1==(1&n)}(c)?K_(l,t,e,i,bi(c),o):void 0)||(jc(s)||function cy(n){return 2==(2&n)}(c)&&(s=K_(l,null,e,i,a,o)),function W5(n,t,e,r,i){const s=Lt(n);if(t)i?s?n.addClass(e,r):e.classList.add(r):s?n.removeClass(e,r):e.classList.remove(r);else{let o=-1===r.indexOf("-")?void 0:Xn.DashCase;if(null==i)s?n.removeStyle(e,r,o):e.style.removeProperty(r);else{const a="string"==typeof i&&i.endsWith("!important");a&&(i=i.slice(0,-10),o|=Xn.Important),s?n.setStyle(e,r,i,o):e.style.setProperty(r,i,a?"important":"")}}}(r,o,ic(Pn(),e),i,s))}function K_(n,t,e,r,i,s){const o=null===t;let a;for(;i>0;){const l=n[i],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[i+1];h===Se&&(h=d?ot:void 0);let f=d?Vh(h,r):u===r?h:void 0;if(c&&!jc(f)&&(f=Vh(l,r)),jc(f)&&(a=f,o))return a;const m=n[i+1];i=o?Nr(m):bi(m)}if(null!==t){let l=s?t.residualClasses:t.residualStyles;null!=l&&(a=Vh(l,r))}return a}function jc(n){return void 0!==n}function Z_(n,t){return 0!=(n.flags&(t?16:32))}function me(n,t=""){const e=$(),r=qe(),i=n+20,s=r.firstCreatePass?_o(r,i,1,t,null):r.data[i],o=e[i]=function Yh(n,t){return Lt(n)?n.createText(t):n.createTextNode(t)}(e[11],t);Sc(r,e,o,s),Yr(s,!1)}function $r(n){return zt("",n,""),$r}function zt(n,t,e){const r=$(),i=function So(n,t,e,r){return En(n,so(),e)?t+De(e)+r:Se}(r,n,t,e);return i!==Se&&wi(r,Pn(),i),zt}function Hc(n,t,e){const r=$();if(En(r,so(),t)){const s=qe(),o=Tt();tr(s,o,r,n,t,function Ry(n,t,e){return(null===n||Ir(n))&&(e=function v4(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}(Th(s.data),o,r),e,!0)}return Hc}const Uc="en-US";let gv=Uc;function np(n,t,e,r,i){if(n=Ie(n),Array.isArray(n))for(let s=0;s<n.length;s++)np(n[s],t,e,r,i);else{const s=qe(),o=$();let a=Co(n)?n:Ie(n.provide),l=Uy(n);const c=on(),u=1048575&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>20;if(Co(n)||!n.multi){const f=new Ta(l,i,k),m=ip(a,t,i?u:u+h,d);-1===m?(mc(Aa(c,o),s,a),rp(s,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),e.push(f),o.push(f)):(e[m]=f,o[m]=f)}else{const f=ip(a,t,u+h,d),m=ip(a,t,u,u+h),y=f>=0&&e[f],C=m>=0&&e[m];if(i&&!C||!i&&!y){mc(Aa(c,o),s,a);const E=function hE(n,t,e,r,i){const s=new Ta(n,e,k);return s.multi=[],s.index=t,s.componentProviders=0,Bv(s,i,r&&!e),s}(i?dE:uE,e.length,i,r,l);!i&&C&&(e[m].providerFactory=E),rp(s,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),e.push(E),o.push(E)}else rp(s,n,f>-1?f:m,Bv(e[i?m:f],l,!i&&r));!i&&r&&C&&e[m].componentProviders++}}}function rp(n,t,e,r){const i=Co(t),s=function L9(n){return!!n.useClass}(t);if(i||s){const l=(s?Ie(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!i&&t.multi){const u=c.indexOf(e);-1===u?c.push(e,[r,l]):c[u+1].push(r,l)}else c.push(e,l)}}}function Bv(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function ip(n,t,e,r){for(let i=e;i<r;i++)if(t[i]===n)return i;return-1}function uE(n,t,e,r){return sp(this.multi,[])}function dE(n,t,e,r){const i=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=Ia(e,e[1],this.providerFactory.index,r);s=a.slice(0,o),sp(i,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],sp(i,s);return s}function sp(n,t){for(let e=0;e<n.length;e++)t.push((0,n[e])());return t}function ut(n,t=[]){return e=>{e.providersResolver=(r,i)=>function cE(n,t,e){const r=qe();if(r.firstCreatePass){const i=Ir(n);np(e,r.data,r.blueprint,i,!0),np(t,r.data,r.blueprint,i,!1)}}(r,i?i(n):n,t)}}class jv{}class mE{resolveComponentFactory(t){throw function pE(n){const t=Error(`No component factory found for ${et(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let Es=(()=>{class n{}return n.NULL=new mE,n})();function gE(){return $o(on(),$())}function $o(n,t){return new Vn(Qn(n,t))}let Vn=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=gE,n})();function yE(n){return n instanceof Vn?n.nativeElement:n}class tl{}let oi=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function vE(){const n=$(),e=Yn(on().index,n);return function _E(n){return n[11]}(Qr(e)?e:n)}(),n})(),bE=(()=>{class n{}return n.\u0275prov=ce({token:n,providedIn:"root",factory:()=>null}),n})();class nl{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const wE=new nl("13.3.12"),op={};function Kc(n,t,e,r,i=!1){for(;null!==e;){const s=t[e.index];if(null!==s&&r.push(Yt(s)),Ar(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&Kc(l[1],l,c,r)}const o=e.type;if(8&o)Kc(n,t,e.child,r);else if(32&o){const a=Kh(e,t);let l;for(;l=a();)r.push(l)}else if(16&o){const a=L0(t,e);if(Array.isArray(a))r.push(...a);else{const l=Va(t[16]);Kc(l[1],l,a,r,!0)}}e=i?e.projectionNext:e.next}return r}class rl{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return Kc(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(Ar(t)){const e=t[8],r=e?e.indexOf(this):-1;r>-1&&(Xh(t,r),yc(e,r))}this._attachedToViewContainer=!1}x0(this._lView[1],this._lView)}onDestroy(t){Ey(this._lView[1],this._lView,null,t)}markForCheck(){Nf(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Ff(n,t,e){const r=t[10];r.begin&&r.begin();try{bo(n,t,n.template,e)}catch(i){throw Ly(t,i),i}finally{r.end&&r.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new se(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function L5(n,t){Ba(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new se(902,"");this._appRef=t}}class CE extends rl{constructor(t){super(t),this._view=t}detectChanges(){Ny(this._view)}checkNoChanges(){}get context(){return null}}class Uv extends Es{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=yn(t);return new ap(e,this.ngModule)}}function zv(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class ap extends jv{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function z6(n){return n.map(U6).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return zv(this.componentDef.inputs)}get outputs(){return zv(this.componentDef.outputs)}create(t,e,r,i){const s=(i=i||this.ngModule)?function EE(n,t){return{get:(e,r,i)=>{const s=n.get(e,op,i);return s!==op||r===op?s:t.get(e,r,i)}}}(t,i.injector):t,o=s.get(tl,I1),a=s.get(bE,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=r?function Dy(n,t,e){if(Lt(n))return n.selectRootElement(t,e===Tr.ShadowDom);let r="string"==typeof t?n.querySelector(t):t;return r.textContent="",r}(l,r,this.componentDef.encapsulation):Jh(o.createRenderer(null,this.componentDef),c,function DE(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function t_(n,t){return{components:[],scheduler:n||N6,clean:x9,playerHandler:t||null,flags:0}}(),f=Nc(0,null,null,1,0,null,null,null,null,null),m=qa(null,f,h,d,null,null,o,l,a,s);let y,C;oc(m);try{const E=function Xy(n,t,e,r,i,s){const o=e[1];e[20]=n;const l=_o(o,20,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(Fc(l,c,!0),null!==n&&(dc(i,n,c),null!==l.classes&&of(i,n,l.classes),null!==l.styles&&V0(i,n,l.styles)));const u=r.createRenderer(n,t),d=qa(e,wy(t),null,t.onPush?64:16,e[20],l,r,u,s||null,null);return o.firstCreatePass&&(mc(Aa(l,e),o,t.type),Ay(o,l),Iy(l,e.length,1)),Oc(e,d),e[20]=d}(u,this.componentDef,m,o,l);if(u)if(r)dc(l,u,["ng-version",wE.full]);else{const{attrs:D,classes:O}=function q6(n){const t=[],e=[];let r=1,i=2;for(;r<n.length;){let s=n[r];if("string"==typeof s)2===i?""!==s&&t.push(s,n[++r]):8===i&&e.push(s);else{if(!Pr(i))break;i=s}r++}return{attrs:t,classes:e}}(this.componentDef.selectors[0]);D&&dc(l,u,D),O&&O.length>0&&of(l,u,O.join(" "))}if(C=wh(f,20),void 0!==e){const D=C.projection=[];for(let O=0;O<this.ngContentSelectors.length;O++){const j=e[O];D.push(null!=j?Array.from(j):null)}}y=function e_(n,t,e,r,i){const s=e[1],o=function h9(n,t,e){const r=on();n.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),ky(n,r,t,vo(n,t,1,null),e));const i=Ia(t,n,r.directiveStart,r);Dn(i,t);const s=Qn(r,t);return s&&Dn(s,t),i}(s,e,t);if(r.components.push(o),n[8]=o,i&&i.forEach(l=>l(o,t)),t.contentQueries){const l=on();t.contentQueries(1,o,l.directiveStart)}const a=on();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(ji(a.index),Ty(e[1],a,0,a.directiveStart,a.directiveEnd,t),xy(t,o)),o}(E,this.componentDef,m,h,[K9]),Ga(f,m,null)}finally{ac()}return new ME(this.componentType,y,$o(C,m),m,C)}}class ME extends class fE{}{constructor(t,e,r,i,s){super(),this.location=r,this._rootLView=i,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new CE(i),this.componentType=t}get injector(){return new lo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class Vo{}const Bo=new Map;class Wv extends Vo{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Uv(this);const r=hr(t);this._bootstrapComponents=ti(r.bootstrap),this._r3Injector=Hy(t,e,[{provide:Vo,useValue:this},{provide:Es,useValue:this.componentFactoryResolver}],et(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=_t.THROW_IF_NOT_FOUND,r=Me.Default){return t===_t||t===Vo||t===Lf?this:this._r3Injector.get(t,e,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class lp extends class xE{}{constructor(t){super(),this.moduleType=t,null!==hr(t)&&function AE(n){const t=new Set;!function e(r){const i=hr(r,!0),s=i.id;null!==s&&(function qv(n,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${n} - ${et(t)} vs ${et(t.name)}`)}(s,Bo.get(s),r),Bo.set(s,r));const o=ti(i.imports);for(const a of o)t.has(a)||(t.add(a),e(a))}(n)}(t)}create(t){return new Wv(this.moduleType,t)}}function Zc(n,t,e,r){return Kv($(),kn(),n,t,e,r)}function cp(n,t,e,r,i){return Zv($(),kn(),n,t,e,r,i)}function il(n,t){const e=n[t];return e===Se?void 0:e}function Kv(n,t,e,r,i,s){const o=t+e;return En(n,o,i)?ri(n,o+1,s?r.call(s,i):r(i)):il(n,o+1)}function Zv(n,t,e,r,i,s,o){const a=t+e;return ws(n,a,i,s)?ri(n,a+2,o?r.call(o,i,s):r(i,s)):il(n,a+2)}function Qv(n,t,e,r,i,s,o,a){const l=t+e;return function Lc(n,t,e,r,i){const s=ws(n,t,e,r);return En(n,t+2,i)||s}(n,l,i,s,o)?ri(n,l+3,a?r.call(a,i,s,o):r(i,s,o)):il(n,l+3)}function $e(n,t){const e=qe();let r;const i=n+20;e.firstCreatePass?(r=function $E(n,t){if(t)for(let e=t.length-1;e>=0;e--){const r=t[e];if(n===r.name)return r}}(t,e.pipeRegistry),e.data[i]=r,r.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(i,r.onDestroy)):r=e.data[i];const s=r.factory||(r.factory=gs(r.type)),o=Li(k);try{const a=fc(!1),l=s();return fc(a),function oD(n,t,e,r){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=r}(e,$(),i,l),l}finally{Li(o)}}function Bn(n,t,e){const r=n+20,i=$(),s=io(i,r);return sl(i,r)?Kv(i,kn(),t,s.transform,e,s):s.transform(e)}function yr(n,t,e,r){const i=n+20,s=$(),o=io(s,i);return sl(s,i)?Zv(s,kn(),t,o.transform,e,r,o):o.transform(e,r)}function jn(n,t,e,r,i){const s=n+20,o=$(),a=io(o,s);return sl(o,s)?Qv(o,kn(),t,a.transform,e,r,i,a):a.transform(e,r,i)}function sl(n,t){return n[1].data[t].pure}function up(n){return t=>{setTimeout(n,void 0,t)}}const ze=class jE extends Qt{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,r){var i,s,o;let a=t,l=e||(()=>null),c=r;if(t&&"object"==typeof t){const d=t;a=null===(i=d.next)||void 0===i?void 0:i.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),c=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=up(l),a&&(a=up(a)),c&&(c=up(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof Ut&&t.add(u),u}};function HE(){return this._results[Do()]()}class dp{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Do(),r=dp.prototype;r[e]||(r[e]=HE)}get changes(){return this._changes||(this._changes=new ze)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const r=this;r.dirty=!1;const i=mr(t);(this._changesDetected=!function X4(n,t,e){if(n.length!==t.length)return!1;for(let r=0;r<n.length;r++){let i=n[r],s=t[r];if(e&&(i=e(i),s=e(s)),s!==i)return!1}return!0}(r._results,i,e))&&(r._results=i,r.length=i.length,r.last=i[this.length-1],r.first=i[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let ai=(()=>{class n{}return n.__NG_ELEMENT_ID__=qE,n})();const UE=ai,zE=class extends UE{constructor(t,e,r){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=r}createEmbeddedView(t){const e=this._declarationTContainer.tViews,r=qa(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(e)),Ga(e,r,t),new rl(r)}};function qE(){return Qc(on(),$())}function Qc(n,t){return 4&n.type?new zE(t,n,$o(n,t)):null}let Vr=(()=>{class n{}return n.__NG_ELEMENT_ID__=GE,n})();function GE(){return t2(on(),$())}const WE=Vr,Xv=class extends WE{constructor(t,e,r){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=r}get element(){return $o(this._hostTNode,this._hostLView)}get injector(){return new lo(this._hostTNode,this._hostLView)}get parentInjector(){const t=pc(this._hostTNode,this._hostLView);if(W1(t)){const e=ao(t,this._hostLView),r=oo(t);return new lo(e[1].data[r+8],e)}return new lo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=e2(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,r){const i=t.createEmbeddedView(e||{});return this.insert(i,r),i}createComponent(t,e,r,i,s){const o=t&&!function Pa(n){return"function"==typeof n}(t);let a;if(o)a=e;else{const d=e||{};a=d.index,r=d.injector,i=d.projectableNodes,s=d.ngModuleRef}const l=o?t:new ap(yn(t)),c=r||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(Vo,null);h&&(s=h)}const u=l.create(c,i,void 0,s);return this.insert(u.hostView,a),u}insert(t,e){const r=t._lView,i=r[1];if(function w4(n){return Ar(n[3])}(r)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=r[3],h=new Xv(d,d[6],d[3]);h.detach(h.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function V5(n,t,e,r){const i=10+r,s=e.length;r>0&&(e[i-1][4]=t),r<s-10?(t[4]=e[i],r0(e,10+r,t)):(e.push(t),t[4]=null),t[3]=e;const o=t[17];null!==o&&e!==o&&function B5(n,t){const e=n[9];t[16]!==t[3][3][16]&&(n[2]=!0),null===e?n[9]=[t]:e.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(n),t[2]|=128}(i,r,o,s);const a=nf(s,o),l=r[11],c=Ec(l,o[7]);return null!==c&&function R5(n,t,e,r,i,s){r[0]=i,r[6]=t,Ba(n,r,e,1,i,s)}(i,o[6],l,r,c,a),t.attachToViewContainerRef(),r0(hp(o),s,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=e2(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),r=Xh(this._lContainer,e);r&&(yc(hp(this._lContainer),e),x0(r[1],r))}detach(t){const e=this._adjustIndex(t,-1),r=Xh(this._lContainer,e);return r&&null!=yc(hp(this._lContainer),e)?new rl(r):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function e2(n){return n[8]}function hp(n){return n[8]||(n[8]=[])}function t2(n,t){let e;const r=t[n.index];if(Ar(r))e=r;else{let i;if(8&n.type)i=Yt(r);else{const s=t[11];i=s.createComment("");const o=Qn(n,t);ys(s,Ec(s,o),i,function z5(n,t){return Lt(n)?n.nextSibling(t):t.nextSibling}(s,o),!1)}t[n.index]=e=Py(r,t,i,n),Oc(t,e)}return new Xv(e,n,t)}class fp{constructor(t){this.queryList=t,this.matches=null}clone(){return new fp(this.queryList)}setDirty(){this.queryList.setDirty()}}class pp{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const r=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let s=0;s<r;s++){const o=e.getByIndex(s);i.push(this.queries[o.indexInDeclarationView].clone())}return new pp(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==o2(t,e).matches&&this.queries[e].setDirty()}}class n2{constructor(t,e,r=null){this.predicate=t,this.flags=e,this.read=r}}class mp{constructor(t=[]){this.queries=t}elementStart(t,e){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let r=0;r<this.length;r++){const i=null!==e?e.length:0,s=this.getByIndex(r).embeddedTView(t,i);s&&(s.indexInDeclarationView=r,null!==e?e.push(s):e=[s])}return null!==e?new mp(e):null}template(t,e){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class gp{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new gp(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==e;)r=r.parent;return e===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){const s=r[i];this.matchTNodeWithReadOption(t,e,QE(e,s)),this.matchTNodeWithReadOption(t,e,gc(e,t,s,!1,!1))}else r===ai?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,gc(e,t,r,!1,!1))}matchTNodeWithReadOption(t,e,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===Vn||i===Vr||i===ai&&4&e.type)this.addMatch(e.index,-2);else{const s=gc(e,t,i,!1,!1);null!==s&&this.addMatch(e.index,s)}else this.addMatch(e.index,r)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function QE(n,t){const e=n.localNames;if(null!==e)for(let r=0;r<e.length;r+=2)if(e[r]===t)return e[r+1];return null}function JE(n,t,e,r){return-1===e?function YE(n,t){return 11&n.type?$o(n,t):4&n.type?Qc(n,t):null}(t,n):-2===e?function XE(n,t,e){return e===Vn?$o(t,n):e===ai?Qc(t,n):e===Vr?t2(t,n):void 0}(n,t,r):Ia(n,n[1],e,t)}function r2(n,t,e,r){const i=t[19].queries[r];if(null===i.matches){const s=n.data,o=e.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:JE(t,s[c],o[l+1],e.metadata.read))}i.matches=a}return i.matches}function yp(n,t,e,r){const i=n.queries.getByIndex(e),s=i.matches;if(null!==s){const o=r2(n,t,i,e);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)r.push(o[a/2]);else{const c=s[a+1],u=t[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&yp(h[1],h,c,r)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const f=d[h];yp(f[1],f,c,r)}}}}}return r}function qi(n){const t=$(),e=qe(),r=$1();xh(r+1);const i=o2(e,r);if(n.dirty&&k1(t)===(2==(2&i.metadata.flags))){if(null===i.matches)n.reset([]);else{const s=i.crossesNgTemplate?yp(e,t,r,[]):r2(e,t,i,r);n.reset(s,yE),n.notifyOnChanges()}return!0}return!1}function Gi(n,t,e){const r=qe();r.firstCreatePass&&(function s2(n,t,e){null===n.queries&&(n.queries=new mp),n.queries.track(new gp(t,e))}(r,new n2(n,t,e),-1),2==(2&t)&&(r.staticViewQueries=!0)),function i2(n,t,e){const r=new dp(4==(4&e));Ey(n,t,r,r.destroy),null===t[19]&&(t[19]=new pp),t[19].queries.push(new fp(r))}(r,$(),t)}function Wi(){return function tS(n,t){return n[19].queries[t].queryList}($(),$1())}function o2(n,t){return n.queries.getByIndex(t)}function Ss(n,t){return Qc(n,t)}function Xc(...n){}const D2=new pe("Application Initializer");let Dp=(()=>{class n{constructor(e){this.appInits=e,this.resolve=Xc,this.reject=Xc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const e=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i<this.appInits.length;i++){const s=this.appInits[i]();if(Bc(s))e.push(s);else if(D_(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});e.push(o)}}Promise.all(e).then(()=>{r()}).catch(i=>{this.reject(i)}),0===e.length&&r(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(K(D2,8))},n.\u0275prov=ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const al=new pe("AppId",{providedIn:"root",factory:function E2(){return`${Ep()}${Ep()}${Ep()}`}});function Ep(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const S2=new pe("Platform Initializer"),Sp=new pe("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),vS=new pe("appBootstrapListener"),Ki=new pe("LocaleId",{providedIn:"root",factory:()=>bc(Ki,Me.Optional|Me.SkipSelf)||function bS(){return"undefined"!=typeof $localize&&$localize.locale||Uc}()}),ES=(()=>Promise.resolve(0))();function Mp(n){"undefined"==typeof Zone?ES.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class cn{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ze(!1),this.onMicrotaskEmpty=new ze(!1),this.onStable=new ze(!1),this.onError=new ze(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&e,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function SS(){let n=rt.requestAnimationFrame,t=rt.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function xS(n){const t=()=>{!function TS(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(rt,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,xp(n),n.isCheckStableRunning=!0,Tp(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),xp(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,r,i,s,o,a)=>{try{return M2(n),e.invokeTask(i,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&t(),T2(n)}},onInvoke:(e,r,i,s,o,a,l)=>{try{return M2(n),e.invoke(i,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),T2(n)}},onHasTask:(e,r,i,s)=>{e.hasTask(i,s),r===i&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,xp(n),Tp(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,r,i,s)=>(e.handleError(i,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!cn.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(cn.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,r){return this._inner.run(t,e,r)}runTask(t,e,r,i){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+i,t,MS,Xc,Xc);try{return s.runTask(o,e,r)}finally{s.cancelTask(o)}}runGuarded(t,e,r){return this._inner.runGuarded(t,e,r)}runOutsideAngular(t){return this._outer.run(t)}}const MS={};function Tp(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function xp(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function M2(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function T2(n){n._nesting--,Tp(n)}class AS{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ze,this.onMicrotaskEmpty=new ze,this.onStable=new ze,this.onError=new ze}run(t,e,r){return t.apply(e,r)}runGuarded(t,e,r){return t.apply(e,r)}runOutsideAngular(t){return t()}runTask(t,e,r,i){return t.apply(e,r)}}let Ap=(()=>{class n{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{cn.assertNotInAngularZone(),Mp(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Mp(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(e)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,r,i){let s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),e(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:i})}whenStable(e,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(e,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,r,i){return[]}}return n.\u0275fac=function(e){return new(e||n)(K(cn))},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})(),IS=(()=>{class n{constructor(){this._applications=new Map,Ip.addToWindow(this)}registerApplication(e,r){this._applications.set(e,r)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,r=!0){return Ip.findTestabilityInTree(this,e,r)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ce({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class kS{addToWindow(t){}findTestabilityInTree(t,e,r){return null}}let Ip=new kS,Ms=null;const x2=new pe("AllowMultipleToken"),A2=new pe("PlatformOnDestroy");function I2(n,t,e=[]){const r=`Platform: ${t}`,i=new pe(r);return(s=[])=>{let o=kp();if(!o||o.injector.get(x2,!1)){const a=[...e,...s,{provide:i,useValue:!0}];n?n(a):function FS(n){if(Ms&&!Ms.get(x2,!1))throw new se(400,"");Ms=n;const t=n.get(k2),e=n.get(S2,null);e&&e.forEach(r=>r())}(function LS(n=[],t){return _t.create({name:t,providers:[{provide:$f,useValue:"platform"},{provide:A2,useValue:()=>Ms=null},...n]})}(a,r))}return function RS(n){const t=kp();if(!t)throw new se(401,"");return t}()}}function kp(){var n;return null!==(n=null==Ms?void 0:Ms.get(k2))&&void 0!==n?n:null}let k2=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,r){const a=function $S(n,t){let e;return e="noop"===n?new AS:("zone.js"===n?void 0:n)||new cn({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),e}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),l=[{provide:cn,useValue:a}];return a.run(()=>{const c=_t.create({providers:l,parent:this.injector,name:e.moduleType.name}),u=e.create(c),d=u.injector.get(za,null);if(!d)throw new se(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{Pp(this._modules,u),h.unsubscribe()})}),function VS(n,t,e){try{const r=e();return Bc(r)?r.catch(i=>{throw t.runOutsideAngular(()=>n.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>n.handleError(r)),r}}(d,a,()=>{const h=u.injector.get(Dp);return h.runInitializers(),h.donePromise.then(()=>(function _7(n){Kn(n,"Expected localeId to be defined"),"string"==typeof n&&(gv=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Ki,Uc)||Uc),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,r=[]){const i=P2({},r);return function NS(n,t,e){const r=new lp(e);return Promise.resolve(r)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,i))}_moduleDoBootstrap(e){const r=e.injector.get(ll);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!e.instance.ngDoBootstrap)throw new se(403,"");e.instance.ngDoBootstrap(r)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new se(404,"");this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const e=this._injector.get(A2,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(K(_t))},n.\u0275prov=ce({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function P2(n,t){return Array.isArray(t)?t.reduce(P2,n):Object.assign(Object.assign({},n),t)}let ll=(()=>{class n{constructor(e,r,i,s){this._zone=e,this._injector=r,this._exceptionHandler=i,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new Zt(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new Zt(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{cn.assertNotInAngularZone(),Mp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{cn.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=f1(o,a.pipe(p1()))}bootstrap(e,r){if(!this._initStatus.done)throw new se(405,"");let i;i=e instanceof jv?e:this._injector.get(Es).resolveComponentFactory(e),this.componentTypes.push(i.componentType);const s=function OS(n){return n.isBoundToModule}(i)?void 0:this._injector.get(Vo),a=i.create(_t.NULL,[],r||i.selector,s),l=a.location.nativeElement,c=a.injector.get(Ap,null),u=c&&a.injector.get(IS);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Pp(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new se(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const r=e;this._views.push(r),r.attachToAppRef(this)}detachView(e){const r=e;Pp(this._views,r),r.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(vS,[]).concat(this._bootstrapListeners).forEach(i=>i(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(e){return new(e||n)(K(cn),K(_t),K(za),K(Dp))},n.\u0275prov=ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Pp(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let O2=!0,cl=(()=>{class n{}return n.__NG_ELEMENT_ID__=HS,n})();function HS(n){return function US(n,t,e){if(nc(n)&&!e){const r=Yn(n.index,t);return new rl(r,r)}return 47&n.type?new rl(t[16],t):null}(on(),$(),16==(16&n))}class V2{constructor(){}supports(t){return Ka(t)}create(t){return new ZS(t)}}const KS=(n,t)=>t;class ZS{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||KS}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,r=this._removalsHead,i=0,s=null;for(;e||r;){const o=!r||e&&e.currentIndex<j2(r,i,s)?e:r,a=j2(o,i,s),l=o.currentIndex;if(o===r)i--,r=r._nextRemoved;else if(e=e._next,null==o.previousIndex)i++;else{s||(s=[]);const c=a-i,u=l-i;if(c!=u){for(let h=0;h<c;h++){const f=h<s.length?s[h]:s[h]=0,m=f+h;u<=m&&m<c&&(s[h]=f+1)}s[o.previousIndex]=u-c}}a!==l&&t(o,a,l)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!Ka(t))throw new se(900,"");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let i,s,o,e=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)s=t[a],o=this._trackByFn(a,s),null!==e&&Object.is(e.trackById,o)?(r&&(e=this._verifyReinsertion(e,s,o,a)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,o,a),r=!0),e=e._next}else i=0,function iD(n,t){if(Array.isArray(n))for(let e=0;e<n.length;e++)t(n[e]);else{const e=n[Do()]();let r;for(;!(r=e.next()).done;)t(r.value)}}(t,a=>{o=this._trackByFn(i,a),null!==e&&Object.is(e.trackById,o)?(r&&(e=this._verifyReinsertion(e,a,o,i)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,i),r=!0),e=e._next,i++}),this.length=i;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,r,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):t=this._addAfter(new QS(e,r),s,i),t}_verifyReinsertion(t,e,r,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,e,r),this._addToMoves(t,r),t}_moveAfter(t,e,r){return this._unlink(t),this._insertAfter(t,e,r),this._addToMoves(t,r),t}_addAfter(t,e,r){return this._insertAfter(t,e,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,r){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new B2),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,r=t._next;return null===e?this._itHead=r:e._next=r,null===r?this._itTail=e:r._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new B2),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class QS{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class YS{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===e||e<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const e=t._prevDup,r=t._nextDup;return null===e?this._head=r:e._nextDup=r,null===r?this._tail=e:r._prevDup=e,null===this._head}}class B2{constructor(){this.map=new Map}put(t){const e=t.trackById;let r=this.map.get(e);r||(r=new YS,this.map.set(e,r)),r.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function j2(n,t,e){const r=n.previousIndex;if(null===r)return r;let i=0;return e&&r<e.length&&(i=e[r]),r+t+i}class H2{constructor(){}supports(t){return t instanceof Map||zf(t)}create(){return new JS}}class JS{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||zf(t)))throw new se(900,"")}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,i)=>{if(e&&e.key===i)this._maybeAddToChanges(e,r),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(i,r);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let r=e;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const r=t._prev;return e._next=t,e._prev=r,t._prev=e,r&&(r._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const s=i._prev,o=i._next;return s&&(s._next=o),o&&(o._prev=s),i._next=null,i._prev=null,i}const r=new XS(t);return this._records.set(t,r),r.currentValue=e,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(r=>e(t[r],r))}}class XS{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function U2(){return new nu([new V2])}let nu=(()=>{class n{constructor(e){this.factories=e}static create(e,r){if(null!=r){const i=r.factories.slice();e=e.concat(i)}return new n(e)}static extend(e){return{provide:n,useFactory:r=>n.create(e,r||U2()),deps:[[n,new Cc,new wc]]}}find(e){const r=this.factories.find(i=>i.supports(e));if(null!=r)return r;throw new se(901,"")}}return n.\u0275prov=ce({token:n,providedIn:"root",factory:U2}),n})();function z2(){return new ul([new H2])}let ul=(()=>{class n{constructor(e){this.factories=e}static create(e,r){if(r){const i=r.factories.slice();e=e.concat(i)}return new n(e)}static extend(e){return{provide:n,useFactory:r=>n.create(e,r||z2()),deps:[[n,new Cc,new wc]]}}find(e){const r=this.factories.find(s=>s.supports(e));if(r)return r;throw new se(901,"")}}return n.\u0275prov=ce({token:n,providedIn:"root",factory:z2}),n})();const nM=I2(null,"core",[]);let rM=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(K(ll))},n.\u0275mod=Ct({type:n}),n.\u0275inj=gt({}),n})(),ru=null;function xs(){return ru}const Jt=new pe("DocumentToken");function tb(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const r=e.indexOf("="),[i,s]=-1==r?[e,""]:[e.slice(0,r),e.slice(r+1)];if(i.trim()===t)return decodeURIComponent(s)}return null}let Gp=(()=>{class n{constructor(e,r,i,s){this._iterableDiffers=e,this._keyValueDiffers=r,this._ngEl=i,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Ka(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(r=>this._toggleClass(r.key,r.currentValue)),e.forEachChangedItem(r=>this._toggleClass(r.key,r.currentValue)),e.forEachRemovedItem(r=>{r.previousValue&&this._toggleClass(r.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(r=>{if("string"!=typeof r.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${et(r.item)}`);this._toggleClass(r.item,!0)}),e.forEachRemovedItem(r=>this._toggleClass(r.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(r=>this._toggleClass(r,!0)):Object.keys(e).forEach(r=>this._toggleClass(r,!!e[r])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(r=>this._toggleClass(r,!1)):Object.keys(e).forEach(r=>this._toggleClass(r,!1)))}_toggleClass(e,r){(e=e.trim())&&e.split(/\s+/g).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}}return n.\u0275fac=function(e){return new(e||n)(k(nu),k(ul),k(Vn),k(oi))},n.\u0275dir=we({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class WM{constructor(t,e,r,i){this.$implicit=t,this.ngForOf=e,this.index=r,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Zi=(()=>{class n{constructor(e,r,i){this._viewContainer=e,this._template=r,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const r=this._viewContainer;e.forEachOperation((i,s,o)=>{if(null==i.previousIndex)r.createEmbeddedView(this._template,new WM(i.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)r.remove(null===s?void 0:s);else if(null!==s){const a=r.get(s);r.move(a,o),nb(a,i)}});for(let i=0,s=r.length;i<s;i++){const a=r.get(i).context;a.index=i,a.count=s,a.ngForOf=this._ngForOf}e.forEachIdentityChange(i=>{nb(r.get(i.currentIndex),i)})}static ngTemplateContextGuard(e,r){return!0}}return n.\u0275fac=function(e){return new(e||n)(k(Vr),k(ai),k(nu))},n.\u0275dir=we({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function nb(n,t){n.context.$implicit=t.item}let Un=(()=>{class n{constructor(e,r){this._viewContainer=e,this._context=new KM,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){rb("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){rb("ngIfElse",e),this._elseTemplateRef=e,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(e,r){return!0}}return n.\u0275fac=function(e){return new(e||n)(k(Vr),k(ai))},n.\u0275dir=we({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class KM{constructor(){this.$implicit=null,this.ngIf=null}}function rb(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${et(t)}'.`)}let sb=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const r=this._viewContainerRef;this._viewRef&&r.remove(r.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?r.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(k(Vr))},n.\u0275dir=we({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[kr]}),n})();function jr(n,t){return new se(2100,"")}class XM{createSubscription(t,e){return t.subscribe({next:e,error:r=>{throw r}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class eT{createSubscription(t,e){return t.then(e,r=>{throw r})}dispose(t){}onDestroy(t){}}const tT=new eT,nT=new XM;let Zp=(()=>{class n{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,r=>this._updateLatestValue(e,r))}_selectStrategy(e){if(Bc(e))return tT;if(C_(e))return nT;throw jr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,r){e===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(k(cl,16))},n.\u0275pipe=yt({name:"async",type:n,pure:!1}),n})(),Jp=(()=>{class n{transform(e,r,i){if(null==e)return null;if(!this.supports(e))throw jr();return e.slice(r,i)}supports(e){return"string"==typeof e||Array.isArray(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=yt({name:"slice",type:n,pure:!1}),n})(),fu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ct({type:n}),n.\u0275inj=gt({}),n})();class cb{}class Xp extends class CT extends class oM{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function sM(n){ru||(ru=n)}(new Xp)}onAndCancel(t,e,r){return t.addEventListener(e,r,!1),()=>{t.removeEventListener(e,r,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function DT(){return fl=fl||document.querySelector("base"),fl?fl.getAttribute("href"):null}();return null==e?null:function ET(n){pu=pu||document.createElement("a"),pu.setAttribute("href",n);const t=pu.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){fl=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return tb(document.cookie,t)}}let pu,fl=null;const ub=new pe("TRANSITION_ID"),MT=[{provide:D2,useFactory:function ST(n,t,e){return()=>{e.get(Dp).donePromise.then(()=>{const r=xs(),i=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<i.length;s++)r.remove(i[s])})}},deps:[ub,Jt,_t],multi:!0}];class em{static init(){!function PS(n){Ip=n}(new em)}addToWindow(t){rt.getAngularTestability=(r,i=!0)=>{const s=t.findTestabilityInTree(r,i);if(null==s)throw new Error("Could not find testability for element.");return s},rt.getAllAngularTestabilities=()=>t.getAllTestabilities(),rt.getAllAngularRootElements=()=>t.getAllRootElements(),rt.frameworkStabilizers||(rt.frameworkStabilizers=[]),rt.frameworkStabilizers.push(r=>{const i=rt.getAllAngularTestabilities();let s=i.length,o=!1;const a=function(l){o=o||l,s--,0==s&&r(o)};i.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,r){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:r?xs().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let TT=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})();const mu=new pe("EventManagerPlugins");let gu=(()=>{class n{constructor(e,r){this._zone=r,this._eventNameToPlugin=new Map,e.forEach(i=>i.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,r,i){return this._findPluginFor(r).addEventListener(e,r,i)}addGlobalEventListener(e,r,i){return this._findPluginFor(r).addGlobalEventListener(e,r,i)}getZone(){return this._zone}_findPluginFor(e){const r=this._eventNameToPlugin.get(e);if(r)return r;const i=this._plugins;for(let s=0;s<i.length;s++){const o=i[s];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error(`No event manager plugin found for event ${e}`)}}return n.\u0275fac=function(e){return new(e||n)(K(mu),K(cn))},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})();class db{constructor(t){this._doc=t}addGlobalEventListener(t,e,r){const i=xs().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,e,r)}}let hb=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(e){const r=new Set;e.forEach(i=>{this._stylesSet.has(i)||(this._stylesSet.add(i),r.add(i))}),this.onStylesAdded(r)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})(),pl=(()=>{class n extends hb{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,r,i){e.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,i.push(r.appendChild(o))})}addHost(e){const r=[];this._addStylesToHost(this._stylesSet,e,r),this._hostNodes.set(e,r)}removeHost(e){const r=this._hostNodes.get(e);r&&r.forEach(fb),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((r,i)=>{this._addStylesToHost(e,i,r)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(fb))}}return n.\u0275fac=function(e){return new(e||n)(K(Jt))},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})();function fb(n){xs().remove(n)}const tm={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},nm=/%COMP%/g;function yu(n,t,e){for(let r=0;r<t.length;r++){let i=t[r];Array.isArray(i)?yu(n,i,e):(i=i.replace(nm,n),e.push(i))}return e}function gb(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let _u=(()=>{class n{constructor(e,r,i){this.eventManager=e,this.sharedStylesHost=r,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new rm(e)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;switch(r.encapsulation){case Tr.Emulated:{let i=this.rendererByCompId.get(r.id);return i||(i=new NT(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,i)),i.applyToHost(e),i}case 1:case Tr.ShadowDom:return new OT(this.eventManager,this.sharedStylesHost,e,r);default:if(!this.rendererByCompId.has(r.id)){const i=yu(r.id,r.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(K(gu),K(pl),K(al))},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})();class rm{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(tm[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,r){t&&t.insertBefore(e,r)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return e||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,r,i){if(i){e=i+":"+e;const s=tm[i];s?t.setAttributeNS(s,e,r):t.setAttribute(e,r)}else t.setAttribute(e,r)}removeAttribute(t,e,r){if(r){const i=tm[r];i?t.removeAttributeNS(i,e):t.removeAttribute(`${r}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,r,i){i&(Xn.DashCase|Xn.Important)?t.style.setProperty(e,r,i&Xn.Important?"important":""):t.style[e]=r}removeStyle(t,e,r){r&Xn.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,r){t[e]=r}setValue(t,e){t.nodeValue=e}listen(t,e,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,gb(r)):this.eventManager.addEventListener(t,e,gb(r))}}class NT extends rm{constructor(t,e,r,i){super(t),this.component=r;const s=yu(i+"-"+r.id,r.styles,[]);e.addStyles(s),this.contentAttr=function IT(n){return"_ngcontent-%COMP%".replace(nm,n)}(i+"-"+r.id),this.hostAttr=function kT(n){return"_nghost-%COMP%".replace(nm,n)}(i+"-"+r.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const r=super.createElement(t,e);return super.setAttribute(r,this.contentAttr,""),r}}class OT extends rm{constructor(t,e,r,i){super(t),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=yu(i.id,i.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,r){return super.insertBefore(this.nodeOrShadowRoot(t),e,r)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let FT=(()=>{class n extends db{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,i){return e.addEventListener(r,i,!1),()=>this.removeEventListener(e,r,i)}removeEventListener(e,r,i){return e.removeEventListener(r,i)}}return n.\u0275fac=function(e){return new(e||n)(K(Jt))},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})();const _b=["alt","control","meta","shift"],LT={"\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"},vb={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},$T={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let VT=(()=>{class n extends db{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,r,i){const s=n.parseEventName(r),o=n.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>xs().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const r=e.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const s=n._normalizeKey(r.pop());let o="";if(_b.forEach(l=>{const c=r.indexOf(l);c>-1&&(r.splice(c,1),o+=l+".")}),o+=s,0!=r.length||0===s.length)return null;const a={};return a.domEventName=i,a.fullKey=o,a}static getEventFullKey(e){let r="",i=function BT(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&vb.hasOwnProperty(t)&&(t=vb[t]))}return LT[t]||t}(e);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),_b.forEach(s=>{s!=i&&$T[s](e)&&(r+=s+".")}),r+=i,r}static eventCallback(e,r,i){return s=>{n.getEventFullKey(s)===e&&i.runGuarded(()=>r(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(K(Jt))},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})();const zT=I2(nM,"browser",[{provide:Sp,useValue:"browser"},{provide:S2,useValue:function jT(){Xp.makeCurrent(),em.init()},multi:!0},{provide:Jt,useFactory:function UT(){return function y4(n){vh=n}(document),document},deps:[]}]),qT=[{provide:$f,useValue:"root"},{provide:za,useFactory:function HT(){return new za},deps:[]},{provide:mu,useClass:FT,multi:!0,deps:[Jt,cn,Sp]},{provide:mu,useClass:VT,multi:!0,deps:[Jt]},{provide:_u,useClass:_u,deps:[gu,pl,al]},{provide:tl,useExisting:_u},{provide:hb,useExisting:pl},{provide:pl,useClass:pl,deps:[Jt]},{provide:Ap,useClass:Ap,deps:[cn]},{provide:gu,useClass:gu,deps:[mu,cn]},{provide:cb,useClass:TT,deps:[]}];let bb=(()=>{class n{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:n,providers:[{provide:al,useValue:e.appId},{provide:ub,useExisting:al},MT]}}}return n.\u0275fac=function(e){return new(e||n)(K(n,12))},n.\u0275mod=Ct({type:n}),n.\u0275inj=gt({providers:qT,imports:[fu,rM]}),n})();"undefined"!=typeof window&&window;let Db=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ce({token:n,factory:function(e){let r=null;return r=e?new(e||n):K(Eb),r},providedIn:"root"}),n})(),Eb=(()=>{class n extends Db{constructor(e){super(),this._doc=e}sanitize(e,r){if(null==r)return null;switch(e){case at.NONE:return r;case at.HTML:return Xr(r,"HTML")?er(r):Y0(this._doc,String(r)).toString();case at.STYLE:return Xr(r,"Style")?er(r):r;case at.SCRIPT:if(Xr(r,"Script"))return er(r);throw new Error("unsafe value used in a script context");case at.URL:return U0(r),Xr(r,"URL")?er(r):ja(String(r));case at.RESOURCE_URL:if(Xr(r,"ResourceURL"))return er(r);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function n6(n){return new Y5(n)}(e)}bypassSecurityTrustStyle(e){return function r6(n){return new J5(n)}(e)}bypassSecurityTrustScript(e){return function i6(n){return new X5(n)}(e)}bypassSecurityTrustUrl(e){return function s6(n){return new e6(n)}(e)}bypassSecurityTrustResourceUrl(e){return function o6(n){return new t6(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(K(Jt))},n.\u0275prov=ce({token:n,factory:function(e){let r=null;return r=e?new e:function tx(n){return new Eb(n.get(Jt))}(K(_t)),r},providedIn:"root"}),n})();const sm={now:()=>(sm.delegate||Date).now(),delegate:void 0};class Sb extends Qt{constructor(t=1/0,e=1/0,r=sm){super(),this._bufferSize=t,this._windowTime=e,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,e)}next(t){const{isStopped:e,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:s,_windowTime:o}=this;e||(r.push(t),!i&&r.push(s.now()+o)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:i}=this,s=i.slice();for(let o=0;o<s.length&&!t.closed;o+=r?1:2)t.next(s[o]);return this._checkFinalizedStatuses(t),e}_trimBuffer(){const{_bufferSize:t,_timestampProvider:e,_buffer:r,_infiniteTimeWindow:i}=this,s=(i?1:2)*t;if(t<1/0&&s<r.length&&r.splice(0,r.length-s),!i){const o=e.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 As(n,t){return An((e,r)=>{let i=null,s=0,o=!1;const a=()=>o&&!i&&r.complete();e.subscribe(mn(r,l=>{null==i||i.unsubscribe();let c=0;const u=s++;dr(n(l,u)).subscribe(i=mn(r,d=>r.next(t?t(l,d,u,c++):d),()=>{i=null,a()}))},()=>{o=!0,a()}))})}const vu={schedule(n,t){const e=setTimeout(n,t);return()=>clearTimeout(e)},scheduleBeforeRender(n){if("undefined"==typeof window)return vu.schedule(n,0);if(void 0===window.requestAnimationFrame)return vu.schedule(n,16);const t=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(t)}};let om;function ux(n,t,e){let r=e;return function rx(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&t.some((i,s)=>!("*"===i||!function sx(n,t){if(!om){const e=Element.prototype;om=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&om.call(n,t)}(n,i)||(r=s,0))),r}class hx{constructor(t,e){this.componentFactory=e.get(Es).resolveComponentFactory(t)}create(t){return new fx(this.componentFactory,t)}}class fx{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new Sb(1),this.events=this.eventEmitters.pipe(As(r=>f1(...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(cn),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=vu.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{null!==this.componentRef?function ox(n,t){return n===t||n!=n&&t!=t}(e,this.getInputValue(t))&&(void 0!==e||!this.unchangedInputs.has(t))||(this.recordInputChange(t,e),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=_t.create({providers:[],parent:this.injector}),r=function cx(n,t){const e=n.childNodes,r=t.map(()=>[]);let i=-1;t.some((s,o)=>"*"===s&&(i=o,!0));for(let s=0,o=e.length;s<o;++s){const a=e[s],l=ux(a,t,i);-1!==l&&r[l].push(a)}return r}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,r,t),this.viewChangeDetectorRef=this.componentRef.injector.get(cl),this.implementsOnChanges=function ix(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(ll).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:r,templateName:i})=>t.instance[r].pipe(Ft(o=>({name:i,value:o}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=vu.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const r=this.inputChanges[t];if(r)return void(r.currentValue=e);const i=this.unchangedInputs.has(t),s=i?void 0:this.getInputValue(t);this.inputChanges[t]=new M1(s,e,i)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class px extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function Hr(...n){return ds(n,wa(n))}function Mb(n,t){return xe(t)?Zl(n,t,1):Zl(n,1)}function bu(n,t){return An((e,r)=>{let i=0;e.subscribe(mn(r,s=>n.call(t,s,i++)&&r.next(s)))})}class Tb{}class xb{}class li{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const r=e.indexOf(":");if(r>0){const i=e.slice(0,r),s=i.toLowerCase(),o=e.slice(r+1).trim();this.maybeSetNormalizedName(i,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let r=t[e];const i=e.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(i,r),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof li?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new li;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof li?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...r),this.headers.set(e,i);break;case"d":const s=t.value;if(s){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class gx{encodeKey(t){return Ab(t)}encodeValue(t){return Ab(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const _x=/%(\d[a-f0-9])/gi,vx={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Ab(n){return encodeURIComponent(n).replace(_x,(t,e)=>{var r;return null!==(r=vx[e])&&void 0!==r?r:t})}function Ib(n){return`${n}`}class Ei{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new gx,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function yx(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(i=>{const s=i.indexOf("="),[o,a]=-1==s?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,s)),t.decodeValue(i.slice(s+1))],l=e.get(o)||[];l.push(a),e.set(o,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const r=t.fromObject[e];this.map.set(e,Array.isArray(r)?r:[r])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(r=>{const i=t[r];Array.isArray(i)?i.forEach(s=>{e.push({param:r,value:s,op:"a"})}):e.push({param:r,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Ei({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Ib(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const i=r.indexOf(Ib(t.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class kb{constructor(t){this.defaultValue=t}}class bx{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function Pb(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function Nb(n){return"undefined"!=typeof Blob&&n instanceof Blob}function Ob(n){return"undefined"!=typeof FormData&&n instanceof FormData}class ml{constructor(t,e,r,i){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function wx(n){switch(n){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.headers||(this.headers=new li),this.context||(this.context=new bx),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+o}}else this.params=new Ei,this.urlWithParams=e}serializeBody(){return null===this.body?null:Pb(this.body)||Nb(this.body)||Ob(this.body)||function Cx(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Ei?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||Ob(this.body)?null:Nb(this.body)?this.body.type||null:Pb(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Ei?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){var e;const r=t.method||this.method,i=t.url||this.url,s=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,l=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let c=t.headers||this.headers,u=t.params||this.params;const d=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce((h,f)=>h.set(f,t.setHeaders[f]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),u)),new ml(r,i,o,{params:u,headers:c,context:d,reportProgress:l,responseType:s,withCredentials:a})}}var tn=(()=>((tn=tn||{})[tn.Sent=0]="Sent",tn[tn.UploadProgress=1]="UploadProgress",tn[tn.ResponseHeader=2]="ResponseHeader",tn[tn.DownloadProgress=3]="DownloadProgress",tn[tn.Response=4]="Response",tn[tn.User=5]="User",tn))();class am{constructor(t,e=200,r="OK"){this.headers=t.headers||new li,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class lm extends am{constructor(t={}){super(t),this.type=tn.ResponseHeader}clone(t={}){return new lm({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class wu extends am{constructor(t={}){super(t),this.type=tn.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new wu({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Fb extends am{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function cm(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let um=(()=>{class n{constructor(e){this.handler=e}request(e,r,i={}){let s;if(e instanceof ml)s=e;else{let l,c;l=i.headers instanceof li?i.headers:new li(i.headers),i.params&&(c=i.params instanceof Ei?i.params:new Ei({fromObject:i.params})),s=new ml(e,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})}const o=Hr(s).pipe(Mb(l=>this.handler.handle(l)));if(e instanceof ml||"events"===i.observe)return o;const a=o.pipe(bu(l=>l instanceof wu));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(Ft(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(Ft(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(Ft(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(Ft(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:(new Ei).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,i={}){return this.request("PATCH",e,cm(i,r))}post(e,r,i={}){return this.request("POST",e,cm(i,r))}put(e,r,i={}){return this.request("PUT",e,cm(i,r))}}return n.\u0275fac=function(e){return new(e||n)(K(Tb))},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})();class Rb{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Cu=new pe("HTTP_INTERCEPTORS");let Dx=(()=>{class n{intercept(e,r){return r.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})();const Ex=/^\)\]\}',?\n/;let Lb=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Zt(r=>{const i=this.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((f,m)=>i.setRequestHeader(f,m.join(","))),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&i.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();i.responseType="json"!==f?f:"text"}const s=e.serializeBody();let o=null;const a=()=>{if(null!==o)return o;const f=i.statusText||"OK",m=new li(i.getAllResponseHeaders()),y=function Sx(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(i)||e.url;return o=new lm({headers:m,status:i.status,statusText:f,url:y}),o},l=()=>{let{headers:f,status:m,statusText:y,url:C}=a(),E=null;204!==m&&(E=void 0===i.response?i.responseText:i.response),0===m&&(m=E?200:0);let D=m>=200&&m<300;if("json"===e.responseType&&"string"==typeof E){const O=E;E=E.replace(Ex,"");try{E=""!==E?JSON.parse(E):null}catch(j){E=O,D&&(D=!1,E={error:j,text:E})}}D?(r.next(new wu({body:E,headers:f,status:m,statusText:y,url:C||void 0})),r.complete()):r.error(new Fb({error:E,headers:f,status:m,statusText:y,url:C||void 0}))},c=f=>{const{url:m}=a(),y=new Fb({error:f,status:i.status||0,statusText:i.statusText||"Unknown Error",url:m||void 0});r.error(y)};let u=!1;const d=f=>{u||(r.next(a()),u=!0);let m={type:tn.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(m.total=f.total),"text"===e.responseType&&!!i.responseText&&(m.partialText=i.responseText),r.next(m)},h=f=>{let m={type:tn.UploadProgress,loaded:f.loaded};f.lengthComputable&&(m.total=f.total),r.next(m)};return i.addEventListener("load",l),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),e.reportProgress&&(i.addEventListener("progress",d),null!==s&&i.upload&&i.upload.addEventListener("progress",h)),i.send(s),r.next({type:tn.Sent}),()=>{i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",l),i.removeEventListener("timeout",c),e.reportProgress&&(i.removeEventListener("progress",d),null!==s&&i.upload&&i.upload.removeEventListener("progress",h)),i.readyState!==i.DONE&&i.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(K(cb))},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})();const dm=new pe("XSRF_COOKIE_NAME"),hm=new pe("XSRF_HEADER_NAME");class $b{}let Mx=(()=>{class n{constructor(e,r,i){this.doc=e,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=tb(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(K(Jt),K(Sp),K(dm))},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})(),fm=(()=>{class n{constructor(e,r){this.tokenService=e,this.headerName=r}intercept(e,r){const i=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||i.startsWith("http://")||i.startsWith("https://"))return r.handle(e);const s=this.tokenService.getToken();return null!==s&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,s)})),r.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(K($b),K(hm))},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})(),Tx=(()=>{class n{constructor(e,r){this.backend=e,this.injector=r,this.chain=null}handle(e){if(null===this.chain){const r=this.injector.get(Cu,[]);this.chain=r.reduceRight((i,s)=>new Rb(i,s),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(K(xb),K(_t))},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})(),xx=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:fm,useClass:Dx}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:dm,useValue:e.cookieName}:[],e.headerName?{provide:hm,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ct({type:n}),n.\u0275inj=gt({providers:[fm,{provide:Cu,useExisting:fm,multi:!0},{provide:$b,useClass:Mx},{provide:dm,useValue:"XSRF-TOKEN"},{provide:hm,useValue:"X-XSRF-TOKEN"}]}),n})(),Vb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ct({type:n}),n.\u0275inj=gt({providers:[um,{provide:Tb,useClass:Tx},Lb,{provide:xb,useExisting:Lb}],imports:[[xx.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),n})();class Ax extends Ut{constructor(t,e){super()}schedule(t,e=0){return this}}const Du={setInterval(n,t,...e){const{delegate:r}=Du;return(null==r?void 0:r.setInterval)?r.setInterval(n,t,...e):setInterval(n,t,...e)},clearInterval(n){const{delegate:t}=Du;return((null==t?void 0:t.clearInterval)||clearInterval)(n)},delegate:void 0};class gl{constructor(t,e=gl.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,r){return new this.schedulerActionCtor(this,t).schedule(r,e)}}gl.now=sm.now;const Bb=new class kx extends gl{constructor(t,e=gl.now){super(t,e),this.actions=[],this._active=!1}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let r;this._active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}}}(class Ix extends Ax{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){var r;if(this.closed)return this;this.state=t;const i=this.id,s=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(s,i,e)),this.pending=!0,this.delay=e,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(s,this.id,e),this}requestAsyncId(t,e,r=0){return Du.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,e,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return e;null!=e&&Du.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i,r=!1;try{this.work(t)}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:t,scheduler:e}=this,{actions:r}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Je(r,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}),Px=Bb;function yl(n,t=Bb){return An((e,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+n,u=t.now();if(u<c)return i=this.schedule(void 0,c-u),void r.add(i);a()}e.subscribe(mn(r,c=>{s=c,o=t.now(),i||(i=t.schedule(l,n),r.add(i))},()=>{a(),r.complete()},void 0,()=>{s=i=null}))})}function jb(n){return An((t,e)=>{dr(n).subscribe(mn(e,()=>e.complete(),_a)),!e.closed&&t.subscribe(e)})}class ci extends Qt{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:r}=this;if(t)throw e;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function Hb(n=0,t,e=Px){let r=-1;return null!=t&&(l1(t)?e=t:r=t),new Zt(i=>{let s=function Nx(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;s<0&&(s=0);let o=0;return e.schedule(function(){i.closed||(i.next(o++),0<=r?this.schedule(void 0,r):i.complete())},s)})}function Ho(n){return An((t,e)=>{let s,r=null,i=!1;r=t.subscribe(mn(e,void 0,void 0,o=>{s=dr(n(o,Ho(n)(t))),r?(r.unsubscribe(),r=null,s.subscribe(e)):i=!0})),i&&(r.unsubscribe(),r=null,s.subscribe(e))})}function Ub(...n){return function Fx(){return o1(1)}()(ds(n,wa(n)))}function pm(...n){const t=wa(n);return An((e,r)=>{(t?Ub(n,e,t):Ub(n,e)).subscribe(r)})}function zb(n,t,e){const r=xe(n)||t||e?{next:n,error:t,complete:e}:n;return r?An((i,s)=>{var o;null===(o=r.subscribe)||void 0===o||o.call(r);let a=!0;i.subscribe(mn(s,l=>{var c;null===(c=r.next)||void 0===c||c.call(r,l),s.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),s.complete()},l=>{var c;a=!1,null===(c=r.error)||void 0===c||c.call(r,l),s.error(l)},()=>{var l,c;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(c=r.finalize)||void 0===c||c.call(r)}))}):Js}const{isArray:Lx}=Array,{getPrototypeOf:$x,prototype:Vx,keys:Bx}=Object;function qb(n){if(1===n.length){const t=n[0];if(Lx(t))return{args:t,keys:null};if(function jx(n){return n&&"object"==typeof n&&$x(n)===Vx}(t)){const e=Bx(t);return{args:e.map(r=>t[r]),keys:e}}}return{args:n,keys:null}}const{isArray:Hx}=Array;function Gb(n){return Ft(t=>function Ux(n,t){return Hx(t)?n(...t):n(t)}(n,t))}function Wb(n,t){return n.reduce((e,r,i)=>(e[r]=t[i],e),{})}function mm(...n){const t=wa(n),e=c1(n),{args:r,keys:i}=qb(n);if(0===r.length)return ds([],t);const s=new Zt(function zx(n,t,e=Js){return r=>{Kb(t,()=>{const{length:i}=n,s=new Array(i);let o=i,a=i;for(let l=0;l<i;l++)Kb(t,()=>{const c=ds(n[l],t);let u=!1;c.subscribe(mn(r,d=>{s[l]=d,u||(u=!0,a--),a||r.next(e(s.slice()))},()=>{--o||r.complete()}))},r)},r)}}(r,t,i?o=>Wb(i,o):Js));return e?s.pipe(Gb(e)):s}function Kb(n,t,e){n?mi(e,n,t):t()}function Zb(){return An((n,t)=>{let e,r=!1;n.subscribe(mn(t,i=>{const s=e;e=i,r&&t.next([s,i]),r=!0}))})}const Qb={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Eu;const Wx=new Uint8Array(16);function Kx(){if(!Eu&&(Eu="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Eu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Eu(Wx)}const _n=[];for(let n=0;n<256;++n)_n.push((n+256).toString(16).slice(1));const Jb=function Zx(n,t,e){if(Qb.randomUUID&&!t&&!n)return Qb.randomUUID();const r=(n=n||{}).random||(n.rng||Kx)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){e=e||0;for(let i=0;i<16;++i)t[e+i]=r[i];return t}return function Yb(n,t=0){return _n[n[t+0]]+_n[n[t+1]]+_n[n[t+2]]+_n[n[t+3]]+"-"+_n[n[t+4]]+_n[n[t+5]]+"-"+_n[n[t+6]]+_n[n[t+7]]+"-"+_n[n[t+8]]+_n[n[t+9]]+"-"+_n[n[t+10]]+_n[n[t+11]]+_n[n[t+12]]+_n[n[t+13]]+_n[n[t+14]]+_n[n[t+15]]}(r)};function Si(n){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(n)}function Yx(n,t){return n&t}function Su(n,t){return n|t}function Xb(n,t){return n^t}function ew(n,t){return n&~t}function Jx(n){if(0==n)return-1;var t=0;return 0==(65535&n)&&(n>>=16,t+=16),0==(255&n)&&(n>>=8,t+=8),0==(15&n)&&(n>>=4,t+=4),0==(3&n)&&(n>>=2,t+=2),0==(1&n)&&++t,t}function Xx(n){for(var t=0;0!=n;)n&=n-1,++t;return t}var Uo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Mu(n){var t,e,r="";for(t=0;t+3<=n.length;t+=3)e=parseInt(n.substring(t,t+3),16),r+=Uo.charAt(e>>6)+Uo.charAt(63&e);for(t+1==n.length?(e=parseInt(n.substring(t,t+1),16),r+=Uo.charAt(e<<2)):t+2==n.length&&(e=parseInt(n.substring(t,t+2),16),r+=Uo.charAt(e>>2)+Uo.charAt((3&e)<<4));(3&r.length)>0;)r+="=";return r}function gm(n){var e,t="",r=0,i=0;for(e=0;e<n.length&&"="!=n.charAt(e);++e){var s=Uo.indexOf(n.charAt(e));s<0||(0==r?(t+=Si(s>>2),i=3&s,r=1):1==r?(t+=Si(i<<2|s>>4),i=15&s,r=2):2==r?(t+=Si(i),t+=Si(s>>2),i=3&s,r=3):(t+=Si(i<<2|s>>4),t+=Si(15&s),r=0))}return 1==r&&(t+=Si(i<<2)),t}var zo,Is,ym={decode:function(n){var t;if(void 0===Is){var r="= \f\n\r\t\xa0\u2028\u2029";for(Is=Object.create(null),t=0;t<64;++t)Is["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(Is["-"]=62,Is._=63,t=0;t<r.length;++t)Is[r.charAt(t)]=-1}var i=[],s=0,o=0;for(t=0;t<n.length;++t){var a=n.charAt(t);if("="==a)break;if(-1!=(a=Is[a])){if(void 0===a)throw new Error("Illegal character at offset "+t);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(n){var t=ym.re.exec(n);if(t)if(t[1])n=t[1];else{if(!t[2])throw new Error("RegExp out of sync");n=t[2]}return ym.decode(n)}},qo=1e13,_l=function(){function n(t){this.buf=[+t||0]}return n.prototype.mulAdd=function(t,e){var s,o,r=this.buf,i=r.length;for(s=0;s<i;++s)(o=r[s]*t+e)<qo?e=0:o-=(e=0|o/qo)*qo,r[s]=o;e>0&&(r[s]=e)},n.prototype.sub=function(t){var i,s,e=this.buf,r=e.length;for(i=0;i<r;++i)(s=e[i]-t)<0?(s+=qo,t=1):t=0,e[i]=s;for(;0===e[e.length-1];)e.pop()},n.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,r=e[e.length-1].toString(),i=e.length-2;i>=0;--i)r+=(qo+e[i]).toString().substring(1);return r},n.prototype.valueOf=function(){for(var t=this.buf,e=0,r=t.length-1;r>=0;--r)e=e*qo+t[r];return e},n.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},n}(),tA=/^(\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)?)?$/,nA=/^(\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 Go(n,t){return n.length>t&&(n=n.substring(0,t)+"\u2026"),n}var Yi,_m=function(){function n(t,e){this.hexDigits="0123456789ABCDEF",t instanceof n?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=e)}return n.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},n.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},n.prototype.hexDump=function(t,e,r){for(var i="",s=t;s<e;++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},n.prototype.isASCII=function(t,e){for(var r=t;r<e;++r){var i=this.get(r);if(i<32||i>176)return!1}return!0},n.prototype.parseStringISO=function(t,e){for(var r="",i=t;i<e;++i)r+=String.fromCharCode(this.get(i));return r},n.prototype.parseStringUTF=function(t,e){for(var r="",i=t;i<e;){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},n.prototype.parseStringBMP=function(t,e){for(var i,s,r="",o=t;o<e;)i=this.get(o++),s=this.get(o++),r+=String.fromCharCode(i<<8|s);return r},n.prototype.parseTime=function(t,e,r){var i=this.parseStringISO(t,e),s=(r?tA:nA).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},n.prototype.parseInteger=function(t,e){for(var o,r=this.get(t),i=r>127,s=i?255:0,a="";r==s&&++t<e;)r=this.get(t);if(0==(o=e-t))return i?-1:0;if(o>4){for(a=r,o<<=3;0==(128&(+a^s));)a=+a<<1,--o;a="("+o+" bit)\n"}i&&(r-=256);for(var l=new _l(r),c=t+1;c<e;++c)l.mulAdd(256,this.get(c));return a+l.toString()},n.prototype.parseBitString=function(t,e,r){for(var i=this.get(t),o="("+((e-t-1<<3)-i)+" bit)\n",a="",l=t+1;l<e;++l){for(var c=this.get(l),u=l==e-1?i:0,d=7;d>=u;--d)a+=c>>d&1?"1":"0";if(a.length>r)return o+Go(a,r)}return o+a},n.prototype.parseOctetString=function(t,e,r){if(this.isASCII(t,e))return Go(this.parseStringISO(t,e),r);var i=e-t,s="("+i+" byte)\n";i>(r/=2)&&(e=t+r);for(var o=t;o<e;++o)s+=this.hexByte(this.get(o));return i>r&&(s+="\u2026"),s},n.prototype.parseOID=function(t,e,r){for(var i="",s=new _l,o=0,a=t;a<e;++a){var l=this.get(a);if(s.mulAdd(128,127&l),o+=7,!(128&l)){if(""===i)if((s=s.simplify())instanceof _l)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 Go(i,r);s=new _l,o=0}}return o>0&&(i+=".incomplete"),i},n}(),rA=function(){function n(t,e,r,i,s){if(!(i instanceof rw))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=r,this.tag=i,this.sub=s}return n.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()}},n.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),r=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+r,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);case 6:return this.stream.parseOID(e,e+r,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return Go(this.stream.parseStringUTF(e,e+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return Go(this.stream.parseStringISO(e,e+r),t);case 30:return Go(this.stream.parseStringBMP(e,e+r),t);case 23:case 24:return this.stream.parseTime(e,e+r,23==this.tag.tagNumber)}return null},n.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},n.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":this.tag.isUniversal()&&(3==this.tag.tagNumber||4==this.tag.tagNumber)&&null!==this.sub&&(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var r=0,i=this.sub.length;r<i;++r)e+=this.sub[r].toPrettyString(t)}return e},n.prototype.posStart=function(){return this.stream.pos},n.prototype.posContent=function(){return this.stream.pos+this.header},n.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},n.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},n.decodeLength=function(t){var e=t.get(),r=127&e;if(r==e)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===r)return null;e=0;for(var i=0;i<r;++i)e=256*e+t.get();return e},n.prototype.getHexStringValue=function(){return this.toHexString().substr(2*this.header,2*this.length)},n.decode=function(t){var e;e=t instanceof _m?t:new _m(t,0);var r=new _m(e),i=new rw(e),s=n.decodeLength(e),o=e.pos,a=o-r.pos,l=null,c=function(){var d=[];if(null!==s){for(var h=o+s;e.pos<h;)d[d.length]=n.decode(e);if(e.pos!=h)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var f=n.decode(e);if(f.tag.isEOC())break;d[d.length]=f}s=o-e.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}return d};if(i.tagConstructed)l=c();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=e.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(d){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);e.pos=o+Math.abs(s)}return new n(r,a,s,i,l)},n}(),rw=function(){function n(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=0!=(32&e),this.tagNumber=31&e,31==this.tagNumber){var r=new _l;do{e=t.get(),r.mulAdd(128,127&e)}while(128&e);this.tagNumber=r.simplify()}}return n.prototype.isUniversal=function(){return 0===this.tagClass},n.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},n}(),Rn=[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],sA=(1<<26)/Rn[Rn.length-1],Pe=function(){function n(t,e,r){null!=t&&("number"==typeof t?this.fromNumber(t,e,r):this.fromString(t,null==e&&"string"!=typeof t?256:e))}return n.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var i,r=(1<<e)-1,s=!1,o="",a=this.t,l=this.DB-a*this.DB%e;if(a-- >0)for(l<this.DB&&(i=this[a]>>l)>0&&(s=!0,o=Si(i));a>=0;)l<e?(i=(this[a]&(1<<l)-1)<<e-l,i|=this[--a]>>(l+=this.DB-e)):(i=this[a]>>(l-=e)&r,l<=0&&(l+=this.DB,--a)),i>0&&(s=!0),s&&(o+=Si(i));return s?o:"0"},n.prototype.negate=function(){var t=je();return n.ZERO.subTo(this,t),t},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(0!=(e=r-t.t))return this.s<0?-e:e;for(;--r>=0;)if(0!=(e=this[r]-t[r]))return e;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+xu(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(t){var e=je();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(n.ZERO)>0&&t.subTo(e,e),e},n.prototype.modPowInt=function(t,e){var r;return r=t<256||e.isEven()?new sw(e):new ow(e),this.exp(t,r)},n.prototype.clone=function(){var t=je();return this.copyTo(t),t},n.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]},n.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},n.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var i,r=this.DB-t*this.DB%8,s=0;if(t-- >0)for(r<this.DB&&(i=this[t]>>r)!=(this.s&this.DM)>>r&&(e[s++]=i|this.s<<this.DB-r);t>=0;)r<8?(i=(this[t]&(1<<r)-1)<<8-r,i|=this[--t]>>(r+=this.DB-8)):(i=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&i)&&(i|=-256),0==s&&(128&this.s)!=(128&i)&&++s,(s>0||i!=this.s)&&(e[s++]=i);return e},n.prototype.equals=function(t){return 0==this.compareTo(t)},n.prototype.min=function(t){return this.compareTo(t)<0?this:t},n.prototype.max=function(t){return this.compareTo(t)>0?this:t},n.prototype.and=function(t){var e=je();return this.bitwiseTo(t,Yx,e),e},n.prototype.or=function(t){var e=je();return this.bitwiseTo(t,Su,e),e},n.prototype.xor=function(t){var e=je();return this.bitwiseTo(t,Xb,e),e},n.prototype.andNot=function(t){var e=je();return this.bitwiseTo(t,ew,e),e},n.prototype.not=function(){for(var t=je(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},n.prototype.shiftLeft=function(t){var e=je();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},n.prototype.shiftRight=function(t){var e=je();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},n.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+Jx(this[t]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,r=0;r<this.t;++r)t+=Xx(this[r]^e);return t},n.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},n.prototype.setBit=function(t){return this.changeBit(t,Su)},n.prototype.clearBit=function(t){return this.changeBit(t,ew)},n.prototype.flipBit=function(t){return this.changeBit(t,Xb)},n.prototype.add=function(t){var e=je();return this.addTo(t,e),e},n.prototype.subtract=function(t){var e=je();return this.subTo(t,e),e},n.prototype.multiply=function(t){var e=je();return this.multiplyTo(t,e),e},n.prototype.divide=function(t){var e=je();return this.divRemTo(t,e,null),e},n.prototype.remainder=function(t){var e=je();return this.divRemTo(t,null,e),e},n.prototype.divideAndRemainder=function(t){var e=je(),r=je();return this.divRemTo(t,e,r),[e,r]},n.prototype.modPow=function(t,e){var i,o,r=t.bitLength(),s=Ji(1);if(r<=0)return s;i=r<18?1:r<48?3:r<144?4:r<768?5:6,o=r<8?new sw(e):e.isEven()?new aA(e):new ow(e);var a=[],l=3,c=i-1,u=(1<<i)-1;if(a[1]=o.convert(this),i>1){var d=je();for(o.sqrTo(a[1],d);l<=u;)a[l]=je(),o.mulTo(d,a[l-2],a[l]),l+=2}var f,C,h=t.t-1,m=!0,y=je();for(r=xu(t[h])-1;h>=0;){for(r>=c?f=t[h]>>r-c&u:(f=(t[h]&(1<<r+1)-1)<<c-r,h>0&&(f|=t[h-1]>>this.DB+r-c)),l=i;0==(1&f);)f>>=1,--l;if((r-=l)<0&&(r+=this.DB,--h),m)a[f].copyTo(s),m=!1;else{for(;l>1;)o.sqrTo(s,y),o.sqrTo(y,s),l-=2;l>0?o.sqrTo(s,y):(C=s,s=y,y=C),o.mulTo(y,a[f],s)}for(;h>=0&&0==(t[h]&1<<r);)o.sqrTo(s,y),C=s,s=y,y=C,--r<0&&(r=this.DB-1,--h)}return o.revert(s)},n.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||0==t.signum())return n.ZERO;for(var r=t.clone(),i=this.clone(),s=Ji(1),o=Ji(0),a=Ji(0),l=Ji(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),e?((!s.isEven()||!o.isEven())&&(s.addTo(this,s),o.subTo(t,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),e?((!a.isEven()||!l.isEven())&&(a.addTo(this,a),l.subTo(t,l)),a.rShiftTo(1,a)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);r.compareTo(i)>=0?(r.subTo(i,r),e&&s.subTo(a,s),o.subTo(l,o)):(i.subTo(r,i),e&&a.subTo(s,a),l.subTo(o,l))}return 0!=i.compareTo(n.ONE)?n.ZERO:l.compareTo(t)>=0?l.subtract(t):l.signum()<0?(l.addTo(t,l),l.signum()<0?l.add(t):l):l},n.prototype.pow=function(t){return this.exp(t,new oA)},n.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var i=e;e=r,r=i}var s=e.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return e;for(s<o&&(o=s),o>0&&(e.rShiftTo(o,e),r.rShiftTo(o,r));e.signum()>0;)(s=e.getLowestSetBit())>0&&e.rShiftTo(s,e),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),e.compareTo(r)>=0?(e.subTo(r,e),e.rShiftTo(1,e)):(r.subTo(e,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r},n.prototype.isProbablePrime=function(t){var e,r=this.abs();if(1==r.t&&r[0]<=Rn[Rn.length-1]){for(e=0;e<Rn.length;++e)if(r[0]==Rn[e])return!0;return!1}if(r.isEven())return!1;for(e=1;e<Rn.length;){for(var i=Rn[e],s=e+1;s<Rn.length&&i<sA;)i*=Rn[s++];for(i=r.modInt(i);e<s;)if(i%Rn[e++]==0)return!1}return r.millerRabin(t)},n.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},n.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},n.prototype.fromString=function(t,e){var r;if(16==e)r=4;else if(8==e)r=3;else if(256==e)r=8;else if(2==e)r=1;else if(32==e)r=5;else{if(4!=e)return void this.fromRadix(t,e);r=2}this.t=0,this.s=0;for(var i=t.length,s=!1,o=0;--i>=0;){var a=8==r?255&+t[i]:lw(t,i);a<0?"-"==t.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&&0!=(128&+t[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),s&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},n.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},n.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s},n.prototype.lShiftTo=function(t,e){for(var r=t%this.DB,i=this.DB-r,s=(1<<i)-1,o=Math.floor(t/this.DB),a=this.s<<r&this.DM,l=this.t-1;l>=0;--l)e[l+o+1]=this[l]>>i|a,a=(this[l]&s)<<r;for(l=o-1;l>=0;--l)e[l]=0;e[o]=a,e.t=this.t+o+1,e.s=this.s,e.clamp()},n.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var i=t%this.DB,s=this.DB-i,o=(1<<i)-1;e[0]=this[r]>>i;for(var a=r+1;a<this.t;++a)e[a-r-1]|=(this[a]&o)<<s,e[a-r]=this[a]>>i;i>0&&(e[this.t-r-1]|=(this.s&o)<<s),e.t=this.t-r,e.clamp()}},n.prototype.subTo=function(t,e){for(var r=0,i=0,s=Math.min(t.t,this.t);r<s;)i+=this[r]-t[r],e[r++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;r<this.t;)i+=this[r],e[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<t.t;)i-=t[r],e[r++]=i&this.DM,i>>=this.DB;i-=t.s}e.s=i<0?-1:0,i<-1?e[r++]=this.DV+i:i>0&&(e[r++]=i),e.t=r,e.clamp()},n.prototype.multiplyTo=function(t,e){var r=this.abs(),i=t.abs(),s=r.t;for(e.t=s+i.t;--s>=0;)e[s]=0;for(s=0;s<i.t;++s)e[s+r.t]=r.am(0,i[s],e,s,0,r.t);e.s=0,e.clamp(),this.s!=t.s&&n.ZERO.subTo(e,e)},n.prototype.squareTo=function(t){for(var e=this.abs(),r=t.t=2*e.t;--r>=0;)t[r]=0;for(r=0;r<e.t-1;++r){var i=e.am(r,e[r],t,2*r,0,1);(t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,i,e.t-r-1))>=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},n.prototype.divRemTo=function(t,e,r){var i=t.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t)return null!=e&&e.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=je());var o=je(),a=this.s,l=t.s,c=this.DB-xu(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 h=d*(1<<this.F1)+(u>1?o[u-2]>>this.F2:0),f=this.FV/h,m=(1<<this.F1)/h,y=1<<this.F2,C=r.t,E=C-u,D=null==e?je():e;for(o.dlShiftTo(E,D),r.compareTo(D)>=0&&(r[r.t++]=1,r.subTo(D,r)),n.ONE.dlShiftTo(u,D),D.subTo(o,o);o.t<u;)o[o.t++]=0;for(;--E>=0;){var O=r[--C]==d?this.DM:Math.floor(r[C]*f+(r[C-1]+y)*m);if((r[C]+=o.am(0,O,r,E,0,u))<O)for(o.dlShiftTo(E,D),r.subTo(D,r);r[C]<--O;)r.subTo(D,r)}null!=e&&(r.drShiftTo(u,e),a!=l&&n.ZERO.subTo(e,e)),r.t=u,r.clamp(),c>0&&r.rShiftTo(c,r),a<0&&n.ZERO.subTo(r,r)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},n.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},n.prototype.exp=function(t,e){if(t>4294967295||t<1)return n.ONE;var r=je(),i=je(),s=e.convert(this),o=xu(t)-1;for(s.copyTo(r);--o>=0;)if(e.sqrTo(r,i),(t&1<<o)>0)e.mulTo(i,s,r);else{var a=r;r=i,i=a}return e.revert(r)},n.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},n.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),i=Ji(r),s=je(),o=je(),a="";for(this.divRemTo(i,s,o);s.signum()>0;)a=(r+o.intValue()).toString(t).substr(1)+a,s.divRemTo(i,s,o);return o.intValue().toString(t)+a},n.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var r=this.chunkSize(e),i=Math.pow(e,r),s=!1,o=0,a=0,l=0;l<t.length;++l){var c=lw(t,l);c<0?"-"==t.charAt(l)&&0==this.signum()&&(s=!0):(a=e*a+c,++o>=r&&(this.dMultiply(i),this.dAddOffset(a,0),o=0,a=0))}o>0&&(this.dMultiply(Math.pow(e,o)),this.dAddOffset(a,0)),s&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(t,e,r){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(n.ONE.shiftLeft(t-1),Su,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(n.ONE.shiftLeft(t-1),this);else{var i=[],s=7&t;i.length=1+(t>>3),e.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},n.prototype.bitwiseTo=function(t,e,r){var i,s,o=Math.min(t.t,this.t);for(i=0;i<o;++i)r[i]=e(this[i],t[i]);if(t.t<this.t){for(s=t.s&this.DM,i=o;i<this.t;++i)r[i]=e(this[i],s);r.t=this.t}else{for(s=this.s&this.DM,i=o;i<t.t;++i)r[i]=e(s,t[i]);r.t=t.t}r.s=e(this.s,t.s),r.clamp()},n.prototype.changeBit=function(t,e){var r=n.ONE.shiftLeft(t);return this.bitwiseTo(r,e,r),r},n.prototype.addTo=function(t,e){for(var r=0,i=0,s=Math.min(t.t,this.t);r<s;)i+=this[r]+t[r],e[r++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;r<this.t;)i+=this[r],e[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<t.t;)i+=t[r],e[r++]=i&this.DM,i>>=this.DB;i+=t.s}e.s=i<0?-1:0,i>0?e[r++]=i:i<-1&&(e[r++]=this.DV+i),e.t=r,e.clamp()},n.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},n.prototype.multiplyLowerTo=function(t,e,r){var i=Math.min(this.t+t.t,e);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,t[i],r,i,0,this.t);for(s=Math.min(t.t,e);i<s;++i)this.am(0,t[i],r,i,0,e-i);r.clamp()},n.prototype.multiplyUpperTo=function(t,e,r){--e;var i=r.t=this.t+t.t-e;for(r.s=0;--i>=0;)r[i]=0;for(i=Math.max(e-this.t,0);i<t.t;++i)r[this.t+i-e]=this.am(e-i,t[i],r,0,0,this.t+i-e);r.clamp(),r.drShiftTo(1,r)},n.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(0==e)r=this[0]%t;else for(var i=this.t-1;i>=0;--i)r=(e*r+this[i])%t;return r},n.prototype.millerRabin=function(t){var e=this.subtract(n.ONE),r=e.getLowestSetBit();if(r<=0)return!1;var i=e.shiftRight(r);(t=t+1>>1)>Rn.length&&(t=Rn.length);for(var s=je(),o=0;o<t;++o){s.fromInt(Rn[Math.floor(Math.random()*Rn.length)]);var a=s.modPow(i,this);if(0!=a.compareTo(n.ONE)&&0!=a.compareTo(e)){for(var l=1;l++<r&&0!=a.compareTo(e);)if(0==(a=a.modPowInt(2,this)).compareTo(n.ONE))return!1;if(0!=a.compareTo(e))return!1}}return!0},n.prototype.square=function(){var t=je();return this.squareTo(t),t},n.prototype.gcda=function(t,e){var r=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(r.compareTo(i)<0){var s=r;r=i,i=s}var o=r.getLowestSetBit(),a=i.getLowestSetBit();if(a<0)e(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(){e(i)},0))};setTimeout(l,10)}},n.prototype.fromNumberAsync=function(t,e,r,i){if("number"==typeof e)if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(n.ONE.shiftLeft(t-1),Su,this),this.isEven()&&this.dAddOffset(1,0);var s=this,o=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(n.ONE.shiftLeft(t-1),s),s.isProbablePrime(e)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,0)}else{var a=[],l=7&t;a.length=1+(t>>3),e.nextBytes(a),l>0?a[0]&=(1<<l)-1:a[0]=0,this.fromString(a,256)}},n}(),oA=function(){function n(){}return n.prototype.convert=function(t){return t},n.prototype.revert=function(t){return t},n.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r)},n.prototype.sqrTo=function(t,e){t.squareTo(e)},n}(),sw=function(){function n(t){this.m=t}return n.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},n.prototype.revert=function(t){return t},n.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},n.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},n.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},n}(),ow=function(){function n(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return n.prototype.convert=function(t){var e=je();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(Pe.ZERO)>0&&this.m.subTo(e,e),e},n.prototype.revert=function(t){var e=je();return t.copyTo(e),this.reduce(e),e},n.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e],i=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,i,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},n.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},n.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},n}(),aA=function(){function n(t){this.m=t,this.r2=je(),this.q3=je(),Pe.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return n.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=je();return t.copyTo(e),this.reduce(e),e},n.prototype.revert=function(t){return t},n.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},n.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},n.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},n}();function je(){return new Pe(null)}function Vt(n,t){return new Pe(n,t)}var aw="undefined"!=typeof navigator;aw&&"Microsoft Internet Explorer"==navigator.appName?(Pe.prototype.am=function(t,e,r,i,s,o){for(var a=32767&e,l=e>>15;--o>=0;){var c=32767&this[t],u=this[t++]>>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},Yi=30):aw&&"Netscape"!=navigator.appName?(Pe.prototype.am=function(t,e,r,i,s,o){for(;--o>=0;){var a=e*this[t++]+r[i]+s;s=Math.floor(a/67108864),r[i++]=67108863&a}return s},Yi=26):(Pe.prototype.am=function(t,e,r,i,s,o){for(var a=16383&e,l=e>>14;--o>=0;){var c=16383&this[t],u=this[t++]>>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},Yi=28),Pe.prototype.DB=Yi,Pe.prototype.DM=(1<<Yi)-1,Pe.prototype.DV=1<<Yi,Pe.prototype.FV=Math.pow(2,52),Pe.prototype.F1=52-Yi,Pe.prototype.F2=2*Yi-52;var Wo,br,Tu=[];for(Wo="0".charCodeAt(0),br=0;br<=9;++br)Tu[Wo++]=br;for(Wo="a".charCodeAt(0),br=10;br<36;++br)Tu[Wo++]=br;for(Wo="A".charCodeAt(0),br=10;br<36;++br)Tu[Wo++]=br;function lw(n,t){var e=Tu[n.charCodeAt(t)];return null==e?-1:e}function Ji(n){var t=je();return t.fromInt(n),t}function xu(n){var e,t=1;return 0!=(e=n>>>16)&&(n=e,t+=16),0!=(e=n>>8)&&(n=e,t+=8),0!=(e=n>>4)&&(n=e,t+=4),0!=(e=n>>2)&&(n=e,t+=2),0!=(e=n>>1)&&(n=e,t+=1),t}Pe.ZERO=Ji(0),Pe.ONE=Ji(1);var Au,Ur,lA=function(){function n(){this.i=0,this.j=0,this.S=[]}return n.prototype.init=function(t){var e,r,i;for(e=0;e<256;++e)this.S[e]=e;for(r=0,e=0;e<256;++e)i=this.S[e],this.S[e]=this.S[r=r+this.S[e]+t[e%t.length]&255],this.S[r]=i;this.i=0,this.j=0},n.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},n}(),Xi=null;if(null==Xi){Xi=[],Ur=0;var Iu=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues){var bm=new Uint32Array(256);for(window.crypto.getRandomValues(bm),Iu=0;Iu<bm.length;++Iu)Xi[Ur++]=255&bm[Iu]}var ku=0,Pu=function(n){if((ku=ku||0)>=256||Ur>=256)window.removeEventListener?window.removeEventListener("mousemove",Pu,!1):window.detachEvent&&window.detachEvent("onmousemove",Pu);else try{Xi[Ur++]=255&n.x+n.y,ku+=1}catch(e){}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("mousemove",Pu,!1):window.attachEvent&&window.attachEvent("onmousemove",Pu))}function uA(){if(null==Au){for(Au=function cA(){return new lA}();Ur<256;){var n=Math.floor(65536*Math.random());Xi[Ur++]=255&n}for(Au.init(Xi),Ur=0;Ur<Xi.length;++Ur)Xi[Ur]=0;Ur=0}return Au.next()}var wm=function(){function n(){}return n.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=uA()},n}(),fA=function(){function n(){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 n.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},n.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),r=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(r)<0;)e=e.add(this.p);return e.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)},n.prototype.setPublic=function(t,e){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Vt(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},n.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,r=function hA(n,t){if(t<n.length+11)return console.error("Message too long for RSA"),null;for(var e=[],r=n.length-1;r>=0&&t>0;){var i=n.charCodeAt(r--);i<128?e[--t]=i:i>127&&i<2048?(e[--t]=63&i|128,e[--t]=i>>6|192):(e[--t]=63&i|128,e[--t]=i>>6&63|128,e[--t]=i>>12|224)}e[--t]=0;for(var s=new wm,o=[];t>2;){for(o[0]=0;0==o[0];)s.nextBytes(o);e[--t]=o[0]}return e[--t]=2,e[--t]=0,new Pe(e)}(t,e);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*e-o;a++)s="0"+s;return s},n.prototype.setPrivate=function(t,e,r){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Vt(t,16),this.e=parseInt(e,16),this.d=Vt(r,16)):console.error("Invalid RSA private key")},n.prototype.setPrivateEx=function(t,e,r,i,s,o,a,l){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Vt(t,16),this.e=parseInt(e,16),this.d=Vt(r,16),this.p=Vt(i,16),this.q=Vt(s,16),this.dmp1=Vt(o,16),this.dmq1=Vt(a,16),this.coeff=Vt(l,16)):console.error("Invalid RSA private key")},n.prototype.generate=function(t,e){var r=new wm,i=t>>1;this.e=parseInt(e,16);for(var s=new Pe(e,16);;){for(;this.p=new Pe(t-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}}},n.prototype.decrypt=function(t){var e=Vt(t,16),r=this.doPrivate(e);return null==r?null:function pA(n,t){for(var e=n.toByteArray(),r=0;r<e.length&&0==e[r];)++r;if(e.length-r!=t-1||2!=e[r])return null;for(++r;0!=e[r];)if(++r>=e.length)return null;for(var i="";++r<e.length;){var s=255&e[r];s<128?i+=String.fromCharCode(s):s>191&&s<224?(i+=String.fromCharCode((31&s)<<6|63&e[r+1]),++r):(i+=String.fromCharCode((15&s)<<12|(63&e[r+1])<<6|63&e[r+2]),r+=2)}return i}(r,this.n.bitLength()+7>>3)},n.prototype.generateAsync=function(t,e,r){var i=new wm,s=t>>1;this.e=parseInt(e,16);var o=new Pe(e,16),a=this,l=function(){var c=function(){if(a.p.compareTo(a.q)<=0){var h=a.p;a.p=a.q,a.q=h}var f=a.p.subtract(Pe.ONE),m=a.q.subtract(Pe.ONE),y=f.multiply(m);0==y.gcd(o).compareTo(Pe.ONE)?(a.n=a.p.multiply(a.q),a.d=o.modInverse(y),a.dmp1=a.d.mod(f),a.dmq1=a.d.mod(m),a.coeff=a.q.modInverse(a.p),setTimeout(function(){r()},0)):setTimeout(l,0)},u=function(){a.q=je(),a.q.fromNumberAsync(s,1,i,function(){a.q.subtract(Pe.ONE).gcda(o,function(h){0==h.compareTo(Pe.ONE)&&a.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)})})},d=function(){a.p=je(),a.p.fromNumberAsync(t-s,1,i,function(){a.p.subtract(Pe.ONE).gcda(o,function(h){0==h.compareTo(Pe.ONE)&&a.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(d,0)})})};setTimeout(d,0)};setTimeout(l,0)},n.prototype.sign=function(t,e,r){var i=function mA(n){return Nu[n]||""}(r),o=function dA(n,t){if(t<n.length+22)return console.error("Message too long for RSA"),null;for(var e=t-n.length-6,r="",i=0;i<e;i+=2)r+="ff";return Vt("0001"+r+"00"+n,16)}(i+e(t).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 0==(1&l.length)?l:"0"+l},n.prototype.verify=function(t,e,r){var i=Vt(e,16),s=this.doPublic(i);if(null==s)return null;var a=function gA(n){for(var t in Nu)if(Nu.hasOwnProperty(t)){var e=Nu[t],r=e.length;if(n.substr(0,r)==e)return n.substr(r)}return n}(s.toString(16).replace(/^1f+00/,""));return a==r(t).toString()},n}(),Nu={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},Gt={};Gt.lang={extend:function(n,t,e){if(!t||!n)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=t.prototype,n.prototype=new r,n.prototype.constructor=n,n.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),e){var i;for(i in e)n.prototype[i]=e[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(a){}s(n.prototype,e)}}};var R={};(void 0===R.asn1||!R.asn1)&&(R.asn1={}),R.asn1.ASN1Util=new function(){this.integerToByteHex=function(n){var t=n.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(n){var t=n.toString(16);if("-"!=t.substr(0,1))t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var r=t.substr(1).length;r%2==1?r+=1:t.match(/^[0-7]/)||(r+=2);for(var i="",s=0;s<r;s++)i+="f";t=new Pe(i,16).xor(n).add(Pe.ONE).toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(n,t){return hextopem(n,t)},this.newObject=function(n){var e=R.asn1,r=e.DERBoolean,i=e.DERInteger,s=e.DERBitString,o=e.DEROctetString,a=e.DERNull,l=e.DERObjectIdentifier,c=e.DEREnumerated,u=e.DERUTF8String,d=e.DERNumericString,h=e.DERPrintableString,f=e.DERTeletexString,m=e.DERIA5String,y=e.DERUTCTime,C=e.DERGeneralizedTime,E=e.DERSequence,D=e.DERSet,O=e.DERTaggedObject,j=e.ASN1Util.newObject,ie=Object.keys(n);if(1!=ie.length)throw"key of param shall be only one.";var G=ie[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+G+":"))throw"undefined key: "+G;if("bool"==G)return new r(n[G]);if("int"==G)return new i(n[G]);if("bitstr"==G)return new s(n[G]);if("octstr"==G)return new o(n[G]);if("null"==G)return new a(n[G]);if("oid"==G)return new l(n[G]);if("enum"==G)return new c(n[G]);if("utf8str"==G)return new u(n[G]);if("numstr"==G)return new d(n[G]);if("prnstr"==G)return new h(n[G]);if("telstr"==G)return new f(n[G]);if("ia5str"==G)return new m(n[G]);if("utctime"==G)return new y(n[G]);if("gentime"==G)return new C(n[G]);if("seq"==G){for(var Ce=n[G],Fe=[],A=0;A<Ce.length;A++){var ee=j(Ce[A]);Fe.push(ee)}return new E({array:Fe})}if("set"==G){for(Ce=n[G],Fe=[],A=0;A<Ce.length;A++)ee=j(Ce[A]),Fe.push(ee);return new D({array:Fe})}if("tag"==G){var Z=n[G];if("[object Array]"===Object.prototype.toString.call(Z)&&3==Z.length){var ue=j(Z[2]);return new O({tag:Z[0],explicit:Z[1],obj:ue})}var oe={};if(void 0!==Z.explicit&&(oe.explicit=Z.explicit),void 0!==Z.tag&&(oe.tag=Z.tag),void 0===Z.obj)throw"obj shall be specified for 'tag'.";return oe.obj=j(Z.obj),new O(oe)}},this.jsonToASN1HEX=function(n){return this.newObject(n).getEncodedHex()}},R.asn1.ASN1Util.oidHexToInt=function(n){for(var i="",t=parseInt(n.substr(0,2),16),s=(i=Math.floor(t/40)+"."+t%40,""),o=2;o<n.length;o+=2){var l=("00000000"+parseInt(n.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(n){var t=function(a){var l=a.toString(16);return 1==l.length&&(l="0"+l),l},e=function(a){var l="",u=new Pe(a,10).toString(2),d=7-u.length%7;7==d&&(d=0);for(var h="",f=0;f<d;f++)h+="0";for(u=h+u,f=0;f<u.length-1;f+=7){var m=u.substr(f,7);f!=u.length-7&&(m="1"+m),l+=t(parseInt(m,2))}return l};if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var r="",i=n.split("."),s=40*parseInt(i[0])+parseInt(i[1]);r+=t(s),i.splice(0,2);for(var o=0;o<i.length;o++)r+=e(i[o]);return r},R.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+"".length+",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(n){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},void 0!==n&&("string"==typeof n?this.setString(n):void 0!==n.str?this.setString(n.str):void 0!==n.hex&&this.setStringHex(n.hex))},Gt.lang.extend(R.asn1.DERAbstractString,R.asn1.ASN1Object),R.asn1.DERAbstractTime=function(n){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 m=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 y=a.getMilliseconds();if(0!=y){var C=o(String(y),3);m=m+"."+(C=C.replace(/[0]+$/,""))}}return m+"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}},Gt.lang.extend(R.asn1.DERAbstractTime,R.asn1.ASN1Object),R.asn1.DERAbstractStructured=function(n){R.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,void 0!==n&&void 0!==n.array&&(this.asn1Array=n.array)},Gt.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"},Gt.lang.extend(R.asn1.DERBoolean,R.asn1.ASN1Object),R.asn1.DERInteger=function(n){R.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=R.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new Pe(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==n&&(void 0!==n.bigint?this.setByBigInteger(n.bigint):void 0!==n.int?this.setByInteger(n.int):"number"==typeof n?this.setByInteger(n):void 0!==n.hex&&this.setValueHex(n.hex))},Gt.lang.extend(R.asn1.DERInteger,R.asn1.ASN1Object),R.asn1.DERBitString=function(n){if(void 0!==n&&void 0!==n.obj){var t=R.asn1.ASN1Util.newObject(n.obj);n.hex="00"+t.getEncodedHex()}R.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,r){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var i="0"+e;this.hTLV=null,this.isModified=!0,this.hV=i+r},this.setByBinaryString=function(e){var r=8-(e=e.replace(/0+$/,"")).length%8;8==r&&(r=0);for(var i=0;i<=r;i++)e+="0";var s="";for(i=0;i<e.length-1;i+=8){var o=e.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(e){for(var r="",i=0;i<e.length;i++)r+=1==e[i]?"1":"0";this.setByBinaryString(r)},this.newFalseArray=function(e){for(var r=new Array(e),i=0;i<e;i++)r[i]=!1;return r},this.getFreshValueHex=function(){return this.hV},void 0!==n&&("string"==typeof n&&n.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(n):void 0!==n.hex?this.setHexValueIncludingUnusedBits(n.hex):void 0!==n.bin?this.setByBinaryString(n.bin):void 0!==n.array&&this.setByBooleanArray(n.array))},Gt.lang.extend(R.asn1.DERBitString,R.asn1.ASN1Object),R.asn1.DEROctetString=function(n){if(void 0!==n&&void 0!==n.obj){var t=R.asn1.ASN1Util.newObject(n.obj);n.hex=t.getEncodedHex()}R.asn1.DEROctetString.superclass.constructor.call(this,n),this.hT="04"},Gt.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"},Gt.lang.extend(R.asn1.DERNull,R.asn1.ASN1Object),R.asn1.DERObjectIdentifier=function(n){var t=function(r){var i=r.toString(16);return 1==i.length&&(i="0"+i),i},e=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+=t(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+=t(o),s.splice(0,2);for(var a=0;a<s.length;a++)i+=e(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!==n&&("string"==typeof n?n.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(n):this.setValueName(n):void 0!==n.oid?this.setValueOidString(n.oid):void 0!==n.hex?this.setValueHex(n.hex):void 0!==n.name&&this.setValueName(n.name))},Gt.lang.extend(R.asn1.DERObjectIdentifier,R.asn1.ASN1Object),R.asn1.DEREnumerated=function(n){R.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=R.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new Pe(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==n&&(void 0!==n.int?this.setByInteger(n.int):"number"==typeof n?this.setByInteger(n):void 0!==n.hex&&this.setValueHex(n.hex))},Gt.lang.extend(R.asn1.DEREnumerated,R.asn1.ASN1Object),R.asn1.DERUTF8String=function(n){R.asn1.DERUTF8String.superclass.constructor.call(this,n),this.hT="0c"},Gt.lang.extend(R.asn1.DERUTF8String,R.asn1.DERAbstractString),R.asn1.DERNumericString=function(n){R.asn1.DERNumericString.superclass.constructor.call(this,n),this.hT="12"},Gt.lang.extend(R.asn1.DERNumericString,R.asn1.DERAbstractString),R.asn1.DERPrintableString=function(n){R.asn1.DERPrintableString.superclass.constructor.call(this,n),this.hT="13"},Gt.lang.extend(R.asn1.DERPrintableString,R.asn1.DERAbstractString),R.asn1.DERTeletexString=function(n){R.asn1.DERTeletexString.superclass.constructor.call(this,n),this.hT="14"},Gt.lang.extend(R.asn1.DERTeletexString,R.asn1.DERAbstractString),R.asn1.DERIA5String=function(n){R.asn1.DERIA5String.superclass.constructor.call(this,n),this.hT="16"},Gt.lang.extend(R.asn1.DERIA5String,R.asn1.DERAbstractString),R.asn1.DERUTCTime=function(n){R.asn1.DERUTCTime.superclass.constructor.call(this,n),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),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,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==n&&(void 0!==n.str?this.setString(n.str):"string"==typeof n&&n.match(/^[0-9]{12}Z$/)?this.setString(n):void 0!==n.hex?this.setStringHex(n.hex):void 0!==n.date&&this.setByDate(n.date))},Gt.lang.extend(R.asn1.DERUTCTime,R.asn1.DERAbstractTime),R.asn1.DERGeneralizedTime=function(n){R.asn1.DERGeneralizedTime.superclass.constructor.call(this,n),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,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!==n&&(void 0!==n.str?this.setString(n.str):"string"==typeof n&&n.match(/^[0-9]{14}Z$/)?this.setString(n):void 0!==n.hex?this.setStringHex(n.hex):void 0!==n.date&&this.setByDate(n.date),!0===n.millis&&(this.withMillis=!0))},Gt.lang.extend(R.asn1.DERGeneralizedTime,R.asn1.DERAbstractTime),R.asn1.DERSequence=function(n){R.asn1.DERSequence.superclass.constructor.call(this,n),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++)t+=this.asn1Array[e].getEncodedHex();return this.hV=t,this.hV}},Gt.lang.extend(R.asn1.DERSequence,R.asn1.DERAbstractStructured),R.asn1.DERSet=function(n){R.asn1.DERSet.superclass.constructor.call(this,n),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++)t.push(this.asn1Array[e].getEncodedHex());return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==n&&void 0!==n.sortflag&&0==n.sortflag&&(this.sortFlag=!1)},Gt.lang.extend(R.asn1.DERSet,R.asn1.DERAbstractStructured),R.asn1.DERTaggedObject=function(n){R.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,r){this.hT=e,this.isExplicit=t,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(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==n&&(void 0!==n.tag&&(this.hT=n.tag),void 0!==n.explicit&&(this.isExplicit=n.explicit),void 0!==n.obj&&(this.asn1Object=n.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Gt.lang.extend(R.asn1.DERTaggedObject,R.asn1.ASN1Object);var Cm,n,yA=(n=function(t,e){return(n=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])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),uw=function(n){function t(e){var r=n.call(this)||this;return e&&("string"==typeof e?r.parseKey(e):(t.hasPrivateKeyProperty(e)||t.hasPublicKeyProperty(e))&&r.parsePropertiesFrom(e)),r}return yA(t,n),t.prototype.parseKey=function(e){try{var r=0,i=0,o=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(e)?function(n){var t;if(void 0===zo){var e="0123456789ABCDEF",r=" \f\n\r\t\xa0\u2028\u2029";for(zo={},t=0;t<16;++t)zo[e.charAt(t)]=t;for(e=e.toLowerCase(),t=10;t<16;++t)zo[e.charAt(t)]=t;for(t=0;t<r.length;++t)zo[r.charAt(t)]=-1}var i=[],s=0,o=0;for(t=0;t<n.length;++t){var a=n.charAt(t);if("="==a)break;if(-1!=(a=zo[a])){if(void 0===a)throw new Error("Illegal character at offset "+t);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}(e):ym.unarmor(e),a=rA.decode(o);if(3===a.sub.length&&(a=a.sub[2].sub[0]),9===a.sub.length){r=a.sub[1].getHexStringValue(),this.n=Vt(r,16),i=a.sub[2].getHexStringValue(),this.e=parseInt(i,16);var l=a.sub[3].getHexStringValue();this.d=Vt(l,16);var c=a.sub[4].getHexStringValue();this.p=Vt(c,16);var u=a.sub[5].getHexStringValue();this.q=Vt(u,16);var d=a.sub[6].getHexStringValue();this.dmp1=Vt(d,16);var h=a.sub[7].getHexStringValue();this.dmq1=Vt(h,16);var f=a.sub[8].getHexStringValue();this.coeff=Vt(f,16)}else{if(2!==a.sub.length)return!1;if(a.sub[0].sub){var y=a.sub[1].sub[0];r=y.sub[0].getHexStringValue(),this.n=Vt(r,16),i=y.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else r=a.sub[0].getHexStringValue(),this.n=Vt(r,16),i=a.sub[1].getHexStringValue(),this.e=parseInt(i,16)}return!0}catch(C){return!1}},t.prototype.getPrivateBaseKey=function(){var e={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(e).getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return Mu(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var e=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:[e,i]}).getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return Mu(this.getPublicBaseKey())},t.wordwrap=function(e,r){return r=r||64,e?e.match(RegExp("(.{1,"+r+"})( +|$\n?)|(.{1,"+r+"})","g")).join("\n"):e},t.prototype.getPrivateKey=function(){var e="-----BEGIN RSA PRIVATE KEY-----\n";return(e+=t.wordwrap(this.getPrivateBaseKeyB64())+"\n")+"-----END RSA PRIVATE KEY-----"},t.prototype.getPublicKey=function(){var e="-----BEGIN PUBLIC KEY-----\n";return(e+=t.wordwrap(this.getPublicBaseKeyB64())+"\n")+"-----END PUBLIC KEY-----"},t.hasPublicKeyProperty=function(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)},t}(fA),_A="undefined"!=typeof process?null===(Cm=process.env)||void 0===Cm?void 0:Cm.npm_package_version:void 0,vA=function(){function n(t){void 0===t&&(t={}),this.default_key_size=(t=t||{}).default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return n.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new uw(t)},n.prototype.setPrivateKey=function(t){this.setKey(t)},n.prototype.setPublicKey=function(t){this.setKey(t)},n.prototype.decrypt=function(t){try{return this.getKey().decrypt(gm(t))}catch(e){return!1}},n.prototype.encrypt=function(t){try{return Mu(this.getKey().encrypt(t))}catch(e){return!1}},n.prototype.sign=function(t,e,r){try{return Mu(this.getKey().sign(t,e,r))}catch(i){return!1}},n.prototype.verify=function(t,e,r){try{return this.getKey().verify(t,gm(e),r)}catch(i){return!1}},n.prototype.getKey=function(t){if(!this.key){if(this.key=new uw,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},n.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},n.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},n.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},n.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},n.version=_A,n}();const bA=vA;class dw{}const Mi="*";function Ko(n,t){return{type:7,name:n,definitions:t,options:{}}}function zr(n,t=null){return{type:4,styles:t,timings:n}}function hw(n,t=null){return{type:2,steps:n,options:t}}function Bt(n){return{type:6,styles:n,offset:null}}function vl(n,t,e){return{type:0,name:n,styles:t,options:e}}function qr(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function fw(n){Promise.resolve(null).then(n)}class bl{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){fw(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}}class pw{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,r=0,i=0;const s=this.players.length;0==s?fw(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==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(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(r=>{const i=r.totalTime?Math.min(1,e/r.totalTime):1;r.setPosition(i)})}getPosition(){const t=this.players.reduce((e,r)=>null===e||r.totalTime>e.totalTime?r:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}}var Ou=sn(791);let mw=(()=>{class n{constructor(e,r){this._renderer=e,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(e,r){this._renderer.setProperty(this._elementRef.nativeElement,e,r)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(k(oi),k(Vn))},n.\u0275dir=we({type:n}),n})(),ks=(()=>{class n extends mw{}return n.\u0275fac=function(){let t;return function(r){return(t||(t=hn(n)))(r||n)}}(),n.\u0275dir=we({type:n,features:[Ue]}),n})();const nr=new pe("NgValueAccessor"),DA={provide:nr,useExisting:Xe(()=>Fu),multi:!0};let Fu=(()=>{class n extends ks{writeValue(e){this.setProperty("checked",e)}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=hn(n)))(r||n)}}(),n.\u0275dir=we({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,r){1&e&&Oe("change",function(s){return r.onChange(s.target.checked)})("blur",function(){return r.onTouched()})},features:[ut([DA]),Ue]}),n})();const EA={provide:nr,useExisting:Xe(()=>Ru),multi:!0},MA=new pe("CompositionEventMode");let Ru=(()=>{class n extends mw{constructor(e,r,i){super(e,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function SA(){const n=xs()?xs().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(k(oi),k(Vn),k(MA,8))},n.\u0275dir=we({type:n,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(e,r){1&e&&Oe("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[ut([EA]),Ue]}),n})();function es(n){return null==n||0===n.length}function gw(n){return null!=n&&"number"==typeof n.length}const vn=new pe("NgValidators"),ts=new pe("NgAsyncValidators"),TA=/^(?=.{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 Ti{static min(t){return function yw(n){return t=>{if(es(t.value)||es(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}(t)}static max(t){return function _w(n){return t=>{if(es(t.value)||es(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function vw(n){return es(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function bw(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function ww(n){return es(n.value)||TA.test(n.value)?null:{email:!0}}(t)}static minLength(t){return Cw(t)}static maxLength(t){return Dw(t)}static pattern(t){return function Ew(n){if(!n)return Lu;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),r=>{if(es(r.value))return null;const i=r.value;return t.test(i)?null:{pattern:{requiredPattern:e,actualValue:i}}}}(t)}static nullValidator(t){return null}static compose(t){return Iw(t)}static composeAsync(t){return kw(t)}}function Cw(n){return t=>es(t.value)||!gw(t.value)?null:t.value.length<n?{minlength:{requiredLength:n,actualLength:t.value.length}}:null}function Dw(n){return t=>gw(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}function Lu(n){return null}function Sw(n){return null!=n}function Mw(n){const t=Bc(n)?ds(n):n;return D_(t),t}function Tw(n){let t={};return n.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function xw(n,t){return t.map(e=>e(n))}function Aw(n){return n.map(t=>function xA(n){return!n.validate}(t)?t:e=>t.validate(e))}function Iw(n){if(!n)return null;const t=n.filter(Sw);return 0==t.length?null:function(e){return Tw(xw(e,t))}}function Em(n){return null!=n?Iw(Aw(n)):null}function kw(n){if(!n)return null;const t=n.filter(Sw);return 0==t.length?null:function(e){return function CA(...n){const t=c1(n),{args:e,keys:r}=qb(n),i=new Zt(s=>{const{length:o}=e;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;dr(e[u]).subscribe(mn(s,h=>{d||(d=!0,c--),a[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||s.next(r?Wb(r,a):a),s.complete())}))}});return t?i.pipe(Gb(t)):i}(xw(e,t).map(Mw)).pipe(Ft(Tw))}}function Sm(n){return null!=n?kw(Aw(n)):null}function Pw(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function Nw(n){return n._rawValidators}function Ow(n){return n._rawAsyncValidators}function Mm(n){return n?Array.isArray(n)?n:[n]:[]}function $u(n,t){return Array.isArray(n)?n.includes(t):n===t}function Fw(n,t){const e=Mm(t);return Mm(n).forEach(i=>{$u(e,i)||e.push(i)}),e}function Rw(n,t){return Mm(t).filter(e=>!$u(n,e))}class Lw{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(t){this._rawValidators=t||[],this._composedValidatorFn=Em(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Sm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class xi extends Lw{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ln extends Lw{get formDirective(){return null}get path(){return null}}class $w{constructor(t){this._cd=t}is(t){var e,r,i;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(i=null===(r=this._cd)||void 0===r?void 0:r.control)||void 0===i?void 0:i[t])}}let Zo=(()=>{class n extends $w{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(k(xi,2))},n.\u0275dir=we({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,r){2&e&&Fr("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))},features:[Ue]}),n})(),Tm=(()=>{class n extends $w{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(k(Ln,10))},n.\u0275dir=we({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,r){2&e&&Fr("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))("ng-submitted",r.is("submitted"))},features:[Ue]}),n})();function Bu(n,t){return[...t.path,n]}function wl(n,t){Im(n,t),t.valueAccessor.writeValue(n.value),function RA(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&Bw(n,t)})}(n,t),function $A(n,t){const e=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function LA(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&Bw(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function FA(n,t){if(t.valueAccessor.setDisabledState){const e=r=>{t.valueAccessor.setDisabledState(r)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function ju(n,t,e=!0){const r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),Uu(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Hu(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Im(n,t){const e=Nw(n);null!==t.validator?n.setValidators(Pw(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const r=Ow(n);null!==t.asyncValidator?n.setAsyncValidators(Pw(r,t.asyncValidator)):"function"==typeof r&&n.setAsyncValidators([r]);const i=()=>n.updateValueAndValidity();Hu(t._rawValidators,i),Hu(t._rawAsyncValidators,i)}function Uu(n,t){let e=!1;if(null!==n){if(null!==t.validator){const i=Nw(n);if(Array.isArray(i)&&i.length>0){const s=i.filter(o=>o!==t.validator);s.length!==i.length&&(e=!0,n.setValidators(s))}}if(null!==t.asyncValidator){const i=Ow(n);if(Array.isArray(i)&&i.length>0){const s=i.filter(o=>o!==t.asyncValidator);s.length!==i.length&&(e=!0,n.setAsyncValidators(s))}}}const r=()=>{};return Hu(t._rawValidators,r),Hu(t._rawAsyncValidators,r),e}function Bw(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function km(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function Pm(n,t){if(!t)return null;let e,r,i;return Array.isArray(t),t.forEach(s=>{s.constructor===Ru?e=s:function jA(n){return Object.getPrototypeOf(n.constructor)===ks}(s)?r=s:i=s}),i||r||e||null}function Nm(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const Cl="VALID",zu="INVALID",Qo="PENDING",Dl="DISABLED";function Fm(n){return(qu(n)?n.validators:n)||null}function zw(n){return Array.isArray(n)?Em(n):n||null}function Rm(n,t){return(qu(t)?t.asyncValidators:n)||null}function qw(n){return Array.isArray(n)?Sm(n):n||null}function qu(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const Lm=n=>n instanceof Vm,Gu=n=>n instanceof Wu,Gw=n=>n instanceof Qw;function Ww(n){return Lm(n)?n.value:n.getRawValue()}function Kw(n,t){const e=Gu(n),r=n.controls;if(!(e?Object.keys(r):r).length)throw new se(1e3,"");if(!r[t])throw new se(1001,"")}function Zw(n,t){Gu(n),n._forEachChild((r,i)=>{if(void 0===t[i])throw new se(1002,"")})}class $m{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=zw(this._rawValidators),this._composedAsyncValidatorFn=qw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Cl}get invalid(){return this.status===zu}get pending(){return this.status==Qo}get disabled(){return this.status===Dl}get enabled(){return this.status!==Dl}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=zw(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=qw(t)}addValidators(t){this.setValidators(Fw(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Fw(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Rw(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Rw(t,this._rawAsyncValidators))}hasValidator(t){return $u(this._rawValidators,t)}hasAsyncValidator(t){return $u(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Qo,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Dl,this.errors=null,this._forEachChild(r=>{r.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Cl,this._forEachChild(r=>{r.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Cl||this.status===Qo)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Dl:Cl}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Qo,this._hasOwnPendingAsyncValidator=!0;const e=Mw(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function HA(n,t,e){if(null==t||(Array.isArray(t)||(t=t.split(e)),Array.isArray(t)&&0===t.length))return null;let r=n;return t.forEach(i=>{r=Gu(r)?r.controls.hasOwnProperty(i)?r.controls[i]:null:Gw(r)&&r.at(i)||null}),r}(this,t,".")}getError(t,e){const r=e?this.get(e):this;return r&&r.errors?r.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new ze,this.statusChanges=new ze}_calculateStatus(){return this._allControlsDisabled()?Dl:this.errors?zu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Qo)?Qo:this._anyControlsHaveStatus(zu)?zu:Cl}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){qu(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Vm extends $m{constructor(t=null,e,r){super(Fm(e),Rm(r,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),qu(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Nm(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Nm(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Wu extends $m{constructor(t,e,r){super(Fm(e),Rm(r,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,r={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){Zw(this,t),Object.keys(t).forEach(r=>{Kw(this,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(r=>{this.controls[r]&&this.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((r,i)=>{r.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,r)=>(t[r]=Ww(e),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,r)=>!!r._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const r=this.controls[e];r&&t(r,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const r=this.controls[e];if(this.contains(e)&&t(r))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,r)=>((e.enabled||this.disabled)&&(t[r]=e.value),t))}_reduceChildren(t,e){let r=t;return this._forEachChild((i,s)=>{r=e(r,i,s)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Qw extends $m{constructor(t,e,r){super(Fm(e),Rm(r,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,r={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){Zw(this,t),t.forEach((r,i)=>{Kw(this,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((r,i)=>{r.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>Ww(t))}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((e,r)=>!!r._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,r)=>{t(e,r)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}let Yw=(()=>{class n extends Ln{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Bu(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=hn(n)))(r||n)}}(),n.\u0275dir=we({type:n,features:[Ue]}),n})();const qA={provide:xi,useExisting:Xe(()=>Sl)},Xw=(()=>Promise.resolve(null))();let Sl=(()=>{class n extends xi{constructor(e,r,i,s,o){super(),this._changeDetectorRef=o,this.control=new Vm,this._registered=!1,this.update=new ze,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=Pm(0,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const r=e.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),km(e,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(e){this.viewModel=e,this.update.emit(e)}_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(){wl(this.control,this),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(e){Xw.then(()=>{var r;this.control.setValue(e,{emitViewToModelChange:!1}),null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()})}_updateDisabled(e){const r=e.isDisabled.currentValue,i=""===r||r&&"false"!==r;Xw.then(()=>{var s;i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),null===(s=this._changeDetectorRef)||void 0===s||s.markForCheck()})}_getPath(e){return this._parent?Bu(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(k(Ln,9),k(vn,10),k(ts,10),k(nr,10),k(cl,8))},n.\u0275dir=we({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ut([qA]),Ue,kr]}),n})(),jm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=we({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})(),t8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ct({type:n}),n.\u0275inj=gt({}),n})();const Hm=new pe("NgModelWithFormControlWarning"),YA={provide:Ln,useExisting:Xe(()=>Ml)};let Ml=(()=>{class n extends Ln{constructor(e,r){super(),this.validators=e,this.asyncValidators=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ze,this._setValidators(e),this._setAsyncValidators(r)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Uu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const r=this.form.get(e.path);return wl(r,e),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),r}getControl(e){return this.form.get(e.path)}removeControl(e){ju(e.control||null,e,!1),Nm(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,r){this.form.get(e.path).setValue(r)}onSubmit(e){return this.submitted=!0,function Uw(n,t){n._syncPendingControls(),t.forEach(e=>{const r=e.control;"submit"===r.updateOn&&r._pendingChange&&(e.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const r=e.control,i=this.form.get(e.path);r!==i&&(ju(r||null,e),Lm(i)&&(wl(i,e),e.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const r=this.form.get(e.path);(function jw(n,t){Im(n,t)})(r,e),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const r=this.form.get(e.path);r&&function VA(n,t){return Uu(n,t)}(r,e)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Im(this.form,this),this._oldForm&&Uu(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(k(vn,10),k(ts,10))},n.\u0275dir=we({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,r){1&e&&Oe("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ut([YA]),Ue,kr]}),n})();const JA={provide:Ln,useExisting:Xe(()=>Ku)};let Ku=(()=>{class n extends Yw{constructor(e,r,i){super(),this._parent=e,this._setValidators(r),this._setAsyncValidators(i)}_checkParentType(){s8(this._parent)}}return n.\u0275fac=function(e){return new(e||n)(k(Ln,13),k(vn,10),k(ts,10))},n.\u0275dir=we({type:n,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[ut([JA]),Ue]}),n})();const XA={provide:Ln,useExisting:Xe(()=>Um)};let Um=(()=>{class n extends Ln{constructor(e,r,i){super(),this._parent=e,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 Bu(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){s8(this._parent)}}return n.\u0275fac=function(e){return new(e||n)(k(Ln,13),k(vn,10),k(ts,10))},n.\u0275dir=we({type:n,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[ut([XA]),Ue]}),n})();function s8(n){return!(n instanceof Ku||n instanceof Ml||n instanceof Um)}const eI={provide:xi,useExisting:Xe(()=>Zu)};let Zu=(()=>{class n extends xi{constructor(e,r,i,s,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new ze,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=Pm(0,s)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),km(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Bu(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(k(Ln,13),k(vn,10),k(ts,10),k(nr,10),k(Hm,8))},n.\u0275dir=we({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[ut([eI]),Ue,kr]}),n})();function l8(n){return"number"==typeof n?n:parseInt(n,10)}let Ps=(()=>{class n{constructor(){this._validator=Lu}ngOnChanges(e){if(this.inputName in e){const r=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Lu,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=we({type:n,features:[kr]}),n})();const fI={provide:vn,useExisting:Xe(()=>Qu),multi:!0};let Qu=(()=>{class n extends Ps{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>l8(e),this.createValidator=e=>Cw(e)}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=hn(n)))(r||n)}}(),n.\u0275dir=we({type:n,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,r){2&e&&Sn("minlength",r._enabled?r.minlength:null)},inputs:{minlength:"minlength"},features:[ut([fI]),Ue]}),n})();const pI={provide:vn,useExisting:Xe(()=>Tl),multi:!0};let Tl=(()=>{class n extends Ps{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>l8(e),this.createValidator=e=>Dw(e)}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=hn(n)))(r||n)}}(),n.\u0275dir=we({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,r){2&e&&Sn("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},features:[ut([pI]),Ue]}),n})(),m8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ct({type:n}),n.\u0275inj=gt({imports:[[t8]]}),n})(),g8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ct({type:n}),n.\u0275inj=gt({imports:[m8]}),n})(),Wm=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Hm,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ct({type:n}),n.\u0275inj=gt({imports:[m8]}),n})(),y8=(()=>{class n{group(e,r=null){const i=this._reduceControls(e);let a,s=null,o=null;return null!=r&&(function gI(n){return void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn}(r)?(s=null!=r.validators?r.validators:null,o=null!=r.asyncValidators?r.asyncValidators:null,a=null!=r.updateOn?r.updateOn:void 0):(s=null!=r.validator?r.validator:null,o=null!=r.asyncValidator?r.asyncValidator:null)),new Wu(i,{asyncValidators:o,updateOn:a,validators:s})}control(e,r,i){return new Vm(e,r,i)}array(e,r,i){const s=e.map(o=>this._createControl(o));return new Qw(s,r,i)}_reduceControls(e){const r={};return Object.keys(e).forEach(i=>{r[i]=this._createControl(e[i])}),r}_createControl(e){return Lm(e)||Gu(e)||Gw(e)?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ce({token:n,factory:n.\u0275fac,providedIn:Wm}),n})();const Yu=new pe("ngx-mask config"),_8=new pe("new ngx-mask config"),v8=new pe("initial ngx-mask config"),yI={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:n=>n,outputTransformFn:n=>n,maskFilled:new ze,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")}}},_I=["Hh:m0:s0","Hh:m0","m0:s0"],vI=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let bI=(()=>{class n{constructor(e){this._config=e,this._shift=new Set,this.plusOnePosition=!1,this.maskExpression="",this.actualValue="",this.showKeepCharacterExp="",this.shownMaskExpression="",this.deletedSpecialCharacter=!1,this._formatWithSeparators=(r,i,s,o)=>{var a,l,c;let u=[],d="";if(Array.isArray(s)){const C=new RegExp(s.map(E=>"[\\^$.|?*+()".indexOf(E)>=0?`\\${E}`:E).join("|"));u=r.split(C),d=null!==(l=null===(a=r.match(C))||void 0===a?void 0:a[0])&&void 0!==l?l:""}else u=r.split(s),d=s;const h=u.length>1?`${d}${u[1]}`:"";let f=null!==(c=u[0])&&void 0!==c?c:"";const m=this.separatorLimit.replace(/\s/g,"");m&&+m&&(f="-"===f[0]?`-${f.slice(1,f.length).slice(0,m.length)}`:f.slice(0,m.length));const y=/(\d+)(\d{3})/;for(;i&&y.test(f);)f=f.replace(y,"$1"+i+"$2");return void 0===o?f+h:0===o?f:f+h.substring(0,o+1)},this.percentage=r=>{const i=r.replace(",","."),s=Number(i);return!isNaN(s)&&s>=0&&s<=100},this.getPrecision=r=>{const i=r.split(".");return i.length>1?Number(i[i.length-1]):1/0},this.checkAndRemoveSuffix=r=>{var i,s,o,a;for(let l=(null===(i=this.suffix)||void 0===i?void 0:i.length)-1;l>=0;l--){const c=this.suffix.substring(l,null===(s=this.suffix)||void 0===s?void 0:s.length);if(r.includes(c)&&l!==(null===(o=this.suffix)||void 0===o?void 0:o.length)-1&&(l-1<0||!r.includes(this.suffix.substring(l-1,null===(a=this.suffix)||void 0===a?void 0:a.length))))return r.replace(c,"")}return r},this.checkInputPrecision=(r,i,s)=>{var o,a;if(i<1/0){if(Array.isArray(s)){const d=s.find(h=>h!==this.thousandSeparator);s=d||s[0]}const l=new RegExp(this._charToRegExpExpression(s)+`\\d{${i}}.*$`),c=r.match(l),u=null!==(a=c&&(null===(o=c[0])||void 0===o?void 0:o.length))&&void 0!==a?a:0;u-1>i&&(r=r.substring(0,r.length-(u-1-i))),0===i&&this._compareOrIncludes(r[r.length-1],s,this.thousandSeparator)&&(r=r.substring(0,r.length-1))}return r},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}applyMaskWithPattern(e,r){const[i,s]=r;return this.customPattern=s,this.applyMask(e,i)}applyMask(e,r,i=0,s=!1,o=!1,a=(()=>{})){var l,c,u,d,h,f,m,y,C,E,D,O,j,ie,G,Ce,Fe;if(!r||"string"!=typeof e)return"";let A=0,ee="",Z=!1,ue=!1,oe=1,Te=!1;e.slice(0,this.prefix.length)===this.prefix&&(e=e.slice(this.prefix.length,e.length)),!!this.suffix&&(null==e?void 0:e.length)>0&&(e=this.checkAndRemoveSuffix(e)),"("===e&&this.prefix&&(e="");const de=e.toString().split("");if(this.allowNegativeNumbers&&"-"===e.slice(A,A+1)&&(ee+=e.slice(A,A+1)),"IP"===r){const X=e.split(".");this.ipError=this._validIP(X),r="099.099.099.099"}const L=[];for(let X=0;X<e.length;X++)(null===(l=e[X])||void 0===l?void 0:l.match("\\d"))&&L.push(null!==(c=e[X])&&void 0!==c?c:"");if("CPF_CNPJ"===r&&(this.cpfCnpjError=11!==L.length&&14!==L.length,r=L.length>11?"00.000.000/0000-00":"000.000.000-00"),r.startsWith("percent")){if(e.match("[a-z]|[A-Z]")||e.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)&&!o){e=this._stripToDecimal(e);const Ne=this.getPrecision(r);e=this.checkInputPrecision(e,Ne,this.decimalMarker)}const X="string"==typeof this.decimalMarker?this.decimalMarker:".";if(e.indexOf(X)>0&&!this.percentage(e.substring(0,e.indexOf(X)))){let Ne=e.substring(0,e.indexOf(X)-1);this.allowNegativeNumbers&&"-"===e.slice(A,A+1)&&!o&&(Ne=e.substring(0,e.indexOf(X))),e=`${Ne}${e.substring(e.indexOf(X),e.length)}`}let re="";re=this.allowNegativeNumbers&&"-"===e.slice(A,A+1)?e.slice(A+1,A+e.length):e,ee=this.percentage(re)?this._splitPercentZero(e):this._splitPercentZero(e.substring(0,e.length-1))}else if(r.startsWith("separator")){(e.match("[w\u0430-\u044f\u0410-\u042f]")||e.match("[\u0401\u0451\u0410-\u044f]")||e.match("[a-z]|[A-Z]")||e.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\]:";<>.?/]/)||e.match("[^A-Za-z0-9,]"))&&(e=this._stripToDecimal(e));const X=this.getPrecision(r),re=Array.isArray(this.decimalMarker)?".":this.decimalMarker;0===X?e=this.allowNegativeNumbers?e.length>2&&"-"===e[0]&&"0"===e[1]&&e[2]!==this.thousandSeparator&&","!==e[2]&&"."!==e[2]?"-"+e.slice(2,e.length):"0"===e[0]&&e.length>1&&e[1]!==this.thousandSeparator&&","!==e[1]&&"."!==e[1]?e.slice(1,e.length):e:e.length>1&&"0"===e[0]&&e[1]!==this.thousandSeparator&&","!==e[1]&&"."!==e[1]?e.slice(1,e.length):e:(e[0]===re&&e.length>1&&(e="0"+e.slice(0,e.length+1),this.plusOnePosition=!0),"0"===e[0]&&e[1]!==re&&e[1]!==this.thousandSeparator&&(e=e.length>1?e.slice(0,1)+re+e.slice(1,e.length+1):e,this.plusOnePosition=!0),this.allowNegativeNumbers&&"-"===e[0]&&(e[1]===re||"0"===e[1])&&(e=e[1]===re&&e.length>2?e.slice(0,1)+"0"+e.slice(1,e.length):"0"===e[1]&&e.length>2&&e[2]!==re?e.slice(0,2)+re+e.slice(2,e.length):e,this.plusOnePosition=!0)),o&&("0"===e[0]&&e[1]===this.decimalMarker&&("0"===e[i]||e[i]===this.decimalMarker)&&(e=e.slice(2,e.length)),"-"===e[0]&&"0"===e[1]&&e[2]===this.decimalMarker&&("0"===e[i]||e[i]===this.decimalMarker)&&(e="-"+e.slice(3,e.length)),e=this._compareOrIncludes(e[e.length-1],this.decimalMarker,this.thousandSeparator)?e.slice(0,e.length-1):e);const Ne=this._charToRegExpExpression(this.thousandSeparator);let he='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(Ne,"");if(Array.isArray(this.decimalMarker))for(const Ge of this.decimalMarker)he=he.replace(this._charToRegExpExpression(Ge),"");else he=he.replace(this._charToRegExpExpression(this.decimalMarker),"");const nt=new RegExp("["+he+"]");e.match(nt)&&(e=e.substring(0,e.length-1));const Qe=(e=this.checkInputPrecision(e,X,this.decimalMarker)).replace(new RegExp(Ne,"g"),"");ee=this._formatWithSeparators(Qe,this.thousandSeparator,this.decimalMarker,X);const Re=ee.indexOf(",")-e.indexOf(","),fe=ee.length-e.length;if(fe>0&&ee[i]!==this.thousandSeparator){ue=!0;let Ge=0;do{this._shift.add(i+Ge),Ge++}while(Ge<fe)}else ee[i-1]===this.decimalMarker||-4===fe||-3===fe||","===ee[i]?(this._shift.clear(),this._shift.add(i-1)):0!==Re&&i>0&&!(ee.indexOf(",")>=i&&i>3)||!(ee.indexOf(".")>=i&&i>3)&&fe<=0?(this._shift.clear(),ue=!0,oe=fe,this._shift.add(i+=fe)):this._shift.clear()}else for(let X=0,re=de[0];X<de.length&&A!==r.length;X++,re=null!==(u=de[X])&&void 0!==u?u:""){const Ne="*"in this.patterns;if(this._checkSymbolMask(re,null!==(d=r[A])&&void 0!==d?d:"")&&"?"===r[A+1])ee+=re,A+=2;else if("*"===r[A+1]&&Z&&this._checkSymbolMask(re,null!==(h=r[A+2])&&void 0!==h?h:""))ee+=re,A+=3,Z=!1;else if(this._checkSymbolMask(re,null!==(f=r[A])&&void 0!==f?f:"")&&"*"===r[A+1]&&!Ne)ee+=re,Z=!0;else if("?"===r[A+1]&&this._checkSymbolMask(re,null!==(m=r[A+2])&&void 0!==m?m:""))ee+=re,A+=3;else if(this._checkSymbolMask(re,null!==(y=r[A])&&void 0!==y?y:"")){if("H"===r[A]&&(this.apm?Number(re)>9:Number(re)>2)){i=this.leadZeroDateTime?i:i+1,A+=1,this._shiftStep(r,A,de.length),X--,this.leadZeroDateTime&&(ee+="0");continue}if("h"===r[A]&&(this.apm?1===ee.length&&Number(ee)>1||"1"===ee&&Number(re)>2||1===e.slice(A-1,A).length&&Number(e.slice(A-1,A))>2||"1"===e.slice(A-1,A)&&Number(re)>2:"2"===ee&&Number(re)>3||("2"===ee.slice(A-2,A)||"2"===ee.slice(A-3,A)||"2"===ee.slice(A-4,A)||"2"===ee.slice(A-1,A))&&Number(re)>3&&A>10)){i+=1,A+=1,X--;continue}if(("m"===r[A]||"s"===r[A])&&Number(re)>5){i=this.leadZeroDateTime?i:i+1,A+=1,this._shiftStep(r,A,de.length),X--,this.leadZeroDateTime&&(ee+="0");continue}const he=31,nt=e[A],Qe=e[A+1],Re=e[A+2],fe=e[A-1],Ge=e[A-2],Ht=e[A-3],At=e.slice(A-3,A-1),ft=e.slice(A-1,A+1),vt=e.slice(A,A+2),Dr=e.slice(A-2,A);if("d"===r[A]){const sr="M0"===r.slice(0,2),or="M0"===r.slice(0,2)&&this.specialCharacters.includes(Ge);if(Number(re)>3&&this.leadZeroDateTime||!sr&&(Number(vt)>he||Number(ft)>he||this.specialCharacters.includes(Qe))||(or?Number(ft)>he||!this.specialCharacters.includes(nt)&&this.specialCharacters.includes(Re)||this.specialCharacters.includes(nt):Number(vt)>he||this.specialCharacters.includes(Qe))){i=this.leadZeroDateTime?i:i+1,A+=1,this._shiftStep(r,A,de.length),X--,this.leadZeroDateTime&&(ee+="0");continue}}if("M"===r[A]){const or=0===A&&(Number(re)>2||Number(vt)>12||this.specialCharacters.includes(Qe)),bt=r.slice(A+2,A+3),js=At.includes(bt)&&(this.specialCharacters.includes(Ge)&&Number(ft)>12&&!this.specialCharacters.includes(nt)||this.specialCharacters.includes(nt)||this.specialCharacters.includes(Ht)&&Number(Dr)>12&&!this.specialCharacters.includes(fe)||this.specialCharacters.includes(fe)),nn=Number(At)<=he&&!this.specialCharacters.includes(At)&&this.specialCharacters.includes(fe)&&(Number(vt)>12||this.specialCharacters.includes(Qe)),Gr=Number(vt)>12&&5===A||this.specialCharacters.includes(Qe)&&5===A,Hs=Number(At)>he&&!this.specialCharacters.includes(At)&&!this.specialCharacters.includes(Dr)&&Number(Dr)>12,pt=Number(At)<=he&&!this.specialCharacters.includes(At)&&!this.specialCharacters.includes(fe)&&Number(ft)>12;if(Number(re)>1&&this.leadZeroDateTime||or||js||pt||Hs||nn||Gr&&!this.leadZeroDateTime){i=this.leadZeroDateTime?i:i+1,A+=1,this._shiftStep(r,A,de.length),X--,this.leadZeroDateTime&&(ee+="0");continue}}ee+=re,A++}else" "===re&&" "===r[A]||"/"===re&&"/"===r[A]?(ee+=re,A++):-1!==this.specialCharacters.indexOf(null!==(C=r[A])&&void 0!==C?C:"")?(ee+=r[A],A++,this._shiftStep(r,A,de.length),X--):"9"===r[A]&&this.showMaskTyped?this._shiftStep(r,A,de.length):this.patterns[null!==(E=r[A])&&void 0!==E?E:""]&&(null===(O=this.patterns[null!==(D=r[A])&&void 0!==D?D:""])||void 0===O?void 0:O.optional)?(!!de[A]&&"099.099.099.099"!==r&&"000.000.000-00"!==r&&"00.000.000/0000-00"!==r&&!r.match(/^9+\.0+$/)&&!(null===(ie=this.patterns[null!==(j=r[A])&&void 0!==j?j:""])||void 0===ie?void 0:ie.optional)&&(ee+=de[A]),r.includes("9*")&&r.includes("0*")&&A++,A++,X--):"*"===this.maskExpression[A+1]&&this._findSpecialChar(null!==(G=this.maskExpression[A+2])&&void 0!==G?G:"")&&this._findSpecialChar(re)===this.maskExpression[A+2]&&Z||"?"===this.maskExpression[A+1]&&this._findSpecialChar(null!==(Ce=this.maskExpression[A+2])&&void 0!==Ce?Ce:"")&&this._findSpecialChar(re)===this.maskExpression[A+2]&&Z?(A+=3,ee+=re):this.showMaskTyped&&this.specialCharacters.indexOf(re)<0&&re!==this.placeHolderCharacter&&1===this.placeHolderCharacter.length&&(Te=!0)}ee.length+1===r.length&&-1!==this.specialCharacters.indexOf(null!==(Fe=r[r.length-1])&&void 0!==Fe?Fe:"")&&(ee+=r[r.length-1]);let z=i+1;for(;this._shift.has(z);)oe++,z++;let Q=s&&!r.startsWith("separator")?A:this._shift.has(i)?oe:0;Te&&Q--,a(Q,ue),oe<0&&this._shift.clear();let le=!1;o&&(le=de.every(X=>this.specialCharacters.includes(X)));let ae=`${this.prefix}${le?"":ee}${this.showMaskTyped?"":this.suffix}`;if(0===ee.length&&(ae=this.dropSpecialCharacters?`${ee}`:`${this.prefix}${ee}`),ee.includes("-")&&this.prefix&&this.allowNegativeNumbers){if(o&&"-"===ee)return"";ae=`-${this.prefix}${ee.split("-").join("")}${this.suffix}`}return ae}_findDropSpecialChar(e){return Array.isArray(this.dropSpecialCharacters)?this.dropSpecialCharacters.find(r=>r===e):this._findSpecialChar(e)}_findSpecialChar(e){return this.specialCharacters.find(r=>r===e)}_checkSymbolMask(e,r){var i,s,o;return this.patterns=this.customPattern?this.customPattern:this.patterns,null!==(o=(null===(i=this.patterns[r])||void 0===i?void 0:i.pattern)&&(null===(s=this.patterns[r])||void 0===s?void 0:s.pattern.test(e)))&&void 0!==o&&o}_stripToDecimal(e){return e.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(e){return e&&(" "===e?"\\s":"[\\^$.|?*+()".indexOf(e)>=0?`\\${e}`:e)}_shiftStep(e,r,i){const s=/[*?]/g.test(e.slice(0,r))?i:r;this._shift.add(s+this.prefix.length||0)}_compareOrIncludes(e,r,i){return Array.isArray(r)?r.filter(s=>s!==i).includes(e):e===r}_validIP(e){return!(4===e.length&&!e.some((r,i)=>e.length!==i+1?""===r||Number(r)>255:""===r||Number(r.substring(0,3))>255))}_splitPercentZero(e){const r=e.indexOf("string"==typeof this.decimalMarker?this.decimalMarker:".");if(-1===r){const i=parseInt(e,10);return isNaN(i)?"":i.toString()}{const i=parseInt(e.substring(0,r),10),s=e.substring(r+1),o=isNaN(i)?"":i.toString(),a="string"==typeof this.decimalMarker?this.decimalMarker:".";return""===o?"":o+a+s}}}return n.\u0275fac=function(e){return new(e||n)(K(Yu))},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})(),Km=(()=>{class n extends bI{constructor(e,r,i,s){super(r),this.document=e,this._config=r,this._elementRef=i,this._renderer=s,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=o=>{}}applyMask(e,r,i=0,s=!1,o=!1,a=(()=>{})){var l,c;if(!r)return e!==this.actualValue?this.actualValue:e;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(e||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(e||"#")),!e&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown+this.suffix;const u=e&&"number"==typeof this.selStart&&null!==(l=e[this.selStart])&&void 0!==l?l:"";let d="";if(void 0!==this.hiddenInput&&!this.writingValue){let y=e&&1===e.length?e.split(""):this.actualValue.split("");"object"==typeof this.selStart&&"object"==typeof this.selEnd?(this.selStart=Number(this.selStart),this.selEnd=Number(this.selEnd)):""!==e&&y.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(e.length>y.length?y.splice(this.selStart,0,u):e.length<y.length&&(y.length-e.length==1?y.splice(o?this.selStart-1:e.length-1,1):y.splice(this.selStart,this.selEnd-this.selStart))):y=[],this.showMaskTyped&&(this.hiddenInput||(e=this.removeMask(e))),d=this.actualValue.length&&y.length<=e.length?this.shiftTypedSymbols(y.join("")):e}if(s&&(this.hiddenInput||!this.hiddenInput)&&(d=e),o&&-1!==this.specialCharacters.indexOf(null!==(c=this.maskExpression[i])&&void 0!==c?c:"")&&this.showMaskTyped&&(d=this._currentValue),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&&(e=this.removeMask(e)),d=this.maskChanged?e:Boolean(d)&&d.length?d:e,this.showMaskTyped&&this.keepCharacterPositions&&this.actualValue&&!s){const y=this.dropSpecialCharacters?this.removeMask(this.actualValue):this.actualValue;return this.formControlResult(y),this.actualValue?this.actualValue:this.prefix+this.maskIsShown+this.suffix}const h=super.applyMask(d,r,i,s,o,a);if(this.actualValue=this.getActualValue(h),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.specialCharacters=this.specialCharacters.filter(y=>!this._compareOrIncludes(y,this.decimalMarker,this.thousandSeparator))),(h||""===h)&&(this._previousValue=this._currentValue,this._currentValue=h,this._emitValue=this._previousValue!==this._currentValue||this.maskChanged||this._previousValue===this._currentValue&&s),this._emitValue&&this.formControlResult(h),!this.showMaskTyped||this.showMaskTyped&&this.hiddenInput)return this.hiddenInput?o?this.hideInput(h,this.maskExpression):this.hideInput(h,this.maskExpression)+this.maskIsShown.slice(h.length):h;const f=h.length,m=this.prefix+this.maskIsShown+this.suffix;if(this.maskExpression.includes("H")){const y=this._numberSkipedSymbols(h);return h+m.slice(f+y)}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?h+m:h+m.slice(f)}_numberSkipedSymbols(e){const r=/(^|\D)(\d\D)/g;let i=r.exec(e),s=0;for(;null!=i;)s+=1,i=r.exec(e);return s}applyValueChanges(e,r,i,s=(()=>{})){var o;const a=null===(o=this._elementRef)||void 0===o?void 0:o.nativeElement;!a||(a.value=this.applyMask(a.value,this.maskExpression,e,r,i,s),a!==this._getActiveElement()&&this.clearIfNotMatchFn())}hideInput(e,r){return e.split("").map((i,s)=>{var o,a,l,c,u;return this.patterns&&this.patterns[null!==(o=r[s])&&void 0!==o?o:""]&&(null===(l=this.patterns[null!==(a=r[s])&&void 0!==a?a:""])||void 0===l?void 0:l.symbol)?null===(u=this.patterns[null!==(c=r[s])&&void 0!==c?c:""])||void 0===u?void 0:u.symbol:i}).join("")}getActualValue(e){const r=e.split("").filter((i,s)=>{var o;const a=null!==(o=this.maskExpression[s])&&void 0!==o?o:"";return this._checkSymbolMask(i,a)||this.specialCharacters.includes(a)&&i===a});return r.join("")===e?r.join(""):e}shiftTypedSymbols(e){let r="";return(e&&e.split("").map((s,o)=>{var a;if(this.specialCharacters.includes(null!==(a=e[o+1])&&void 0!==a?a:"")&&e[o+1]!==this.maskExpression[o+1])return r=s,e[o+1];if(r.length){const l=r;return r="",l}return s})||[]).join("")}numberToString(e){return!e&&0!==e||this.maskExpression.startsWith("separator")&&(this.leadZero||!this.dropSpecialCharacters)||this.maskExpression.startsWith("separator")&&this.separatorLimit.length>14&&String(e).length>14?String(e):Number(e).toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20}).replace("/-/","-")}showMaskInInput(e){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(e){if("IP"===this.maskExpression)return this._checkForIp(e);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(e)}return this.placeHolderCharacter.length===this.maskExpression.length?this.placeHolderCharacter:this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){var e;const r=null===(e=this._elementRef)||void 0===e?void 0:e.nativeElement;!r||this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==r.value.replace(this.placeHolderCharacter,"").length&&(this.formElementProperty=["value",""],this.applyMask("",this.maskExpression))}set formElementProperty([e,r]){!this._renderer||!this._elementRef||Promise.resolve().then(()=>{var i,s;return null===(i=this._renderer)||void 0===i?void 0:i.setProperty(null===(s=this._elementRef)||void 0===s?void 0:s.nativeElement,e,r)})}checkDropSpecialCharAmount(e){return e.split("").filter(i=>this._findDropSpecialChar(i)).length}removeMask(e){return this._removeMask(this._removeSuffix(this._removePrefix(e)),this.specialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(e){var r;if("#"===e)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const i=[];for(let s=0;s<e.length;s++){const o=null!==(r=e[s])&&void 0!==r?r:"";!o||o.match("\\d")&&i.push(o)}return i.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>3&&i.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>6&&i.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(e){var r;const i=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,s=`${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("#"===e)return i;const o=[];for(let a=0;a<e.length;a++){const l=null!==(r=e[a])&&void 0!==r?r:"";!l||l.match("\\d")&&o.push(l)}return o.length<=3?i.slice(o.length,i.length):o.length>3&&o.length<=6?i.slice(o.length+1,i.length):o.length>6&&o.length<=9?i.slice(o.length+2,i.length):o.length>9&&o.length<11?i.slice(o.length+3,i.length):11===o.length?"":12===o.length?s.slice(17===e.length?16:15,s.length):o.length>12&&o.length<=14?s.slice(o.length+4,s.length):""}_getActiveElement(e=this.document){var r;const i=null===(r=null==e?void 0:e.activeElement)||void 0===r?void 0:r.shadowRoot;return(null==i?void 0:i.activeElement)?this._getActiveElement(i):e.activeElement}formControlResult(e){if(this.writingValue||!this.triggerOnMaskChange&&this.maskChanged)return this.maskChanged&&this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeSuffix(this._removePrefix(e)))))),void(this.maskChanged=!1);Array.isArray(this.dropSpecialCharacters)?this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeMask(this._removeSuffix(this._removePrefix(e)),this.dropSpecialCharacters))))):this.onChange(this.outputTransformFn(this._toNumber(this.dropSpecialCharacters||!this.dropSpecialCharacters&&this.prefix===e?this._checkSymbols(this._removeSuffix(this._removePrefix(e))):e)))}_toNumber(e){if(!this.isNumberValue||""===e||this.maskExpression.startsWith("separator")&&(this.leadZero||!this.dropSpecialCharacters))return e;if(String(e).length>16&&this.separatorLimit.length>14)return String(e);const r=Number(e);if(this.maskExpression.startsWith("separator")&&Number.isNaN(r)){const i=String(e).replace(",",".");return Number(i)}return Number.isNaN(r)?e:r}_removeMask(e,r){return this.maskExpression.startsWith("percent")&&e.includes(".")?e:e&&e.replace(this._regExpForRemove(r),"")}_removePrefix(e){return this.prefix?e&&e.replace(this.prefix,""):e}_removeSuffix(e){return this.suffix?e&&e.replace(this.suffix,""):e}_retrieveSeparatorValue(e){let r=Array.isArray(this.dropSpecialCharacters)?this.specialCharacters.filter(i=>this.dropSpecialCharacters.includes(i)):this.specialCharacters;return!this.deletedSpecialCharacter&&this._checkPatternForSpace()&&e.includes(" ")&&this.maskExpression.includes("*")&&(r=r.filter(i=>" "!==i)),this._removeMask(e,r)}_regExpForRemove(e){return new RegExp(e.map(r=>`\\${r}`).join("|"),"gi")}_replaceDecimalMarkerToDot(e){const r=Array.isArray(this.decimalMarker)?this.decimalMarker:[this.decimalMarker];return e.replace(this._regExpForRemove(r),".")}_checkSymbols(e){if(""===e)return e;this.maskExpression.startsWith("percent")&&","===this.decimalMarker&&(e=e.replace(",","."));const r=this._retrieveSeparatorPrecision(this.maskExpression),i=this._replaceDecimalMarkerToDot(this._retrieveSeparatorValue(e));return this.isNumberValue&&r?e===this.decimalMarker?null:this.separatorLimit.length>14?String(i):this._checkPrecision(this.maskExpression,i):i}_checkPatternForSpace(){var e,r,i;for(const s in this.patterns)if(this.patterns[s]&&(null===(e=this.patterns[s])||void 0===e?void 0:e.hasOwnProperty("pattern"))){const o=null===(r=this.patterns[s])||void 0===r?void 0:r.pattern.toString(),a=null===(i=this.patterns[s])||void 0===i?void 0:i.pattern;if((null==o?void 0:o.includes(" "))&&(null==a?void 0:a.test(this.maskExpression)))return!0}return!1}_retrieveSeparatorPrecision(e){const r=e.match(new RegExp("^separator\\.([^d]*)"));return r?Number(r[1]):null}_checkPrecision(e,r){const i=e.slice(10,11);return e.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(e){return e.match(/{[0-9]+}/)&&e.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(e.slice(this._start+1,this._end)),a=new Array(o+1).join(e[this._start-1]);if(e.slice(0,this._start).length>1&&e.includes("S")){const l=e.slice(0,this._start-1);return l.includes("{")?r+a:l+r+a}return r+a},"")||e}currentLocaleDecimalMarker(){return 1.1.toLocaleString().substring(1,2)}}return n.\u0275fac=function(e){return new(e||n)(K(Jt),K(Yu),K(Vn,8),K(oi,8))},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})(),wI=(()=>{class n{constructor(e,r,i){this.document=e,this._config=r,this._maskService=i,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 ze,this._maskValue="",this._isFocused=!1,this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this._isComposing=!1,this.onChange=s=>{},this.onTouch=()=>{}}ngOnChanges(e){const{maskExpression:r,specialCharacters:i,patterns:s,prefix:o,suffix:a,thousandSeparator:l,decimalMarker:c,dropSpecialCharacters:u,hiddenInput:d,showMaskTyped:h,placeHolderCharacter:f,shownMaskExpression:m,showTemplate:y,clearIfNotMatch:C,validation:E,separatorLimit:D,allowNegativeNumbers:O,leadZeroDateTime:j,leadZero:ie,triggerOnMaskChange:G,apm:Ce,inputTransformFn:Fe,outputTransformFn:A,keepCharacterPositions:ee}=e;if(r&&(r.currentValue!==r.previousValue&&!r.firstChange&&(this._maskService.maskChanged=!0),r.currentValue&&r.currentValue.split("||").length>1?(this._maskExpressionArray=r.currentValue.split("||").sort((Z,ue)=>Z.length-ue.length),this._setMask()):(this._maskExpressionArray=[],this._maskValue=r.currentValue||"",this._maskService.maskExpression=this._maskValue)),i){if(!i.currentValue||!Array.isArray(i.currentValue))return;this._maskService.specialCharacters=i.currentValue||[]}O&&(this._maskService.allowNegativeNumbers=O.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.specialCharacters=this._maskService.specialCharacters.filter(Z=>"-"!==Z))),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),h&&(this._maskService.showMaskTyped=h.currentValue,!1===h.previousValue&&!0===h.currentValue&&this._isFocused&&requestAnimationFrame(()=>{var Z;null===(Z=this._maskService._elementRef)||void 0===Z||Z.nativeElement.click()})),f&&(this._maskService.placeHolderCharacter=f.currentValue),m&&(this._maskService.shownMaskExpression=m.currentValue),y&&(this._maskService.showTemplate=y.currentValue),C&&(this._maskService.clearIfNotMatch=C.currentValue),E&&(this._maskService.validation=E.currentValue),D&&(this._maskService.separatorLimit=D.currentValue),j&&(this._maskService.leadZeroDateTime=j.currentValue),ie&&(this._maskService.leadZero=ie.currentValue),G&&(this._maskService.triggerOnMaskChange=G.currentValue),Fe&&(this._maskService.inputTransformFn=Fe.currentValue),A&&(this._maskService.outputTransformFn=A.currentValue),ee&&(this._maskService.keepCharacterPositions=ee.currentValue),this._applyMask()}validate({value:e}){var r,i,s;if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(e);if(this._maskService.cpfCnpjError)return this._createValidationError(e);if(this._maskValue.startsWith("separator")||vI.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if(_I.includes(this._maskValue))return this._validateTime(e);if(e&&e.toString().length>=1){let o=0;if(this._maskValue.startsWith("percent"))return null;for(const a in this._maskService.patterns)if((null===(r=this._maskService.patterns[a])||void 0===r?void 0:r.optional)&&(this._maskValue.indexOf(a)!==this._maskValue.lastIndexOf(a)?o+=this._maskValue.split("").filter(c=>c===a).join("").length:-1!==this._maskValue.indexOf(a)&&o++,-1!==this._maskValue.indexOf(a)&&e.toString().length>=this._maskValue.indexOf(a)||o===this._maskValue.length))return null;if(1===this._maskValue.indexOf("{")&&e.toString().length===this._maskValue.length+Number((null!==(i=this._maskValue.split("{")[1])&&void 0!==i?i:"").split("}")[0])-4)return null;if(this._maskValue.indexOf("*")>1&&e.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&e.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(e);if(-1===this._maskValue.indexOf("*")||-1===this._maskValue.indexOf("?")){e="number"==typeof e?String(e):e;const a=this._maskValue.split("*"),l=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkDropSpecialCharAmount(this._maskValue)-o:this.prefix?this._maskValue.length+this.prefix.length-o:this._maskValue.length-o;if(1===a.length&&e.toString().length<l)return this._createValidationError(e);if(a.length>1){const c=a[a.length-1];if(c&&this._maskService.specialCharacters.includes(c[0])&&String(e).includes(null!==(s=c[0])&&void 0!==s?s:"")&&!this.dropSpecialCharacters){const u=e.split(c[0]);return u[u.length-1].length===c.length-1?null:this._createValidationError(e)}return(c&&!this._maskService.specialCharacters.includes(c[0])||!c||this._maskService.dropSpecialCharacters)&&e.length>=l-1?null:this._createValidationError(e)}}if(1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null}return e&&this.maskFilled.emit(),null}onPaste(){this._justPasted=!0}onFocus(){this._isFocused=!0}onModelChange(e){(""===e||null==e)&&this._maskService.actualValue&&(this._maskService.actualValue=this._maskService.getActualValue(""))}onInput(e){var r,i,s,o,a;if(this._isComposing)return;const l=e.target,c=this._maskService.inputTransformFn(l.value);if("number"!==l.type)if("string"==typeof c||"number"==typeof c){if(l.value=c.toString(),this._inputValue=l.value,this._setMask(),!this._maskValue)return void this.onChange(l.value);let u=1===l.selectionStart?l.selectionStart+this._maskService.prefix.length:l.selectionStart;if(this.showMaskTyped&&this.keepCharacterPositions&&1===this._maskService.placeHolderCharacter.length){const m=l.value.slice(u-1,u),y=this.prefix.length,C=this._maskService._checkSymbolMask(m,null!==(r=this._maskService.maskExpression[u-1-y])&&void 0!==r?r:""),E=this._maskService._checkSymbolMask(m,null!==(i=this._maskService.maskExpression[u+1-y])&&void 0!==i?i:""),D=this._maskService.selStart===this._maskService.selEnd,O=null!==(s=Number(this._maskService.selStart)-y)&&void 0!==s?s:"",j=null!==(o=Number(this._maskService.selEnd)-y)&&void 0!==o?o:"";if("Backspace"===this._code)if(D){if(!this._maskService.specialCharacters.includes(this._maskService.maskExpression.slice(u-this.prefix.length,u+1-this.prefix.length))&&D)if(1===O&&this.prefix)this._maskService.actualValue=this.prefix+this._maskService.placeHolderCharacter+l.value.split(this.prefix).join("").split(this.suffix).join("")+this.suffix,u-=1;else{const ie=l.value.substring(0,u),G=l.value.substring(u);this._maskService.actualValue=ie+this._maskService.placeHolderCharacter+G}}else this._maskService.actualValue=this._maskService.selStart===y?this.prefix+this._maskService.maskIsShown.slice(0,j)+this._inputValue.split(this.prefix).join(""):this._maskService.selStart===this._maskService.maskIsShown.length+y?this._inputValue+this._maskService.maskIsShown.slice(O,j):this.prefix+this._inputValue.split(this.prefix).join("").slice(0,O)+this._maskService.maskIsShown.slice(O,j)+this._maskService.actualValue.slice(j+y,this._maskService.maskIsShown.length+y)+this.suffix;"Backspace"!==this._code&&(C||E||!D?this._maskService.specialCharacters.includes(l.value.slice(u,u+1))&&E&&!this._maskService.specialCharacters.includes(l.value.slice(u+1,u+2))?(this._maskService.actualValue=l.value.slice(0,u-1)+l.value.slice(u,u+1)+m+l.value.slice(u+2),u+=1):C?this._maskService.actualValue=1===l.value.length&&1===u?this.prefix+m+this._maskService.maskIsShown.slice(1,this._maskService.maskIsShown.length)+this.suffix:l.value.slice(0,u-1)+m+l.value.slice(u+1).split(this.suffix).join("")+this.suffix:this.prefix&&1===l.value.length&&u-y==1&&this._maskService._checkSymbolMask(l.value,null!==(a=this._maskService.maskExpression[u-1-y])&&void 0!==a?a:"")&&(this._maskService.actualValue=this.prefix+l.value+this._maskService.maskIsShown.slice(1,this._maskService.maskIsShown.length)+this.suffix):u=Number(l.selectionStart)-1)}let d=0,h=!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&&u<10){const m=this._inputValue.slice(u-1,u);l.value=this._inputValue.slice(0,u-1)+m+this._inputValue.slice(u+1)}if("d0/M0/0000"===this._maskService.maskExpression&&this.leadZeroDateTime&&(u<3&&Number(l.value)>31&&Number(l.value)<40||5===u&&Number(l.value.slice(3,5))>12)&&(u+=2),"Hh:m0:s0"===this._maskService.maskExpression&&this.apm&&(this._justPasted&&"00"===l.value.slice(0,2)&&(l.value=l.value.slice(1,2)+l.value.slice(2,l.value.length)),l.value="00"===l.value?"0":l.value),this._maskService.applyValueChanges(u,this._justPasted,"Backspace"===this._code||"Delete"===this._code,(m,y)=>{this._justPasted=!1,d=m,h=y}),this._getActiveElement()!==l)return;this._maskService.plusOnePosition&&(u+=1,this._maskService.plusOnePosition=!1),this._maskExpressionArray.length&&(u="Backspace"===this._code?this.specialCharacters.includes(this._inputValue.slice(u-1,u))?u-1:u:1===l.selectionStart?l.selectionStart+this._maskService.prefix.length:l.selectionStart),this._position=1===this._position&&1===this._inputValue.length?null:this._position;let f=this._position?this._inputValue.length+u+d:u+("Backspace"!==this._code||h?d:0);f>this._getActualInputLength()&&(f=l.value===this._maskService.decimalMarker&&1===l.value.length?this._getActualInputLength()+1:this._getActualInputLength()),f<0&&(f=0),l.setSelectionRange(f,f),this._position=null}else console.warn("Ngx-mask writeValue work with string | number, your current value:",typeof c);else{if(!this._maskValue)return void this.onChange(l.value);this._maskService.applyValueChanges(l.value.length,this._justPasted,"Backspace"===this._code||"Delete"===this._code)}}onCompositionStart(){this._isComposing=!0}onCompositionEnd(e){this._isComposing=!1,this._justPasted=!0,this.onInput(e)}onBlur(e){if(this._maskValue){const r=e.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._isFocused=!1,this.onTouch()}onClick(e){if(!this._maskValue)return;const r=e.target;null!==r&&null!==r.selectionStart&&r.selectionStart===r.selectionEnd&&r.selectionStart>this._maskService.prefix.length&&38!==e.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(e){var r,i;if(!this._maskValue)return;if(this._isComposing)return void("Enter"===e.key&&this.onCompositionEnd(e));this._code=e.code?e.code:e.key;const s=e.target;if(this._inputValue=s.value,this._setMask(),"number"!==s.type){if("ArrowUp"===e.key&&e.preventDefault(),"ArrowLeft"===e.key||"Backspace"===e.key||"Delete"===e.key){if("Backspace"===e.key&&0===s.value.length&&(s.selectionStart=s.selectionEnd),"Backspace"===e.key&&0!==s.selectionStart)if(this.specialCharacters=(null===(r=this.specialCharacters)||void 0===r?void 0:r.length)?this.specialCharacters:this._config.specialCharacters,this.prefix.length>1&&s.selectionStart<=this.prefix.length)s.setSelectionRange(this.prefix.length,s.selectionEnd);else if(this._inputValue.length!==s.selectionStart&&1!==s.selectionStart)for(;this.specialCharacters.includes((null!==(i=this._inputValue[s.selectionStart-1])&&void 0!==i?i:"").toString())&&(this.prefix.length>=1&&s.selectionStart>this.prefix.length||0===this.prefix.length);)s.setSelectionRange(s.selectionStart-1,s.selectionEnd);this.checkSelectionOnDeletion(s),this._maskService.prefix.length&&s.selectionStart<=this._maskService.prefix.length&&s.selectionEnd<=this._maskService.prefix.length&&e.preventDefault();const o=s.selectionStart;"Backspace"===e.key&&!s.readOnly&&0===o&&s.selectionEnd===s.value.length&&0!==s.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<s.selectionStart?s.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length):("KeyA"===e.code&&e.ctrlKey||"KeyA"===e.code&&e.metaKey)&&(s.setSelectionRange(0,this._getActualInputLength()),e.preventDefault()),this._maskService.selStart=s.selectionStart,this._maskService.selEnd=s.selectionEnd}}writeValue(e){var r;return Kl(this,void 0,void 0,function*(){if("object"==typeof e&&null!==e&&"value"in e&&("disable"in e&&this.setDisabledState(Boolean(e.disable)),e=e.value),null!==e&&(e=this.inputTransformFn?this.inputTransformFn(e):e),"string"==typeof e||"number"==typeof e||null==e){(null==e||""===e)&&(this._maskService._currentValue="",this._maskService._previousValue="");let i=e;if("number"==typeof i||this._maskValue.startsWith("separator")){i=String(i);const s=this._maskService.currentLocaleDecimalMarker();Array.isArray(this._maskService.decimalMarker)||(i=this._maskService.decimalMarker!==s?i.replace(s,this._maskService.decimalMarker):i),this._maskService.leadZero&&i&&this.maskExpression&&!1!==this.dropSpecialCharacters&&(i=this._maskService._checkPrecision(this._maskService.maskExpression,i)),","===this._maskService.decimalMarker&&(i=i.toString().replace(".",",")),(null===(r=this.maskExpression)||void 0===r?void 0:r.startsWith("separator"))&&this.leadZero&&requestAnimationFrame(()=>{var o;this._maskService.applyMask(null!==(o=null==i?void 0:i.toString())&&void 0!==o?o:"",this._maskService.maskExpression)}),this._maskService.isNumberValue=!0}"string"!=typeof i&&(i=""),this._inputValue=i,this._setMask(),i&&this._maskService.maskExpression||this._maskService.maskExpression&&(this._maskService.prefix||this._maskService.showMaskTyped)?("function"!=typeof this.inputTransformFn&&(this._maskService.writingValue=!0),this._maskService.formElementProperty=["value",this._maskService.applyMask(i,this._maskService.maskExpression)],"function"!=typeof this.inputTransformFn&&(this._maskService.writingValue=!1)):this._maskService.formElementProperty=["value",i],this._inputValue=i}else console.warn("Ngx-mask writeValue work with string | number, your current value:",typeof e)})}registerOnChange(e){this._maskService.onChange=this.onChange=e}registerOnTouched(e){this.onTouch=e}_getActiveElement(e=this.document){var r;const i=null===(r=null==e?void 0:e.activeElement)||void 0===r?void 0:r.shadowRoot;return(null==i?void 0:i.activeElement)?this._getActiveElement(i):e.activeElement}checkSelectionOnDeletion(e){e.selectionStart=Math.min(Math.max(this.prefix.length,e.selectionStart),this._inputValue.length-this.suffix.length),e.selectionEnd=Math.min(Math.max(this.prefix.length,e.selectionEnd),this._inputValue.length-this.suffix.length)}setDisabledState(e){this._maskService.formElementProperty=["disabled",e]}_applyMask(){this._maskService.maskExpression=this._maskService._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(e){var r;const i=this._maskValue.split("").filter(s=>":"!==s).length;return e&&(0==+(null!==(r=e[e.length-1])&&void 0!==r?r:-1)&&e.length<i||e.length<=i-2)?this._createValidationError(e):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(e){return{mask:{requiredMask:this._maskValue,actualValue:e}}}_setMask(){this._maskExpressionArray.some(e=>{var r,i,s,o;if(e.split("").some(l=>this._maskService.specialCharacters.includes(l))&&this._inputValue&&!e.includes("S")||e.includes("{")){const l=(null===(r=this._maskService.removeMask(this._inputValue))||void 0===r?void 0:r.length)<=(null===(i=this._maskService.removeMask(e))||void 0===i?void 0:i.length);if(l)return this._maskValue=this.maskExpression=this._maskService.maskExpression=e.includes("{")?this._maskService._repeatPatternSymbols(e):e,l;{const c=null!==(s=this._maskExpressionArray[this._maskExpressionArray.length-1])&&void 0!==s?s:"";this._maskValue=this.maskExpression=this._maskService.maskExpression=c.includes("{")?this._maskService._repeatPatternSymbols(c):c}}else{const l=null===(o=this._maskService.removeMask(this._inputValue))||void 0===o?void 0:o.split("").every((c,u)=>{const d=e.charAt(u);return this._maskService._checkSymbolMask(c,d)});if(l)return this._maskValue=this.maskExpression=this._maskService.maskExpression=e,l}})}}return n.\u0275fac=function(e){return new(e||n)(k(Jt),k(Yu),k(Km))},n.\u0275dir=we({type:n,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(e,r){1&e&&Oe("paste",function(){return r.onPaste()})("focus",function(s){return r.onFocus(s)})("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:["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"},exportAs:["mask","ngxMask"],features:[ut([{provide:nr,useExisting:Xe(()=>n),multi:!0},{provide:vn,useExisting:Xe(()=>n),multi:!0},Km]),kr]}),n})();function CI(n,t){return Object.assign(Object.assign({},n),t instanceof Function?t():t)}let Zm=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:_8,useValue:e},{provide:v8,useValue:yI},{provide:Yu,useFactory:CI,deps:[v8,_8]},Km]}}static forChild(){return{ngModule:n}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ct({type:n}),n.\u0275inj=gt({}),n})();const b8=["toast-component",""];function DI(n,t){if(1&n){const e=Mn();H(0,"button",5),Oe("click",function(){return Et(e),Y().remove()}),H(1,"span",6),me(2,"\xd7"),U()()}}function EI(n,t){if(1&n&&(lt(0),me(1),ct()),2&n){const e=Y(2);P(1),zt("[",e.duplicatesCount+1,"]")}}function SI(n,t){if(1&n&&(H(0,"div"),me(1),J(2,EI,2,1,"ng-container",4),U()),2&n){const e=Y();Ci(e.options.titleClass),Sn("aria-label",e.title),P(1),zt(" ",e.title," "),P(1),N("ngIf",e.duplicatesCount)}}function MI(n,t){if(1&n&&Ze(0,"div",7),2&n){const e=Y();Ci(e.options.messageClass),N("innerHTML",e.message,ff)}}function TI(n,t){if(1&n&&(H(0,"div",8),me(1),U()),2&n){const e=Y();Ci(e.options.messageClass),Sn("aria-label",e.message),P(1),zt(" ",e.message," ")}}function xI(n,t){if(1&n&&(H(0,"div"),Ze(1,"div",9),U()),2&n){const e=Y();P(1),Fo("width",e.width+"%")}}function AI(n,t){if(1&n){const e=Mn();H(0,"button",5),Oe("click",function(){return Et(e),Y().remove()}),H(1,"span",6),me(2,"\xd7"),U()()}}function II(n,t){if(1&n&&(lt(0),me(1),ct()),2&n){const e=Y(2);P(1),zt("[",e.duplicatesCount+1,"]")}}function kI(n,t){if(1&n&&(H(0,"div"),me(1),J(2,II,2,1,"ng-container",4),U()),2&n){const e=Y();Ci(e.options.titleClass),Sn("aria-label",e.title),P(1),zt(" ",e.title," "),P(1),N("ngIf",e.duplicatesCount)}}function PI(n,t){if(1&n&&Ze(0,"div",7),2&n){const e=Y();Ci(e.options.messageClass),N("innerHTML",e.message,ff)}}function NI(n,t){if(1&n&&(H(0,"div",8),me(1),U()),2&n){const e=Y();Ci(e.options.messageClass),Sn("aria-label",e.message),P(1),zt(" ",e.message," ")}}function OI(n,t){if(1&n&&(H(0,"div"),Ze(1,"div",9),U()),2&n){const e=Y();P(1),Fo("width",e.width+"%")}}class FI{constructor(t,e){this.component=t,this.injector=e}attach(t,e){return this._attachedHost=t,t.attach(this,e)}detach(){const t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Ju{constructor(t,e,r,i,s,o){this.toastId=t,this.config=e,this.message=r,this.title=i,this.toastType=s,this.toastRef=o,this._onTap=new Qt,this._onAction=new Qt,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(t){this._onAction.next(t)}onAction(){return this._onAction.asObservable()}}const w8={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",payload:null},C8=new pe("ToastConfig");class LI{constructor(t){this._overlayRef=t,this.duplicatesCount=0,this._afterClosed=new Qt,this._activate=new Qt,this._manualClose=new Qt,this._resetTimeout=new Qt,this._countDuplicate=new Qt}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(t,e){t&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class $I{constructor(t,e){this._toastPackage=t,this._parentInjector=e}get(t,e,r){return t===Ju?this._toastPackage:this._parentInjector.get(t,e,r)}}class VI extends class RI{attach(t,e){return this._attachedPortal=t,this.attachComponentPortal(t,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(t){this._disposeFn=t}}{constructor(t,e,r){super(),this._hostDomElement=t,this._componentFactoryResolver=e,this._appRef=r}attachComponentPortal(t,e){const r=this._componentFactoryResolver.resolveComponentFactory(t.component);let i;return i=r.create(t.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}class BI{constructor(t){this._portalHost=t}attach(t,e=!0){return this._portalHost.attach(t,e)}detach(){return this._portalHost.detach()}}let jI=(()=>{class n{constructor(e){this._document=e}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._document.createElement("div");e.classList.add("overlay-container"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),this._containerElement=e}}return n.\u0275fac=function(e){return new(e||n)(K(Jt))},n.\u0275prov=ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),HI=(()=>{class n{constructor(e,r,i,s){this._overlayContainer=e,this._componentFactoryResolver=r,this._appRef=i,this._document=s,this._paneElements=new Map}create(e,r){return this._createOverlayRef(this.getPaneElement(e,r))}getPaneElement(e="",r){return this._paneElements.get(r)||this._paneElements.set(r,{}),this._paneElements.get(r)[e]||(this._paneElements.get(r)[e]=this._createPaneElement(e,r)),this._paneElements.get(r)[e]}_createPaneElement(e,r){const i=this._document.createElement("div");return i.id="toast-container",i.classList.add(e),i.classList.add("toast-container"),r?r.getContainerElement().appendChild(i):this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalHost(e){return new VI(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new BI(this._createPortalHost(e))}}return n.\u0275fac=function(e){return new(e||n)(K(jI),K(Es),K(ll),K(Jt))},n.\u0275prov=ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Xu=(()=>{class n{constructor(e,r,i,s,o){this.overlay=r,this._injector=i,this.sanitizer=s,this.ngZone=o,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},e.default),e.config),e.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},e.default.iconClasses),e.config.iconClasses))}show(e,r,i={},s=""){return this._preBuildNotification(s,e,r,this.applyConfig(i))}success(e,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",e,r,this.applyConfig(i))}error(e,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",e,r,this.applyConfig(i))}info(e,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",e,r,this.applyConfig(i))}warning(e,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",e,r,this.applyConfig(i))}clear(e){for(const r of this.toasts)if(void 0!==e){if(r.toastId===e)return void r.toastRef.manualClose()}else r.toastRef.manualClose()}remove(e){const r=this._findToast(e);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(e="",r="",i,s){const{includeTitleDuplicates:o}=this.toastrConfig;for(const a of this.toasts){const l=o&&a.title===e;if((!o||l)&&a.message===r)return a.toastRef.onDuplicate(i,s),a}return null}applyConfig(e={}){return Object.assign(Object.assign({},this.toastrConfig),e)}_findToast(e){for(let r=0;r<this.toasts.length;r++)if(this.toasts[r].toastId===e)return{index:r,activeToast:this.toasts[r]};return null}_preBuildNotification(e,r,i,s){return s.onActivateTick?this.ngZone.run(()=>this._buildNotification(e,r,i,s)):this._buildNotification(e,r,i,s)}_buildNotification(e,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(at.HTML,r));const u=new LI(l),d=new Ju(this.index,s,c,i,e,u),h=new $I(d,this._injector),f=new FI(s.toastComponent,h),m=l.attach(f,this.toastrConfig.newestOnTop);u.componentInstance=m.instance;const y={toastId:this.index,title:i||"",message:r||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:m};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{y.toastRef.activate()})),this.toasts.push(y),y}}return n.\u0275fac=function(e){return new(e||n)(K(C8),K(HI),K(_t),K(Db),K(cn))},n.\u0275prov=ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),UI=(()=>{class n{constructor(e,r,i){this.toastrService=e,this.toastPackage=r,this.ngZone=i,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},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})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{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 e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{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&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=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=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(e,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(e),r)):this.timeout=setTimeout(()=>e(),r)}outsideInterval(e,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(e),r)):this.intervalId=setInterval(()=>e(),r)}runInsideAngular(e){this.ngZone?this.ngZone.run(()=>e()):e()}}return n.\u0275fac=function(e){return new(e||n)(k(Xu),k(Ju),k(cn))},n.\u0275cmp=Mt({type:n,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,r){1&e&&Oe("click",function(){return r.tapToast()})("mouseenter",function(){return r.stickAround()})("mouseleave",function(){return r.delayedHideToast()}),2&e&&(Hc("@flyInOut",r.state),Ci(r.toastClasses),Fo("display",r.displayStyle))},attrs:b8,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(e,r){1&e&&(J(0,DI,3,0,"button",0),J(1,SI,3,5,"div",1),J(2,MI,1,3,"div",2),J(3,TI,2,4,"div",3),J(4,xI,2,2,"div",4)),2&e&&(N("ngIf",r.options.closeButton),P(1),N("ngIf",r.title),P(1),N("ngIf",r.message&&r.options.enableHtml),P(1),N("ngIf",r.message&&!r.options.enableHtml),P(1),N("ngIf",r.options.progressBar))},directives:[Un],encapsulation:2,data:{animation:[Ko("flyInOut",[vl("inactive",Bt({opacity:0})),vl("active",Bt({opacity:1})),vl("removed",Bt({opacity:0})),qr("inactive => active",zr("{{ easeTime }}ms {{ easing }}")),qr("active => removed",zr("{{ easeTime }}ms {{ easing }}"))])]}}),n})();const zI=Object.assign(Object.assign({},w8),{toastComponent:UI});let qI=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[{provide:C8,useValue:{default:zI,config:e}}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ct({type:n}),n.\u0275inj=gt({imports:[[fu]]}),n})(),GI=(()=>{class n{constructor(e,r,i){this.toastrService=e,this.toastPackage=r,this.appRef=i,this.width=-1,this.toastClasses="",this.state="inactive",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})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!(!0===this.options.disableTimeOut||"timeOut"===this.options.disableTimeOut)&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return n.\u0275fac=function(e){return new(e||n)(k(Xu),k(Ju),k(ll))},n.\u0275cmp=Mt({type:n,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,r){1&e&&Oe("click",function(){return r.tapToast()})("mouseenter",function(){return r.stickAround()})("mouseleave",function(){return r.delayedHideToast()}),2&e&&(Ci(r.toastClasses),Fo("display",r.displayStyle))},attrs:b8,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(e,r){1&e&&(J(0,AI,3,0,"button",0),J(1,kI,3,5,"div",1),J(2,PI,1,3,"div",2),J(3,NI,2,4,"div",3),J(4,OI,2,2,"div",4)),2&e&&(N("ngIf",r.options.closeButton),P(1),N("ngIf",r.title),P(1),N("ngIf",r.message&&r.options.enableHtml),P(1),N("ngIf",r.message&&!r.options.enableHtml),P(1),N("ngIf",r.options.progressBar))},directives:[Un],encapsulation:2}),n})();Object.assign(Object.assign({},w8),{toastComponent:GI}),function(n){function t(c){for(var u,d,h=c[0],f=c[1],m=0,y=[];m<h.length;m++)d=h[m],Object.prototype.hasOwnProperty.call(r,d)&&r[d]&&y.push(r[d][0]),r[d]=0;for(u in f)Object.prototype.hasOwnProperty.call(f,u)&&(n[u]=f[u]);for(l&&l(c);y.length;)y.shift()()}var e={},r={0:0};function i(c){if(e[c])return e[c].exports;var u=e[c]={i:c,l:!1,exports:{}};return n[c].call(u.exports,u,u.exports,i),u.l=!0,u.exports}i.e=function(){return Promise.resolve()},i.m=n,i.c=e,i.d=function(c,u,d){i.o(c,u)||Object.defineProperty(c,u,{enumerable:!0,get:d})},i.r=function(c){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},i.t=function(c,u){if(1&u&&(c=i(c)),8&u||4&u&&"object"==typeof c&&c&&c.__esModule)return c;var d=Object.create(null);if(i.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:c}),2&u&&"string"!=typeof c)for(var h in c)i.d(d,h,function(f){return c[f]}.bind(null,h));return d},i.n=function(c){var u=c&&c.__esModule?function(){return c.default}:function(){return c};return i.d(u,"a",u),u},i.o=function(c,u){return Object.prototype.hasOwnProperty.call(c,u)},i.p="",i.oe=function(c){throw console.error(c),c};var s=window.webpackJsonp=window.webpackJsonp||[],o=s.push.bind(s);s.push=t,s=s.slice();for(var a=0;a<s.length;a++)t(s[a]);var l=o;i(i.s=103)}({103:function(n,t,e){e.r(t),function(r){var i=e(14);function s(m,y,C,E,D,O,j){try{var ie=m[O](j),G=ie.value}catch(Ce){return void C(Ce)}ie.done?y(G):Promise.resolve(G).then(E,D)}function o(m){return function(){var y=this,C=arguments;return new Promise(function(E,D){var O=m.apply(y,C);function j(G){s(O,E,D,j,ie,"next",G)}function ie(G){s(O,E,D,j,ie,"throw",G)}j(void 0)})}}function a(m,y,C){return y in m?Object.defineProperty(m,y,{value:C,enumerable:!0,configurable:!0,writable:!0}):m[y]=C,m}function l(m,y){return C=m,(E=u(m,y,"get")).get?E.get.call(C):E.value;var C,E}function u(m,y,C){if(!y.has(m))throw new TypeError("attempted to "+C+" private field on non-instance");return y.get(m)}function d(){var m="https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js",C=document.createElement("div"),E=m.slice(0,m.lastIndexOf("/"))||"",D=v=>{for(var g in C.setAttribute("data-"+v,""),C.dataset)return delete C.dataset[g],g},O=v=>{C.dataset[v]="";var g=C.attributes[0];return C.removeAttribute(g.name),g.name.slice(5)};function j(v){return E+v.replace(/^\.\//,"/")}function ie(){var v;try{return null===(v=window.ApplePaySession)||void 0===v?void 0:v.canMakePayments()}catch(g){return console.warn(g),!1}}var G=!1;if("undefined"!=typeof window){var Ce={get passive(){G=!0}};window.addEventListener("testPassive",null,Ce),window.removeEventListener("testPassive",null,Ce)}var Fe="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),A=[],ee=!1,Z=-1,ue=void 0,oe=void 0,Te=void 0,de=function(v){return A.some(function(g){return!(!g.options.allowTouchMove||!g.options.allowTouchMove(v))})},L=function(v){var g=v||window.event;return!!de(g.target)||g.touches.length>1||(g.preventDefault&&g.preventDefault(),!1)},le=new WeakMap;class ae extends HTMLElement{constructor(){super(),le.set(this,{writable:!0,value:void 0}),a(this,"open",!1),a(this,"ready",!1),a(this,"url",X.url),a(this,"theme",X.theme),a(this,"locale",X.locale),this.close=this.close.bind(this)}connectedCallback(){var g=this;return o(function*(){(function c(m,y,C){(function(E,D,O){if(D.set)D.set.call(E,O);else{if(!D.writable)throw new TypeError("attempted to set read only private field");D.value=O}})(m,u(m,y,"set"),C)})(g,le,g.attachShadow({mode:"closed"})),g.update(),l(g,le).addEventListener("click",w=>{w.preventDefault(),w.stopPropagation();var M=w.target.closest('a[href*="'.concat("#apple-pay-close",'"]'));M&&w.currentTarget.contains(M)&&g.close()}),g.addEventListener("click",w=>g.close())})()}show(){(function(v,g){if(v){if(!A.some(function(M){return M.targetElement===v})){var w={targetElement:v,options:{}};A=[].concat(function(M){if(Array.isArray(M)){for(var q=0,W=Array(M.length);q<M.length;q++)W[q]=M[q];return W}return Array.from(M)}(A),[w]),Fe?window.requestAnimationFrame(function(){if(void 0===oe){oe={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var M=window,q=M.scrollY,W=M.scrollX,ye=M.innerHeight;document.body.style.position="fixed",document.body.style.top=-q,document.body.style.left=-W,setTimeout(function(){return window.requestAnimationFrame(function(){var Ye=ye-window.innerHeight;Ye&&q>=ye&&(document.body.style.top=-(q+Ye))})},300)}}):function(M){if(void 0===Te)window,document;void 0===ue&&(ue=document.body.style.overflow,document.body.style.overflow="hidden")}(),Fe&&(v.ontouchstart=function(M){1===M.targetTouches.length&&(Z=M.targetTouches[0].clientY)},v.ontouchmove=function(M){var q,W,Ye,ye;1===M.targetTouches.length&&(W=v,ye=(q=M).targetTouches[0].clientY-Z,!de(q.target)&&(W&&0===W.scrollTop&&ye>0||(Ye=W)&&Ye.scrollHeight-Ye.scrollTop<=Ye.clientHeight&&ye<0?L(q):q.stopPropagation()))},ee||(document.addEventListener("touchmove",L,G?{passive:!1}:void 0),ee=!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 g=l(this,le).querySelector("iframe");this.ready||(this.ready=!0,this.accessibilityTranslations(),Promise.race([new Promise(w=>g.onload=w),new Promise((w,M)=>setTimeout(M,10800))]).then(()=>{},()=>(console.error("Modal loading timeout. Check connection or try again later."),this.close())))}close(){var v;(v=this.ownerDocument.body||this.ownerDocument.documentElement)?(A=A.filter(function(g){return g.targetElement!==v}),Fe&&(v.ontouchstart=null,v.ontouchmove=null,ee&&0===A.length&&(document.removeEventListener("touchmove",L,G?{passive:!1}:void 0),ee=!1)),Fe?function(){if(void 0!==oe){var g=-parseInt(document.body.style.top,10),w=-parseInt(document.body.style.left,10);document.body.style.position=oe.position,document.body.style.top=oe.top,document.body.style.left=oe.left,window.scrollTo(w,g),oe=void 0}}():(void 0!==Te&&(document.body.style.paddingRight=Te,Te=void 0),void 0!==ue&&(document.body.style.overflow=ue,ue=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices."),this.removeAttribute("open"),this.open=!1}update(){l(this,le).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 g=this;o(function*(){var w=yield(yield fetch(j("./merchandising-".concat(g.locale.split("-")[1].toLowerCase(),".json")))).json(),M=g.locale.split("-")[0],q=w.accessibility[M],W=/\{\{\s*([^\s]+)\s*\}\}/gi;l(g,le).querySelectorAll("[data-accessibility]").forEach(ye=>{var Ye=ye.dataset.accessibility;ye.ariaLabel=q[Ye].replaceAll(W,(Pt,qn,hi)=>qn),ye.alt=q[Ye].replaceAll(W,(Pt,qn,hi)=>qn)})})()}static get observedAttributes(){return re}attributeChangedCallback(g,w,M){g=D(g),null==M?delete this[g]:this[g]="true"===M||"false"!==M&&(""===M||M),M!==w&&this.update()}}var X={theme:"auto",locale:"en-US",url:""},re=Object.keys(X).map(O);Object.assign(ae.prototype,X),customElements.define("apple-pay-merchandising-modal",ae);var Ne=document.createElement("apple-pay-merchandising-modal");document.contains(Ne)||(document.body||document.documentElement).appendChild(Ne);var he,nt,Qe,Re=function(v,g,w){if(!g.has(v))throw new TypeError("attempted to set private field on non-instance");return g.set(v,w),w},fe=function(v,g){if(!g.has(v))throw new TypeError("attempted to get private field on non-instance");return g.get(v)},Ge={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 make {{ frequency }} interest\u2011free payments of {{ paymentsAmount }}. <a href="{{ modalUrl }}"><strong>Learn more</strong></a>',price:'Or {{ frequency }} interest\u2011free payments of {{ paymentsAmount }} with Apple Pay Later. <a href="{{ modalUrl }}"><strong>Learn more</strong></a>',checkout:'Pay in full or use Apple Pay Later to make {{ frequency }} interest\u2011free payments of {{ paymentsAmount }}. <a href="{{ modalUrl }}"><strong>Learn 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}}}},Ht={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>'},At=/\{\{\s*([^\s]+)\s*\}\}/gi;"undefined"==typeof WEBVIEW&&(r.WEBVIEW=!1);class ft extends HTMLElement{constructor(){super(),this.locale=vt.locale,this.countryCode=vt.countryCode,this.currencyCode=vt.currencyCode,this.type=vt.type,this.modalType=vt.modalType,this.debug=!1,he.set(this,void 0),nt.set(this,void 0),Qe.set(this,void 0),Re(this,Qe,new Promise(g=>setTimeout(g)).then(()=>ft.getData({countryCode:this.countryCode,amount:this.amount,currencyCode:this.currencyCode,locale:this.locale})).then(g=>{var w=new Event("load");return this.dispatchEvent(w),this.data=g,new Promise(M=>setTimeout(M))},g=>{console.warn("Apple Pay Merchandising: unable to fetch merchandising data",g),this.disable()}).then(()=>{Re(this,he,this.ownerDocument.createElement("div")),fe(this,he).className="theme-".concat(this.theme," content"),Re(this,nt,this.attachShadow({mode:"closed"})),fe(this,nt).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>"),fe(this,nt).appendChild(fe(this,he)),fe(this,nt).addEventListener("click",g=>{var w,M,q=g.target.closest('a[href*="'.concat(this.data.modalUrl,'"]'));q&&g.currentTarget.contains(q)&&(g.preventDefault(),WEBVIEW?null===(M=null===(w=webkit.messageHandlers)||void 0===w?void 0:w.applePayDetails)||void 0===M||M.postMessage("show-modal"):(Ne.setAttribute("locale",this.locale),Ne.setAttribute("theme",this.theme),Ne.setAttribute("url",this.data.modalUrl),Ne.show()))})}))}connectedCallback(){var g=this;return o(function*(){yield fe(g,Qe),g.ready=!0,g.classList.add("ready"),g.update()})()}disconnectedCallback(){var g=this;return o(function*(){yield fe(g,Qe),g.disable()})()}disable(){var g,w;(null===(g=fe(this,nt))||void 0===g?void 0:g.contains(fe(this,he)))&&(null===(w=fe(this,nt))||void 0===w||w.removeChild(fe(this,he))),this.setAttribute("disabled",""),this.setAttribute("hidden",""),this.disabled=!0}enable(){var g;null===(g=fe(this,nt))||void 0===g||g.appendChild(fe(this,he)),this.disabled=!1,this.removeAttribute("disabled"),this.removeAttribute("hidden")}update(){var g=this;return o(function*(){if(g.ready)if(g.debug||(yield ft.isEligible(g))){g.enable();var w=g.data=yield ft.getData(g),M=yield ft.fetchData(g),q=M.presets[g.type||vt.type]||M.presets.custom;"custom"===g.type&&(w.promoText=g.innerHTML);var W=new Intl.NumberFormat(g.locale,{style:"currency",currency:g.currencyCode,minimumFractionDigits:Number.isInteger(w.paymentsAmount)?0:2,currencyDisplay:"narrowSymbol"}),ye=Object.assign(Object.assign(Object.assign({},w),q),{paymentsAmount:W.format(w.paymentsAmount),hideLogo:w.logo?"":"hidden",hideText:w.promoText?"":"hidden",theme:g.theme||vt.theme,modalUrl:w.modalUrl}),Ye='<div class="paymark align-{{ logoAlign }} type-{{ logoType }} style-{{ logoStyle }}" {{ hideLogo }}>{{ logo }}</div><p class="theme-{{ theme }} text" {{ hideText }}>'.concat(w.promoText,"</p>");fe(g,he).innerHTML=Ye.replace(At,(Pt,qn)=>ye[qn])}else g.disable()})()}static get observedAttributes(){return Dr}attributeChangedCallback(g,w,M){g=D(g),null==M?delete this[g]:this[g]="true"===M||"false"!==M&&(""===M||M),w!==M&&this.update()}static fetchData({countryCode:g}){return o(function*(){var w,M=g.toLowerCase();try{w=Ge[M]||(Ge[M]=yield(yield fetch(j("./merchandising-".concat(M,".json")))).json())}catch(q){throw Error("Apple Pay Merchandising: unable to fetch merchandising data")}return w})()}static getData({countryCode:g,locale:w,amount:M,modalType:q="learn-more",theme:W="light",type:ye="plain"}){return o(function*(){var Ye,Pt=yield ft.fetchData({countryCode:g}),qn=(Pt.text[w]||Pt.text[w.slice(0,2)]||Pt.text[Object.keys(Pt.text)[0]])[ye]||"",hi=null===(Ye=Object.entries(Pt.method).find(([,ls])=>ls.minAmount<=M&&ls.maxAmount>=M))||void 0===Ye?void 0:Ye[1],as=Pt.presets[ye||vt.type]||Pt.presets.custom,Ws=Math.round(M/hi.frequency*100)/100,pa=location.hostname||window.frames.top.document.location.hostname;if(w.split("-")[1].toLowerCase()!==g.toLowerCase())throw Error("Apple Pay Merchandising: unsupported locale");return Object.assign({logo:"none"===as.logoType?"":Ht["apple_".concat(as.logoType,"_mark_").concat(as.logoStyle)],promoText:qn,paymentsAmount:Ws,lastPaymentAmount:M-Ws*(hi.frequency-1),modalUrl:j("./".concat(q,".html"))+"#data=".concat(btoa(JSON.stringify(Object.assign({amount:M,theme:W,locale:w,referrerUrl:pa},hi))))},hi)})()}static isEligible({amount:g,currencyCode:w,countryCode:M}){return o(function*(){if(!function(W={}){try{return new PaymentRequest([{supportedMethods:"https://apple.com/apple-pay",data:{version:15,features:["applePayLater"],merchantIdentifier:"",countryCode:W.countryCode,supportedNetworks:["masterCard"],merchantCapabilities:["supports3DS"]}}],{total:{label:"applePayLater",amount:{currency:W.currencyCode,value:"0.00"}}}),!0}catch(ye){return!1}}({currencyCode:w,countryCode:M}))return!1;var q=yield ft.fetchData({countryCode:M});return w===q.currencyCode&&Object.entries(q.method).some(([,W])=>W.minAmount<=g&&W.maxAmount>=g)})()}}he=new WeakMap,nt=new WeakMap,Qe=new WeakMap;var vt={merchantToken:null,amount:null,type:"plain",locale:"en-US",modalType:"learn-more",countryCode:"US",currencyCode:"USD",debug:!1,theme:"auto"},Dr=Object.keys(vt).map(O);customElements.define("apple-pay-merchandising",ft),window.ApplePayMerchandising=ft;var sr=["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 or(v){return(null==v?void 0:v.includes("-"))&&!!sr.find(g=>g===v)}function bt(v){if(v){var g=v.trim().replace("_","-").split("-"),w=g[0].toLowerCase();return 1===g.length?w:w+"-"+g[1].toUpperCase()}}function nn(v,g=!0){var W,ye,w=null==v?void 0:v.includes("-");if(w){var M=sr.find(W=>W===v);if(M)return M}if(v&&(!w||g)){var q=(ye=null==(W=v)?void 0:W.split("-")[0],sr.find(Ye=>new RegExp("^".concat(ye),"g").test(Ye)));if(q)return q}}function Gr(v){var g=function js(v){var g=((void 0===navigator.languages?[navigator.language]:navigator.languages)||[]).map(bt),w=null==v?void 0:v.closest("[lang]"),M=(null==w?void 0:w.lang)?bt(w.lang):void 0;return M&&g.unshift(M),g}(v).reduce((w,M)=>{if(w&&w.includes("-"))return w;if(!w){if(or(M))return M;var q=(ye=null==(W=M)?void 0:W.split("-")[0])&&sr.find(Ye=>Ye.startsWith(ye))?ye:void 0;if(q)return q}var W,ye;return w&&!w.includes("-")&&M.startsWith(w)&&or(M)?M:w},void 0);return((null==g?void 0:g.includes("-"))?g:nn(g))||"en-US"}function Hs(){try{return document.fonts.check("15px -apple-system")}catch(v){return!1}}function pt(v){return!!document.getElementById(It(v))}function ia(v){var g=document.createElement("style");g.id=It(v),g.innerHTML="@font-face{"+"font-family:apple-pay-btn-".concat(v,";")+"src:url(".concat(xd("./assets/1.0.0/fonts/".concat(v,".woff2")),') format("woff2"),')+"url(".concat(xd("./assets/1.0.0/fonts/".concat(v,".woff")),') format("woff");')+"font-display:block;}",document.head.appendChild(g)}function It(v){return"apple-pay-btn-font-".concat(v)}function xd(v){return E+v.replace(/^\.\//,"/")}var kg=["add-money","book","buy","check-out","continue","contribute","donate","order","pay","plain","reload","rent","set-up","subscribe","support","tip","top-up"];function Ol(v){return kg.includes(v)}function Pg(v){switch(v){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 Ad(v,g){var w=[...v.l[Pg(g)]],M=w[0].t.startsWith("%@")?0:1;return(w=w.map(q=>Object.assign(Object.assign({},q),{t:q.t.replace(/%@/g,"")}))).splice(M,0,{t:"%@"}),v.rtl&&w.reverse(),w}function Ng(v,g){if("plain"===g)return"Apple Pay";var w=Ad(v,g);return v.rtl&&w.reverse(),w.reduce((M,q)=>M+("%@"===q.t?"Apple Pay":q.t),"")}function sa(v,g,w,M,q){var ye,W=g.t.replace(/\s/g," ");return'<text x="'.concat(v,'" y="').concat(function(ye){switch(ye){case"ja-JP":return 20;case"ko-KR":return 19.6}return 19.5}(M),'" ')+"".concat(w?'direction="rtl" unicode-bidi="bidi-override" text-anchor="end"':""," ")+"".concat(q?'style="letter-spacing:'.concat(q,';"'):""," ")+"".concat("hi-IN"!==(ye=M)&&"th-TH"!==ye?'height="'.concat(g.h,'" width="').concat(g.w,'" ').concat(w?"":'textLength="'.concat(g.w,'"')):"",">")+"".concat(W,"</text>")}function Fl(v,g,w,M,q){var W='<?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(q?'id="'.concat(q,'"'):"",' x="').concat(v,'" y="').concat(g,'" height="').concat(w,'" width="').concat(35,'"'));return"black"!==M&&(W=W.replace('fill="#FFF"','fill="#000"')),W}function Id(v){var g=Ad(v.metadata,v.buttonType),w=v.metadata.ls,{width:M,domStr:q}=g.reduce((W,ye,Ye)=>{var Pt;if("%@"===ye.t){Ye>0&&new RegExp(/\s$/).test(W.prev)&&(W.width=W.width+1);var qn=0===Ye||Ye===g.length-1;return{domStr:W.domStr+Fl(W.width+.2,7.92,15,v.buttonStyle),width:W.width+35+(qn?.2:.4),prev:ye.t}}return"%@"===W.prev&&(null===(Pt=ye.t)||void 0===Pt?void 0:Pt.startsWith(" "))?W.width=W.width+1:"%@"===W.prev&&(W.width=W.width+.2),{domStr:W.domStr+sa(W.width,ye,!!v.metadata.rtl,v.locale,w),width:W.width+ye.w,prev:ye.t}},{width:12.5,domStr:"",prev:""});return{width:M+12.5,domStr:q}}function kd(v,g=!1){return'<svg id="svg-logo" viewBox="0 0 '.concat(35," ").concat(15,'" ').concat(g?'class="hidden"':"",">\n ").concat(Fl(0,3.85,7.3,v,"svg-logo"),"\n </svg>")}function Er(v){if("plain"===v.buttonType)return kd(v.buttonStyle,!1);var{width:g,domStr:w}=Id(v),M=Hs();return'<svg id="svg-text" viewBox="0 0 '.concat(g,' 28.571" aria-hidden="true">\n <defs>\n <style>\n text {\n fill: ').concat("black"===v.buttonStyle?"#FFF":"#000",";\n font-family: ").concat(M?"-apple-system":"apple-pay-btn-".concat(v.locale),";\n font-size: ").concat(v.metadata.s,";\n font-weight: ").concat(v.metadata.w||500,";\n }\n </style>\n </defs>\n <g>\n ").concat(w,"\n </g>\n </svg>\n ").concat(kd(v.buttonStyle,!0))}var Ai,v,Og={"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"}},di=[],Rl="ResizeObserver loop completed with undelivered notifications.";(v=Ai||(Ai={})).BORDER_BOX="border-box",v.CONTENT_BOX="content-box",v.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var Ll,oa,Sr=function(v){return Object.freeze(v)},$l=function(v,g){this.inlineSize=v,this.blockSize=g,Sr(this)},Tn=function(){function v(g,w,M,q){return this.x=g,this.y=w,this.width=M,this.height=q,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Sr(this)}return v.prototype.toJSON=function(){var g=this;return{x:g.x,y:g.y,top:g.top,right:g.right,bottom:g.bottom,left:g.left,width:g.width,height:g.height}},v.fromRect=function(g){return new v(g.x,g.y,g.width,g.height)},v}(),Us=function(v){return v instanceof SVGElement&&"getBBox"in v},zs=function(v){if(Us(v)){var g=v.getBBox();return!g.width&&!g.height}return!(v.offsetWidth||v.offsetHeight||v.getClientRects().length)},Ii=function(v){var g,w;if(v instanceof Element)return!0;var M=null===(w=null===(g=v)||void 0===g?void 0:g.ownerDocument)||void 0===w?void 0:w.defaultView;return!!(M&&v instanceof M.Element)},kt="undefined"!=typeof window?window:{},We=new WeakMap,ki=/auto|scroll/,Fg=/^tb|vertical/,Rg=/msie|trident/i.test(kt.navigator&&kt.navigator.userAgent),zn=function(v){return parseFloat(v||"0")},os=function(v,g,w){return void 0===v&&(v=0),void 0===g&&(g=0),void 0===w&&(w=!1),new $l((w?g:v)||0,(w?v:g)||0)},Pd=Sr({devicePixelContentBoxSize:os(),borderBoxSize:os(),contentBoxSize:os(),contentRect:new Tn(0,0,0,0)}),Nd=function(v,g){if(void 0===g&&(g=!1),We.has(v)&&!g)return We.get(v);if(zs(v))return We.set(v,Pd),Pd;var w=getComputedStyle(v),M=Us(v)&&v.ownerSVGElement&&v.getBBox(),q=!Rg&&"border-box"===w.boxSizing,W=Fg.test(w.writingMode||""),ye=!M&&ki.test(w.overflowY||""),Ye=!M&&ki.test(w.overflowX||""),Pt=M?0:zn(w.paddingTop),qn=M?0:zn(w.paddingRight),hi=M?0:zn(w.paddingBottom),as=M?0:zn(w.paddingLeft),Ws=M?0:zn(w.borderTopWidth),pa=M?0:zn(w.borderRightWidth),ls=M?0:zn(w.borderBottomWidth),$d=as+qn,Vd=Pt+hi,ma=(M?0:zn(w.borderLeftWidth))+pa,ga=Ws+ls,Bd=Ye?v.offsetHeight-ga-v.clientHeight:0,ar=ye?v.offsetWidth-ma-v.clientWidth:0,jd=q?$d+ma:0,cs=q?Vd+ga:0,Ks=M?M.width:zn(w.width)-jd-ar,Zs=M?M.height:zn(w.height)-cs-Bd,ql=Ks+$d+ar+ma,Gl=Zs+Vd+Bd+ga,Hd=Sr({devicePixelContentBoxSize:os(Math.round(Ks*devicePixelRatio),Math.round(Zs*devicePixelRatio),W),borderBoxSize:os(ql,Gl,W),contentBoxSize:os(Ks,Zs,W),contentRect:new Tn(as,Pt,Ks,Zs)});return We.set(v,Hd),Hd},Vl=function(v,g,w){var M=Nd(v,w),q=M.borderBoxSize,W=M.contentBoxSize,ye=M.devicePixelContentBoxSize;switch(g){case Ai.DEVICE_PIXEL_CONTENT_BOX:return ye;case Ai.BORDER_BOX:return q;default:return W}},Wr=function(v){var g=Nd(v);this.target=v,this.contentRect=g.contentRect,this.borderBoxSize=Sr([g.borderBoxSize]),this.contentBoxSize=Sr([g.contentBoxSize]),this.devicePixelContentBoxSize=Sr([g.devicePixelContentBoxSize])},Bl=function(v){if(zs(v))return 1/0;for(var g=0,w=v.parentNode;w;)g+=1,w=w.parentNode;return g},Lg=function(){var v=1/0,g=[];di.forEach(function(q){if(0!==q.activeTargets.length){var W=[];q.activeTargets.forEach(function(ye){var Ye=new Wr(ye.target),Pt=Bl(ye.target);W.push(Ye),ye.lastReportedSize=Vl(ye.target,ye.observedBox),Pt<v&&(v=Pt)}),g.push(function(){q.callback.call(q.observer,W,q.observer)}),q.activeTargets.splice(0,q.activeTargets.length)}});for(var w=0,M=g;w<M.length;w++)(0,M[w])();return v},aa=function(v){di.forEach(function(g){g.activeTargets.splice(0,g.activeTargets.length),g.skippedTargets.splice(0,g.skippedTargets.length),g.observationTargets.forEach(function(w){w.isActive()&&(Bl(w.target)>v?g.activeTargets.push(w):g.skippedTargets.push(w))})})},jl=[],la=0,Hl={attributes:!0,characterData:!0,childList:!0,subtree:!0},ca=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Pi=function(v){return void 0===v&&(v=0),Date.now()+v},ua=!1,qs=new(function(){function v(){var g=this;this.stopped=!0,this.listener=function(){return g.schedule()}}return v.prototype.run=function(g){var w=this;if(void 0===g&&(g=250),!ua){ua=!0;var M,q=Pi(g);M=function(){var W=!1;try{W=function(){var v,g=0;for(aa(g);di.some(function(w){return w.activeTargets.length>0});)g=Lg(),aa(g);return di.some(function(w){return w.skippedTargets.length>0})&&("function"==typeof ErrorEvent?v=new ErrorEvent("error",{message:Rl}):((v=document.createEvent("Event")).initEvent("error",!1,!1),v.message=Rl),window.dispatchEvent(v)),g>0}()}finally{if(ua=!1,g=q-Pi(),!la)return;W?w.run(1e3):g>0?w.run(g):w.start()}},function(v){if(!Ll){var g=0,w=document.createTextNode("");new MutationObserver(function(){return jl.splice(0).forEach(function(M){return M()})}).observe(w,{characterData:!0}),Ll=function(){w.textContent=""+(g?g--:g++)}}jl.push(function(){requestAnimationFrame(M)}),Ll()}()}},v.prototype.schedule=function(){this.stop(),this.run()},v.prototype.observe=function(){var g=this,w=function(){return g.observer&&g.observer.observe(document.body,Hl)};document.body?w():kt.addEventListener("DOMContentLoaded",w)},v.prototype.start=function(){var g=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),ca.forEach(function(w){return kt.addEventListener(w,g.listener,!0)}))},v.prototype.stop=function(){var g=this;this.stopped||(this.observer&&this.observer.disconnect(),ca.forEach(function(w){return kt.removeEventListener(w,g.listener,!0)}),this.stopped=!0)},v}()),Od=function(v){!la&&v>0&&qs.start(),!(la+=v)&&qs.stop()},Fd=function(){function v(g,w){this.target=g,this.observedBox=w||Ai.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return v.prototype.isActive=function(){var g,w=Vl(this.target,this.observedBox,!0);return Us(g=this.target)||function(M){switch(M.tagName){case"INPUT":if("image"!==M.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(g)||"inline"!==getComputedStyle(g).display||(this.lastReportedSize=w),this.lastReportedSize.inlineSize!==w.inlineSize||this.lastReportedSize.blockSize!==w.blockSize},v}(),Bg=function(v,g){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=v,this.callback=g},da=new WeakMap,Ul=function(v,g){for(var w=0;w<v.length;w+=1)if(v[w].target===g)return w;return-1},ha=function(){function v(){}return v.connect=function(g,w){var M=new Bg(g,w);da.set(g,M)},v.observe=function(g,w,M){var q=da.get(g),W=0===q.observationTargets.length;Ul(q.observationTargets,w)<0&&(W&&di.push(q),q.observationTargets.push(new Fd(w,M&&M.box)),Od(1),qs.schedule())},v.unobserve=function(g,w){var M=da.get(g),q=Ul(M.observationTargets,w);q>=0&&(1===M.observationTargets.length&&di.splice(di.indexOf(M),1),M.observationTargets.splice(q,1),Od(-1))},v.disconnect=function(g){var w=this,M=da.get(g);M.observationTargets.slice().forEach(function(q){return w.unobserve(g,q.target)}),M.activeTargets.splice(0,M.activeTargets.length)},v}(),Rd=function(){function v(g){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof g)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ha.connect(this,g)}return v.prototype.observe=function(g,w){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ii(g))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ha.observe(this,g,w)},v.prototype.unobserve=function(g){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ii(g))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ha.unobserve(this,g)},v.prototype.disconnect=function(){ha.disconnect(this)},v.toString=function(){return"function ResizeObserver () { [polyfill code] }"},v}();oa=Gr(document.documentElement),Hs()||pt(oa)||ia(oa);var zl=Hs(),fa=class extends HTMLElement{constructor(){super(),this.__registerHost(),Object(i.b)(this),this.logoOnly=!1,this.fontLoading=!zl,this.buttonStyle="black",this.type="buy"}checkStyle(v,g){var w=Ni(v,g);w!==v&&this.element.setAttribute("buttonstyle",w)}checkType(v,g){var w=Gs(v,g);w!==v&&this.element.setAttribute("type",w),this.metadata&&(this.minButtonWidth=this.getMinButtonWidth(this.metadata))}verifyLocaleAndSwapMetadata(v){this._locale=this.adjustLocaleAndSetLangIfNecessary(v),zl||this.loadFontIfNecessary(this._locale),this.metadata=Og[this._locale],this.minButtonWidth=this.getMinButtonWidth(this.metadata)}componentWillLoad(){var v=this;return o(function*(){var g=Ni(v.buttonStyle);g!==v.buttonStyle&&v.element.setAttribute("buttonstyle",g);var w=Gs(v.type);w!==v.type&&v.element.setAttribute("type",w),v.verifyLocaleAndSwapMetadata(v.locale)})()}componentDidRender(){this.validateFontSize(this.container.offsetWidth)}componentDidLoad(){new Rd((v,g)=>{for(var w of v){var{width:M}=w.contentRect;if("plain"===this.type)return;this.validateFontSize(M)}}).observe(this.container),this.element.addEventListener("click",v=>v.stopPropagation())}validateFontSize(v){var g,w,M,q;"plain"!==this.type&&(v<this.minButtonWidth?(null===(g=this.container.querySelector("#svg-text"))||void 0===g||g.classList.add("hidden"),null===(w=this.container.querySelector("#svg-logo"))||void 0===w||w.classList.remove("hidden")):(null===(M=this.container.querySelector("#svg-text"))||void 0===M||M.classList.remove("hidden"),null===(q=this.container.querySelector("#svg-logo"))||void 0===q||q.classList.add("hidden")))}getStyle(v){return":host(apple-pay-button){display:inline-block;width:var(--apple-pay-button-width, auto);"+"min-width:".concat("plain"===v?"100px":"140px",";")+"min-height:30px;"+(ie()?"":"display:none;")+"}"}loadFontIfNecessary(v){try{var g=document.fonts.check("15px apple-pay-btn-".concat(v)),w=pt(v);w||ia(v),this.fontLoading=!w||!g,this.fontLoading&&document.fonts.ready.then(()=>setTimeout(()=>{this.fontLoading=!1},0))}catch(M){this.fontLoading=!1}}getMinButtonWidth(v){var W,g=Gs(this.type),{width:w,height:M}="plain"===(W=g)?{width:35,height:15}:{width:Id({metadata:v,buttonType:W}).width,height:18};return 15*w/M}adjustLocaleAndSetLangIfNecessary(v){var g=function(M){if(M){var q=nn(bt(M));if(q)return q}}(v);if(g){g!==v&&this.element.setAttribute("locale",g);var w=g.replace("_","-");this.element.setAttribute("lang",w)}else this.element.removeAttribute("locale"),this.element.removeAttribute("lang"),g=Gr(this.element);return g}render(){var v=Ni(this.buttonStyle),g=Gs(this.type);return Object(i.c)(i.a,{"aria-hidden":ie()?void 0:"true"},Object(i.c)("div",{class:"apple-pay-btn-wrapper ".concat(g," ").concat(this._locale),style:{visibility:this.fontLoading?"hidden":"visible"}},Object(i.c)("style",null,this.getStyle(g)),Object(i.c)("button",{"aria-label":Ng(this.metadata,g),class:"apple-pay-btn ".concat(v)},Object(i.c)("span",{ref:w=>this.container=w,innerHTML:Er({metadata:this.metadata,locale:this._locale,buttonStyle:v,buttonType:g})}))))}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 Ni(v,g){var w=["black","white-outline","white"],M=v.trim();return w.includes(M)?M:g&&w.includes(g)?g:"black"}function Gs(v,g){var w=v.trim();return Ol(w)?w:g&&Ol(g)?g:"buy"}"undefined"!=typeof customElements&&[Object(i.d)(fa,[1,"apple-pay-button",{buttonStyle:[513,"buttonstyle"],type:[1537],locale:[1025],logoOnly:[32],fontLoading:[32]}])].forEach(v=>{customElements.get(v.is)||customElements.define(v.is,v,void 0)})}var h="https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js";e.p=new URL(h.slice(0,h.lastIndexOf("/")));var m,y,C,E,f=!0;try{f=globalThis}catch(m){f=!1}window.customElements&&window.fetch&&Symbol("desc").description&&f?d():(m=e.p+"/polyfills.js",y=d,C=document.body,(E=document.createElement("script")).src=m,E.onload=y,E.onreadystatechange=y,C.appendChild(E))}.call(this,e(44))},104:function(n,t){function e(r){return Promise.resolve().then(function(){var i=new Error("Cannot find module '"+r+"'");throw i.code="MODULE_NOT_FOUND",i})}e.keys=function(){return[]},e.resolve=e,n.exports=e,e.id=104},14:function(n,t,e){var r,i,s;function di(p,_,b,S,T,I,F){try{var x=p[I](F),V=x.value}catch(B){return void b(B)}x.done?_(V):Promise.resolve(V).then(S,T)}function Rl(p){return function(){var _=this,b=arguments;return new Promise(function(S,T){var I=p.apply(_,b);function F(V){di(I,S,T,F,x,"next",V)}function x(V){di(I,S,T,F,x,"throw",V)}F(void 0)})}}e.d(t,"a",function(){return ua}),e.d(t,"b",function(){return AF}),e.d(t,"c",function(){return ca}),e.d(t,"d",function(){return xF});var p,oa=!1,Sr=!1,$l=!1,Tn=!1,zs=!1,Ii="undefined"!=typeof window?window:{},kt=Ii.document||{head:{}},We={$flags$:0,$resourcesUrl$:"",jmp:p=>p(),raf:p=>requestAnimationFrame(p),ael:(p,_,b,S)=>p.addEventListener(_,b,S),rel:(p,_,b,S)=>p.removeEventListener(_,b,S),ce:(p,_)=>new CustomEvent(p,_)},Fg=(()=>{var p=!1;try{kt.addEventListener("e",null,Object.defineProperty({},"passive",{get(){p=!0}}))}catch(_){}return p})(),Rg=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(p){}return!1})(),zn=(p,_,b,S)=>{b&&b.map(([T,I,F])=>{var x=Pd(p,T),V=os(_,F),B=Nd(T);We.ael(x,I,V,B),(_.$rmListeners$=_.$rmListeners$||[]).push(()=>We.rel(x,I,V,B))})},os=(p,_)=>b=>{try{p.$hostElement$[_](b)}catch(S){Oi(S)}},Pd=(p,_)=>4&_?kt:8&_?Ii:16&_?kt.body:p,Nd=p=>Fg?{passive:0!=(1&p),capture:0!=(2&p)}:0!=(2&p),Vl="http://www.w3.org/1999/xlink",Bl=new WeakMap,jl=(p,_)=>"sc-"+(_&&32&p.$flags$?p.$tagName$+"-"+_:p.$tagName$),la={},Hl=p=>"object"==(p=typeof p)||"function"===p,ca=(p,_,...b)=>{var S=null,T=null,I=null,F=!1,x=!1,V=[],B=Ve=>{for(var Wt=0;Wt<Ve.length;Wt++)S=Ve[Wt],Array.isArray(S)?B(S):null!=S&&"boolean"!=typeof S&&((F="function"!=typeof p&&!Hl(S))&&(S=String(S)),F&&x?V[V.length-1].$text$+=S:V.push(F?Pi(null,S):S),x=F)};if(B(b),_&&(_.key&&(T=_.key),_.name&&(I=_.name),1)){var ve=_.className||_.class;ve&&(_.class="object"!=typeof ve?ve:Object.keys(ve).filter(Ve=>ve[Ve]).join(" "))}if("function"==typeof p)return p(null===_?{}:_,V,Od);var be=Pi(p,null);return be.$attrs$=_,V.length>0&&(be.$children$=V),be.$key$=T,be.$name$=I,be},Pi=(p,_)=>({$flags$:0,$tag$:p,$text$:_,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),ua={},Od={forEach:(p,_)=>p.map(Fd).forEach(_),map:(p,_)=>p.map(Fd).map(_).map(Bg)},Fd=p=>({vattrs:p.$attrs$,vchildren:p.$children$,vkey:p.$key$,vname:p.$name$,vtag:p.$tag$,vtext:p.$text$}),Bg=p=>{if("function"==typeof p.vtag){var _=Object.assign({},p.vattrs);return p.vkey&&(_.key=p.vkey),p.vname&&(_.name=p.vname),ca(p.vtag,_,...p.vchildren||[])}var b=Pi(p.vtag,p.vtext);return b.$attrs$=p.vattrs,b.$children$=p.vchildren,b.$key$=p.vkey,b.$name$=p.vname,b},Ul=(p,_,b,S,T,I)=>{if(b!==S){var F=GC(p,_),x=_.toLowerCase();if("class"===_){var V=p.classList,B=Rd(b),ve=Rd(S);V.remove(...B.filter(rn=>rn&&!ve.includes(rn))),V.add(...ve.filter(rn=>rn&&!B.includes(rn)))}else if("style"===_){for(var be in b)S&&null!=S[be]||(be.includes("-")?p.style.removeProperty(be):p.style[be]="");for(var Ve in S)b&&S[Ve]===b[Ve]||(Ve.includes("-")?p.style.setProperty(Ve,S[Ve]):p.style[Ve]=S[Ve])}else if("key"!==_)if("ref"===_)S&&S(p);else if(p.__lookupSetter__(_)||"o"!==_[0]||"n"!==_[1]){var Wt=Hl(S);if((F||Wt&&null!==S)&&!T)try{if(p.tagName.includes("-"))p[_]=S;else{var fn=null==S?"":S;"list"===_?F=!1:null!=b&&p[_]==fn||(p[_]=fn)}}catch(rn){}var Kt=!1;x!==(x=x.replace(/^xlink\:?/,""))&&(_=x,Kt=!0),null==S||!1===S?!1===S&&""!==p.getAttribute(_)||(Kt?p.removeAttributeNS(Vl,_):p.removeAttribute(_)):(!F||4&I||T)&&!Wt&&(S=!0===S?"":S,Kt?p.setAttributeNS(Vl,_,S):p.setAttribute(_,S))}else _="-"===_[2]?_.slice(3):GC(Ii,x)?x.slice(2):x[2]+_.slice(3),b&&We.rel(p,_,b,!1),S&&We.ael(p,_,S,!1)}},ha=/\s/,Rd=p=>p?p.split(ha):[],zl=(p,_,b,S)=>{var T=11===_.$elm$.nodeType&&_.$elm$.host?_.$elm$.host:_.$elm$,I=p&&p.$attrs$||la,F=_.$attrs$||la;for(S in I)S in F||Ul(T,S,I[S],void 0,b,_.$flags$);for(S in F)Ul(T,S,I[S],F[S],b,_.$flags$)},fa=(p,_,b,S)=>{var T,I,F,x=_.$children$[b],V=0;if(!oa&&($l=!0,"slot"===x.$tag$&&(r&&S.classList.add(r+"-s"),x.$flags$|=x.$children$?2:1)),null!==x.$text$)T=x.$elm$=kt.createTextNode(x.$text$);else if(1&x.$flags$)T=x.$elm$=kt.createTextNode("");else{if(!Tn&&(Tn="svg"===x.$tag$),T=x.$elm$=kt.createElementNS(Tn?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&x.$flags$?"slot-fb":x.$tag$),Tn&&"foreignObject"===x.$tag$&&(Tn=!1),zl(null,x,Tn),null!=r&&T["s-si"]!==r&&T.classList.add(T["s-si"]=r),x.$children$)for(V=0;V<x.$children$.length;++V)(I=fa(p,x,V,T))&&T.appendChild(I);"svg"===x.$tag$?Tn=!1:"foreignObject"===T.tagName&&(Tn=!0)}return T["s-hn"]=s,3&x.$flags$&&(T["s-sr"]=!0,T["s-cr"]=i,T["s-sn"]=x.$name$||"",(F=p&&p.$children$&&p.$children$[b])&&F.$tag$===x.$tag$&&p.$elm$&&Ni(p.$elm$,!1)),T},Ni=(p,_)=>{We.$flags$|=1;for(var b=p.childNodes,S=b.length-1;S>=0;S--){var T=b[S];T["s-hn"]!==s&&T["s-ol"]&&(w(T).insertBefore(T,g(T)),T["s-ol"].remove(),T["s-ol"]=void 0,$l=!0),_&&Ni(T,_)}We.$flags$&=-2},Gs=(p,_,b,S,T,I)=>{var F,x=p["s-cr"]&&p["s-cr"].parentNode||p;for(x.shadowRoot&&x.tagName===s&&(x=x.shadowRoot);T<=I;++T)S[T]&&(F=fa(null,b,T,p))&&(S[T].$elm$=F,x.insertBefore(F,g(_)))},Ld=(p,_,b,S,T)=>{for(;_<=b;++_)(S=p[_])&&(T=S.$elm$,Pt(S),Sr=!0,T["s-ol"]?T["s-ol"].remove():Ni(T,!0),T.remove())},v=(p,_)=>p.$tag$===_.$tag$&&("slot"===p.$tag$?p.$name$===_.$name$:p.$key$===_.$key$),g=p=>p&&p["s-ol"]||p,w=p=>(p["s-ol"]?p["s-ol"]:p).parentNode,M=(p,_)=>{var b,S=_.$elm$=p.$elm$,T=p.$children$,I=_.$children$,F=_.$tag$,x=_.$text$;null!==x?(b=S["s-cr"])?b.parentNode.textContent=x:p.$text$!==x&&(S.data=x):(Tn="svg"===F||"foreignObject"!==F&&Tn,"slot"===F||zl(p,_,Tn),null!==T&&null!==I?((V,B,ve,be)=>{for(var Ve,Wt,fn=0,Kt=0,rn=0,fi=0,$n=B.length-1,Nt=B[0],Kr=B[$n],Fi=be.length-1,lr=be[0],pi=be[Fi];fn<=$n&&Kt<=Fi;)if(null==Nt)Nt=B[++fn];else if(null==Kr)Kr=B[--$n];else if(null==lr)lr=be[++Kt];else if(null==pi)pi=be[--Fi];else if(v(Nt,lr))M(Nt,lr),Nt=B[++fn],lr=be[++Kt];else if(v(Kr,pi))M(Kr,pi),Kr=B[--$n],pi=be[--Fi];else if(v(Nt,pi))"slot"!==Nt.$tag$&&"slot"!==pi.$tag$||Ni(Nt.$elm$.parentNode,!1),M(Nt,pi),V.insertBefore(Nt.$elm$,Kr.$elm$.nextSibling),Nt=B[++fn],pi=be[--Fi];else if(v(Kr,lr))"slot"!==Nt.$tag$&&"slot"!==pi.$tag$||Ni(Kr.$elm$.parentNode,!1),M(Kr,lr),V.insertBefore(Kr.$elm$,Nt.$elm$),Kr=B[--$n],lr=be[++Kt];else{for(rn=-1,fi=fn;fi<=$n;++fi)if(B[fi]&&null!==B[fi].$key$&&B[fi].$key$===lr.$key$){rn=fi;break}rn>=0?((Wt=B[rn]).$tag$!==lr.$tag$?Ve=fa(B&&B[Kt],ve,rn,V):(M(Wt,lr),B[rn]=void 0,Ve=Wt.$elm$),lr=be[++Kt]):(Ve=fa(B&&B[Kt],ve,Kt,V),lr=be[++Kt]),Ve&&w(Nt.$elm$).insertBefore(Ve,g(Nt.$elm$))}fn>$n?Gs(V,null==be[Fi+1]?null:be[Fi+1].$elm$,ve,be,Kt,Fi):Kt>Fi&&Ld(B,fn,$n)})(S,T,_,I):null!==I?(null!==p.$text$&&(S.textContent=""),Gs(S,null,_,I,0,I.length-1)):null!==T&&Ld(T,0,T.length-1),Tn&&"svg"===F&&(Tn=!1))},q=p=>{var _,b,S,T,I,F,x=p.childNodes;for(b=0,S=x.length;b<S;b++)if(1===(_=x[b]).nodeType){if(_["s-sr"])for(I=_["s-sn"],_.hidden=!1,T=0;T<S;T++)if(F=x[T].nodeType,x[T]["s-hn"]!==_["s-hn"]||""!==I){if(1===F&&I===x[T].getAttribute("slot")){_.hidden=!0;break}}else if(1===F||3===F&&""!==x[T].textContent.trim()){_.hidden=!0;break}q(_)}},W=[],ye=p=>{for(var _,b,S,T,I,F,x=0,V=p.childNodes,B=V.length;x<B;x++){if((_=V[x])["s-sr"]&&(b=_["s-cr"])&&b.parentNode)for(T=_["s-sn"],F=(S=b.parentNode.childNodes).length-1;F>=0;F--)(b=S[F])["s-cn"]||b["s-nr"]||b["s-hn"]===_["s-hn"]||(Ye(b,T)?(I=W.find(ve=>ve.$nodeToRelocate$===b),Sr=!0,b["s-sn"]=b["s-sn"]||T,I?I.$slotRefNode$=_:W.push({$slotRefNode$:_,$nodeToRelocate$:b}),b["s-sr"]&&W.map(ve=>{Ye(ve.$nodeToRelocate$,b["s-sn"])&&(I=W.find(be=>be.$nodeToRelocate$===b))&&!ve.$slotRefNode$&&(ve.$slotRefNode$=I.$slotRefNode$)})):W.some(ve=>ve.$nodeToRelocate$===b)||W.push({$nodeToRelocate$:b}));1===_.nodeType&&ye(_)}},Ye=(p,_)=>1===p.nodeType?null===p.getAttribute("slot")&&""===_||p.getAttribute("slot")===_:p["s-sn"]===_||""===_,Pt=p=>{p.$attrs$&&p.$attrs$.ref&&p.$attrs$.ref(null),p.$children$&&p.$children$.map(Pt)},qn=(p,_)=>{var b=p.$hostElement$,S=p.$cmpMeta$,T=p.$vnode$||Pi(null,null),I=(p=>p&&p.$tag$===ua)(_)?_:ca(null,null,_);if(s=b.tagName,S.$attrsToReflect$&&(I.$attrs$=I.$attrs$||{},S.$attrsToReflect$.map(([Wt,fn])=>I.$attrs$[fn]=b[Wt])),I.$tag$=null,I.$flags$|=4,p.$vnode$=I,I.$elm$=T.$elm$=b.shadowRoot||b,r=b["s-sc"],i=b["s-cr"],oa=0!=(1&S.$flags$),Sr=!1,M(T,I),We.$flags$|=1,$l){var F,x,V,B,ve,be;ye(I.$elm$);for(var Ve=0;Ve<W.length;Ve++)(x=(F=W[Ve]).$nodeToRelocate$)["s-ol"]||((V=kt.createTextNode(""))["s-nr"]=x,x.parentNode.insertBefore(x["s-ol"]=V,x));for(Ve=0;Ve<W.length;Ve++)if(x=(F=W[Ve]).$nodeToRelocate$,F.$slotRefNode$){for(B=F.$slotRefNode$.parentNode,ve=F.$slotRefNode$.nextSibling,V=x["s-ol"];V=V.previousSibling;)if((be=V["s-nr"])&&be["s-sn"]===x["s-sn"]&&B===be.parentNode&&(!(be=be.nextSibling)||!be["s-nr"])){ve=be;break}(!ve&&B!==x.parentNode||x.nextSibling!==ve)&&x!==ve&&(!x["s-hn"]&&x["s-ol"]&&(x["s-hn"]=x["s-ol"].parentNode.nodeName),B.insertBefore(x,ve))}else 1===x.nodeType&&(x.hidden=!0)}Sr&&q(I.$elm$),We.$flags$&=-2,W.length=0},ls=(p,_)=>{p.$flags$|=16;return OF(()=>$d(p,_))},$d=(p,_)=>{var b,S=p.$hostElement$,I=S;return _?(cs(S,"componentWillLoad"),b=ar(I,"componentWillLoad")):(cs(S,"componentWillUpdate"),b=ar(I,"componentWillUpdate")),cs(S,"componentWillRender"),b=jd(b,()=>ar(I,"componentWillRender")),jd(b,()=>Vd(p,I,_))},Vd=(p=Rl(function*(_,b,S){var T=_.$hostElement$;S&&(p=>{var _=p.$cmpMeta$,b=p.$hostElement$,S=_.$flags$,I=((p,_,b,S)=>{var T=jl(_,b),I=qd.get(T);if(p=11===p.nodeType?p:kt,I)if("string"==typeof I){var F,x=Bl.get(p=p.head||p);x||Bl.set(p,x=new Set),x.has(T)||((F=kt.createElement("style")).innerHTML=I,p.insertBefore(F,p.querySelector("link")),x&&x.add(T))}else!p.adoptedStyleSheets.includes(I)&&(p.adoptedStyleSheets=[...p.adoptedStyleSheets,I]);return T})(b.shadowRoot?b.shadowRoot:b.getRootNode(),_,p.$modeName$);10&S&&(b["s-sc"]=I,b.classList.add(I+"-h"),2&S&&b.classList.add(I+"-s"))})(_);ma(_,b,T),ga(_)}),function(_,b,S){return p.apply(this,arguments)}),ma=(p,_,b)=>{try{_=_.render&&_.render(),p.$flags$&=-17,p.$flags$|=2,qn(p,_)}catch(x){Oi(x,p.$hostElement$)}return null},ga=p=>{var b=p.$hostElement$,T=b;ar(T,"componentDidRender"),cs(b,"componentDidRender"),64&p.$flags$?(ar(T,"componentDidUpdate"),cs(b,"componentDidUpdate")):(p.$flags$|=64,ar(T,"componentDidLoad"),cs(b,"componentDidLoad"))},ar=(p,_,b)=>{if(p&&p[_])try{return p[_](b)}catch(S){Oi(S)}},jd=(p,_)=>p&&p.then?p.then(_):_(),cs=(p,_)=>{},HC=(p,_,b)=>{if(_.$members$){p.watchers&&(_.$watchers$=p.watchers);var S=Object.entries(_.$members$),T=p.prototype;S.map(([F,[x]])=>{(31&x||32&x)&&Object.defineProperty(T,F,{get(){return V=F,ya(this).$instanceValues$.get(V);var V},set(V){((p,_,b,S)=>{var T,I,F=ya(p),x=p,V=F.$instanceValues$.get(_),B=F.$flags$,ve=x;if(I=S.$members$[_][0],(b=null==(T=b)||Hl(T)?T:4&I?"false"!==T&&(""===T||!!T):2&I?parseFloat(T):1&I?String(T):T)!==V&&(F.$instanceValues$.set(_,b),1)){if(S.$watchers$&&128&B){var be=S.$watchers$[_];be&&be.map(Ve=>{try{ve[Ve](b,V,_)}catch(Wt){Oi(Wt,x)}})}if(2==(18&B)){if(ve.componentShouldUpdate&&!1===ve.componentShouldUpdate(b,V,_))return;ls(F,!1)}}})(this,F,V,_)},configurable:!0,enumerable:!0})});var I=new Map;T.attributeChangedCallback=function(F,x,V){We.jmp(()=>{var B=I.get(F);this[B]=(null!==V||"boolean"!=typeof this[B])&&V})},p.observedAttributes=S.filter(([F,x])=>15&x[0]).map(([F,x])=>{var V=x[1]||F;return I.set(V,F),512&x[0]&&_.$attrsToReflect$.push([F,V]),V})}return p},UC=function(){var p=Rl(function*(_,b,S,T,I){if(0==(32&b.$flags$)&&(I=_.constructor,b.$flags$|=160,I.style)){var V=I.style;"string"!=typeof V&&(V=V[b.$modeName$=(p=>PF.map(_=>_(p)).find(_=>!!_))(_)]);var B=jl(S,b.$modeName$);if(!qd.has(B)){((p,_,b)=>{var S=qd.get(p);Rg&&b?(S=S||new CSSStyleSheet).replace(_):S=_,qd.set(p,S)})(B,V,!!(1&S.$flags$))}}ls(b,!0)});return function(_,b,S,T,I){return p.apply(this,arguments)}}(),xF=(p,_)=>{var b={$flags$:_[0],$tagName$:_[1]};b.$members$=_[2],b.$listeners$=_[3],b.$watchers$=p.$watchers$,b.$attrsToReflect$=[];var S=p.prototype.connectedCallback,T=p.prototype.disconnectedCallback;return Object.assign(p.prototype,{__registerHost(){IF(this,b)},connectedCallback(){(p=>{if(0==(1&We.$flags$)){var _=ya(p),b=_.$cmpMeta$;1&_.$flags$?zn(p,_,b.$listeners$):(_.$flags$|=1,12&b.$flags$&&(p=>{var _=p["s-cr"]=kt.createComment("");_["s-cn"]=!0,p.insertBefore(_,p.firstChild)})(p),UC(p,_,b))}})(this),S&&S.call(this)},disconnectedCallback(){(p=>{if(0==(1&We.$flags$)){var _=ya(this);_.$rmListeners$&&(_.$rmListeners$.map(S=>S()),_.$rmListeners$=void 0)}})(),T&&T.call(this)}}),p.is=b.$tagName$,HC(p,b)},AF=p=>{p.attachShadow({mode:"open"})},qC=new WeakMap,ya=p=>qC.get(p),IF=(p,_)=>{var b={$flags$:0,$hostElement$:p,$cmpMeta$:_,$instanceValues$:new Map};return zn(p,b,_.$listeners$),qC.set(p,b)},GC=(p,_)=>_ in p,Oi=(p,_)=>(0,console.error)(p,_),qd=new Map,PF=[],jg=[],Qs=[],ZC=p=>{for(var _=0;_<p.length;_++)try{p[_](performance.now())}catch(b){Oi(b)}p.length=0},Gd=()=>{ZC(jg),ZC(Qs),(zs=jg.length>0)&&We.raf(Gd)},OF=((p,_)=>b=>{p.push(b),zs||(zs=!0,4&We.$flags$?(p=>{Promise.resolve(void 0).then(p)})(Gd):We.raf(Gd))})(Qs)},195:function(n,t,e){e.r(t),e.d(t,"scopeCss",function(){return ee});var r=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",i=new RegExp("(-shadowcsshost"+r,"gim"),s=new RegExp("(-shadowcsscontext"+r,"gim"),o=new RegExp("(-shadowcssslotted"+r,"gim"),a=/-shadowcsshost-no-combinator([^\s]*)/,l=[/::shadow/g,/::content/g],c=/-shadowcsshost/gim,u=/:host/gim,d=/::slotted/gim,h=/:host-context/gim,f=/\/\*\s*[\s\S]*?\*\//g,m=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,y=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,C=/([{}])/g,E=(Z,ue)=>{var oe=D(Z),Te=0;return oe.escapedString.replace(y,(...de)=>{var L=de[2],z="",Q=de[4],le="";Q&&Q.startsWith("{%BLOCK%")&&(z=oe.blocks[Te++],Q=Q.substring(8),le="{");var ae=ue({selector:L,content:z});return"".concat(de[1]).concat(ae.selector).concat(de[3]).concat(le).concat(ae.content).concat(Q)})},D=Z=>{for(var ue=Z.split(C),oe=[],Te=[],de=0,L=[],z=0;z<ue.length;z++){var Q=ue[z];"}"===Q&&de--,de>0?L.push(Q):(L.length>0&&(Te.push(L.join("")),oe.push("%BLOCK%"),L=[]),oe.push(Q)),"{"===Q&&de++}return L.length>0&&(Te.push(L.join("")),oe.push("%BLOCK%")),{escapedString:oe.join(""),blocks:Te}},O=(Z,ue,oe)=>Z.replace(ue,(...Te)=>{if(Te[2]){for(var de=Te[2].split(","),L=[],z=0;z<de.length;z++){var Q=de[z].trim();if(!Q)break;L.push(oe("-shadowcsshost-no-combinator",Q,Te[3]))}return L.join(",")}return"-shadowcsshost-no-combinator"+Te[3]}),j=(Z,ue,oe)=>Z+ue.replace("-shadowcsshost","")+oe,ie=(Z,ue,oe)=>ue.indexOf("-shadowcsshost")>-1?j(Z,ue,oe):Z+ue+oe+", "+ue+" "+Z+oe,Fe=(Z,ue,oe,Te,de)=>E(Z,L=>{var ae,X,re,z=L.selector,Q=L.content;return"@"!==L.selector[0]?(ae=ue,X=oe,re=Te,z=L.selector.split(",").map(Ne=>re&&Ne.indexOf("."+re)>-1?Ne.trim():((Z,ue)=>{return!(oe=ue,oe=oe.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+oe+")([>\\s~+[.,{:][\\s\\S]*)?$","m")).test(Z);var oe})(Ne,ae)?((Z,ue,oe)=>{for(var Te,de="."+(ue=ue.replace(/\[is=([^\]]*)\]/g,(Re,...fe)=>fe[0])),L=Re=>{var fe=Re.trim();if(!fe)return"";if(Re.indexOf("-shadowcsshost-no-combinator")>-1)fe=((At,ft,vt)=>{if(c.lastIndex=0,c.test(At)){var Dr=".".concat(vt);return At.replace(a,(sr,or)=>or.replace(/([^:]*)(:*)(.*)/,(bt,js,nn,Gr)=>js+Dr+nn+Gr)).replace(c,Dr+" ")}return ft+" "+At})(Re,ue,oe);else{var Ge=Re.replace(c,"");if(Ge.length>0){var Ht=Ge.match(/([^:]*)(:*)(.*)/);Ht&&(fe=Ht[1]+de+Ht[2]+Ht[3])}}return fe},z=(Re=>{var fe=[],Ge=0;return{content:(Re=Re.replace(/(\[[^\]]*\])/g,(Ht,At)=>{var ft="__ph-".concat(Ge,"__");return fe.push(At),Ge++,ft})).replace(/(:nth-[-\w]+)(\([^)]+\))/g,(Ht,At,ft)=>{var vt="__ph-".concat(Ge,"__");return fe.push(ft),Ge++,At+vt}),placeholders:fe}})(Z),Q="",le=0,ae=/( |>|\+|~(?!=))\s*/g,X=!((Z=z.content).indexOf("-shadowcsshost-no-combinator")>-1);null!==(Te=ae.exec(Z));){var re=Te[1],Ne=Z.slice(le,Te.index).trim(),he=(X=X||Ne.indexOf("-shadowcsshost-no-combinator")>-1)?L(Ne):Ne;Q+="".concat(he," ").concat(re," "),le=ae.lastIndex}var nt,Qe=Z.substring(le);return Q+=(X=X||Qe.indexOf("-shadowcsshost-no-combinator")>-1)?L(Qe):Qe,nt=z.placeholders,Q.replace(/__ph-(\d+)__/g,(Re,fe)=>nt[+fe])})(Ne,ae,X).trim():Ne.trim()).join(", ")):(L.selector.startsWith("@media")||L.selector.startsWith("@supports")||L.selector.startsWith("@page")||L.selector.startsWith("@document"))&&(Q=Fe(L.content,ue,oe,Te)),{selector:z.replace(/\s{2,}/g," ").trim(),content:Q}}),ee=(Z,ue,oe)=>{var Te=ue+"-h",de=ue+"-s",L=Z.match(m)||[];Z=Z.replace(f,"");var z=[];if(oe){var Q=ae=>{var X="/*!@___".concat(z.length,"___*/"),re="/*!@".concat(ae.selector,"*/");return z.push({placeholder:X,comment:re}),ae.selector=X+ae.selector,ae};Z=E(Z,ae=>"@"!==ae.selector[0]?Q(ae):((ae.selector.startsWith("@media")||ae.selector.startsWith("@supports")||ae.selector.startsWith("@page")||ae.selector.startsWith("@document"))&&(ae.content=E(ae.content,Q)),ae))}var le=((Z,ue,oe,Te,de)=>{var z,L=((z,Q)=>{var le="."+Q+" > ",ae=[];return z=z.replace(o,(...X)=>{if(X[2]){for(var re=X[2].trim(),he=le+re+X[3],nt="",Qe=X[4]-1;Qe>=0;Qe--){var Re=X[5][Qe];if("}"===Re||","===Re)break;nt=Re+nt}var fe=nt+he,Ge="".concat(nt.trimRight()).concat(he.trim());if(fe.trim()!==Ge.trim()){var Ht="".concat(Ge,", ").concat(fe);ae.push({orgSelector:fe,updatedSelector:Ht})}return he}return"-shadowcsshost-no-combinator"+X[3]}),{selectors:ae,cssText:z}})(Z=(z=>O(z,s,ie))((z=Z=Z.replace(h,"-shadowcsscontext").replace(u,"-shadowcsshost").replace(d,"-shadowcssslotted"),Z=O(z,i,j))),Te);return Z=(z=>l.reduce((Q,le)=>Q.replace(le," "),z))(Z=L.cssText),ue&&(Z=Fe(Z,ue,oe,Te)),{cssText:(Z=(Z=Z.replace(/-shadowcsshost-no-combinator/g,".".concat(oe))).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:L.selectors}})(Z,ue,Te,de);return Z=[le.cssText,...L].join("\n"),oe&&z.forEach(({placeholder:ae,comment:X})=>{Z=Z.replace(ae,X)}),le.slottedSelectors.forEach(ae=>{Z=Z.replace(ae.orgSelector,ae.updatedSelector)}),Z}},44:function(n,t){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(r){"object"==typeof window&&(e=window)}n.exports=e}});let WI=(()=>{class n{constructor(e,r){this.renderer=e,this.elRef=r,this.buttonClick=new ze,this.buttonStyle="white-outline",this.locale="en-US",this.type="continue"}ngAfterViewInit(){this.createButton()}ngOnDestroy(){this.buttonClickListener&&(this.buttonClickListener(),this.buttonClickListener=null)}createButton(){const e=this.renderer.createElement("apple-pay-button");this.renderer.setAttribute(e,"type",this.type),this.renderer.setAttribute(e,"buttonstyle",this.buttonStyle),this.renderer.setAttribute(e,"locale",this.locale),this.buttonClickListener=this.renderer.listen(e,"click",r=>this.buttonClick.emit(r)),this.renderer.appendChild(this.elRef.nativeElement,e),this.renderer.setStyle(e,"display","inline-block")}}return n.\u0275fac=function(e){return new(e||n)(k(oi),k(Vn))},n.\u0275dir=we({type:n,selectors:[["","motoApplePayButton",""]],inputs:{buttonStyle:"buttonStyle",locale:"locale",type:"type"},outputs:{buttonClick:"buttonClick"}}),n})(),KI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ct({type:n}),n.\u0275inj=gt({}),n})();const He=!1;function D8(n){return new se(3e3,He)}function xk(){return"undefined"!=typeof window&&void 0!==window.document}function Qm(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ns(n){switch(n.length){case 0:return new bl;case 1:return n[0];default:return new pw(n)}}function E8(n,t,e,r,i={},s={}){const o=[],a=[];let l=-1,c=null;if(r.forEach(u=>{const d=u.offset,h=d==l,f=h&&c||{};Object.keys(u).forEach(m=>{let y=m,C=u[m];if("offset"!==m)switch(y=t.normalizePropertyName(y,o),C){case"!":C=i[m];break;case Mi:C=s[m];break;default:C=t.normalizeStyleValue(m,y,C,o)}f[y]=C}),h||a.push(f),c=f,l=d}),o.length)throw function yk(n){return new se(3502,He)}();return a}function Ym(n,t,e,r){switch(t){case"start":n.onStart(()=>r(e&&Jm(e,"start",n)));break;case"done":n.onDone(()=>r(e&&Jm(e,"done",n)));break;case"destroy":n.onDestroy(()=>r(e&&Jm(e,"destroy",n)))}}function Jm(n,t,e){const r=e.totalTime,s=Xm(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==r?n.totalTime:r,!!e.disabled),o=n._data;return null!=o&&(s._data=o),s}function Xm(n,t,e,r,i="",s=0,o){return{element:n,triggerName:t,fromState:e,toState:r,phaseName:i,totalTime:s,disabled:!!o}}function rr(n,t,e){let r;return n instanceof Map?(r=n.get(t),r||n.set(t,r=e)):(r=n[t],r||(r=n[t]=e)),r}function S8(n){const t=n.indexOf(":");return[n.substring(1,t),n.substr(t+1)]}let eg=(n,t)=>!1,M8=(n,t,e)=>[],T8=null;function tg(n){const t=n.parentNode||n.host;return t===T8?null:t}(Qm()||"undefined"!=typeof Element)&&(xk()?(T8=(()=>document.documentElement)(),eg=(n,t)=>{for(;t;){if(t===n)return!0;t=tg(t)}return!1}):eg=(n,t)=>n.contains(t),M8=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const r=n.querySelector(t);return r?[r]:[]});let Ns=null,x8=!1;function A8(n){Ns||(Ns=function Ik(){return"undefined"!=typeof document?document.body:null}()||{},x8=!!Ns.style&&"WebkitAppearance"in Ns.style);let t=!0;return Ns.style&&!function Ak(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in Ns.style,!t&&x8&&(t="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Ns.style)),t}const I8=eg,k8=M8;let P8=(()=>{class n{validateStyleProperty(e){return A8(e)}matchesElement(e,r){return!1}containsElement(e,r){return I8(e,r)}getParentElement(e){return tg(e)}query(e,r,i){return k8(e,r,i)}computeStyle(e,r,i){return i||""}animate(e,r,i,s,o,a=[],l){return new bl(i,s)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})(),ng=(()=>{class n{}return n.NOOP=new P8,n})();const rg="ng-enter",td="ng-leave",nd="ng-trigger",rd=".ng-trigger",O8="ng-animating",ig=".ng-animating";function Os(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:sg(parseFloat(t[1]),t[2])}function sg(n,t){return"s"===t?1e3*n:n}function id(n,t,e){return n.hasOwnProperty("duration")?n:function Nk(n,t,e){let i,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(D8()),{duration:0,delay:0,easing:""};i=sg(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=sg(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else i=n;if(!e){let a=!1,l=t.length;i<0&&(t.push(function ZI(){return new se(3100,He)}()),a=!0),s<0&&(t.push(function QI(){return new se(3101,He)}()),a=!0),a&&t.splice(l,0,D8())}return{duration:i,delay:s,easing:o}}(n,t,e)}function Yo(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function rs(n,t,e={}){if(t)for(let r in n)e[r]=n[r];else Yo(n,e);return e}function R8(n,t,e){return e?t+":"+e+";":""}function L8(n){let t="";for(let e=0;e<n.style.length;e++){const r=n.style.item(e);t+=R8(0,r,n.style.getPropertyValue(r))}for(const e in n.style)n.style.hasOwnProperty(e)&&!e.startsWith("_")&&(t+=R8(0,Rk(e),n.style[e]));n.setAttribute("style",t)}function ui(n,t,e){n.style&&(Object.keys(t).forEach(r=>{const i=ag(r);e&&!e.hasOwnProperty(r)&&(e[r]=n.style[i]),n.style[i]=t[r]}),Qm()&&L8(n))}function Fs(n,t){n.style&&(Object.keys(t).forEach(e=>{const r=ag(e);n.style[r]=""}),Qm()&&L8(n))}function xl(n){return Array.isArray(n)?1==n.length?n[0]:hw(n):n}const og=new RegExp("{{\\s*(.+?)\\s*}}","g");function $8(n){let t=[];if("string"==typeof n){let e;for(;e=og.exec(n);)t.push(e[1]);og.lastIndex=0}return t}function sd(n,t,e){const r=n.toString(),i=r.replace(og,(s,o)=>{let a=t[o];return t.hasOwnProperty(o)||(e.push(function JI(n){return new se(3003,He)}()),a=""),a.toString()});return i==r?n:i}function od(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const Fk=/-+([a-z0-9])/g;function ag(n){return n.replace(Fk,(...t)=>t[1].toUpperCase())}function Rk(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ir(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function XI(n){return new se(3004,He)}()}}function V8(n,t){return window.getComputedStyle(n)[t]}function Hk(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(r=>function Uk(n,t,e){if(":"==n[0]){const l=function zk(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,r)=>parseFloat(r)>parseFloat(e);case":decrement":return(e,r)=>parseFloat(r)<parseFloat(e);default:return t.push(function fk(n){return new se(3016,He)}()),"* => *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const r=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return e.push(function hk(n){return new se(3015,He)}()),t;const i=r[1],s=r[2],o=r[3];t.push(B8(i,o));"<"==s[0]&&!("*"==i&&"*"==o)&&t.push(B8(o,i))}(r,e,t)):e.push(n),e}const ud=new Set(["true","1"]),dd=new Set(["false","0"]);function B8(n,t){const e=ud.has(n)||dd.has(n),r=ud.has(t)||dd.has(t);return(i,s)=>{let o="*"==n||n==i,a="*"==t||t==s;return!o&&e&&"boolean"==typeof i&&(o=i?ud.has(n):dd.has(n)),!a&&r&&"boolean"==typeof s&&(a=s?ud.has(t):dd.has(t)),o&&a}}const qk=new RegExp("s*:selfs*,?","g");function lg(n,t,e,r){return new Gk(n).build(t,e,r)}class Gk{constructor(t){this._driver=t}build(t,e,r){const i=new Zk(e);this._resetContextStyleTimingState(i);const s=ir(this,xl(t),i);return i.unsupportedCSSPropertiesFound.size&&i.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let r=e.queryCount=0,i=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push(function tk(){return new se(3006,He)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);r+=l.queryCount,i+=l.depCount,o.push(l)}else e.errors.push(function nk(){return new se(3007,He)}())}),{type:7,name:t.name,states:s,transitions:o,queryCount:r,depCount:i,options:null}}visitState(t,e){const r=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(r.containsDynamicStyles){const s=new Set,o=i||{};r.styles.forEach(a=>{if(hd(a)){const l=a;Object.keys(l).forEach(c=>{$8(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(od(s.values()),e.errors.push(function rk(n,t){return new se(3008,He)}()))}return{type:0,name:t.name,style:r,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const r=ir(this,xl(t.animation),e);return{type:1,matchers:Hk(t.expr,e.errors),animation:r,queryCount:e.queryCount,depCount:e.depCount,options:Rs(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(r=>ir(this,r,e)),options:Rs(t.options)}}visitGroup(t,e){const r=e.currentTime;let i=0;const s=t.steps.map(o=>{e.currentTime=r;const a=ir(this,o,e);return i=Math.max(i,e.currentTime),a});return e.currentTime=i,{type:3,steps:s,options:Rs(t.options)}}visitAnimate(t,e){const r=function Yk(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return cg(id(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=cg(0,0,"");return s.dynamic=!0,s.strValue=e,s}const i=id(e,t);return cg(i.duration,i.delay,i.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;let i,s=t.styles?t.styles:Bt({});if(5==s.type)i=this.visitKeyframes(s,e);else{let o=t.styles,a=!1;if(!o){a=!0;const c={};r.easing&&(c.easing=r.easing),o=Bt(c)}e.currentTime+=r.duration+r.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,i=l}return e.currentAnimateTimings=null,{type:4,timings:r,style:i,options:null}}visitStyle(t,e){const r=this._makeStyleAst(t,e);return this._validateStyleAst(r,e),r}_makeStyleAst(t,e){const r=[];Array.isArray(t.styles)?t.styles.forEach(o=>{"string"==typeof o?o==Mi?r.push(o):e.errors.push(function ik(n){return new se(3002,He)}()):r.push(o)}):r.push(t.styles);let i=!1,s=null;return r.forEach(o=>{if(hd(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!i)for(let c in a)if(a[c].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:r,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const r=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;r&&s>0&&(s-=r.duration+r.delay),t.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void e.unsupportedCSSPropertiesFound.add(a);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let u=!0;c&&(s!=i&&s>=c.startTime&&i<=c.endTime&&(e.errors.push(function sk(n,t,e,r,i){return new se(3010,He)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:i}),e.options&&function Ok(n,t,e){const r=t.params||{},i=$8(n);i.length&&i.forEach(s=>{r.hasOwnProperty(s)||e.push(function YI(n){return new se(3001,He)}())})}(o[a],e.options,e.errors)})})}visitKeyframes(t,e){const r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function ok(){return new se(3011,He)}()),r;let s=0;const o=[];let a=!1,l=!1,c=0;const u=t.steps.map(E=>{const D=this._makeStyleAst(E,e);let O=null!=D.offset?D.offset:function Qk(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(hd(e)&&e.hasOwnProperty("offset")){const r=e;t=parseFloat(r.offset),delete r.offset}});else if(hd(n)&&n.hasOwnProperty("offset")){const e=n;t=parseFloat(e.offset),delete e.offset}return t}(D.styles),j=0;return null!=O&&(s++,j=D.offset=O),l=l||j<0||j>1,a=a||j<c,c=j,o.push(j),D});l&&e.errors.push(function ak(){return new se(3012,He)}()),a&&e.errors.push(function lk(){return new se(3200,He)}());const d=t.steps.length;let h=0;s>0&&s<d?e.errors.push(function ck(){return new se(3202,He)}()):0==s&&(h=1/(d-1));const f=d-1,m=e.currentTime,y=e.currentAnimateTimings,C=y.duration;return u.forEach((E,D)=>{const O=h>0?D==f?1:h*D:o[D],j=O*C;e.currentTime=m+y.delay+j,y.duration=j,this._validateStyleAst(E,e),E.offset=O,r.styles.push(E)}),r}visitReference(t,e){return{type:8,animation:ir(this,xl(t.animation),e),options:Rs(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Rs(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Rs(t.options)}}visitQuery(t,e){const r=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function Wk(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(qk,"")),n=n.replace(/@\*/g,rd).replace(/@\w+/g,e=>rd+"-"+e.substr(1)).replace(/:animating/g,ig),[n,t]}(t.selector);e.currentQuerySelector=r.length?r+" "+s:s,rr(e.collectedStyles,e.currentQuerySelector,{});const a=ir(this,xl(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=r,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:Rs(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function uk(){return new se(3013,He)}());const r="full"===t.timings?{duration:0,delay:0,easing:"full"}:id(t.timings,e.errors,!0);return{type:12,animation:ir(this,xl(t.animation),e),timings:r,options:null}}}class Zk{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function hd(n){return!Array.isArray(n)&&"object"==typeof n}function Rs(n){return n?(n=Yo(n)).params&&(n.params=function Kk(n){return n?Yo(n):null}(n.params)):n={},n}function cg(n,t,e){return{duration:n,delay:t,easing:e}}function ug(n,t,e,r,i,s,o=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:r,duration:i,delay:s,totalTime:i+s,easing:o,subTimeline:a}}class fd{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let r=this._map.get(t);r||this._map.set(t,r=[]),r.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const eP=new RegExp(":enter","g"),nP=new RegExp(":leave","g");function dg(n,t,e,r,i,s={},o={},a,l,c=[]){return(new rP).buildKeyframes(n,t,e,r,i,s,o,a,l,c)}class rP{buildKeyframes(t,e,r,i,s,o,a,l,c,u=[]){c=c||new fd;const d=new hg(t,e,c,i,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),ir(this,r,d);const h=d.timelines.filter(f=>f.containsAnimation());if(Object.keys(a).length){let f;for(let m=h.length-1;m>=0;m--){const y=h[m];if(y.element===e){f=y;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[ug(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const r=e.subInstructions.get(e.element);if(r){const i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(r,i,i.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const r=e.createSubContext(t.options);r.transformIntoNewTimeline(),this.visitReference(t.animation,r),e.transformIntoNewTimeline(r.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,r){let s=e.currentTimeline.currentTime;const o=null!=r.duration?Os(r.duration):null,a=null!=r.delay?Os(r.delay):null;return 0!==o&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),ir(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const r=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=pd);const o=Os(s.delay);i.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>ir(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const r=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?Os(t.options.delay):0;t.steps.forEach(o=>{const a=e.createSubContext(t.options);s&&a.delayNextStep(s),ir(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const r=t.strValue;return id(e.params?sd(r,e.params,e.errors):r,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const r=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;r.delay&&(e.incrementTime(r.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(r.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const r=e.currentTimeline,i=e.currentAnimateTimings;!i&&r.getCurrentStyleProperties().length&&r.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?r.applyEmptyStep(s):r.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const r=e.currentAnimateTimings,i=e.currentTimeline.duration,s=r.duration,a=e.createSubContext().currentTimeline;a.easing=r.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const r=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?Os(i.delay):0;s&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=pd);let o=r;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);s&&d.delayNextStep(s),c===e.element&&(l=d.currentTimeline),ir(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const r=e.parentContext,i=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;ir(this,t.animation,e),e.previousNode=t,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}}const pd={};class hg{constructor(t,e,r,i,s,o,a,l){this._driver=t,this.element=e,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=pd,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new md(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const r=t;let i=this.options;null!=r.duration&&(i.duration=Os(r.duration)),null!=r.delay&&(i.delay=Os(r.delay));const s=r.params;if(s){let o=i.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=sd(s[a],o,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const r=t.params={};Object.keys(e).forEach(i=>{r[i]=e[i]})}}return t}createSubContext(t=null,e,r){const i=e||this.element,s=new hg(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(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=pd,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,r){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=r?r:0)+t.delay,easing:""},s=new iP(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,r,i,s,o){let a=[];if(i&&a.push(this.element),t.length>0){t=(t=t.replace(eP,"."+this._enterClassName)).replace(nP,"."+this._leaveClassName);let c=this._driver.query(this.element,t,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 dk(n){return new se(3014,He)}()),a}}class md{constructor(t,e,r,i){this._driver=t,this.element=e,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new md(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Mi,this._currentKeyframe[e]=Mi}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,r,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},o=function sP(n,t){const e={};let r;return n.forEach(i=>{"*"===i?(r=r||Object.keys(t),r.forEach(s=>{e[s]=Mi})):rs(i,!1,e)}),e}(t,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=sd(o[a],s,r);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:Mi),this._updateStyle(a,l)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(r=>{this._currentKeyframe[r]=t[r]}),Object.keys(this._localTimelineStyles).forEach(r=>{this._currentKeyframe.hasOwnProperty(r)||(this._currentKeyframe[r]=this._localTimelineStyles[r])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const r=this._styleSummary[e],i=t._styleSummary[e];(!r||i.time>r.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,r=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((a,l)=>{const c=rs(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?t.add(u):d==Mi&&e.add(u)}),r||(c.offset=l/this.duration),i.push(c)});const s=t.size?od(t.values()):[],o=e.size?od(e.values()):[];if(r){const a=i[0],l=Yo(a);a.offset=0,l.offset=1,i=[a,l]}return ug(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class iP extends md{constructor(t,e,r,i,s,o,a=!1){super(t,e,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 t=this.keyframes,{delay:e,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=r+e,a=e/o,l=rs(t[0],!1);l.offset=0,s.push(l);const c=rs(t[0],!1);c.offset=U8(a),s.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=rs(t[d],!1);h.offset=U8((e+h.offset*r)/o),s.push(h)}r=o,e=0,i="",t=s}return ug(this.element,t,this.preStyleProps,this.postStyleProps,r,e,i,!0)}}function U8(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class fg{}class oP extends fg{normalizePropertyName(t,e){return ag(t)}normalizeStyleValue(t,e,r,i){let s="";const o=r.toString().trim();if(aP[e]&&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 ek(n,t){return new se(3005,He)}())}return o+s}}const aP=(()=>function lP(n){const t={};return n.forEach(e=>t[e]=!0),t}("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".split(",")))();function z8(n,t,e,r,i,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:i,fromState:e,fromStyles:s,toState:r,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const pg={};class q8{constructor(t,e,r){this._triggerName=t,this.ast=e,this._stateStyles=r}match(t,e,r,i){return function cP(n,t,e,r,i){return n.some(s=>s(t,e,r,i))}(this.ast.matchers,t,e,r,i)}buildStyles(t,e,r){const i=this._stateStyles["*"],s=this._stateStyles[t],o=i?i.buildStyles(e,r):{};return s?s.buildStyles(e,r):o}build(t,e,r,i,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||pg,m=this.buildStyles(r,a&&a.params||pg,d),y=l&&l.params||pg,C=this.buildStyles(i,y,d),E=new Set,D=new Map,O=new Map,j="void"===i,ie={params:Object.assign(Object.assign({},h),y)},G=u?[]:dg(t,e,this.ast.animation,s,o,m,C,ie,c,d);let Ce=0;if(G.forEach(A=>{Ce=Math.max(A.duration+A.delay,Ce)}),d.length)return z8(e,this._triggerName,r,i,j,m,C,[],[],D,O,Ce,d);G.forEach(A=>{const ee=A.element,Z=rr(D,ee,{});A.preStyleProps.forEach(oe=>Z[oe]=!0);const ue=rr(O,ee,{});A.postStyleProps.forEach(oe=>ue[oe]=!0),ee!==e&&E.add(ee)});const Fe=od(E.values());return z8(e,this._triggerName,r,i,j,m,C,G,Fe,D,O,Ce)}}class uP{constructor(t,e,r){this.styles=t,this.defaultParams=e,this.normalizer=r}buildStyles(t,e){const r={},i=Yo(this.defaultParams);return Object.keys(t).forEach(s=>{const o=t[s];null!=o&&(i[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=sd(l,i,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),r[c]=l})}}),r}}class hP{constructor(t,e,r){this.name=t,this.ast=e,this._normalizer=r,this.transitionFactories=[],this.states={},e.states.forEach(i=>{this.states[i.name]=new uP(i.style,i.options&&i.options.params||{},r)}),G8(this.states,"true","1"),G8(this.states,"false","0"),e.transitions.forEach(i=>{this.transitionFactories.push(new q8(t,i,this.states))}),this.fallbackTransition=function fP(n,t,e){return new q8(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,r,i){return this.transitionFactories.find(o=>o.match(t,e,r,i))||null}matchStyles(t,e,r){return this.fallbackTransition.buildStyles(t,e,r)}}function G8(n,t,e){n.hasOwnProperty(t)?n.hasOwnProperty(e)||(n[e]=n[t]):n.hasOwnProperty(e)&&(n[t]=n[e])}const pP=new fd;class mP{constructor(t,e,r){this.bodyNode=t,this._driver=e,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}register(t,e){const r=[],s=lg(this._driver,e,r,[]);if(r.length)throw function _k(n){return new se(3503,He)}();this._animations[t]=s}_buildPlayer(t,e,r){const i=t.element,s=E8(0,this._normalizer,0,t.keyframes,e,r);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,r={}){const i=[],s=this._animations[t];let o;const a=new Map;if(s?(o=dg(this._driver,e,s,rg,td,{},{},r,pP,i),o.forEach(u=>{const d=rr(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(i.push(function vk(){return new se(3300,He)}()),o=[]),i.length)throw function bk(n){return new se(3504,He)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,Mi)})});const c=ns(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const r=this.players.indexOf(e);r>=0&&this.players.splice(r,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw function wk(n){return new se(3301,He)}();return e}listen(t,e,r,i){const s=Xm(e,"","","");return Ym(this._getPlayer(t),r,s,i),()=>{}}command(t,e,r,i){if("register"==r)return void this.register(t,i[0]);if("create"==r)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);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(t)}}}const W8="ng-animate-queued",mg="ng-animate-disabled",bP=[],K8={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},wP={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},wr="__ng_removed";class gg{constructor(t,e=""){this.namespaceId=e;const r=t&&t.hasOwnProperty("value");if(this.value=function SP(n){return null!=n?n:null}(r?t.value:t),r){const s=Yo(t);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const r=this.options.params;Object.keys(e).forEach(i=>{null==r[i]&&(r[i]=e[i])})}}}const Al="void",yg=new gg(Al);class CP{constructor(t,e,r){this.id=t,this.hostElement=e,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Cr(e,this._hostClassName)}listen(t,e,r,i){if(!this._triggers.hasOwnProperty(e))throw function Ck(n,t){return new se(3302,He)}();if(null==r||0==r.length)throw function Dk(n){return new se(3303,He)}();if(!function MP(n){return"start"==n||"done"==n}(r))throw function Ek(n,t){return new se(3400,He)}();const s=rr(this._elementListeners,t,[]),o={name:e,phase:r,callback:i};s.push(o);const a=rr(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Cr(t,nd),Cr(t,nd+"-"+e),a[e]=yg),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw function Sk(n){return new se(3401,He)}();return e}trigger(t,e,r,i=!0){const s=this._getTrigger(e),o=new _g(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(Cr(t,nd),Cr(t,nd+"-"+e),this._engine.statesByElement.set(t,a={}));let l=a[e];const c=new gg(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=yg),c.value!==Al&&l.value===c.value){if(!function AP(n,t){const e=Object.keys(n),r=Object.keys(t);if(e.length!=r.length)return!1;for(let i=0;i<e.length;i++){const s=e[i];if(!t.hasOwnProperty(s)||n[s]!==t[s])return!1}return!0}(l.params,c.params)){const y=[],C=s.matchStyles(l.value,l.params,y),E=s.matchStyles(c.value,c.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{Fs(t,C),ui(t,E)})}return}const h=rr(this._engine.playersByElement,t,[]);h.forEach(y=>{y.namespaceId==this.id&&y.triggerName==e&&y.queued&&y.destroy()});let f=s.matchTransition(l.value,c.value,t,c.params),m=!1;if(!f){if(!i)return;f=s.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:m}),m||(Cr(t,W8),o.onStart(()=>{Jo(t,W8)})),o.onDone(()=>{let y=this.players.indexOf(o);y>=0&&this.players.splice(y,1);const C=this._engine.playersByElement.get(t);if(C){let E=C.indexOf(o);E>=0&&C.splice(E,1)}}),this.players.push(o),h.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,r)=>{delete e[t]}),this._elementListeners.forEach((e,r)=>{this._elementListeners.set(r,e.filter(i=>i.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(r=>r.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const r=this._engine.driver.query(t,rd,!0);r.forEach(i=>{if(i[wr])return;const s=this._engine.fetchNamespacesByElement(i);s.size?s.forEach(o=>o.triggerLeaveAnimation(i,e,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(t,e,r,i){const s=this._engine.statesByElement.get(t),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const c=this.trigger(t,l,Al,i);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,o),r&&ns(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),r=this._engine.statesByElement.get(t);if(e&&r){const i=new Set;e.forEach(s=>{const o=s.name;if(i.has(o))return;i.add(o);const l=this._triggers[o].fallbackTransition,c=r[o]||yg,u=new gg(Al),d=new _g(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const r=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(r.totalAnimations){const s=r.players.length?r.playersByQueriedElement.get(t):[];if(s&&s.length)i=!0;else{let o=t;for(;o=o.parentNode;)if(r.statesByElement.get(o)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)r.markElementAsRemoved(this.id,t,!1,e);else{const s=t[wr];(!s||s===K8)&&(r.afterFlush(()=>this.clearElementCache(t)),r.destroyInnerAnimations(t),r._onRemovalComplete(t,e))}}insertNode(t,e){Cr(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];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=Xm(s,r.triggerName,r.fromState.value,r.toState.value);l._data=t,Ym(r.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(r)}),this._queue=[],e.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(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(r=>r.element===t)||e,e}}class DP{constructor(t,e,r){this.bodyNode=t,this.driver=e,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)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(r=>{r.queued&&t.push(r)})}),t}createNamespace(t,e){const r=new CP(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(r,e):(this.newHostElements.set(e,r),this.collectEnterElement(e)),this._namespaceLookup[t]=r}_balanceNamespaceList(t,e){const r=this._namespaceList,i=this.namespacesByHostElement,s=r.length-1;if(s>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(e);for(;a;){const l=i.get(a);if(l){const c=r.indexOf(l);r.splice(c+1,0,t),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(r[a].hostElement,e)){r.splice(a+1,0,t),o=!0;break}o||r.unshift(t)}else r.push(t);return i.set(e,t),t}register(t,e){let r=this._namespaceLookup[t];return r||(r=this.createNamespace(t,e)),r}registerTrigger(t,e,r){let i=this._namespaceLookup[t];i&&i.register(e,r)&&this.totalAnimations++}destroy(t,e){if(!t)return;const r=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(r.hostElement),delete this._namespaceLookup[t];const i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1)}),this.afterFlushAnimationsDone(()=>r.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,r=this.statesByElement.get(t);if(r){const i=Object.keys(r);for(let s=0;s<i.length;s++){const o=r[i[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&e.add(a)}}}return e}trigger(t,e,r,i){if(gd(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,r,i),!0}return!1}insertNode(t,e,r,i){if(!gd(e))return;const s=e[wr];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){const o=this._fetchNamespace(t);o&&o.insertNode(e,r)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Cr(t,mg)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Jo(t,mg))}removeNode(t,e,r,i){if(gd(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),r){const o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,r,i,s){this.collectedLeaveElements.push(e),e[wr]={namespaceId:t,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,r,i,s){return gd(e)?this._fetchNamespace(t).listen(e,r,i,s):()=>{}}_buildInstruction(t,e,r,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,r,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,rd,!0);e.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,ig,!0),e.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return ns(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;const r=t[wr];if(r&&r.setForRemoval){if(t[wr]=K8,r.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(r.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,r.setForRemoval)}(null===(e=t.classList)||void 0===e?void 0:e.contains(mg))&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];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++)Cr(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const r=[];try{e=this._flushAnimations(r,t)}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=[],e.length?ns(e).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(t){throw function Mk(n){return new se(3402,He)}()}_flushAnimations(t,e){const r=new fd,i=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(L=>{u.add(L);const z=this.driver.query(L,".ng-animate-queued",!0);for(let Q=0;Q<z.length;Q++)u.add(z[Q])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=Y8(h,this.collectedEnterElements),m=new Map;let y=0;f.forEach((L,z)=>{const Q=rg+y++;m.set(z,Q),L.forEach(le=>Cr(le,Q))});const C=[],E=new Set,D=new Set;for(let L=0;L<this.collectedLeaveElements.length;L++){const z=this.collectedLeaveElements[L],Q=z[wr];Q&&Q.setForRemoval&&(C.push(z),E.add(z),Q.hasAnimation?this.driver.query(z,".ng-star-inserted",!0).forEach(le=>E.add(le)):D.add(z))}const O=new Map,j=Y8(h,Array.from(E));j.forEach((L,z)=>{const Q=td+y++;O.set(z,Q),L.forEach(le=>Cr(le,Q))}),t.push(()=>{f.forEach((L,z)=>{const Q=m.get(z);L.forEach(le=>Jo(le,Q))}),j.forEach((L,z)=>{const Q=O.get(z);L.forEach(le=>Jo(le,Q))}),C.forEach(L=>{this.processLeaveNode(L)})});const ie=[],G=[];for(let L=this._namespaceList.length-1;L>=0;L--)this._namespaceList[L].drainQueuedTransitions(e).forEach(Q=>{const le=Q.player,ae=Q.element;if(ie.push(le),this.collectedEnterElements.length){const Re=ae[wr];if(Re&&Re.setForMove){if(Re.previousTriggersValues&&Re.previousTriggersValues.has(Q.triggerName)){const fe=Re.previousTriggersValues.get(Q.triggerName),Ge=this.statesByElement.get(Q.element);Ge&&Ge[Q.triggerName]&&(Ge[Q.triggerName].value=fe)}return void le.destroy()}}const X=!d||!this.driver.containsElement(d,ae),re=O.get(ae),Ne=m.get(ae),he=this._buildInstruction(Q,r,Ne,re,X);if(he.errors&&he.errors.length)return void G.push(he);if(X)return le.onStart(()=>Fs(ae,he.fromStyles)),le.onDestroy(()=>ui(ae,he.toStyles)),void i.push(le);if(Q.isFallbackTransition)return le.onStart(()=>Fs(ae,he.fromStyles)),le.onDestroy(()=>ui(ae,he.toStyles)),void i.push(le);const nt=[];he.timelines.forEach(Re=>{Re.stretchStartingKeyframe=!0,this.disabledNodes.has(Re.element)||nt.push(Re)}),he.timelines=nt,r.append(ae,he.timelines),o.push({instruction:he,player:le,element:ae}),he.queriedElements.forEach(Re=>rr(a,Re,[]).push(le)),he.preStyleProps.forEach((Re,fe)=>{const Ge=Object.keys(Re);if(Ge.length){let Ht=l.get(fe);Ht||l.set(fe,Ht=new Set),Ge.forEach(At=>Ht.add(At))}}),he.postStyleProps.forEach((Re,fe)=>{const Ge=Object.keys(Re);let Ht=c.get(fe);Ht||c.set(fe,Ht=new Set),Ge.forEach(At=>Ht.add(At))})});if(G.length){const L=[];G.forEach(z=>{L.push(function Tk(n,t){return new se(3505,He)}())}),ie.forEach(z=>z.destroy()),this.reportError(L)}const Ce=new Map,Fe=new Map;o.forEach(L=>{const z=L.element;r.has(z)&&(Fe.set(z,z),this._beforeAnimationBuild(L.player.namespaceId,L.instruction,Ce))}),i.forEach(L=>{const z=L.element;this._getPreviousPlayers(z,!1,L.namespaceId,L.triggerName,null).forEach(le=>{rr(Ce,z,[]).push(le),le.destroy()})});const A=C.filter(L=>X8(L,l,c)),ee=new Map;Q8(ee,this.driver,D,c,Mi).forEach(L=>{X8(L,l,c)&&A.push(L)});const ue=new Map;f.forEach((L,z)=>{Q8(ue,this.driver,new Set(L),l,"!")}),A.forEach(L=>{const z=ee.get(L),Q=ue.get(L);ee.set(L,Object.assign(Object.assign({},z),Q))});const oe=[],Te=[],de={};o.forEach(L=>{const{element:z,player:Q,instruction:le}=L;if(r.has(z)){if(u.has(z))return Q.onDestroy(()=>ui(z,le.toStyles)),Q.disabled=!0,Q.overrideTotalTime(le.totalTime),void i.push(Q);let ae=de;if(Fe.size>1){let re=z;const Ne=[];for(;re=re.parentNode;){const he=Fe.get(re);if(he){ae=he;break}Ne.push(re)}Ne.forEach(he=>Fe.set(he,ae))}const X=this._buildAnimation(Q.namespaceId,le,Ce,s,ue,ee);if(Q.setRealPlayer(X),ae===de)oe.push(Q);else{const re=this.playersByElement.get(ae);re&&re.length&&(Q.parentPlayer=ns(re)),i.push(Q)}}else Fs(z,le.fromStyles),Q.onDestroy(()=>ui(z,le.toStyles)),Te.push(Q),u.has(z)&&i.push(Q)}),Te.forEach(L=>{const z=s.get(L.element);if(z&&z.length){const Q=ns(z);L.setRealPlayer(Q)}}),i.forEach(L=>{L.parentPlayer?L.syncPlayerEvents(L.parentPlayer):L.destroy()});for(let L=0;L<C.length;L++){const z=C[L],Q=z[wr];if(Jo(z,td),Q&&Q.hasAnimation)continue;let le=[];if(a.size){let X=a.get(z);X&&X.length&&le.push(...X);let re=this.driver.query(z,ig,!0);for(let Ne=0;Ne<re.length;Ne++){let he=a.get(re[Ne]);he&&he.length&&le.push(...he)}}const ae=le.filter(X=>!X.destroyed);ae.length?TP(this,z,ae):this.processLeaveNode(z)}return C.length=0,oe.forEach(L=>{this.players.push(L),L.onDone(()=>{L.destroy();const z=this.players.indexOf(L);this.players.splice(z,1)}),L.play()}),oe}elementContainsData(t,e){let r=!1;const i=e[wr];return i&&i.setForRemoval&&(r=!0),this.playersByElement.has(e)&&(r=!0),this.playersByQueriedElement.has(e)&&(r=!0),this.statesByElement.has(e)&&(r=!0),this._fetchNamespace(t).elementContainsData(e)||r}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,r,i,s){let o=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(o=a)}else{const a=this.playersByElement.get(t);if(a){const l=!s||s==Al;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(t,e,r){const s=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==s,d=rr(r,c,[]);this._getPreviousPlayers(c,u,o,a,e.toState).forEach(f=>{const m=f.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),f.destroy(),d.push(f)})}Fs(s,e.fromStyles)}_buildAnimation(t,e,r,i,s,o){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(m=>{const y=m.element;u.add(y);const C=y[wr];if(C&&C.removedBeforeQueried)return new bl(m.duration,m.delay);const E=y!==l,D=function xP(n){const t=[];return J8(n,t),t}((r.get(y)||bP).map(Ce=>Ce.getRealPlayer())).filter(Ce=>!!Ce.element&&Ce.element===y),O=s.get(y),j=o.get(y),ie=E8(0,this._normalizer,0,m.keyframes,O,j),G=this._buildPlayer(m,ie,D);if(m.subTimeline&&i&&d.add(y),E){const Ce=new _g(t,a,y);Ce.setRealPlayer(G),c.push(Ce)}return G});c.forEach(m=>{rr(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>function EP(n,t,e){let r;if(n instanceof Map){if(r=n.get(t),r){if(r.length){const i=r.indexOf(e);r.splice(i,1)}0==r.length&&n.delete(t)}}else if(r=n[t],r){if(r.length){const i=r.indexOf(e);r.splice(i,1)}0==r.length&&delete n[t]}return r}(this.playersByQueriedElement,m.element,m))}),u.forEach(m=>Cr(m,O8));const f=ns(h);return f.onDestroy(()=>{u.forEach(m=>Jo(m,O8)),ui(l,e.toStyles)}),d.forEach(m=>{rr(i,m,[]).push(f)}),f}_buildPlayer(t,e,r){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,r):new bl(t.duration,t.delay)}}class _g{constructor(t,e,r){this.namespaceId=t,this.triggerName=e,this.element=r,this._player=new bl,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(r=>Ym(t,e,void 0,r))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){rr(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function gd(n){return n&&1===n.nodeType}function Z8(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function Q8(n,t,e,r,i){const s=[];e.forEach(l=>s.push(Z8(l)));const o=[];r.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=t.computeStyle(c,d,i);(!h||0==h.length)&&(c[wr]=wP,o.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>Z8(l,s[a++])),o}function Y8(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const i=new Set(t),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=e.has(c)?c:i.has(c)?1:o(c),s.set(a,l),l}return t.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}function Cr(n,t){var e;null===(e=n.classList)||void 0===e||e.add(t)}function Jo(n,t){var e;null===(e=n.classList)||void 0===e||e.remove(t)}function TP(n,t,e){ns(e).onDone(()=>n.processLeaveNode(t))}function J8(n,t){for(let e=0;e<n.length;e++){const r=n[e];r instanceof pw?J8(r.players,t):t.push(r)}}function X8(n,t,e){const r=e.get(n);if(!r)return!1;let i=t.get(n);return i?r.forEach(s=>i.add(s)):t.set(n,r),e.delete(n),!0}class yd{constructor(t,e,r){this.bodyNode=t,this._driver=e,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,s)=>{},this._transitionEngine=new DP(t,e,r),this._timelineEngine=new mP(t,e,r),this._transitionEngine.onRemovalComplete=(i,s)=>this.onRemovalComplete(i,s)}registerTrigger(t,e,r,i,s){const o=t+"-"+i;let a=this._triggerCache[o];if(!a){const l=[],u=lg(this._driver,s,l,[]);if(l.length)throw function gk(n,t){return new se(3404,He)}();a=function dP(n,t,e){return new hP(n,t,e)}(i,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,i,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,r,i){this._transitionEngine.insertNode(t,e,r,i)}onRemove(t,e,r,i){this._transitionEngine.removeNode(t,e,i||!1,r)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,r,i){if("@"==r.charAt(0)){const[s,o]=S8(r);this._timelineEngine.command(s,e,o,i)}else this._transitionEngine.trigger(t,e,r,i)}listen(t,e,r,i,s){if("@"==r.charAt(0)){const[o,a]=S8(r);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(t,e,r,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let kP=(()=>{class n{constructor(e,r,i){this._element=e,this._startStyles=r,this._endStyles=i,this._state=0;let s=n.initialStylesByElement.get(e);s||n.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ui(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ui(this._element,this._initialStyles),this._endStyles&&(ui(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Fs(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Fs(this._element,this._endStyles),this._endStyles=null),ui(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function vg(n){let t=null;const e=Object.keys(n);for(let r=0;r<e.length;r++){const i=e[r];PP(i)&&(t=t||{},t[i]=n[i])}return t}function PP(n){return"display"===n||"position"===n}class eC{constructor(t,e,r,i){this.element=t,this.keyframes=e,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.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,r){return t.animate(e,r)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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}_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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(r=>{"offset"!=r&&(t[r]=this._finished?e[r]:V8(this.element,r))})}this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}}class NP{validateStyleProperty(t){return A8(t)}matchesElement(t,e){return!1}containsElement(t,e){return I8(t,e)}getParentElement(t){return tg(t)}query(t,e,r){return k8(t,e,r)}computeStyle(t,e,r){return window.getComputedStyle(t)[e]}animate(t,e,r,i,s,o=[]){const l={duration:r,delay:i,fill:0==i?"both":"forwards"};s&&(l.easing=s);const c={},u=o.filter(h=>h instanceof eC);(function Lk(n,t){return 0===n||0===t})(r,i)&&u.forEach(h=>{let f=h.currentSnapshot;Object.keys(f).forEach(m=>c[m]=f[m])}),e=function $k(n,t,e){const r=Object.keys(e);if(r.length&&t.length){let s=t[0],o=[];if(r.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=e[a]}),o.length)for(var i=1;i<t.length;i++){let a=t[i];o.forEach(function(l){a[l]=V8(n,l)})}}return t}(t,e=e.map(h=>rs(h,!1)),c);const d=function IP(n,t){let e=null,r=null;return Array.isArray(t)&&t.length?(e=vg(t[0]),t.length>1&&(r=vg(t[t.length-1]))):t&&(e=vg(t)),e||r?new kP(n,e,r):null}(t,e);return new eC(t,e,l,d)}}let OP=(()=>{class n extends dw{constructor(e,r){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(r.body,{id:"0",encapsulation:Tr.None,styles:[],data:{animation:[]}})}build(e){const r=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(e)?hw(e):e;return tC(this._renderer,null,r,"register",[i]),new FP(r,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(K(tl),K(Jt))},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})();class FP extends class wA{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new RP(this._id,t,e||{},this._renderer)}}class RP{constructor(t,e,r,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return tC(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function tC(n,t,e,r,i){return n.setProperty(t,`@@${e}:${r}`,i)}const nC="@.disabled";let LP=(()=>{class n{constructor(e,r,i){this.delegate=e,this.engine=r,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),r.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(e,r){const s=this.delegate.createRenderer(e,r);if(!(e&&r&&r.data&&r.data.animation)){let u=this._rendererCache.get(s);return u||(u=new rC("",s,this.engine),this._rendererCache.set(s,u)),u}const o=r.id,a=r.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,e,u.name,u)};return r.data.animation.forEach(l),new $P(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,r,i){e>=0&&e<this._microtaskId?this._zone.run(()=>r(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,i]))}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()}}return n.\u0275fac=function(e){return new(e||n)(K(tl),K(yd),K(cn))},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})();class rC{constructor(t,e,r){this.namespaceId=t,this.delegate=e,this.engine=r,this.destroyNode=this.delegate.destroyNode?i=>e.destroyNode(i):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,r,i=!0){this.delegate.insertBefore(t,e,r),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,r){this.engine.onRemove(this.namespaceId,e,this.delegate,r)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,r,i){this.delegate.setAttribute(t,e,r,i)}removeAttribute(t,e,r){this.delegate.removeAttribute(t,e,r)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,r,i){this.delegate.setStyle(t,e,r,i)}removeStyle(t,e,r){this.delegate.removeStyle(t,e,r)}setProperty(t,e,r){"@"==e.charAt(0)&&e==nC?this.disableAnimations(t,!!r):this.delegate.setProperty(t,e,r)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,r){return this.delegate.listen(t,e,r)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class $P extends rC{constructor(t,e,r,i){super(e,r,i),this.factory=t,this.namespaceId=e}setProperty(t,e,r){"@"==e.charAt(0)?"."==e.charAt(1)&&e==nC?this.disableAnimations(t,r=void 0===r||!!r):this.engine.process(this.namespaceId,t,e.substr(1),r):this.delegate.setProperty(t,e,r)}listen(t,e,r){if("@"==e.charAt(0)){const i=function VP(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function BP(n){const t=n.indexOf(".");return[n.substring(0,t),n.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,i,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(t,e,r)}}let jP=(()=>{class n extends yd{constructor(e,r,i){super(e.body,r,i)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(K(Jt),K(ng),K(fg))},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})();const iC=new pe("AnimationModuleType"),sC=[{provide:dw,useClass:OP},{provide:fg,useFactory:function HP(){return new oP}},{provide:yd,useClass:jP},{provide:tl,useFactory:function UP(n,t,e){return new LP(n,t,e)},deps:[_u,yd,cn]}],oC=[{provide:ng,useFactory:()=>new NP},{provide:iC,useValue:"BrowserAnimations"},...sC],zP=[{provide:ng,useClass:P8},{provide:iC,useValue:"NoopAnimations"},...sC];let qP=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?zP:oC}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ct({type:n}),n.\u0275inj=gt({providers:oC,imports:[bb]}),n})();const GP=bn(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}),aC=new pe("MOTO_APPLE_PAYMENT_SERVICE_TOKEN"),KP=new pe("MOTO_APPLE_PAY_SESSION_VERSION_TOKEN",{factory:()=>10}),lC=new pe("MOTO_APPLE_PAY_MERCHANT_SERVICE_TOKEN"),bg=new pe("MOTO_MERCHANT_INFO_SERVICE_TOKEN");let ZP=(()=>{class n{constructor(e,r){this.http=e,this.merchantInfoService=r}validate(e,r){const{validationURL:i}=e,{merchantId:s}=r;return this.requestValidateMerchant(s,i)}requestValidateMerchant(e,r){return mm([this.merchantInfoService.getAuthToken(),this.merchantInfoService.getValidationUrl()]).pipe(As(([i,s])=>this.http.post(s,{validationUrl:r},{params:{merchantId:e},headers:i?{Authorization:i}:null})))}}return n.\u0275fac=function(e){return new(e||n)(K(um),K(bg))},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})();const cC=new pe("APPLE_PAY_SESSION_TOKEN",{factory:()=>bc(Jt).defaultView.ApplePaySession}),QP=new pe("APPLE_PAY_SESSION_SUPPORT_TOKEN",{factory:()=>Boolean(bc(cC))}),uC={merchantCapabilities:["supports3DS"],supportedNetworks:["visa","masterCard","amex","discover"]};let dC=(()=>{class n{constructor(e){this.applePaySession=e}canMakePayments(){return ApplePaySession.canMakePayments()}createPaySession(e,r,i){return new Zt(s=>{const o=a=>{s.error(a),console.error(a)};try{const a=new this.applePaySession(e,r),l=(c,u)=>{a.abort(),o({event:c,error:u})};a.onvalidatemerchant=c=>Kl(this,void 0,void 0,function*(){try{const u=yield function WP(n,t){const e="object"==typeof t;return new Promise((r,i)=>{let o,s=!1;n.subscribe({next:a=>{o=a,s=!0},error:i,complete:()=>{s?r(o):e?r(t.defaultValue):i(new GP)}})})}(i(c));a.completeMerchantValidation(u)}catch(u){l(c,u)}}),a.onpaymentmethodselected=c=>{const u={newTotal:Object.assign({},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)}})}}return n.\u0275fac=function(e){return new(e||n)(K(cC))},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})(),hC=(()=>{class n{constructor(e,r,i){this.applePayVersion=e,this.nativeService=r,this.merchantService=i}canMakePayment(){return Hr(this.nativeService.canMakePayments())}pay(e){const{version:r=this.applePayVersion}=e;return this.nativeService.createPaySession(r,this.mapData(e),s=>this.merchantService.validate(s,e))}mapData(e){const{total:r,countryCode:i,supportedNetworks:s=uC.supportedNetworks,merchantCapabilities:o=uC.merchantCapabilities}=e;return{countryCode:i,currencyCode:r.currency,supportedNetworks:s,merchantCapabilities:o,total:{amount:r.amount,label:r.label}}}}return n.\u0275fac=function(e){return new(e||n)(K(KP),K(dC),K(lC))},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})();const JP={canMakePayment:()=>Hr(!1),pay(n){throw new Error("not implemented")}},XP=[hC,dC,{provide:aC,deps:[QP,hC],useFactory:(n,t)=>n?t:JP}];let eN=(()=>{class n{static forRoot(){return{ngModule:n,providers:[...XP,{provide:lC,useClass:ZP}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ct({type:n}),n.\u0275inj=gt({imports:[[Vb]]}),n})();function tN(n,t){if(1&n){const e=Mn();H(0,"div",3)(1,"i",4),Oe("click",function(){return Et(e),Y().close()}),me(2,"close"),U()()}}function nN(n,t){if(1&n&&(H(0,"div",1),Ze(1,"img",2),U()),2&n){const e=Y();P(1),N("src",e.src,bs)("alt",e.alt)}}function rN(n,t){1&n&&(H(0,"span",10),me(1,"\xb7"),U())}function iN(n,t){if(1&n&&(lt(0),H(1,"a",8),me(2),U(),J(3,rN,2,0,"span",9),ct()),2&n){const e=t.$implicit,r=t.last;P(1),N("href",e.href,bs),P(1),zt(" ",e.text," "),P(1),N("ngIf",!r)}}function sN(n,t){if(1&n&&(H(0,"div",6),J(1,iN,4,3,"ng-container",7),U()),2&n){const e=Y(2).ngIf;P(1),N("ngForOf",e.links)}}function oN(n,t){if(1&n&&(H(0,"p",11),me(1),U()),2&n){const e=Y(2).ngIf;P(1),zt(" ",e.text," ")}}function aN(n,t){if(1&n&&(H(0,"div"),J(1,sN,2,1,"div",4),J(2,oN,2,1,"p",5),U()),2&n){const e=Y().ngIf;P(1),N("ngIf",null==e.links?null:e.links.length),P(1),N("ngIf",e.text)}}function lN(n,t){if(1&n&&(lt(0),J(1,aN,3,2,"div",2),ct()),2&n){const e=t.ngIf;P(1),N("ngIf",e.visible&&((null==e.links?null:e.links.length)||e.text))}}function cN(n,t){1&n&&(Ze(0,"moto-picture",16),$e(1,"image")),2&n&&N("src",Bn(1,1,"visa-secure.svg"))}function uN(n,t){1&n&&(Ze(0,"moto-picture",16),$e(1,"image")),2&n&&N("src",Bn(1,1,"master-card-secure.svg"))}function dN(n,t){if(1&n&&(H(0,"div",12)(1,"p",13),me(2,"Your transactions are protected by"),U(),H(3,"div",14),J(4,cN,2,3,"moto-picture",15),J(5,uN,2,3,"moto-picture",15),U()()),2&n){const e=Y(2);P(4),N("ngIf",e.isVisaAvailable),P(1),N("ngIf",e.isMastercardAvailable)}}function hN(n,t){if(1&n&&(H(0,"div",1),J(1,lN,2,1,"ng-container",2),J(2,dN,6,2,"div",3),U()),2&n){const e=Y();P(1),N("ngIf",e.settings.merchantInfo),P(1),N("ngIf",e.isMastercardAvailable||e.isVisaAvailable)}}const fN=[[["prefix"]],[["suffix"]]],pN=["prefix","suffix"];function mN(n,t){1&n&&(H(0,"span",8),me(1,"Invalid phone number"),U()),2&n&&N("@ANTransform",void 0)}function gN(n,t){if(1&n&&(H(0,"div",2)(1,"div",3)(2,"h6",4),me(3,"Phone"),U(),J(4,mN,2,1,"span",5),U(),H(5,"div",6),Ze(6,"moto-form-input",7),$e(7,"enum"),$e(8,"enum"),$e(9,"condition"),U()()),2&n){const e=Y();P(4),N("ngIf",e.isInvalidPhone),P(2),N("minlength",yr(7,5,"MIN_TEL","form-field-length"))("maxlength",yr(8,8,"MAX_TEL","form-field-length"))("validate",!1)("status",jn(9,11,e.isInvalidPhone,"invalid","valid"))}}function yN(n,t){if(1&n&&(lt(0),Ze(1,"moto-picture",14),ct()),2&n){const e=t.ngIf;P(1),N("src",e)}}function _N(n,t){if(1&n&&(lt(0),J(1,yN,2,1,"ng-container",13),$e(2,"brandLogo"),ct()),2&n){const e=t.$implicit;P(1),N("ngIf",Bn(2,1,e))}}function vN(n,t){if(1&n&&(H(0,"div",2)(1,"div",10)(2,"h6",4),me(3,"Payment methods"),U()(),H(4,"div",11),J(5,_N,3,3,"ng-container",12),U()()),2&n){const e=Y();P(5),N("ngForOf",e.settings.availableCardBrands)}}function bN(n,t){if(1&n&&(H(0,"span",15),me(1),U()),2&n){const e=Y();N("@ANTransform",void 0),P(1),$r(e.paymentsErrorMsg)}}function wN(n,t){if(1&n){const e=Mn();H(0,"div",16)(1,"moto-form-input",17),Oe("paste",function(i){return Et(e),Y().pasteCardNumber(i)})("click",function(){return Et(e),Y().onCardNumberClick()}),$e(2,"cardInfo"),$e(3,"condition"),Ze(4,"moto-picture",18),$e(5,"cardInfo"),U(),Ze(6,"div",19),H(7,"div",20)(8,"moto-form-input",21),Oe("click",function(){return Et(e),Y().onExpirationDateClick()}),$e(9,"condition"),U(),Ze(10,"div",22),H(11,"moto-form-input",23),Oe("click",function(){return Et(e),Y().onCvvClick()}),$e(12,"cardInfo"),$e(13,"cardInfo"),$e(14,"condition"),H(15,"div",24),$e(16,"cardInfo"),H(17,"i",25),me(18,"error"),U()()()()()}if(2&n){const e=t.motoLet,r=Y();Fr("invalid",r.isInvalidCredentials),P(1),N("mask",jn(2,17,e.cardNumber,"card-number-mask","0000 0000 0000 0000"))("transparent",!0)("validate",!1)("status",jn(3,21,r.isInvalidCredentials,"invalid","valid")),P(3),N("src",yr(5,25,r.cardNumberValue,"logo")),P(4),N("transparent",!0)("validate",!1)("status",jn(9,28,r.isInvalidCredentials,"invalid","valid")),P(3),N("mask",jn(12,32,e.cardNumber,"code-mask","000"))("dropSpecialCharacters",!1)("placeholder",jn(13,36,e.cardNumber,"code","CVV"))("transparent",!0)("validate",!1)("status",jn(14,40,r.isInvalidCredentials,"invalid","valid")),P(4),Sn("data-tooltip",jn(16,44,e.cardNumber,"secure-text","CVC Card Verification Code"))}}function CN(n,t){1&n&&(H(0,"span",26),me(1,"Invalid card holder name"),U()),2&n&&N("@ANTransform",void 0)}function DN(n,t){if(1&n){const e=Mn();H(0,"moto-pay-card",4),Oe("select",function(i){return Et(e),Y(2).selectCard(i)})("remove",function(i){return Et(e),Y(2).removeCard(i)}),U()}2&n&&N("option",t.$implicit)}function EN(n,t){if(1&n&&(lt(0),J(1,DN,1,1,"moto-pay-card",3),ct()),2&n){const e=Y();P(1),N("ngForOf",e.cardOptions)}}function SN(n,t){1&n&&(H(0,"p",5),me(1,"No cards yet..."),U())}function MN(n,t){if(1&n&&(H(0,"a",11),me(1),U()),2&n){const e=Y(2).$implicit;N("href",e.link.href,bs),P(1),$r(e.link.text)}}function TN(n,t){if(1&n){const e=Mn();lt(0),H(1,"label",6)(2,"input",7),Oe("ngModelChange",function(i){Et(e);const s=Y().index;return Y(3).checkboxesResults[s]=i})("ngModelChange",function(){Et(e);const i=Y().index;return Y(3).onChange(i)}),U(),Ze(3,"span",8),H(4,"span",9),me(5),J(6,MN,2,2,"a",10),U()(),ct()}if(2&n){const e=Y(),r=e.index,i=e.$implicit,s=Y(3);P(2),N("name","chargee-term-"+r)("id","chargee-term-"+r)("ngModel",s.checkboxesResults[r]),P(1),Fr("invalid",(s.isErrorSubmit||(null==s.settings.requiredFieldsBehavior?null:s.settings.requiredFieldsBehavior.markAsInvalidUntilCorrect))&&!s.checkboxesResults[r]),P(2),zt(" ",i.text," "),P(1),N("ngIf",i.link)}}function xN(n,t){if(1&n&&(lt(0),J(1,TN,7,7,"ng-container",2),ct()),2&n){const e=t.$implicit;P(1),N("ngIf",e)}}function AN(n,t){if(1&n&&(lt(0),J(1,xN,2,1,"ng-container",5),ct()),2&n){const e=Y(2);P(1),N("ngForOf",e.settings.chargeTerms.checkboxes)}}function IN(n,t){if(1&n&&(H(0,"p",12),me(1),U()),2&n){const e=Y(2);P(1),zt(" ",e.settings.chargeTerms.text," ")}}function kN(n,t){1&n&&(H(0,"span",13),me(1,"Please check these boxes"),U()),2&n&&N("@ANTransform",void 0)}function PN(n,t){if(1&n&&(H(0,"div",1),J(1,AN,2,1,"ng-container",2),J(2,IN,2,1,"p",3),J(3,kN,2,1,"span",4),U()),2&n){const e=Y();P(1),N("ngIf",null==e.settings.chargeTerms.checkboxes?null:e.settings.chargeTerms.checkboxes.length),P(1),N("ngIf",e.settings.chargeTerms.text),P(1),N("ngIf",(e.isErrorSubmit||(null==e.settings.requiredFieldsBehavior?null:e.settings.requiredFieldsBehavior.markAsInvalidUntilCorrect))&&!e.termsApproved)}}function NN(n,t){if(1&n&&(H(0,"a",10),me(1),U()),2&n){const e=Y(2).$implicit;N("href",e.link.href,bs),P(1),$r(e.link.text)}}function ON(n,t){if(1&n){const e=Mn();lt(0),H(1,"label",5)(2,"input",6),Oe("ngModelChange",function(i){return Et(e),Y().$implicit.value=i})("ngModelChange",function(){Et(e);const i=Y().index;return Y(3).onChange(i)}),U(),Ze(3,"span",7),H(4,"span",8),me(5),J(6,NN,2,2,"a",9),U()(),ct()}if(2&n){const e=Y().$implicit;P(2),N("name","chargee-term-"+e.name)("id","chargee-term-"+e.name)("ngModel",e.value),P(3),zt(" ",e.text," "),P(1),N("ngIf",e.link)}}function FN(n,t){if(1&n&&(lt(0),J(1,ON,7,5,"ng-container",2),ct()),2&n){const e=t.$implicit;P(1),N("ngIf",e)}}function RN(n,t){if(1&n&&(lt(0),J(1,FN,2,1,"ng-container",4),ct()),2&n){const e=Y(2);P(1),N("ngForOf",e.userPreferenceCheckboxes)}}function LN(n,t){if(1&n&&(H(0,"p",11),me(1),U()),2&n){const e=Y(2);P(1),zt(" ",e.userPreferencesSettings.text," ")}}function $N(n,t){if(1&n&&(H(0,"div",1),J(1,RN,2,1,"ng-container",2),J(2,LN,2,1,"p",3),U()),2&n){const e=Y();P(1),N("ngIf",null==e.userPreferenceCheckboxes?null:e.userPreferenceCheckboxes.length),P(1),N("ngIf",e.userPreferencesSettings.text)}}const VN=function(n){return{$implicit:n}};function BN(n,t){if(1&n&&(Vc(0,7),$e(1,"condition")),2&n){const e=t.$implicit,r=Y().motoLet;Y();const i=Cs(2);N("ngTemplateOutlet",jn(1,2,e.logo,i,r[e.name]))("ngTemplateOutletContext",Zc(6,VN,e))}}function jN(n,t){if(1&n&&(H(0,"div",3)(1,"div",4)(2,"span",5),me(3,"OR"),U()(),J(4,BN,2,8,"ng-container",6),U()),2&n){const e=Y();P(4),N("ngForOf",e.apms)("ngForTrackBy",e.trackByApm)}}const fC=function(n,t){return{"disabled-element":n,"hidden-enabled-element":t}};function HN(n,t){if(1&n){const e=Mn();H(0,"div",8),Oe("click",function(){const s=Et(e).$implicit;return Y().pay(s)}),Ze(1,"img",9),U()}if(2&n){const e=t.$implicit,r=Y();N("ngClass",cp(3,fC,!!r.disabled,!!r.hiddenEnabled)),P(1),N("src",e.logo,bs)("alt",e.name)}}function UN(n,t){if(1&n){const e=Mn();H(0,"div",10),Oe("buttonClick",function(){const s=Et(e).$implicit;return Y().pay(s)}),U()}if(2&n){const e=Y();N("ngClass",cp(1,fC,!!e.disabled,!!e.hiddenEnabled))}}const zN=function(n){return{applepay:n}},qN=["cardFormRef"],GN=["additionalFormRef"],WN=["cardListRef"],KN=["chargeTermsRef"],ZN=["userPreferencesRef"];function QN(n,t){if(1&n){const e=Mn();lt(0),H(1,"div",14),Oe("click",function(){return Et(e),Y(4).toggleCardList()}),H(2,"span",15),me(3,"Manage cards"),U(),H(4,"i",16),me(5,"keyboard_arrow_up"),U()(),H(6,"moto-pay-card-list",17,18),Oe("select",function(){return Et(e),Y(4).selectCard()})("remove",function(i){return Et(e),Y(4).removeCard(i)}),$e(8,"condition"),U(),ct()}if(2&n){const e=Y().motoLet,r=Y(3);P(4),Fr("active",r.viewState.isShowCardList),P(2),N("@ANToggleList",jn(8,5,r.viewState.isShowCardList,"show","hide"))("childrenDetector",r.childrenDetector$)("cards",e)}}function YN(n,t){if(1&n&&(lt(0),J(1,QN,9,9,"ng-container",5),ct()),2&n){const e=t.motoLet;P(1),N("ngIf",null==e?null:e.length)}}function JN(n,t){if(1&n){const e=Mn();H(0,"button",19),Oe("click",function(){return Et(e),Y(3).showCardForm()}),H(1,"i",20),me(2,"add"),U(),H(3,"span",21),me(4,"Add new card"),U()()}}function XN(n,t){if(1&n&&Ze(0,"moto-pay-card-form",22,23),2&n){const e=Y(2).motoLet;N("@ANHeight",void 0)("settings",e)}}function eO(n,t){if(1&n&&Ze(0,"moto-pay-additional-form",22,24),2&n){const e=Y(2).motoLet;N("@ANHeight",void 0)("settings",e)}}function tO(n,t){if(1&n&&(lt(0),Ze(1,"charge-terms",25,26),ct()),2&n){const e=Y(3).motoLet;P(1),N("settings",e)}}function nO(n,t){if(1&n&&(lt(0),J(1,tO,3,1,"ng-container",5),ct()),2&n){const e=t.ngIf;P(1),N("ngIf","BeforePay"==e.location)}}function rO(n,t){if(1&n&&(lt(0),Ze(1,"div",27),H(2,"div",28),Ze(3,"moto-picture",29),$e(4,"cardInfo"),H(5,"span",30),me(6),$e(7,"slice"),U()(),ct()),2&n){const e=t.ngIf;P(3),N("src",yr(4,2,e.card.name,"logo")),P(3),zt(" \u2022\u2022",yr(7,5,e.card.name,-4)," ")}}function iO(n,t){if(1&n){const e=Mn();lt(0),H(1,"moto-pay-apm-list",31),Oe("pay",function(i){return Et(e),Y(4).apmSubmit(i)}),U(),ct()}if(2&n){const e=Y().motoLet,r=Y(2).motoLet,i=Y();P(1),N("disabled","disabled"==(null==r||null==r.requiredFieldsBehavior?null:r.requiredFieldsBehavior.buttonStateUntilCorrect)&&i.hasRequiredEmptyValues)("hidden-enabled","hidden-enabled"==(null==r||null==r.requiredFieldsBehavior?null:r.requiredFieldsBehavior.buttonStateUntilCorrect)&&i.hasRequiredEmptyValues)("apms",e)}}function sO(n,t){if(1&n&&(lt(0),J(1,iO,2,3,"ng-container",5),ct()),2&n){const e=t.motoLet;P(1),N("ngIf",null==e?null:e.length)}}function oO(n,t){if(1&n&&(lt(0),Ze(1,"charge-terms",25,26),ct()),2&n){const e=Y(3).motoLet;P(1),N("settings",e)}}function aO(n,t){if(1&n&&(lt(0),J(1,oO,3,1,"ng-container",5),ct()),2&n){const e=t.ngIf;P(1),N("ngIf","AfterPay"==e.location||!e.location)}}function lO(n,t){if(1&n&&(lt(0),Ze(1,"user-preferences",32,33),ct()),2&n){const e=t.ngIf;P(1),N("userPreferences",e)}}const cO=function(n){return{"hidden-enabled-element":n}};function uO(n,t){if(1&n){const e=Mn();H(0,"div",2),J(1,YN,2,1,"ng-container",0),$e(2,"async"),J(3,JN,5,0,"button",3),J(4,XN,2,2,"moto-pay-card-form",4),J(5,eO,2,2,"moto-pay-additional-form",4),J(6,nO,2,1,"ng-container",5),H(7,"div",6)(8,"div",7)(9,"span",8),me(10,"Total"),U(),H(11,"span",9),me(12),$e(13,"currencySymbol"),$e(14,"price"),U()(),H(15,"button",10),Oe("click",function(){return Et(e),Y(2).submit()}),H(16,"div",11)(17,"div",12)(18,"span"),me(19," Pay "),H(20,"span",13),me(21),$e(22,"currencySymbol"),$e(23,"price"),U()()(),J(24,rO,8,8,"ng-container",5),U()()(),J(25,sO,2,1,"ng-container",0),$e(26,"async"),J(27,aO,2,1,"ng-container",5),J(28,lO,3,1,"ng-container",5),$e(29,"async"),U()}if(2&n){const e=t.ngIf,r=Y().motoLet,i=Y();let s;P(1),N("motoLet",Bn(2,13,i.cards$)),P(2),N("ngIf",!i.viewState.isShowCardForm),P(1),N("ngIf",i.viewState.isShowCardForm),P(1),N("ngIf",i.viewState.isShowCardForm),P(1),N("ngIf",null==r?null:r.chargeTerms),P(6),$r(yr(13,15,jn(14,18,e.amount,e.tax,e.amountType),e.currency)),P(3),N("ngClass",Zc(33,cO,"hidden-enabled"==(null==r||null==r.requiredFieldsBehavior?null:r.requiredFieldsBehavior.buttonStateUntilCorrect)&&i.hasRequiredEmptyValues))("disabled","disabled"==(null==r||null==r.requiredFieldsBehavior?null:r.requiredFieldsBehavior.buttonStateUntilCorrect)&&i.hasRequiredEmptyValues),P(6),zt(" ",yr(22,22,jn(23,25,e.amount,e.tax,e.amountType),e.currency)," "),P(3),N("ngIf",null==i.cardListRef?null:i.cardListRef.getSelectedCard()),P(1),N("motoLet",Bn(26,29,i.apms$)),P(2),N("ngIf",null==r?null:r.chargeTerms),P(1),N("ngIf",null==(s=Bn(29,31,i.settings$))?null:s.userPreferences)}}function dO(n,t){if(1&n&&(lt(0),J(1,uO,30,35,"div",1),$e(2,"async"),ct()),2&n){const e=Y();P(1),N("ngIf",Bn(2,1,e.payment$))}}function hO(n,t){if(1&n&&(H(0,"p",5),me(1),U()),2&n){const e=Y();P(1),zt(" ",e.description," ")}}function fO(n,t){if(1&n&&(H(0,"li",8)(1,"p",9),me(2),U()()),2&n){const e=t.$implicit;P(2),zt(" ",e," ")}}function pO(n,t){if(1&n&&(H(0,"ul",6),J(1,fO,3,1,"li",7),U()),2&n){const e=Y();P(1),N("ngForOf",null==e.paymentResult.payment.rejectionDetails?null:e.paymentResult.payment.rejectionDetails.problemSolvingTips)}}const mO=["wrapper"];function gO(n,t){1&n&&Vc(0)}function yO(n,t){1&n&&Ze(0,"moto-loader")}function _O(n,t){1&n&&Ze(0,"div",12)}function vO(n,t){if(1&n){const e=Mn();H(0,"div",4,5)(2,"div",6)(3,"moto-pay-header",7),Oe("close",function(){return Et(e),Y().close()}),U(),J(4,gO,1,0,"ng-container",8),$e(5,"async"),Ze(6,"moto-pay-footer",9),J(7,yO,1,0,"moto-loader",10),J(8,_O,1,0,"div",11),U()()}if(2&n){const e=t.motoLet,r=Y(),i=Cs(5),s=Cs(3);P(3),N("showCloseButton",null==e?null:e.isCloseButtonVisible),P(1),N("ngIf",Bn(5,7,r.paymentResult$))("ngIfThen",i)("ngIfElse",s),P(2),N("settings",e),P(1),N("ngIf",r.isShowLoader),P(1),N("ngIf",!r.isShowLoader)}}function bO(n,t){1&n&&Ze(0,"moto-pay-main")}function wO(n,t){if(1&n&&J(0,bO,1,0,"moto-pay-main",13),2&n){const e=Y(),r=Cs(7);N("ngIf",!e.viewState.paymentErrorType&&!e.viewState.settingsErrorType)("ngIfElse",r)}}function CO(n,t){if(1&n){const e=Mn();H(0,"moto-pay-result",14),Oe("result",function(i){return Et(e),Y().paid(i)}),$e(1,"async"),$e(2,"async"),U()}if(2&n){const e=Y();let r;N("paymentResult",Bn(1,2,e.paymentResult$))("problemSolvingTipsVisible",null==(r=Bn(2,4,e.settings$))?null:r.isProblemTipsListVisible)}}function DO(n,t){if(1&n&&Ze(0,"moto-pay-error",15),2&n){const e=Y();N("error",e.viewState.paymentErrorType||e.viewState.settingsErrorType)}}const EO=["paymentWrapperRef"],SO=new kb(()=>!1),MO=new kb(()=>!1);let pC=(()=>{class n{constructor(){this.detector$=new Qt}detectChanges(){this.detector$.next(null)}listenChangeDetection(){return this.detector$.asObservable()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Xo=(()=>{class n{constructor(e){this.injector=e,this.unsubscriber$=new Qt,this.childrenDetector$=new Qt}ngOnDestroy(){this.unsubscribe()}listenChildrenDetection(e){const r="local"===e,i="global"===e,s="full"===e;this.childrenDetector$.asObservable().pipe(yl(10),this.untilDestroy()).subscribe(()=>{(r||s)&&this.localDetect(),(i||s)&&this.globalDetect()})}localDetect(){this.injector.get(cl).detectChanges()}globalDetect(){this.injector.get(pC).detectChanges()}detect(){this.localDetect(),this.globalDetect()}untilDestroy(){return jb(this.unsubscriber$.asObservable())}unsubscribe(){this.unsubscriber$.next(null)}}return n.\u0275fac=function(e){return new(e||n)(k(_t))},n.\u0275cmp=Mt({type:n,selectors:[["ng-component"]],decls:0,vars:0,template:function(e,r){},encapsulation:2}),n})();class TO{constructor(t,e){this.type=t,this.error=e}}class mC{getFullState(){return this.state}getState(t){return this.state[t]}setState(t,e){this.state[t]=e}}class gC extends mC{constructor(){super(...arguments),this.destory$=new Qt,this.detector$=new Qt,this.action$=new Qt,this.error$=new Qt}untilDestroy(){return function t3(...n){return Ug(n)}(jb(this.destory$))}destroy(){this.destory$.next(null)}detect(){this.detector$.next(null)}listenChangeDetection(){return this.detector$.asObservable()}listenActions(){return this.action$.asObservable()}action(t){this.action$.next(t)}errorHandler(t){return e=>{this.error$.next(new TO(t,e))}}listenErrors(){return this.error$.asObservable()}getStream(t){return this.getSubject(t).asObservable()}getSubject(t){const e=this[t];if(!e)throw new Error(`Stream "${t}" not found!`);return e}emitToStream(t,e){this.getSubject(t).next(e)}getStreamValue(t){return this.getSubject(t).getValue()}}const yC=new pe("MOTO_PAY_APM_TOKEN");let wg=(()=>{class n{constructor(e){this.apmMap=e.reduce((r,i)=>(r.set(i.name,i),r),new Map([]))}has(e){return this.apmMap.has(e)}get(e){return this.apmMap.get(e)}apmNames(){return Array.from(this.apmMap.keys())}}return n.\u0275fac=function(e){return new(e||n)(K(yC))},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})(),ea=(()=>{class n extends gC{constructor(e){super(),this.motoApmsService=e,this.state={isLoadCards:!1,isLoadApms:!1,isSentPayment:!1,isRemovedCard:!1,externalApms:new Set(this.motoApmsService.apmNames())},this.cards$=new ci(null),this.apms$=new ci(null),this.payment$=new ci(null),this.settings$=new ci(null),this.paymentResult$=new ci(null)}getApiConfig(){var e;return null===(e=this.getStreamValue("settings$"))||void 0===e?void 0:e.urls}}return n.\u0275fac=function(e){return new(e||n)(K(wg))},n.\u0275prov=ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_C=(()=>{class n extends mC{constructor(){super(...arguments),this.state={contentSize:null,paymentErrorType:null,settingsErrorType:null,window:null,isShowCardList:!0,isShowCardForm:!1}}inputTemplate(e,r){return`<input type="hidden" name="${e}" value="${r}" />`}formTemplate(e,r){return`<form action="${e}" method="post">${r}</form>`}makeFormTemplate({acsurl:e,md:r,paReq:i,termUrl:s}){const o=Object.entries({md:r,paReq:i,termUrl:s}).reduce((l,[c,u])=>l+`${this.inputTemplate(c,u)}\n`,"");return this.formTemplate(e,o)}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=hn(n)))(r||n)}}(),n.\u0275prov=ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class jt{constructor(t,e=null){this.type=t,this.payload=e}}function Cg(n){return new Ei({fromObject:n})}function Dg(n){const t=Object.entries(n).reduce((e,[r,i])=>(e[r]=String(i),e),{});return new li(t)}var is=(()=>(function(n){n[n.DEFAULT_ANIMATE_MS=0]="DEFAULT_ANIMATE_MS"}(is||(is={})),is))(),Il=(()=>(function(n){n[n.MIN_CARD_NUMBER_LENGTH=13]="MIN_CARD_NUMBER_LENGTH",n[n.MAX_CARD_NUMBER_LENGTH=19]="MAX_CARD_NUMBER_LENGTH"}(Il||(Il={})),Il))(),ss=(()=>(function(n){n.default="default-card-icon",n.mastercard="master-card-icon",n.maestro="maestro",n.visa="visa-card-icon-new",n.discover="discover",n.jcb="jcb",n["american-express"]="american-express",n.unionpay="unionpay"}(ss||(ss={})),ss))(),vd=(()=>(function(n){n.mastercard="CVC Card Verification Code",n.visa="CVV (Card Verification Value)",n["american-express"]="CID (Card Identification Number)",n.unionpay="CVN (Card Verification Number)",n.jcb="CVV (Card Verification Value)",n.maestro="CVV (Card Verification Value)",n.discover="CID (Card Identification Number)"}(vd||(vd={})),vd))(),ta=(()=>(function(n){n.SUCCESS_TITLE="Successful",n.WARNING_TITLE="Warning",n.ERROR_TITLE="Attention!",n.INFO_TITLE="Information"}(ta||(ta={})),ta))(),bd=(()=>(function(n){n[n.SMALL=1]="SMALL",n[n.MEDIUM=2]="MEDIUM",n[n.LARGE=3]="LARGE",n[n.EXTRA_LARGE=4]="EXTRA_LARGE",n[n.FULL_SCREEN=5]="FULL_SCREEN"}(bd||(bd={})),bd))();function na(n,t,e=!0,r=0){const i=n[t[r]],s=t[r+1];if(!function PO(n,t){return typeof n===t}(s,"string")&&r+1<t.length)throw new Error(`Invalid path key.The key type must be a string. \n Key: ${s}, \n Index: ${r+1},\n Path: ${JSON.stringify(t,(o,a)=>a||String("undefined"))}\n `);return s&&i?na(i,t,e,r+1):e?function NO(n){return JSON.parse(JSON.stringify(n))}(i):i}function bC(){const n=screen.height||window.innerHeight,t=screen.width||window.innerWidth,e=bd.FULL_SCREEN;return{timezoneOffsetUtcMinutes:(new Date).getTimezoneOffset(),locale:navigator.language,userAgent:navigator.userAgent,javaEnabled:navigator.javaEnabled()||!1,javaScriptEnabled:!0,colorDepth:screen.colorDepth,width:t,height:n,challengeWindowSize:e}}function Ls(n,t){return`${n.endsWith("/")?n.slice(0,-1):n}${t.startsWith("/")?t:`/${t}`}`}const wC="Watchdog fake error";const FO=new pe("MOTO_PAY_SERVICE_TOKEN");var $s=(()=>(function(n){n[n.MAX_CARD_HOLDER=128]="MAX_CARD_HOLDER",n[n.MAX_TEL=30]="MAX_TEL",n[n.MIN_TEL=4]="MIN_TEL"}($s||($s={})),$s))(),wd=(()=>(function(n){n.APPLE_PAY="applepay"}(wd||(wd={})),wd))(),Cd=(()=>(function(n){n.Customer="Customer",n.Merchant="Merchant"}(Cd||(Cd={})),Cd))(),Dd=(()=>(function(n){n.GrossWithoutGst="GrossWithoutGst",n.Net="Net",n.Gross="Gross"}(Dd||(Dd={})),Dd))();let CC=(()=>{class n{constructor(e){this.dataService=e}getConfig(){return this.dataService.getApiConfig()}get(e){return this.getConfig()[e]}getFromPayment(e){return this.dataService.getStreamValue("payment$")[e]}}return n.\u0275fac=function(e){return new(e||n)(K(ea))},n.\u0275prov=ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),LO=(()=>{class n{constructor(e=null,r,i){this.payService=e,this.http=r,this.config=i,this.secretId=2}getUserPaymentMethods(e,r){if(!r)return Hr([]);const i=Cg({merchantId:e}),s=Dg({Authorization:r}),a=Ls(this.config.get("billingProfiles"),"/api/UserPaymentMethods");return this.http.get(a,{params:i,headers:s}).pipe(Ft(l=>l.map(c=>Object.assign(Object.assign({},c),{name:c.name.toLocaleLowerCase(),type:c.type.toLocaleLowerCase()}))),Ho(()=>Hr([])))}getApmLogos(e,r,i){const s=Cg({currency:i,payerId:r}),a=Ls(this.config.get("processing"),`/api/merchants/${e}/settings`);return this.http.get(a,{params:s}).pipe(Ft(l=>l.payments.filter(c=>"card"!=c.name)),Ft(l=>{const c=new Set;return l.filter(u=>!c.has(u.name)&&(c.add(u.name),!0))}),Ho(()=>Hr([])))}getPaymentInfo(e,r){const s=Ls(this.config.get("processing"),`/api/merchants/${e}/payments/${r}`);return this.http.get(s)}pay(e,r,i){const s=bC(),o=Object.assign({},s);e.ipAddress&&(o.ipAddress=e.ipAddress);const l={headers:Dg(o)},u=Ls(this.config.get("processing"),`/api/merchants/${e.merchantId}/payments`);let d=class RO{static build(t,e,r){var i,s,o,a,l,c,u,d,h;let f=t.details;(null===(i=e.userPreferences)||void 0===i?void 0:i.length)&&(f=e.userPreferences.reduce((j,ie)=>(j[ie.name]=ie.value,j),f||{}));const m={amount:t.amount,amountType:t.amountType,tax:t.tax,currency:t.currency,description:null===(s=t.description)||void 0===s?void 0:s.substring(0,127),details:f?JSON.stringify(f):null,type:t.orderType},y=e.requisites,C=e.requisites,E={anchor:e.rebillAnchor,cardHolder:null==y?void 0:y.cardHolder,cardNumber:null==y?void 0:y.cardNumber,cvv:null==y?void 0:y.cvv,expiration:null==y?void 0:y.expiration,paymentToken:null==C?void 0:C.token,type:e.rebillAnchor?"rebill":e.paymentType},D={browserData:bC()},O={id:null!==(a=null!==(o=t.userId)&&void 0!==o?o:t.email)&&void 0!==a?a:Jb().substring(0,36),email:null!==(l=t.email)&&void 0!==l?l:`${Jb().replace("-","").substring(0,10)}@gmail.com`,phoneNumber:null!==(u=null===(c=e.additionalFields)||void 0===c?void 0:c.phoneNumber)&&void 0!==u?u:t.phoneNumber,ipAddress:t.ipAddress,deviceInfo:D,billingAddress:t.billingAddress};return{id:t.paymentId,initiator:null!==(d=t.initiator)&&void 0!==d?d:Cd.Customer,returnUrl:t.returnUrl,webhookUrl:t.webhookUrl,order:m,payer:O,requisites:E,signature:t.signature,rejectionPreferences:{showResolvingTips:null!==(h=r.isProblemTipsListVisible)&&void 0!==h&&h}}}}.build(e,r,i);return Boolean(this.payService)?this.payService.pay(u,d,l):"applepay"==r.paymentType?this.http.post(u,d,l):this.getSecretKey().pipe(Mb(h=>{const f=new bA;f.setPublicKey(h);const y={invoice:f.encrypt(JSON.stringify(d)),ei:this.secretId};return this.http.post(u,y,l)}))}removeCard(e,r,i){const s=Cg({merchantId:r}),o=Dg({Authorization:i}),l=Ls(this.config.get("billingProfiles"),`/api/UserPaymentMethods/${e}`);return this.http.delete(l,{params:s,headers:o})}getSecretKey(){const r=Ls(this.config.get("processing"),`/api/security/key/${this.secretId}`);return this.http.get(r)}}return n.\u0275fac=function(e){return new(e||n)(K(FO,8),K(um),K(CC))},n.\u0275prov=ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Vs=(()=>{class n extends gC{constructor(){super(...arguments),this.state=null}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=hn(n)))(r||n)}}(),n.\u0275prov=ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),DC=(()=>{class n{constructor(e,r,i,s){this.apiService=e,this.motoApmsService=r,this.dataService=i,this.analyticsService=s,this.state={isLoadCards:!1,isLoadApms:!1,isSentPayment:!1,isRemovedCard:!1,externalApms:new Set(this.motoApmsService.apmNames())},this.cards$=new ci(null),this.apms$=new ci(null),this.payment$=new ci(null),this.settings$=new ci(null),this.paymentResult$=new ci(null),this.apmRecover=()=>Hr([])}initPaymentChangedListener(){this.dataService.getStream("payment$").pipe(pm(null),zb(e=>{this.dataService.action(new jt("change-payment",e)),null!=e&&this.analyticsService.action(new jt("init-start"))}),bu(Boolean),yl(100),zb(e=>{this.dataService.setState("isLoadCards",!0),this.dataService.setState("isLoadApms",!0),this.dataService.detect()}),As(e=>{const r=this.apiService.getUserPaymentMethods(e.merchantId,e.userAuthToken).pipe(function Rx(n,t,e){let r,i=!1;return n&&"object"==typeof n?({bufferSize:r=1/0,windowTime:t=1/0,refCount:i=!1,scheduler:e}=n):r=null!=n?n:1/0,p1({connector:()=>new Sb(r,t,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}(1));return mm([r.pipe(Ft(o=>o.filter(a=>"card"===a.type.toLowerCase()).map(a=>a))),this.prepareApmsResponse(r.pipe(Ft(o=>o.filter(a=>"card"!==a.type.toLowerCase()).map(a=>a))))])}),this.dataService.untilDestroy()).subscribe(([e,r])=>{this.dataService.setState("isLoadCards",!1),this.dataService.setState("isLoadApms",!1),this.dataService.emitToStream("cards$",e),this.dataService.emitToStream("apms$",r),this.dataService.action(new jt("get-cards",e)),this.analyticsService.action(new jt("loading-finish"))})}loadCards(){this.dataService.setState("isLoadCards",!0);const{merchantId:e,userAuthToken:r}=this.dataService.getStreamValue("payment$");this.apiService.getUserPaymentMethods(e,r).pipe(Ft(i=>i.filter(s=>"card"===s.type.toLowerCase()).map(s=>s))).subscribe(i=>{this.dataService.setState("isLoadCards",!1),this.dataService.emitToStream("cards$",i),this.dataService.action(new jt("get-cards",i))})}pay(e){this.dataService.setState("isSentPayment",!0);const r=this.dataService.getStreamValue("payment$"),i=this.dataService.getStreamValue("settings$");this.apiService.pay(r,e,i).subscribe({next:o=>{this.dataService.action(new jt("pay",o))},error:this.dataService.errorHandler("error-pay")})}alternativePay(e){this.dataService.setState("isSentPayment",!0);const r=o=>{this.dataService.action(new jt("pay",o))},{type:i}=e.requisites,s=this.motoApmsService.get(i);s.isAvailable().subscribe(o=>{if(!o)return void this.dataService.errorHandler("error-pay");const a=this.dataService.getStreamValue("payment$");s.pay(a,e).pipe(As(l=>{e.requisites=Object.assign(Object.assign({},e.requisites),{token:l});const c=this.dataService.getStreamValue("settings$");return this.apiService.pay(a,e,c)})).subscribe({next:r,error:this.dataService.errorHandler("error-pay")})})}getPaymentInfo(e){const r=this.dataService.getStreamValue("payment$");return this.apiService.getPaymentInfo(r.merchantId,e)}removeCard(e){this.dataService.setState("isRemovedCard",!0);const{merchantId:r,userAuthToken:i}=this.dataService.getStreamValue("payment$");this.apiService.removeCard(e.id,r,i).subscribe(()=>{this.dataService.setState("isRemovedCard",!1),this.dataService.action(new jt("remove-card",e))})}prepareApmsResponse(e){return e.pipe(As(r=>this.prepareApms(r)),Ho(this.apmRecover))}prepareApms(e){const{merchantId:r,userId:i,currency:s}=this.dataService.getStreamValue("payment$");return this.apiService.getApmLogos(r,i,s).pipe(Ft(o=>{let a=this.joinUserApmsAndApms(e,o);return this.sortApms(a)}),function qx(n){return An((t,e)=>{let r=!1;t.subscribe(mn(e,i=>{r=!0,e.next(i)},()=>{r||e.next(n),e.complete()}))})}([]),As(o=>this.filterApms(o)))}joinUserApmsAndApms(e,r){return r.map(i=>({name:i.name,logo:i.logo,type:i.name}))}filterApms(e){const r=e.map(i=>this.motoApmsService.has(i.name)?this.motoApmsService.get(i.name).isAvailable().pipe(Ft(s=>s?i:null),Ho(()=>Hr(null))):Hr(i));return r.length?mm(r).pipe(Ft(i=>i.filter(s=>s))):Hr([])}sortApms(e){return e.sort((r,i)=>Number(!i.logo)-Number(!r.logo))}}return n.\u0275fac=function(e){return new(e||n)(K(LO),K(wg),K(ea),K(Vs))},n.\u0275prov=ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),EC=(()=>{class n{constructor(){this.initialized=!1,this.initializedPromise=new Promise(e=>{this.resolveInitialized=e})}initialize(){this.initialized||(this.initialized=!0,this.resolveInitialized())}waitForInitialization(){return ds(this.initializedPromise)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$O=(()=>{class n{constructor(){this._close=new ze,this.showCloseButton=!0}close(){this._close.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Mt({type:n,selectors:[["moto-pay-header"]],inputs:{showCloseButton:"showCloseButton"},outputs:{_close:"close"},decls:4,vars:1,consts:[[1,"__ndb-header"],[1,"__ndb-header-title","fz-24","fw-700"],["class","__ndb-header-close","data-tooltip","Close",4,"ngIf"],["data-tooltip","Close",1,"__ndb-header-close"],[1,"material-icons","pointer",3,"click"]],template:function(e,r){1&e&&(H(0,"header",0)(1,"h6",1),me(2,"Checkout"),U(),J(3,tN,3,0,"div",2),U()),2&e&&(P(3),N("ngIf",r.showCloseButton))},directives:[Un],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-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}),n})(),ra=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Mt({type:n,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(e,r){1&e&&J(0,nN,2,2,"div",0),2&e&&N("ngIf",r.src)},directives:[Un],styles:[".__ndb-picture[_ngcontent-%COMP%]{height:inherit;width:inherit}.__ndb-picture-tag[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:cover}"],changeDetection:0}),n})();const Bs={formErrorMessages:{cardNumber:"Invalid card number",expiration:"Invalid card date",cvv:"Invalid card code"},result:{icons:{rejected:"cancel",needAction:"hourglass_bottom",completed:"check_circle"},titleText:{rejected:"Something went wrong",needAction:"Awaiting confirmation",completed:"We placed your order \u{1f389}"},descriptionText:{rejected:"Payment failed.",needAction:"Wait.....",completed:null}},urls:{resources:"https://cdn.motopays.com"},keys:{postMessage:"__moto_pay_message"},error:{descriptionText:{"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","invalid-urls":'The field "urls" is required and processing/billingProfiles must to be set',"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'}}};let Eg=(()=>{class n{transform(e){return`${Bs.urls.resources}/images/${e}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=yt({name:"image",type:n,pure:!0}),n})(),VO=(()=>{class n{constructor(){}get isMastercardAvailable(){return this.isMastercardAvailableInternal()}get isVisaAvailable(){return this.isVisaAvailableInternal()}get isFooterVisible(){var e;return Boolean(null===(e=this.settings)||void 0===e?void 0:e.merchantInfo)||this.isMastercardAvailableInternal()||this.isVisaAvailableInternal()}isMastercardAvailableInternal(){var e,r,i;return null!==(i=null===(r=null===(e=this.settings)||void 0===e?void 0:e.availableCardBrands)||void 0===r?void 0:r.some(s=>"mastercard"==s))&&void 0!==i&&i}isVisaAvailableInternal(){var e,r,i;return null!==(i=null===(r=null===(e=this.settings)||void 0===e?void 0:e.availableCardBrands)||void 0===r?void 0:r.some(s=>"visa"==s))&&void 0!==i&&i}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Mt({type:n,selectors:[["moto-pay-footer"]],inputs:{settings:"settings"},decls:1,vars:1,consts:[["class","__ndb-footer",4,"ngIf"],[1,"__ndb-footer"],[4,"ngIf"],["class","__ndb-footer-secure",4,"ngIf"],["class","__ndb-footer-links",4,"ngIf"],["class","__ndb-footer-description fz-11 fw-500 font-description",4,"ngIf"],[1,"__ndb-footer-links"],[4,"ngFor","ngForOf"],["target","_blank",1,"__ndb-footer-links-link","fz-12","fw-500","font-description",3,"href"],["class","__ndb-footer-links-separator fz-12 fw-500 font-description",4,"ngIf"],[1,"__ndb-footer-links-separator","fz-12","fw-500","font-description"],[1,"__ndb-footer-description","fz-11","fw-500","font-description"],[1,"__ndb-footer-secure"],[1,"__ndb-footer-secure-phrase","fz-12","fw-500","font-description"],[1,"__ndb-footer-secure-logos"],["class","__ndb-footer-secure-logos-logo",3,"src",4,"ngIf"],[1,"__ndb-footer-secure-logos-logo",3,"src"]],template:function(e,r){1&e&&J(0,hN,3,2,"div",0),2&e&&N("ngIf",r.isFooterVisible)},directives:[ra,Un,Zi],pipes:[Eg],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-footer[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:28px;padding:0 28px 28px}@media (max-width: 768px){.__ndb-footer[_ngcontent-%COMP%]{padding-bottom:14px}}.__ndb-footer-menu[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:16px}.__ndb-footer-menu-logo[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.__ndb-footer-menu-logo-img[_ngcontent-%COMP%]{height:32px;width:32px}.__ndb-footer-menu-items[_ngcontent-%COMP%]{display:flex;align-items:center}.__ndb-footer-menu-items-dot[_ngcontent-%COMP%]{display:block;width:2px;height:2px;margin:0 5px;border-radius:50%;background-color:#a5aabe}.__ndb-footer-menu-items-link[_ngcontent-%COMP%]{transition:color .3s cubic-bezier(.25,.1,.25,1)}.__ndb-footer-menu-items-link[_ngcontent-%COMP%]:hover{color:#555b75!important}.__ndb-footer-links[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-wrap:wrap}.__ndb-footer-links-link[_ngcontent-%COMP%]{white-space:nowrap;text-decoration-line:underline}.__ndb-footer-links-separator[_ngcontent-%COMP%]{margin:0 10px;white-space:nowrap}.__ndb-footer-description[_ngcontent-%COMP%]{line-height:1.1;color:#000}.__ndb-footer-secure[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:10px}.__ndb-footer-secure-phrase[_ngcontent-%COMP%]{color:#000}.__ndb-footer-secure-logos[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:2px}.__ndb-footer-secure-logos-logo[_ngcontent-%COMP%]{height:40px;width:max-content}"],changeDetection:0}),n})();class Sg{constructor(t){this.animationTime=is.DEFAULT_ANIMATE_MS,Object.assign(this,t)}}const BO=Ko("ANHeight",[qr(":enter",[Bt({overflow:"hidden",height:"0px"}),zr(is.DEFAULT_ANIMATE_MS,Bt({height:"*",overflow:"hidden"}))]),qr(":leave",[Bt({height:"*",overflow:"hidden"}),zr(is.DEFAULT_ANIMATE_MS,Bt({height:"0px",overflow:"hidden"}))])]),jO=Ko("ANScale",[qr(":enter",[Bt({opacity:0,transform:"scale(0)"}),zr(is.DEFAULT_ANIMATE_MS,Bt({opacity:1,transform:"scale(1)"}))]),qr(":leave",zr(is.DEFAULT_ANIMATE_MS,Bt({opacity:0,transform:"scale(0)"})))]),SC=n=>{const t=new Sg({animationName:"ANTransform",fromStyles:{opacity:"0",transform:"translateY(-100%)"},toStyles:{opacity:"1",transform:"translateY(0%)"}}),e=Object.assign(t,n),{animationName:r,animationTime:i,fromStyles:s,toStyles:o}=e;return Ko(r,[qr(":enter",[Bt(s),zr(i,Bt(o))]),qr(":leave",[Bt(o),zr(i,Bt(s))])])},HO=n=>{const t=new Sg({animationName:"ANStates",fromState:"a",toState:"b"}),e=Object.assign(t,n),{animationName:r,animationTime:i,fromStyles:s,toStyles:o,fromState:a,toState:l}=e;return Ko(r,[vl(a,Bt(s)),vl(l,Bt(o)),qr(`${a}<=>${l}`,zr(i))])},UO=n=>{const t=new Sg({animationName:"ANStates"}),e=Object.assign(t,n),{animationName:r,animationTime:i,fromStyles:s,toStyles:o}=e;return Ko(r,[qr(":enter",[Bt(s),zr(i,Bt(o))]),qr(":leave",[Bt(o),zr(i,Bt(s))])])};let MC=(()=>{class n{constructor(){this.shadow=!0}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Mt({type:n,selectors:[["moto-loader"]],hostVars:1,hostBindings:function(e,r){2&e&&Hc("@ANFade",r.fadeAnimation)},inputs:{shadow:"shadow"},decls:3,vars:5,consts:[[1,"__ndb-loader"],["alt","spinner",1,"__ndb-loader-picture",3,"src"]],template:function(e,r){1&e&&(H(0,"div",0),Ze(1,"moto-picture",1),$e(2,"image"),U()),2&e&&(Fr("shadow",r.shadow),P(1),N("src",Bn(2,3,"spinner-small.gif")))},directives:[ra],pipes:[Eg],styles:[".__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:[UO({animationName:"ANFade",fromStyles:{opacity:"0"},toStyles:{opacity:"1"}})]},changeDetection:0}),n})();const Mg=new pe("moto-window-document",{providedIn:"root",factory:()=>window});function TC(n){return n&&n.replace(/\s+/g," ").trim()}let Tg=(()=>{class n{constructor(e,r){this.cdr=e,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.mask=null,this.validate=!0,this.dropSpecialCharacters=!0,this._paste=new ze}ngOnInit(){this.initFormControl()}initFormControl(){this.formControl=this.injector.get(xi)}get isInvalidControl(){return"invalid"===this.status||function qO(n){const{invalid:t,pristine:e,touched:r}=n;return t&&r&&!e}(this.formControl)&&this.validate}setValue(e){this.value=TC(e),this.onChange(e),this.cdr.detectChanges()}paste(e){e.stopPropagation(),setTimeout(()=>{this._paste.emit(e.target.value),this.cdr.detectChanges()})}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}writeValue(e){this.value=TC(e),this.cdr.detectChanges()}setDisabledState(e){this.disabled=e,this.cdr.detectChanges()}}return n.\u0275fac=function(e){return new(e||n)(k(cl),k(_t))},n.\u0275cmp=Mt({type:n,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:[ut([{provide:nr,useExisting:Xe(()=>n),multi:!0}])],ngContentSelectors:pN,decls:8,vars:13,consts:[[1,"__ndb-form-control"],[1,"__ndb-form-control-affix"],[1,"__ndb-input-container"],[1,"__ndb-form-control-input",3,"type","placeholder","minlength","maxlength","mask","dropSpecialCharacters","ngModel","ngModelChange","blur","paste"],["inputRef",""]],template:function(e,r){1&e&&(function T_(n){const t=$()[16][6];if(!t.projection){const r=t.projection=Na(n?n.length:1,null),i=r.slice();let s=t.child;for(;null!==s;){const o=n?ID(s,n):0;null!==o&&(i[o]?i[o].projectionNext=s:r[o]=s,i[o]=s),s=s.next}}}(fN),H(0,"div",0)(1,"div",1),Yf(2),U(),H(3,"div",2)(4,"input",3,4),Oe("ngModelChange",function(s){return r.setValue(s)})("blur",function(){return r.onTouched()})("paste",function(s){return r.paste(s)}),U()(),H(6,"div",1),Yf(7,1),U()()),2&e&&(Fr("transparent",r.transparent)("invalid",r.isInvalidControl),P(4),N("type",r.type)("placeholder",r.placeholder)("minlength",r.minlength)("maxlength",r.maxlength)("mask",r.mask)("dropSpecialCharacters",r.dropSpecialCharacters)("ngModel",r.value),Sn("data-locator",r.formControlName||r.placeholder)("autocomplete",r.autocomplete))},directives:[wI,Ru,Qu,Tl,Zo,Sl],styles:[""],changeDetection:0}),n})();const ZO={"form-field-length":$s};let xg=(()=>{class n{transform(e,r){const s=ZO[r][e];if(function kO(n){return!function vC(n){return null==n}(n)}(s))return s;throw new Error(`Value of the key "${e}" of the enum does not exist.`)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=yt({name:"enum",type:n,pure:!0}),n})(),Pl=(()=>{class n{transform(e,r,i){return Boolean(e)?r:i}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=yt({name:"condition",type:n,pure:!0}),n})(),xC=(()=>{class n extends Xo{constructor(e,r){super(e),this.injector=e,this.fb=r,this.isErrorSubmit=!1}ngOnInit(){this.initForm(),this.initFormValueListener()}initForm(){this.form=this.fb.group({phoneNumber:[null,[Ti.maxLength($s.MAX_TEL),Ti.minLength($s.MIN_TEL)]]})}initFormValueListener(){this.form.valueChanges.pipe(pm(null),yl(50),Zb(),bu(([e,r])=>JSON.stringify(e)!==JSON.stringify(r)),this.untilDestroy()).subscribe(e=>{this.isErrorSubmit=!1,this.detect()})}get isInvalidForm(){return this.form.invalid}get isInvalidPhone(){var e,r;return this.form.get("phoneNumber").invalid&&(this.isErrorSubmit||(null===(r=null===(e=this.settings)||void 0===e?void 0:e.requiredFieldsBehavior)||void 0===r?void 0:r.markAsInvalidUntilCorrect))}getFormValue(){return this.form.value}setErrorSubmitStatus(e){this.isErrorSubmit=e,this.detect()}resetForm(){this.form.reset(),this.localDetect()}}return n.\u0275fac=function(e){return new(e||n)(k(_t),k(y8))},n.\u0275cmp=Mt({type:n,selectors:[["moto-pay-additional-form"]],inputs:{settings:"settings"},exportAs:["additionalFormRef"],features:[Ue],decls:2,vars:2,consts:[[1,"__ndb-form",3,"formGroup"],["class","__ndb-form-stage",4,"ngIf"],[1,"__ndb-form-stage"],[1,"__ndb-form-stage-header"],[1,"__ndb-form-stage-header-title","fz-14","fw-500"],["class","__ndb-form-stage-header-error fz-14 fw-500 font-error","data-locator","phone-error",4,"ngIf"],[1,"__ndb-form-stage-controls"],["formControlName","phoneNumber","placeholder","Phone number","autocomplete","tel","type","tel",3,"minlength","maxlength","validate","status"],["data-locator","phone-error",1,"__ndb-form-stage-header-error","fz-14","fw-500","font-error"]],template:function(e,r){1&e&&(H(0,"form",0),J(1,gN,10,15,"div",1),U()),2&e&&(N("formGroup",r.form),P(1),N("ngIf",r.settings.isPhoneNumberFieldVisible))},directives:[Tg,jm,Tm,Ml,Un,Zo,Zu,Qu,Tl],pipes:[xg,Pl],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-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:28px;margin-top:10px}.__ndb-form-stage[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.__ndb-form-stage-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:10px}.__ndb-form-stage-controls_credentials[_ngcontent-%COMP%]{border:1px solid #c9ccd8;border-radius:4px;box-shadow:0 2px #29304d14}.__ndb-form-stage-controls_credentials.invalid[_ngcontent-%COMP%]{border-color:#eb001b}.__ndb-form-stage-controls_credentials.invalid[_ngcontent-%COMP%] .__ndb-form-stage-controls-separator[_ngcontent-%COMP%]{background-color:#eb001b}.__ndb-form-stage-controls_card-number-logo[_ngcontent-%COMP%]{height:24px;width:36px}.__ndb-form-stage-controls-separator[_ngcontent-%COMP%]{background-color:#c9ccd8}.__ndb-form-stage-controls-separator_x[_ngcontent-%COMP%]{height:.5px}.__ndb-form-stage-controls-separator_y[_ngcontent-%COMP%]{width:.5px}.__ndb-form-stage-controls-group[_ngcontent-%COMP%]{display:flex;border-top:none}.__ndb-form-stage-controls-group[_ngcontent-%COMP%] moto-form-input[_ngcontent-%COMP%]{width:50%}"],data:{animation:[SC()]},changeDetection:0}),n})();const QO={"american-express":[3,4]};class Ed{static luhnAlgorithm({value:t}){return Boolean(t)&&function YO(n){return/^\d+$/.test(n)&&!(n.split("").reverse().map(function(t,e){return t=parseInt(t,10),e%2==0?t:(t*=2)>9?t-9:t}).reduce(function(t,e){return t+e})%10)}(t)?null:{luhnAlgorithm:!0}}static cardExpiration({value:t}){const e={expiration:!0};if(t){if(t.length<4)return e;const i=+(new Date).getFullYear().toString().slice(-2),[s,o,a,l]=t.split(""),c=`${s}${o}`,h=+`${a}${l}`<i;return+c<1||+c>12||h?e:null}return e}static cardNumberLength({value:t}){const e=(null==t?void 0:t.length)||0;return e>=Il.MIN_CARD_NUMBER_LENGTH&&e<=Il.MAX_CARD_NUMBER_LENGTH?null:{cardLength:!0}}static cardCodeLength(t="cardNumber"){return({value:e,parent:r})=>{const i=null==r?void 0:r.get(t),[s]=Ou(null==i?void 0:i.value),o=Boolean(null==s?void 0:s.code.size)&&Boolean(e),a=QO[null==s?void 0:s.type];return o&&((null==s?void 0:s.code.size)===(null==e?void 0:e.length)||(null==a?void 0:a.includes(null==e?void 0:e.length)))?null:{cardCodeLength:!0}}}}let Nl=(()=>{class n{constructor(e,r){this.viewContainer=e,this.tpl=r,this.context={motoLet:null}}set _motoLet(e){this.context.motoLet=e}ngOnInit(){this.viewContainer.createEmbeddedView(this.tpl,this.context)}}return n.\u0275fac=function(e){return new(e||n)(k(Vr),k(ai))},n.\u0275dir=we({type:n,selectors:[["","motoLet",""]],inputs:{_motoLet:["motoLet","_motoLet"]}}),n})(),IC=(()=>{class n{transform(e){const r=ss[e];let i=null==r?void 0:r.toString();return i?(r==ss.visa&&(i+="-brand"),r==ss.mastercard&&(i+="-brand"),r?`${Bs.urls.resources}/images/${i}.svg`:null):null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=yt({name:"brandLogo",type:n,pure:!0}),n})(),Sd=(()=>{class n{transform(e,r,i=null){const[s]=Ou(e);if(!s)return i;switch(r){case"logo":return this.getLogo(s);case"payment-system":return s.niceType;case"card-number-mask":return"0000 0000 0000 0000 000";case"secure-text":return vd[s.type];case"code":return s.code.name;case"code-mask":{const{size:o}=s.code;return Array.from({length:o}).fill("0").join("")}}}getLogo(e){return e?`${Bs.urls.resources}/images/${ss[e.type]||ss.default}.svg`:null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=yt({name:"cardInfo",type:n,pure:!0}),n})(),kC=(()=>{class n extends Xo{constructor(e,r,i){super(e),this.injector=e,this.fb=r,this.analyticsService=i,this.isErrorSubmit=!1,this.availableCardBrands=[],this.creadentialErrorMessages=na(Bs,["formErrorMessages"])}ngOnInit(){this.initForm(),this.initFormValueListener()}initForm(){this.form=this.fb.group({cardCredentials:this.fb.group({cardNumber:[null,[Ti.required,Ed.luhnAlgorithm,Ed.cardNumberLength]],expiration:[null,[Ti.required,Ti.minLength(4),Ti.maxLength(4),Ed.cardExpiration]],cvv:[null,[Ti.required,Ed.cardCodeLength()]]}),cardHolder:[null,[Ti.required,Ti.maxLength($s.MAX_CARD_HOLDER)]]})}initFormValueListener(){this.form.valueChanges.pipe(pm(null),yl(50),Zb(),bu(([e,r])=>JSON.stringify(e)!==JSON.stringify(r)),this.untilDestroy()).subscribe(e=>{this.isErrorSubmit=!1,this.detect()})}get isInvalidForm(){return this.form.invalid}get isInvalidCredentials(){var e,r;return this.form.get("cardCredentials").invalid&&(this.isErrorSubmit||(null===(r=null===(e=this.settings)||void 0===e?void 0:e.requiredFieldsBehavior)||void 0===r?void 0:r.markAsInvalidUntilCorrect))}get isInvalidHolder(){var e,r;return this.form.get("cardHolder").invalid&&(this.isErrorSubmit||(null===(r=null===(e=this.settings)||void 0===e?void 0:e.requiredFieldsBehavior)||void 0===r?void 0:r.markAsInvalidUntilCorrect))}pasteCardNumber(e){const r=function zO(n){return n.replace(/\s/g,"")}(e);this.form.get("cardCredentials").get("cardNumber").setValue(r,{onlySelf:!0}),function KO(n,t,e=null,r=!0){t.forEach(i=>{const s=n.get(i);s||function IO(n){throw new Error(n)}(`Invalid form control name: "${i}"`),s.reset(e),r&&s.updateValueAndValidity()})}(this.form.get("cardCredentials"),["expiration","cvv"]),this.detect()}get paymentsErrorMsg(){const e=this.form.get("cardCredentials"),[r]=function WO(n){return function GO(n){return Object.entries(n.controls).filter(([t,e])=>e.invalid)}(n).map(([t])=>t)}(e);return r?this.creadentialErrorMessages[r]:null}getFormValue(){const{cardCredentials:e,cardHolder:r,phoneNumber:i}=this.form.value;return Object.assign(e,{cardHolder:r,phoneNumber:i})}get areRequiredFieldsEmpty(){const{cardCredentials:e,cardHolder:r}=this.form.value;return!((null==e?void 0:e.cvv)&&(null==e?void 0:e.cardNumber)&&(null==e?void 0:e.expiration)&&r)}get cardNumberValue(){return this.form.value.cardCredentials.cardNumber}setErrorSubmitStatus(e){this.isErrorSubmit=e,this.detect()}resetForm(){this.form.reset(),this.localDetect()}onCardNumberClick(){this.analyticsService.action(new jt("card-number-field-click"))}onCvvClick(){this.analyticsService.action(new jt("cvv-field-click"))}onCardHolderClick(){this.analyticsService.action(new jt("card-holder-field-click"))}onExpirationDateClick(){this.analyticsService.action(new jt("expiration-date-field-click"))}}return n.\u0275fac=function(e){return new(e||n)(k(_t),k(y8),k(Vs))},n.\u0275cmp=Mt({type:n,selectors:[["moto-pay-card-form"]],inputs:{settings:"settings"},exportAs:["cardFormRef"],features:[Ue],decls:17,vars:17,consts:[[1,"__ndb-form",3,"formGroup"],["class","__ndb-form-stage",4,"ngIf"],[1,"__ndb-form-stage"],[1,"__ndb-form-stage-header"],[1,"__ndb-form-stage-header-title","fz-14","fw-500"],["class","__ndb-form-stage-header-error fz-14 fw-500 font-error","data-locator","card-credentials-error",4,"ngIf"],["class","__ndb-form-stage-controls __ndb-form-stage-controls_credentials","formGroupName","cardCredentials",3,"invalid",4,"motoLet"],["class","__ndb-form-stage-header-error fz-14 fw-500 font-error","data-locator","card-holder-error",4,"ngIf"],[1,"__ndb-form-stage-controls"],["formControlName","cardHolder","placeholder","Name on card","autocomplete","cc-name",3,"maxlength","validate","status","click"],[1,"__ndb-form-stage-paymentsheader"],[1,"__ndb-form-stage-payments"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"__ndb-form-stage-controls_card-number-logo",3,"src"],["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"],["formControlName","cardNumber","placeholder","Card number","type","tel","autocomplete","cc-number",1,"__ndb-form-stage-controls_card-number",3,"mask","transparent","validate","status","paste","click"],["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"],["formControlName","expiration","placeholder","MM / YY","mask","00 / 00","type","tel","autocomplete","cc-exp",1,"__ndb-form-stage-controls_expiration",3,"transparent","validate","status","click"],[1,"__ndb-form-stage-controls-separator","__ndb-form-stage-controls-separator_y"],["formControlName","cvv","type","tel",1,"__ndb-form-stage-controls_cvv",3,"mask","dropSpecialCharacters","placeholder","transparent","validate","status","click"],["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"]],template:function(e,r){1&e&&(H(0,"form",0),J(1,vN,6,1,"div",1),H(2,"div",2)(3,"div",3)(4,"h6",4),me(5),U(),J(6,bN,2,2,"span",5),U(),J(7,wN,19,48,"div",6),U(),H(8,"div",2)(9,"div",3)(10,"h6",4),me(11),U(),J(12,CN,2,1,"span",7),U(),H(13,"div",8)(14,"moto-form-input",9),Oe("click",function(){return r.onCardHolderClick()}),$e(15,"enum"),$e(16,"condition"),U()()()()),2&e&&(N("formGroup",r.form),P(1),N("ngIf",null==r.settings||null==r.settings.availableCardBrands?null:r.settings.availableCardBrands.length),P(4),zt(" Payment details ",null!=r.settings&&null!=r.settings.requiredFieldsBehavior&&r.settings.requiredFieldsBehavior.showStars?" *":""," "),P(1),N("ngIf",r.isInvalidCredentials),P(1),N("motoLet",r.getFormValue()),P(4),zt("Name on card ",null!=r.settings&&null!=r.settings.requiredFieldsBehavior&&r.settings.requiredFieldsBehavior.showStars?" *":"",""),P(1),N("ngIf",r.isInvalidHolder),P(2),N("maxlength",yr(15,10,"MAX_CARD_HOLDER","form-field-length"))("validate",!1)("status",jn(16,13,r.isInvalidHolder,"invalid","valid")))},directives:[ra,Tg,jm,Tm,Ml,Un,Zi,Nl,Ku,Zo,Zu,Tl],pipes:[IC,Sd,Pl,xg],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-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:28px}.__ndb-form-stage[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.__ndb-form-stage-payments[_ngcontent-%COMP%]{gap:10px;display:flex;justify-content:center}.__ndb-form-stage-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:10px}.__ndb-form-stage-paymentsheader[_ngcontent-%COMP%]{justify-content:center;display:flex;align-items:center;gap:10px}.__ndb-form-stage-controls_credentials[_ngcontent-%COMP%]{border:1px solid #c9ccd8;border-radius:4px;box-shadow:0 2px #29304d14}.__ndb-form-stage-controls_credentials.invalid[_ngcontent-%COMP%]{border-color:#eb001b}.__ndb-form-stage-controls_credentials.invalid[_ngcontent-%COMP%] .__ndb-form-stage-controls-separator[_ngcontent-%COMP%]{background-color:#eb001b}.__ndb-form-stage-controls_card-number-logo[_ngcontent-%COMP%]{height:24px;width:36px}.__ndb-form-stage-controls-separator[_ngcontent-%COMP%]{background-color:#c9ccd8}.__ndb-form-stage-controls-separator_x[_ngcontent-%COMP%]{height:.5px}.__ndb-form-stage-controls-separator_y[_ngcontent-%COMP%]{width:.5px}.__ndb-form-stage-controls-group[_ngcontent-%COMP%]{display:flex;border-top:none}.__ndb-form-stage-controls-group[_ngcontent-%COMP%] moto-form-input[_ngcontent-%COMP%]{width:50%}"],data:{animation:[SC()]},changeDetection:0}),n})();class JO{constructor(t,e=!1){this.card=t,this.selected=e}setSelected(t){this.selected=t}}let XO=(()=>{class n{constructor(e){this.analyticsService=e,this.isOpenPopup=!1,this.popupid=function xO(n=1){return window.crypto.getRandomValues(new Uint32Array(n)).toString()}(),this._select=new ze,this._remove=new ze}hidePopup(e){const r=e.closest("[data-card-popup]");(null==r?void 0:r.getAttribute("data-card-popup"))===this.popupid||this.setPopupState(!1)}setPopupState(e){this.isOpenPopup=e}optionsClicked(){this.setPopupState(!this.isOpenPopup),this.analyticsService.action(new jt("card-options-button-click",{last4Digits:this.option.card.name.slice(-4)}))}select(){this.option.selected||(this._select.emit(this.option),this.analyticsService.action(new jt("select-card-button-click",{last4Digits:this.option.card.name.slice(-4)})))}remove(){this._remove.emit(this.option.card),this.setPopupState(!1),this.analyticsService.action(new jt("remove-card-button-click",{last4Digits:this.option.card.name.slice(-4)}))}}return n.\u0275fac=function(e){return new(e||n)(k(Vs))},n.\u0275cmp=Mt({type:n,selectors:[["moto-pay-card"]],hostBindings:function(e,r){1&e&&Oe("click",function(s){return r.hidePopup(s.target)},!1,ey)},inputs:{option:"option"},outputs:{_select:"select",_remove:"remove"},decls:16,vars:17,consts:[[1,"__ndb-card"],["data-locator","card-active-circle",1,"__ndb-card-active-circle",3,"click"],["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"]],template:function(e,r){1&e&&(H(0,"div",0)(1,"div",1),Oe("click",function(){return r.select()}),U(),Ze(2,"moto-picture",2),$e(3,"cardInfo"),H(4,"span",3),me(5),$e(6,"cardInfo"),U(),H(7,"span",4),me(8),$e(9,"slice"),U(),H(10,"div",5)(11,"i",6),Oe("click",function(){return r.optionsClicked()}),me(12,"more_vert"),U(),H(13,"div",7)(14,"span",8),Oe("click",function(){return r.remove()}),me(15,"Remove card"),U()()()()),2&e&&(P(1),Fr("selected",r.option.selected),P(1),N("src",yr(3,8,r.option.card.name,"logo")),P(3),$r(yr(6,11,r.option.card.name,"payment-system")),P(3),$r(yr(9,14,r.option.card.name,-6)),P(2),Sn("data-card-popup",r.popupid),P(3),Fr("open",r.isOpenPopup))},directives:[ra],pipes:[Sd,Jp],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[_ngcontent-%COMP%]{--ndb-card-border-inner: var(--ndb-card-border, $mercury);display:flex;align-items:center;border:1px solid var(--ndb-card-border-inner);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: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: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 show-popup{0%{opacity:0;transform:translate(-60%,50%)}to{opacity:1;transform:translate(-60%)}}@keyframes mobile-show-popup{0%{opacity:0;transform:translate(-70%,50%)}to{opacity:1;transform:translate(-70%)}}'],changeDetection:0}),n})(),PC=(()=>{class n{constructor(){this._select=new ze,this._remove=new ze}set _cards(e){if(e){e=this.sortCards(e);const r=this.transformToCardOptions(e);this.selectDefaultCard(r),this.cardOptions=r,this.childrenDetector$.next()}}selectDefaultCard(e){const r=this.getSelectedCard(),i=e.find(s=>s.card.id===(null==r?void 0:r.card.id))||e[0];i&&i.setSelected(!0)}sortCards(e){return e.concat().sort(r=>r.isDefault?-1:1)}transformToCardOptions(e){return e.map(r=>new JO(r))}selectCard(e){const r=this.cardOptions.find(i=>i.selected);null==r||r.setSelected(!1),e.setSelected(!0),this._select.emit(e)}resetSeleted(){const e=this.getSelectedCard();e&&e.setSelected(!1)}getSelectedCard(){var e;return null===(e=this.cardOptions)||void 0===e?void 0:e.find(r=>r.selected)}removeCard(e){this._remove.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Mt({type:n,selectors:[["moto-pay-card-list"]],inputs:{childrenDetector$:["childrenDetector","childrenDetector$"],_cards:["cards","_cards"]},outputs:{_select:"select",_remove:"remove"},exportAs:["cardListRef"],decls:4,vars:2,consts:[[1,"__ndb-card-list"],[4,"ngIf","ngIfElse"],["emptyTpl",""],["class","__ndb-card-list-item",3,"option","select","remove",4,"ngFor","ngForOf"],[1,"__ndb-card-list-item",3,"option","select","remove"],[1,"font-empty"]],template:function(e,r){if(1&e&&(H(0,"div",0),J(1,EN,2,1,"ng-container",1),U(),J(2,SN,2,0,"ng-template",null,2,Ss)),2&e){const i=Cs(3);P(1),N("ngIf",null==r.cardOptions?null:r.cardOptions.length)("ngIfElse",i)}},directives:[XO,Un,Zi],styles:[".__ndb-card-list[_ngcontent-%COMP%]{display:flex;flex-direction:column}.__ndb-card-list-item[_ngcontent-%COMP%]{width:100%}.__ndb-card-list-item[_ngcontent-%COMP%]:not(:first-child){margin-top:10px}"],changeDetection:0}),n})(),NC=(()=>{class n extends Xo{constructor(e,r){super(r),this.analyticsService=e,this.injector=r,this.checkboxesResults=[],this.isErrorSubmit=!1}get termsApproved(){var e,r,i,s,o,a;return!(null===(i=null===(r=null===(e=this.settings)||void 0===e?void 0:e.chargeTerms)||void 0===r?void 0:r.checkboxes)||void 0===i?void 0:i.length)||!(null===(o=null===(s=this.settings)||void 0===s?void 0:s.chargeTerms)||void 0===o?void 0:o.visible)||(null===(a=this.settings)||void 0===a?void 0:a.chargeTerms.checkboxes.filter(l=>l).length)===this.checkboxesResults.filter(l=>l).length}onChange(e){var r,i,s;this.isErrorSubmit=!1;let a=null;const l={text:null===(s=null===(i=null===(r=this.settings)||void 0===r?void 0:r.chargeTerms)||void 0===i?void 0:i.checkboxes[e])||void 0===s?void 0:s.text};a=new jt(this.checkboxesResults[e]?`charge-term-checkbox-${e}-check`:`charge-term-checkbox-${e}-uncheck`,l),this.analyticsService.action(a)}setErrorSubmitStatus(e){this.isErrorSubmit=e,this.detect()}ngOnInit(){this.checkboxesResults=[],this.isErrorSubmit=!1}reset(){var e;if(null===(e=this.checkboxesResults)||void 0===e?void 0:e.length)for(let r=0;r<this.checkboxesResults.length;r++)this.checkboxesResults[r]=!1;this.localDetect()}}return n.\u0275fac=function(e){return new(e||n)(k(Vs),k(_t))},n.\u0275cmp=Mt({type:n,selectors:[["charge-terms"]],inputs:{settings:"settings"},features:[Ue],decls:1,vars:1,consts:[["class","__ndb-chargeterms",4,"ngIf"],[1,"__ndb-chargeterms"],[4,"ngIf"],["class","__ndb-chargeterms-text fz-11 fw-500 font-description",4,"ngIf"],["class","fz-14 fw-500 font-error","data-locator","charge-terms-error",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"__ndb-chargeterms-checkbox","fz-11","fw-500","font-description"],["type","checkbox",1,"__ndb-chargeterms-checkbox-input",3,"name","id","ngModel","ngModelChange"],[1,"__ndb-chargeterms-checkbox-checkmark"],[1,"__ndb-chargeterms-checkbox-text"],["target","_blank","class","__ndb-chargeterms-checkbox-link fz-12 fw-500 font-description",3,"href",4,"ngIf"],["target","_blank",1,"__ndb-chargeterms-checkbox-link","fz-12","fw-500","font-description",3,"href"],[1,"__ndb-chargeterms-text","fz-11","fw-500","font-description"],["data-locator","charge-terms-error",1,"fz-14","fw-500","font-error"]],template:function(e,r){1&e&&J(0,PN,4,3,"div",0),2&e&&N("ngIf",null==r.settings||null==r.settings.chargeTerms?null:r.settings.chargeTerms.visible)},directives:[Un,Zi,Fu,Zo,Sl],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-chargeterms[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;margin-top:28px}.__ndb-chargeterms-checkbox[_ngcontent-%COMP%]{display:block;cursor:pointer}.__ndb-chargeterms-checkbox-input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.__ndb-chargeterms-checkbox[_ngcontent-%COMP%]:hover .__ndb-chargeterms-checkbox-input[_ngcontent-%COMP%] ~ .__ndb-chargeterms-checkbox-checkmark[_ngcontent-%COMP%]{background-color:#ccc}.__ndb-chargeterms-checkbox-input[_ngcontent-%COMP%]:checked ~ .__ndb-chargeterms-checkbox-checkmark[_ngcontent-%COMP%]{background-color:#2196f3}.__ndb-chargeterms-checkbox-input[_ngcontent-%COMP%]:checked ~ .__ndb-chargeterms-checkbox-checkmark[_ngcontent-%COMP%]:after{display:block;left:6px;top:3px;width:5px;height:10px;border:solid white;border-width:0 3px 3px 0;transform:rotate(45deg);box-sizing:unset}.__ndb-chargeterms-checkbox-input[_ngcontent-%COMP%]:checked ~ .__ndb-chargeterms-checkbox-checkmark[_ngcontent-%COMP%]:before{box-sizing:unset}.__ndb-chargeterms-checkbox-text[_ngcontent-%COMP%]{display:inline;vertical-align:middle}.__ndb-chargeterms-checkbox-checkmark[_ngcontent-%COMP%]{box-sizing:border-box;display:inline-block;vertical-align:middle;height:22px;width:22px;background-color:#fff;border-radius:100px;border:1px solid #dcdcdc;margin-right:5px;transform:rotate(0)}.__ndb-chargeterms-checkbox-checkmark[_ngcontent-%COMP%]:after{content:"";position:absolute;display:none}.__ndb-chargeterms-checkbox-checkmark.invalid[_ngcontent-%COMP%]{border:1px solid red}.__ndb-chargeterms-checkbox-checkmark.invalid[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:-2px;border:2px solid red;pointer-events:none}.__ndb-chargeterms-checkbox-link[_ngcontent-%COMP%]{display:inline;margin-left:10px;white-space:nowrap;text-align:center;text-decoration-line:underline}.__ndb-chargeterms-text[_ngcontent-%COMP%]{margin-top:10px;line-height:1.1;color:#000}'],changeDetection:0}),n})(),OC=(()=>{class n extends Xo{constructor(e,r){super(e),this.injector=e,this.analyticsService=r,this.userPreferenceCheckboxes=[]}ngOnChanges(e){var r,i;const s=null===(r=e.userPreferencesSettings)||void 0===r?void 0:r.currentValue;(null===(i=null==s?void 0:s.checkboxes)||void 0===i?void 0:i.length)&&e.userPreferencesSettings.currentValue!==e.userPreferencesSettings.previousValue&&this.update(s)}getUserPreferences(){var e;return(null===(e=this.userPreferencesSettings)||void 0===e?void 0:e.visible)?this.userPreferenceCheckboxes.map(r=>({value:r.value,name:r.name})):null}reset(){this.update(this.userPreferencesSettings)}onChange(e){const r=this.userPreferenceCheckboxes[e];this.analyticsService.action(new jt(r.value?`user-preference-checkbox-${e}-check`:`user-preference-checkbox-${e}-uncheck`,{name:r.name,text:r.text}))}update(e){!e||(this.userPreferenceCheckboxes=e.checkboxes.map(r=>({name:r.name,text:r.text,link:r.link,value:!!r.defaultValue})),this.localDetect())}}return n.\u0275fac=function(e){return new(e||n)(k(_t),k(Vs))},n.\u0275cmp=Mt({type:n,selectors:[["user-preferences"]],inputs:{userPreferencesSettings:["userPreferences","userPreferencesSettings"]},features:[Ue,kr],decls:1,vars:1,consts:[["class","__ndb-userpreferences",4,"ngIf"],[1,"__ndb-userpreferences"],[4,"ngIf"],["class","__ndb-userpreferences-text fz-11 fw-500 font-description",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"__ndb-userpreferences-checkbox","fz-11","fw-500","font-description"],["type","checkbox",1,"__ndb-userpreferences-checkbox-input",3,"name","id","ngModel","ngModelChange"],[1,"__ndb-userpreferences-checkbox-checkmark"],[1,"__ndb-userpreferences-checkbox-text"],["target","_blank","class","__ndb-userpreferences-checkbox-link fz-12 fw-500 font-description",3,"href",4,"ngIf"],["target","_blank",1,"__ndb-userpreferences-checkbox-link","fz-12","fw-500","font-description",3,"href"],[1,"__ndb-userpreferences-text","fz-11","fw-500","font-description"]],template:function(e,r){1&e&&J(0,$N,3,2,"div",0),2&e&&N("ngIf",null==r.userPreferencesSettings?null:r.userPreferencesSettings.visible)},directives:[Un,Zi,Fu,Zo,Sl],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-userpreferences[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;margin-top:28px}.__ndb-userpreferences-checkbox[_ngcontent-%COMP%]{display:block;cursor:pointer}.__ndb-userpreferences-checkbox-input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.__ndb-userpreferences-checkbox[_ngcontent-%COMP%]:hover .__ndb-userpreferences-checkbox-input[_ngcontent-%COMP%] ~ .__ndb-userpreferences-checkbox-checkmark[_ngcontent-%COMP%]{background-color:#ccc}.__ndb-userpreferences-checkbox-input[_ngcontent-%COMP%]:checked ~ .__ndb-userpreferences-checkbox-checkmark[_ngcontent-%COMP%]{background-color:#2196f3}.__ndb-userpreferences-checkbox-input[_ngcontent-%COMP%]:checked ~ .__ndb-userpreferences-checkbox-checkmark[_ngcontent-%COMP%]:after{display:block;left:6px;top:3px;width:5px;height:10px;border:solid white;border-width:0 3px 3px 0;transform:rotate(45deg);box-sizing:unset}.__ndb-userpreferences-checkbox-input[_ngcontent-%COMP%]:checked ~ .__ndb-userpreferences-checkbox-checkmark[_ngcontent-%COMP%]:before{box-sizing:unset}.__ndb-userpreferences-checkbox-text[_ngcontent-%COMP%]{display:inline;vertical-align:middle}.__ndb-userpreferences-checkbox-checkmark[_ngcontent-%COMP%]{box-sizing:border-box;display:inline-block;vertical-align:middle;height:22px;width:22px;background-color:#fff;border-radius:2px;border:1px solid #dcdcdc;margin-right:5px;transform:rotate(0)}.__ndb-userpreferences-checkbox-checkmark[_ngcontent-%COMP%]:after{content:"";position:absolute;display:none}.__ndb-userpreferences-checkbox-checkmark.invalid[_ngcontent-%COMP%]{border:1px solid red}.__ndb-userpreferences-checkbox-checkmark.invalid[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:-2px;border:2px solid red;pointer-events:none}.__ndb-userpreferences-checkbox-link[_ngcontent-%COMP%]{display:inline;margin-left:10px;white-space:nowrap;text-align:center;text-decoration-line:underline}.__ndb-userpreferences-text[_ngcontent-%COMP%]{margin-top:10px;line-height:1.1;color:#000}'],changeDetection:0}),n})(),iF=(()=>{class n{constructor(){this._pay=new ze}pay(e){this._pay.emit(e)}trackByApm(e,r){return r.name}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Mt({type:n,selectors:[["moto-pay-apm-list"]],inputs:{apms:"apms",disabled:"disabled",hiddenEnabled:["hidden-enabled","hiddenEnabled"]},outputs:{_pay:"pay"},decls:5,vars:3,consts:[["class","__ndb-apm-list",4,"motoLet"],["apmDefaultRef",""],["applePayRef",""],[1,"__ndb-apm-list"],[1,"__ndb-apm-list__delimiter"],[1,"__ndb-apm-list__delimiter-text","fz-12"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"__ndb-apm-list__item",3,"ngClass","click"],[1,"__ndb-apm-list__item-img",3,"src","alt"],["motoApplePayButton","",1,"__ndb-apm-list__item--space_top-2","moto-apple-pay-button",3,"ngClass","buttonClick"]],template:function(e,r){if(1&e&&(J(0,jN,5,2,"div",0),J(1,HN,2,6,"ng-template",null,1,Ss),J(3,UN,1,4,"ng-template",null,2,Ss)),2&e){const i=Cs(4);N("motoLet",Zc(1,zN,i))}},directives:[Nl,Zi,sb,Gp,WI],pipes:[Pl],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-apm-list[_ngcontent-%COMP%]{padding-top:29px}.__ndb-apm-list__delimiter[_ngcontent-%COMP%]{position:relative;margin-bottom:25px;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:"";position:absolute;top:50%;height:1px;width:45%;background-color:#c9ccd8}.__ndb-apm-list__delimiter[_ngcontent-%COMP%]:before{left:0}.__ndb-apm-list__delimiter[_ngcontent-%COMP%]:after{right:0}.__ndb-apm-list__delimiter-text[_ngcontent-%COMP%]{font-weight:500;color:#636b8a}.__ndb-apm-list__item[_ngcontent-%COMP%]{position:relative;width:100%;height:60px;margin-bottom:10px;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__item[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.__ndb-apm-list__item[_ngcontent-%COMP%]:hover:not(.disabled-element):not(.hidden-enabled-element){box-shadow:0 2px 3px #2f45704d}.__ndb-apm-list__item[_ngcontent-%COMP%]:not(.disabled-element):not(.hidden-enabled-element){cursor:pointer}.__ndb-apm-list__item-space_top-2[_ngcontent-%COMP%]{margin-top:10px}.__ndb-apm-list__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%}'],changeDetection:0}),n})(),FC=(()=>{class n{constructor(e){this.window=e}transform(e,r){return Number(e).toLocaleString(this.window.navigator.language,{style:"currency",currency:r})}}return n.\u0275fac=function(e){return new(e||n)(k(Mg,16))},n.\u0275pipe=yt({name:"currencySymbol",type:n,pure:!0}),n})(),RC=(()=>{class n{transform(e,r,i){return r&&i&&i==Dd.Net?Math.abs(e)+Math.abs(r):e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=yt({name:"price",type:n,pure:!0}),n})(),sF=(()=>{class n extends Xo{constructor(e,r,i,s,o,a,l){super(r),this.window=e,this.injector=r,this.toastr=i,this.dataService=s,this.viewService=o,this.facadeService=a,this.analyticsService=l,this.postMessageKey=na(Bs,["keys","postMessage"]),this.externalApms=this.dataService.getState("externalApms"),this.cards$=this.dataService.getStream("cards$"),this.apms$=this.dataService.getStream("apms$"),this.payment$=this.dataService.getStream("payment$"),this.settings$=this.dataService.getStream("settings$"),this.viewState=this.viewService.getFullState()}ngOnInit(){this.updateCardTypes(),this.listenActions(),this.listenErrors(),this.listenChildrenDetection("local")}listenActions(){this.dataService.listenActions().pipe(this.untilDestroy()).subscribe(({type:e,payload:r})=>{switch(e){case"get-cards":this.afterGetCards(r);break;case"change-payment":this.afterChangePayment();break;case"pay":this.afterPay(r);break;case"remove-card":this.afterRemoveCard()}this.detect()})}listenErrors(){this.dataService.listenErrors().pipe(this.untilDestroy()).subscribe(({type:r})=>{switch(r){case"error-get-cards":this.dataService.setState("isLoadCards",!1);break;case"error-remove-card":this.dataService.setState("isRemovedCard",!1);break;case"error-pay":this.dataService.setState("isSentPayment",!1)}this.closeWindow(),this.detect()})}updateCardTypes(){Ou.updateCard(Ou.types.MAESTRO,{niceType:"Maestro",lengths:[13,16]})}openWindow(){const{window:e}=this.viewService.getFullState();if(!Boolean(e)){const r=this.window.open("","_blank");r.document.write(function rF(){let s='\n <!DOCTYPE html>\n <html>\n <head>\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <meta name="description" content="Waiting payment approval">\n\n <title>Moto pay</title>\n </head>\n <body>\n <div class="waiting">\n <div class="section">\n <h2 class="waiting__title">payment processing</h2>\n <div class="section__content __ndb-spinner-container">\n <div class="spinner">\n <div class="lds-ring">\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n </div>\n <div class="spinner__extra"></div>\n </div>\n </div>\n </div>\n </div>\n </body>\n </html>'.replace("</head>",'<style>\n\n .waiting__title {\n position: relative;\n z-index: 101;\n font-family: "Poppins", Helvetica, Arial, sans-serif;\n color: #29304d;\n font-size: 16px;\n margin: 0;\n text-align: center;\n transform: translateY(108px);\n }\n .__ndb__moto-modal-backdrop {\n background-color: #e5e5e5 !important;\n }\n .__ndb__moto-modal .header {\n margin: 0;\n }\n .section__content {\n margin: 0 auto;\n width: 870px;\n }\n @media screen and (max-width: 1000px) {\n .section__content {\n width: 720px;\n }\n }\n @media screen and (max-width: 768px) {\n .section__content {\n width: 375px;\n }\n }\n @media screen and (max-width: 375px) {\n .section__content {\n width: 320px;\n }\n }\n .spinner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n height: 330px;\n }\n .spinner_small {\n height: 70px;\n }\n .spinner_extra {\n height: 550px;\n }\n .lds-ring {\n display: inline-block;\n position: relative;\n width: 80px;\n height: 80px;\n }\n .lds-ring div {\n box-sizing: border-box;\n display: block;\n position: absolute;\n width: 64px;\n height: 64px;\n margin: 8px;\n border: 8px solid #6936d3;\n border-radius: 50%;\n animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n border-color: #6936d3 transparent transparent transparent;\n }\n .lds-ring div:nth-child(1) {\n animation-delay: -0.45s;\n }\n .lds-ring div:nth-child(2) {\n animation-delay: -0.3s;\n }\n .lds-ring div:nth-child(3) {\n animation-delay: -0.15s;\n }\n @keyframes lds-ring {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n</style>\n</head>');return s=s.replace("</body>","<script>\n\n const messageKey = '__moto_pay_message';\n\n function inputTemplate(name, value) {\n return `<input type=\"hidden\" name=\"${name}\" value=\"${value}\" />`;\n }\n \n function formTemplate(redirectUrl, inputsTpl) {\n return `<form action=\"${redirectUrl}\" method=\"post\">${inputsTpl}</form>`;\n }\n \n function makeFormTemplate(threeDsData) {\n const inputsTemplate = Object.entries(threeDsData).reduce((accum, [key, value]) => {\n const inputTpl = inputTemplate(key, value);\n return (accum += `${inputTpl}\n`);\n }, '');\n const template = formTemplate(threeDsData.acsurl, inputsTemplate);\n return template;\n }\n \n function simpleRedirect(url) {\n window.location.replace(url);\n }\n \n function postRedirect(threeDsData) {\n const template = makeFormTemplate(threeDsData);\n \n setTimeout(() => {\n document.body.innerHTML = template;\n const form = document.body.querySelector('form');\n form.submit();\n });\n }\n \n function onMessageReceived(event) {\n if (event.data && event.data.key == messageKey) {\n if (event.data.type == 'simpleRedirect') {\n simpleRedirect(event.data?.threeDsData?.location);\n }\n \n if (event.data.type == 'postRedirect') {\n postRedirect(event.data.threeDsData);\n }\n }\n }\n\n window.addEventListener('message', onMessageReceived, false);\n \n<\/script>\n</body>"),s}()),this.viewService.setState("window",r)}}closeWindow(){const e=this.viewService.getState("window");Boolean(e)&&(e.close(),this.viewService.setState("window",null))}defaultPay(e){this.facadeService.pay(e),this.openWindow()}toggleCardList(){this.viewService.setState("isShowCardList",!this.viewState.isShowCardList),this.detect()}showCardForm(){var e;this.viewService.setState("isShowCardForm",!0),this.viewService.setState("isShowCardList",!1),null===(e=this.cardListRef)||void 0===e||e.resetSeleted(),this.detect(),this.analyticsService.action(new jt("add-card-button-click"))}get currentCardNumber(){const e=this.cardListRef.getSelectedCard(),{isShowCardForm:r}=this.viewState;return e?e.card.name:r?this.cardFormRef.getFormValue().cardNumber:null}selectCard(){this.viewService.setState("isShowCardForm",!1),this.detect()}removeCard(e){this.facadeService.removeCard(e),this.detect()}submit(){var e;this.analyticsService.action(new jt("pay-button-click"));const r=null===(e=this.cardListRef)||void 0===e?void 0:e.getSelectedCard();switch(!0){case Boolean(r):this.payWithCard(r.card);break;case Boolean(this.viewState.isShowCardForm):this.payWithForm();break;default:this.viewService.setState("isShowCardForm",!0),this.toastr.info("Please fill out the form",ta.INFO_TITLE)}this.detect()}apmSubmit(e){var r;if(this.analyticsService.action(new jt(`${e.type}-button-click`)),this.checkChargeTermsInvalid())return this.detect();const i={requisites:e,paymentType:e.type,userPreferences:null===(r=this.userPreferencesRef)||void 0===r?void 0:r.getUserPreferences()};this.externalApms.has(e.type)?this.facadeService.alternativePay(i):this.defaultPay(i),this.detect()}payWithCard(e){var r;if(this.checkChargeTermsInvalid())return this.detect();const i={requisites:e,paymentType:"card",rebillAnchor:e.rebill,userPreferences:null===(r=this.userPreferencesRef)||void 0===r?void 0:r.getUserPreferences()};this.defaultPay(i),this.detect()}payWithForm(){var e;const r=this.checkCardFormInvalid(),i=this.checkChargeTermsInvalid();if(r||i)return this.detect();const a={requisites:this.cardFormRef.getFormValue(),paymentType:"card",additionalFields:this.additionalFormRef.getFormValue(),userPreferences:null===(e=this.userPreferencesRef)||void 0===e?void 0:e.getUserPreferences()};this.defaultPay(a),this.detect()}get hasInvalidValues(){var e;return this.chargeTermsRef&&!this.chargeTermsRef.termsApproved||(null===(e=this.cardFormRef)||void 0===e?void 0:e.isInvalidForm)}get hasRequiredEmptyValues(){var e;return this.chargeTermsRef&&!this.chargeTermsRef.termsApproved||(null===(e=this.cardFormRef)||void 0===e?void 0:e.areRequiredFieldsEmpty)}afterPay(e){var r;"needAction"===(null===(r=e.payment)||void 0===r?void 0:r.state)?(this.handleConfirmation(e.action),this.waitingPaymentCompleted(e)):this.showResultComponent(e)}showResultComponent(e){this.closeWindow(),this.dataService.setState("isSentPayment",!1),this.dataService.emitToStream("paymentResult$",e)}postRedirect(e){this.viewService.getState("window").postMessage({key:this.postMessageKey,type:"postRedirect",threeDsData:e})}apmRedirect(e){this.viewService.getState("window").postMessage({key:this.postMessageKey,type:"simpleRedirect",threeDsData:e})}handleConfirmation(e){switch(e.name){case"3ds":this.postRedirect(e.data);break;case"redirect":this.apmRedirect(e.data);break;default:throw new Error("Unexpected action name")}}checkCardFormInvalid(){var e;return!!(null===(e=this.cardFormRef)||void 0===e?void 0:e.isInvalidForm)&&(this.cardFormRef.setErrorSubmitStatus(!0),!0)}checkChargeTermsInvalid(){return!(!this.chargeTermsRef||this.chargeTermsRef.termsApproved||(this.chargeTermsRef.setErrorSubmitStatus(!0),0))}waitingPaymentCompleted(e){(function OO(n,t,e){return n.pipe(Ft(r=>{if(t(r))return r;throw new Error(wC)}),function Ox(n=1/0){let t;t=n&&"object"==typeof n?n:{count:n};const{count:e=1/0,delay:r,resetOnSuccess:i=!1}=t;return e<=0?Js:An((s,o)=>{let l,a=0;const c=()=>{let u=!1;l=s.subscribe(mn(o,d=>{i&&(a=0),o.next(d)},void 0,d=>{if(a++<e){const h=()=>{l?(l.unsubscribe(),l=null,c()):u=!0};if(null!=r){const f="number"==typeof r?Hb(r):dr(r(d,a)),m=mn(o,()=>{m.unsubscribe(),h()},()=>{o.complete()});f.subscribe(m)}else h()}else o.error(d)})),u&&(l.unsubscribe(),l=null,c())};c()})}({delay:r=>{if(r.message==wC)return Hb(e);throw r}}))})(this.facadeService.getPaymentInfo(e.payment.paymentId),i=>"needAction"!=i.payment.state,1500).subscribe(i=>{var s;this.showResultComponent(i),null===(s=this.viewState.window)||void 0===s||s.close(),this.viewService.setState("window",null),this.detect()})}afterGetCards(e){e.length<1?(this.viewService.setState("isShowCardList",!1),this.viewService.setState("isShowCardForm",!0)):(this.viewService.setState("isShowCardForm",!1),this.viewService.setState("isShowCardList",!0))}afterRemoveCard(){this.facadeService.loadCards(),this.toastr.success("Card has been deleted",ta.SUCCESS_TITLE)}afterChangePayment(){var e,r,i;null===(e=this.cardFormRef)||void 0===e||e.resetForm(),null===(r=this.chargeTermsRef)||void 0===r||r.reset(),null===(i=this.userPreferencesRef)||void 0===i||i.reset()}}return n.\u0275fac=function(e){return new(e||n)(k(Mg),k(_t),k(Xu),k(ea),k(_C),k(DC),k(Vs))},n.\u0275cmp=Mt({type:n,selectors:[["moto-pay-main"]],viewQuery:function(e,r){if(1&e&&(Gi(qN,5,kC),Gi(GN,5,xC),Gi(WN,5,PC),Gi(KN,5,NC),Gi(ZN,5,OC)),2&e){let i;qi(i=Wi())&&(r.cardFormRef=i.first),qi(i=Wi())&&(r.additionalFormRef=i.first),qi(i=Wi())&&(r.cardListRef=i.first),qi(i=Wi())&&(r.chargeTermsRef=i.first),qi(i=Wi())&&(r.userPreferencesRef=i.first)}},features:[Ue],decls:2,vars:3,consts:[[4,"motoLet"],["class","__ndb-main",4,"ngIf"],[1,"__ndb-main"],["class","__ndb-main-show-form-btn full-width","data-locator","btn-add-new-card",3,"click",4,"ngIf"],["class","__ndb-main-card-form block",3,"settings",4,"ngIf"],[4,"ngIf"],[1,"__ndb-pay"],[1,"__ndb-pay-info"],[1,"__ndb-pay-title","fz-18","fw-600"],["data-locator","total-cost",1,"__ndb-pay-cost","fz-24","fw-700"],["data-locator","btn-submit",1,"__ndb-pay-btn","button-submit","full-width",3,"ngClass","disabled","click"],[1,"__ndb-pay-btn-content"],[1,"__ndb-pay-btn-cost-side"],["data-locator","btn-submit-cost"],[1,"__ndb-main-toggle",3,"click"],[1,"fw-700"],[1,"material-icons","font-description","__ndb-main-toggle-icon"],[1,"__ndb-main-card-list","block",3,"childrenDetector","cards","select","remove"],["cardListRef",""],["data-locator","btn-add-new-card",1,"__ndb-main-show-form-btn","full-width",3,"click"],[1,"material-icons","fz-18"],[1,"text"],[1,"__ndb-main-card-form","block",3,"settings"],["cardFormRef",""],["additionalFormRef",""],[3,"settings"],["chargeTermsRef",""],[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"],[3,"disabled","hidden-enabled","apms","pay"],[3,"userPreferences"],["userPreferencesRef",""]],template:function(e,r){1&e&&(J(0,dO,3,3,"ng-container",0),$e(1,"async")),2&e&&N("motoLet",Bn(1,1,r.settings$))},directives:[PC,kC,xC,NC,ra,iF,OC,Nl,Un,Gp],pipes:[Zp,Pl,FC,RC,Sd,Jp],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}.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-main-toggle-icon.active[_ngcontent-%COMP%]{transform:rotate(-180deg)}.__ndb-main[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:28px}@media (max-width: 768px){.__ndb-main[_ngcontent-%COMP%]{padding:14px 20px 28px}}.__ndb-main-toggle[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px;cursor:pointer;-webkit-user-select:none;user-select:none;margin-bottom:28px}.__ndb-main-toggle-icon[_ngcontent-%COMP%]{transform:rotate(0);transition:transform .3s cubic-bezier(.25,.1,.25,1)}.__ndb-main-card-list[_ngcontent-%COMP%] .__ndb-card-list{padding-bottom:28px}.__ndb-main[_ngcontent-%COMP%] .__ndb-pay[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:14px;margin-top:28px}.__ndb-main[_ngcontent-%COMP%] .__ndb-pay-info[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center;justify-content:space-between;gap:20px}.__ndb-main[_ngcontent-%COMP%] .__ndb-pay-btn-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:16px;width:100%}.__ndb-main[_ngcontent-%COMP%] .__ndb-pay-btn-separator[_ngcontent-%COMP%]{width:2px;height:18px;opacity:.3;background-color:var(--ndb-button-color)}.__ndb-main[_ngcontent-%COMP%] .__ndb-pay-btn-card-side[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.__ndb-main[_ngcontent-%COMP%] .__ndb-pay-btn-card-side-logo[_ngcontent-%COMP%]{height:24px;width:36px}"],data:{animation:[BO,jO,HO({animationName:"ANToggleList",fromState:"hide",toState:"show",fromStyles:{height:"0px",overflow:"hidden"},toStyles:{height:"*"}})]},changeDetection:0}),n})(),oF=(()=>{class n{constructor(){this.resultTextsMap=na(Bs,["result"]),this.result=new ze}set _paymentResult(e){e&&(this.paymentResult=e,this.result.emit(this.paymentResult))}get state(){return this.paymentResult.payment.state}get icon(){return this.resultTextsMap.icons[this.state]||"info"}get title(){return this.resultTextsMap.titleText[this.state]||"Payment sent"}get description(){return this.resultTextsMap.descriptionText[this.state]||""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Mt({type:n,selectors:[["moto-pay-result"]],inputs:{problemSolvingTipsVisible:"problemSolvingTipsVisible",_paymentResult:["paymentResult","_paymentResult"]},outputs:{result:"result"},decls:7,vars:4,consts:[[1,"__ndb-result"],[1,"material-icons-round","__ndb-result-icon"],[1,"__ndb-result-header","fz-24","fw-700"],["class","__ndb-result-description fz-14 fw-500 font-center",4,"ngIf"],["class","__ndb-result-tips",4,"ngIf"],[1,"__ndb-result-description","fz-14","fw-500","font-center"],[1,"__ndb-result-tips"],["class","__ndb-result-tips-tip",4,"ngFor","ngForOf"],[1,"__ndb-result-tips-tip"],[1,"__ndb-result-tips-tip-text","fz-11","fw-500","font-center"]],template:function(e,r){1&e&&(H(0,"div",0)(1,"i",1),me(2),U(),H(3,"h6",2),me(4),U(),J(5,hO,2,1,"p",3),J(6,pO,2,1,"ul",4),U()),2&e&&(P(2),$r(r.icon),P(2),$r(r.title),P(1),N("ngIf",r.description),P(1),N("ngIf",r.problemSolvingTipsVisible&&(null==r.paymentResult.payment.rejectionDetails||null==r.paymentResult.payment.rejectionDetails.problemSolvingTips?null:r.paymentResult.payment.rejectionDetails.problemSolvingTips.length)))},directives:[Un,Zi],styles:[".__ndb-result[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px}@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}.__ndb-result-tips-tip[_ngcontent-%COMP%]{list-style-type:disc}.__ndb-result-tips-tip-text[_ngcontent-%COMP%]{width:100%;text-align:left}"],changeDetection:0}),n})(),aF=(()=>{class n{ngOnInit(){this.consoleErrorMsg()}consoleErrorMsg(){const e=na(Bs,["error","descriptionText",this.error]);console.error(e)}get isSettingsModelError(){return"invalid-urls"==this.error||"not-exist-settings"==this.error}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Mt({type:n,selectors:[["moto-pay-error"]],inputs:{error:"error"},decls:7,vars:1,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(e,r){1&e&&(H(0,"div",0)(1,"i",1),me(2,"cancel"),U(),H(3,"h6",2),me(4),U(),H(5,"p",3),me(6," You cannot make a payment! "),U()()),2&e&&(P(4),$r(r.isSettingsModelError?"Invalid settings model":"Invalid payment model"))},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}),n})(),LC=(()=>{class n extends Xo{constructor(e,r,i,s,o,a,l){super(e),this.injector=e,this.dataService=r,this.viewService=i,this.changeDetectorService=s,this.facadeService=o,this.initializer=a,this.analyticsService=l,this.resize$=new Qt,this.paymentResult$=this.dataService.getStream("paymentResult$"),this.settings$=this.dataService.getStream("settings$"),this.dataState=this.dataService.getFullState(),this.viewState=this.viewService.getFullState(),this._paid=new ze,this._viewChange=new ze,this._close=new ze,this._analyticsTracked=new ze}set _payment(e){this.checkPaymentMatchToSettings(e,this.settings)&&this.checkedPaymentModel(e),this.initializeIfNecessaryFieldsSet()}set _settings(e){this.checkedSettingsModel(e),this.checkPaymentMatchToSettings(this.payment,e),this.initializeIfNecessaryFieldsSet()}onWindowResize(e){this.resize$.next(e.innerWidth)}ngOnInit(){this.initActionsListener(),this.initChangeDetectinDataListener(),this.initChangeDetectionListener(),this.facadeService.initPaymentChangedListener(),this.resize$.pipe(yl(100)).subscribe(()=>{this.emitWrapperSizeChanges()})}ngOnDestroy(){super.ngOnDestroy(),this.dataService.destroy()}emitWrapperSizeChanges(){var e;if(this.wrapperRef){const r=this.wrapperRef.nativeElement.getBoundingClientRect();(null===(e=this.viewService.getFullState().contentSize)||void 0===e?void 0:e.height)!==r.height&&(this.viewService.setState("contentSize",r),this._viewChange.emit(r),this.localDetect())}}initChangeDetectionListener(){this.changeDetectorService.listenChangeDetection().pipe(this.untilDestroy()).subscribe(()=>{setTimeout(()=>{this.emitWrapperSizeChanges()},50),this.localDetect()})}initChangeDetectinDataListener(){this.dataService.listenChangeDetection().pipe(this.untilDestroy()).subscribe(()=>this.localDetect())}initActionsListener(){this.dataService.listenActions().pipe(this.untilDestroy()).subscribe(e=>{this.detect()}),this.analyticsService.listenActions().pipe(this.untilDestroy()).subscribe(e=>{this._analyticsTracked.emit(Object.assign({},e))})}checkedSettingsModel(e){const r=this.validateSettingsModel(e);if(r)this.dataService.emitToStream("settings$",null),this.viewService.setState("settingsErrorType",r);else{const i=this.getPreparedSettingsModel(e);this.settings=i,this.dataService.emitToStream("settings$",i),this.viewService.setState("settingsErrorType",null)}this.localDetect()}checkedPaymentModel(e){const r=this.validatePaymentModel(e);if(r)this.dataService.emitToStream("payment$",null),this.viewService.setState("paymentErrorType",r);else{const i=this.getPreparedPaymentModel(e);this.payment=i,this.dataService.emitToStream("payment$",i),this.viewService.setState("paymentErrorType",null)}this.localDetect()}validateSettingsModel(e){return e?e.urls&&e.urls.billingProfiles&&e.urls.processing?null:"invalid-urls":"not-exist-settings"}validatePaymentModel(e){switch(!0){case!e:return"not-exist-payment";case!e.userId:return"not-exist-customer-id";case!e.paymentId:return"not-exist-payment-id";default:return null}}checkPaymentMatchToSettings(e,r){return!(e&&r&&!e.signature&&r.isSignatureRequired&&(this.dataService.emitToStream("payment$",null),this.viewService.setState("paymentErrorType","not-exist-signature"),1))}getPreparedPaymentModel(e){return e.userAuthToken&&!/^[^\s]+\s+/i.test(e.userAuthToken)&&(e.userAuthToken=`Bearer ${e.userAuthToken}`),e.currency=e.currency.toUpperCase(),e}getPreparedSettingsModel(e){return Object.assign(Object.assign({},{isPhoneNumberFieldVisible:!1,isCloseButtonVisible:!0,merchantInfo:null,chargeTerms:null,urls:null,userPreferences:null,availableCardBrands:["visa","mastercard"]}),e)}initializeIfNecessaryFieldsSet(){this.settings&&this.payment&&this.initializer.initialize()}get isShowLoader(){return Object.values(this.dataState).includes(!0)}paid(e){this._paid.emit(e)}close(){this._close.emit()}reset(e){this.dataService.emitToStream("paymentResult$",null),this.checkedPaymentModel(e)}}return n.\u0275fac=function(e){return new(e||n)(k(_t),k(ea),k(_C),k(pC),k(DC),k(EC),k(Vs))},n.\u0275cmp=Mt({type:n,selectors:[["moto-pay-wrapper"]],viewQuery:function(e,r){if(1&e&&Gi(mO,5),2&e){let i;qi(i=Wi())&&(r.wrapperRef=i.first)}},hostBindings:function(e,r){1&e&&Oe("resize",function(s){return r.onWindowResize(s.target)},!1,X0)},inputs:{_payment:["payment","_payment"],_settings:["settings","_settings"]},outputs:{_paid:"paid",_viewChange:"viewChange",_close:"close",_analyticsTracked:"analyticsTracked"},features:[Ue],decls:8,vars:3,consts:[["class","__ndb-wrapper__",4,"motoLet"],["mainTpl",""],["resultTpl",""],["errorTpl",""],[1,"__ndb-wrapper__"],["wrapper",""],[1,"__ndb-header-content"],[3,"showCloseButton","close"],[4,"ngIf","ngIfThen","ngIfElse"],[3,"settings"],[4,"ngIf"],["data-locator","form-loaded",4,"ngIf"],["data-locator","form-loaded"],[4,"ngIf","ngIfElse"],[3,"paymentResult","problemSolvingTipsVisible","result"],[3,"error"]],template:function(e,r){1&e&&(J(0,vO,9,9,"div",0),$e(1,"async"),J(2,wO,1,2,"ng-template",null,1,Ss),J(4,CO,3,6,"ng-template",null,2,Ss),J(6,DO,1,1,"ng-template",null,3,Ss)),2&e&&N("motoLet",Bn(1,1,r.settings$))},directives:[$O,VO,MC,sF,oF,aF,Nl,Un],pipes:[Zp],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-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}}[_nghost-%COMP%] .__ndb-header-content[_ngcontent-%COMP%]{margin:0 auto;position:relative;border:1px solid #c9ccd8;box-shadow:inset 0 -1px #29304d1a;border-radius:4px}[_nghost-%COMP%] .__ndb-header-content[_ngcontent-%COMP%] .__ndb-loader{border-radius:4px}"],changeDetection:0}),n})(),lF=(()=>{class n{constructor(){this.payment=null,this.settings=null,this._close=new ze,this._paid=new ze,this._viewChange=new ze,this._analyticsTracked=new ze,this._reset=(e=Object.assign({},this.payment))=>{this.paymentWrapperRef$.reset(e)}}get reset(){return this._reset}close(){this._close.emit()}paid(e){this._paid.emit(e)}viewChange(e){this._viewChange.emit(e)}analyticsTracked(e){this._analyticsTracked.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Mt({type:n,selectors:[["moto-pay"]],viewQuery:function(e,r){if(1&e&&Gi(EO,5,LC),2&e){let i;qi(i=Wi())&&(r.paymentWrapperRef$=i.first)}},inputs:{payment:"payment",settings:"settings",reset:"reset"},outputs:{_close:"close",_paid:"paid",_viewChange:"viewChange",_analyticsTracked:"analyticsTracked"},exportAs:["motoPayRef"],decls:2,vars:2,consts:[[3,"payment","settings","paid","viewChange","close","analyticsTracked"],["paymentWrapperRef",""]],template:function(e,r){1&e&&(H(0,"moto-pay-wrapper",0,1),Oe("paid",function(s){return r.paid(s)})("viewChange",function(s){return r.viewChange(s)})("close",function(){return r.close()})("analyticsTracked",function(s){return r.analyticsTracked(s)}),U()),2&e&&N("payment",r.payment)("settings",r.settings)},directives:[LC],styles:[""]}),n})(),cF=(()=>{class n{constructor(){}intercept(e,r){return e.context.get(MO),r.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})(),uF=(()=>{class n{constructor(e){this.toastr=e}intercept(e,r){return e.context.get(SO)?r.handle(e):r.handle(e).pipe(Ho(i=>{const{Errors:s}=i.error||{};let o=i.message;return s&&(o=s[0].Message),401==i.status&&(o="Not authorized (details in console)",console.error(i)),this.toastr.error(o,ta.ERROR_TITLE),function Gx(n,t){const e=xe(n)?n:()=>n,r=i=>i.error(e());return new Zt(t?i=>t.schedule(r,0,i):r)}(()=>i)}))}}return n.\u0275fac=function(e){return new(e||n)(K(Xu))},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})();const dF=[fu];let Md=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ct({type:n}),n.\u0275inj=gt({imports:[dF,fu]}),n})(),Td=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ct({type:n}),n.\u0275inj=gt({}),n})(),$C=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ct({type:n}),n.\u0275inj=gt({imports:[[Md,Td]]}),n})(),VC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ct({type:n}),n.\u0275inj=gt({}),n})();const gF=[Zm.forRoot()];let Ig=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ct({type:n}),n.\u0275inj=gt({imports:[gF,Zm]}),n})();const yF=[Tg,(()=>{class n{constructor(){}registerOnChange(e){}registerOnTouched(e){}setDisabledState(e){}ngOnInit(){}writeValue(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Mt({type:n,selectors:[["moto-form-textarea"]],features:[ut([{provide:nr,useExisting:Xe(()=>n),multi:!0}])],decls:2,vars:0,consts:[[1,"__ndb-form-control"]],template:function(e,r){1&e&&(H(0,"div",0),Ze(1,"textarea"),U())},styles:[""],changeDetection:0}),n})()],BC=[Wm,g8];yF.concat(BC);let jC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ct({type:n}),n.\u0275inj=gt({imports:[[...BC,Md,Ig,Td],Wm,g8]}),n})();const _F=[Md,jC,$C,VC,Td,Ig];let vF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ct({type:n}),n.\u0275inj=gt({imports:[_F,Md,jC,$C,VC,Td,Ig]}),n})();const bF=new pe("LANGUAGE_TOKEN",{factory:()=>bc(Mg).navigator.language});let wF=(()=>{class n{constructor(e,r,i){this.clientLanguage=e,this.applePayService=r,this.merchantInfoService=i,this.name=wd.APPLE_PAY}get defaultCountryCode(){if(!this.clientLanguage)return"GB";if(this.clientLanguage.match(/-/)){const[e,r]=this.clientLanguage.split("-");return r}return this.clientLanguage}isAvailable(...e){return this.merchantInfoService.getAuthToken().pipe(Ft(r=>!!r),As(r=>r?this.applePayService.canMakePayment():Hr(!1)))}pay(e){const{amount:r,currency:i,description:s,billingAddress:o,merchantId:a}=e,l=Boolean(null==o?void 0:o.country)?o.country:this.defaultCountryCode,c={total:{amount:r.toString(),currency:i.toUpperCase(),label:s},countryCode:l.toUpperCase(),merchantId:a};return this.applePayService.pay(c).pipe(Ft(({payment:u})=>JSON.stringify(u)))}}return n.\u0275fac=function(e){return new(e||n)(K(bF),K(aC),K(bg))},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})(),CF=(()=>{class n{constructor(e,r){this.injector=e,this.initializer=r}getValidationUrl(){return this.initializer.waitForInitialization().pipe(Ft(()=>{const e=this.injector.get(ea);return Ls(this.injector.get(CC).get("processing"),`api/applepay/${e.getStreamValue("payment$").merchantId}/merchantValidation`)}))}getAuthToken(){return this.initializer.waitForInitialization().pipe(Ft(()=>this.injector.get(ea).getStreamValue("payment$").userAuthToken))}}return n.\u0275fac=function(e){return new(e||n)(K(_t),K(EC))},n.\u0275prov=ce({token:n,factory:n.\u0275fac}),n})(),DF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ct({type:n}),n.\u0275inj=gt({providers:[wg,{provide:Cu,useClass:cF,multi:!0},{provide:Cu,useClass:uF,multi:!0},{provide:yC,useClass:wF,multi:!0},{provide:bg,useClass:CF}],imports:[[Vb,qP,vF,qI.forRoot(),eN.forRoot(),KI]]}),n})(),EF=(()=>{class n{constructor(e){this.injector=e}ngDoBootstrap(e){const{injector:r}=this,i=function mx(n,t){const e=function lx(n,t){return t.get(Es).resolveComponentFactory(n).inputs}(n,t.injector),r=t.strategyFactory||new hx(n,t.injector),i=function ax(n){const t={};return n.forEach(({propName:e,templateName:r})=>{t[function nx(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(r)]=e}),t}(e);class s extends px{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=r.create(this.injector||t.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(i[a],c)}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 s.observedAttributes=Object.keys(i),e.forEach(({propName:o})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),s}(lF,{injector:r});customElements.define("moto-web-pay",i)}}return n.\u0275fac=function(e){return new(e||n)(K(_t))},n.\u0275mod=Ct({type:n}),n.\u0275inj=gt({imports:[[bb,DF]]}),n})();(function jS(){O2=!1})(),zT().bootstrapModule(EF).catch(n=>console.error(n))},791:function(cr,mt,sn){var xe=this&&this.__assign||function(){return xe=Object.assign||function(Ke){for(var it,St=1,Gn=arguments.length;St<Gn;St++)for(var us in it=arguments[St])Object.prototype.hasOwnProperty.call(it,us)&&(Ke[us]=it[us]);return Ke},xe.apply(this,arguments)},bn=sn(251),Ot=sn(273),Je=sn(87),Ut=sn(95),ur=sn(645),pn={},wt={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"},xn=[wt.VISA,wt.MASTERCARD,wt.AMERICAN_EXPRESS,wt.DINERS_CLUB,wt.DISCOVER,wt.JCB,wt.UNIONPAY,wt.MAESTRO,wt.ELO,wt.MIR,wt.HIPER,wt.HIPERCARD],wn=ur.clone(xn);function Ys(Ke){return pn[Ke]||bn[Ke]}function va(Ke,it){void 0===it&&(it=!1);var St=wn.indexOf(Ke);if(!it&&-1===St)throw new Error('"'+Ke+'" is not a supported card type.');return St}function Zr(Ke){var it=[];if(!Je.isValidInputType(Ke))return it;if(0===Ke.length)return function _a(){return wn.map(function(Ke){return ur.clone(Ys(Ke))})}();wn.forEach(function(Gn){var us=Ys(Gn);Ot.addMatchingCardsToResults(Ke,us,it)});var St=Ut.findBestMatch(it);return St?[St]:it}Zr.getTypeInfo=function(Ke){return ur.clone(Ys(Ke))},Zr.removeCard=function(Ke){var it=va(Ke);wn.splice(it,1)},Zr.addCard=function(Ke){var it=va(Ke.type,!0);pn[Ke.type]=Ke,-1===it&&wn.push(Ke.type)},Zr.updateCard=function(Ke,it){var St=pn[Ke]||bn[Ke];if(!St)throw new Error('"'+Ke+"\" is not a recognized type. Use `addCard` instead.'");if(it.type&&St.type!==it.type)throw new Error("Cannot overwrite type parameter.");var Gn=ur.clone(St);Gn=xe(xe({},Gn),it),pn[Gn.type]=Gn},Zr.changeOrder=function(Ke,it){var St=va(Ke);wn.splice(St,1),wn.splice(it,0,Ke)},Zr.resetModifications=function(){wn=ur.clone(xn),pn={}},Zr.types=wt,cr.exports=Zr},273:(cr,mt,sn)=>{Object.defineProperty(mt,"__esModule",{value:!0}),mt.addMatchingCardsToResults=void 0;var xe=sn(645),bn=sn(694);mt.addMatchingCardsToResults=function Ot(Je,Ut,ur){var pn,wt;for(pn=0;pn<Ut.patterns.length;pn++){var xn=Ut.patterns[pn];if(bn.matches(Je,xn)){var wn=xe.clone(Ut);wt=Array.isArray(xn)?String(xn[0]).length:String(xn).length,Je.length>=wt&&(wn.matchStrength=wt),ur.push(wn);break}}}},251:cr=>{cr.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,[624,626],[62100,62182],[62184,62187],[62185,62197],[62200,62205],[622010,622999],622018,[622019,622999],[62207,62209],[622126,622925],[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}}}},645:(cr,mt)=>{Object.defineProperty(mt,"__esModule",{value:!0}),mt.clone=void 0,mt.clone=function sn(xe){return xe?JSON.parse(JSON.stringify(xe)):null}},95:(cr,mt)=>{Object.defineProperty(mt,"__esModule",{value:!0}),mt.findBestMatch=void 0,mt.findBestMatch=function xe(bn){return function sn(bn){var Ot=bn.filter(function(Je){return Je.matchStrength}).length;return Ot>0&&Ot===bn.length}(bn)?bn.reduce(function(Ot,Je){return!Ot||Number(Ot.matchStrength)<Number(Je.matchStrength)?Je:Ot}):null}},87:(cr,mt)=>{Object.defineProperty(mt,"__esModule",{value:!0}),mt.isValidInputType=void 0,mt.isValidInputType=function sn(xe){return"string"==typeof xe||xe instanceof String}},694:(cr,mt)=>{Object.defineProperty(mt,"__esModule",{value:!0}),mt.matches=void 0,mt.matches=function bn(Ot,Je){return Array.isArray(Je)?function sn(Ot,Je,Ut){var ur=String(Je).length,pn=Ot.substr(0,ur),wt=parseInt(pn,10);return Je=parseInt(String(Je).substr(0,pn.length),10),Ut=parseInt(String(Ut).substr(0,pn.length),10),wt>=Je&&wt<=Ut}(Ot,Je[0],Je[1]):function xe(Ot,Je){return(Je=String(Je)).substring(0,Ot.length)===Ot.substring(0,Je.length)}(Ot,Je)}}},cr=>{cr(cr.s=679)}]);
|