UNPKG

bluetime-ewallet

Version:

BlueTime Orchestra library for eWallet payments (GooglePay, Applepay, payPal, Banks...)

1 lines 73.1 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("eWallet",[],t):"object"==typeof exports?exports.eWallet=t():e.eWallet=t()}(self,(()=>(()=>{var e={21:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAADACAMAAAB/Pny7AAABEVBMVEX///9wcG5wcWxwcHDqdyn39/fj4+NsbGrb29v8/PyAgH6zs7O/v78IgEGtraxiYmDsdSKNjYvPz8/s7OzJyclnZ2UKfkTV1dWGhoaioqKUlJR2dnW5ubmcnJx7e3tdXV1LS0s1NTVERETmdx/99O4AeDFVVVU9PT0Gekzwcin46eDz18PC2c7Y6OFoaWL20rrql1x7sJLxsIjm8uxNm28hh0/xjUnvoXfrawDtg0Gszr74vpvxZgDmcQljqYXzaxk0k12TuZfapnBnk1zQhDBmezDZfSmWgjJAcCmRwafChC9tdSwidjRZdTzXfjfHhD2peDWMi0chZSe2iDhcgTGAlF55qX5Lk1kKhTYTExMlJSVyO/FdAAAL9UlEQVR4nO1aaXvbNhKGTAEkSIoUCdK8RFKHJcVO1q7dJM6xTtNu4qap27Tb7m7X//+H7OCSj2ZDUX72yz54n7QWJZCYF3NgZgiEDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM/k+AiQLrHsv0WMyv6OZyW+CbSR0JQu9MQNHDkEUSZdz9JC+XY11BnBVRT9SZmsOJcglffnH0WP598pcHcaFeOLD39vaOXadzLM7twWAAY3OxxFllWxwD8QAO+BUu5Xe3vxKw7UGaEznpRN5pNbF88slXR+L709MHkWGlkqTuNjOnkWIee5QiSn0l0UBLfiM4fKnIWLe+s6xQaoIV6joS5Cg9G57wH75++uxBqiGNmjbotjJfSX4slMjq+2RusfnMV7fIkEhdF9KLjp5fnB/A3yf7ow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8TlxGuAx5FbOGoOmBlzl8OJ2s0aR1khWYU7KKITJUxJ9BMAgSkkZx0jcX99s0rXzqiHdZpCZxRGJ+qolOSpaEtgUr2lZVJV8OZOAAtOaNGBZNUFGBcJD8T2pEiyCG+qRhgcvHeRAefDBEp2nlSWxWeyiH2Aua5G4GhLKVbeesyKFY9f2cRzKuKSePadGmtpvxM99p7yrJ4RsUwkQWKBR2TSwOgsAmysTxfOZsUn4MH6gjdkUCPzM+iiK+00EqzwcjufVi8Q0n4SdY3ygfAj/xexGWz2Z8IMwJ11SNA4liJn53dm7RGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGPxv8B/fWgs+fSgYjQAAAABJRU5ErkJggg=="},612:(e,t,r)=>{!function(){"use strict";e.exports={inflate:r(967),deflate:r(931)}}()},931:e=>{!function(){var t,r,n,o,s,i,a,l,c,d,u,p,h,f,g,y,m,w,v,b,_,A,P,S,C,O,E,I,k,B,R,x,M,T,q,N,D,U,j,L,W,G,V,z,J,F,H,K,Y,X,Z,$,Q,ee,te,re,ne=32768,oe=258,se=32768,ie=32767,ae=262,le=32506,ce=15,de=256,ue=286,pe=30,he=parseInt(17/3,10),fe=null;function ge(){this.fc=0,this.dl=0}function ye(){this.dyn_tree=null,this.static_tree=null,this.extra_bits=null,this.extra_base=0,this.elems=0,this.max_length=0,this.max_code=0}function me(e,t,r,n){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n}function we(){this.next=null,this.len=0,this.ptr=[],this.off=0}var ve=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],be=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],_e=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Pe=[new me(0,0,0,0),new me(4,4,8,4),new me(4,5,16,8),new me(4,6,32,32),new me(4,4,16,16),new me(8,16,32,32),new me(8,16,128,128),new me(8,32,128,256),new me(32,128,258,1024),new me(32,258,258,4096)];function Se(e){e.next=t,t=e}function Ce(e){return u[ne+e]}function Oe(e,t){return u[ne+e]=t}function Ee(e){fe[i+s++]=e,i+s===8192&&function(){var e,o;if(0!==s){for(null!==t?(a=t,t=t.next):a=new we,a.next=null,a.len=a.off=0,e=a,null===r?r=n=e:n=n.next=e,e.len=s-i,o=0;o<e.len;o++)e.ptr[o]=fe[i+o];s=i=0}var a}()}function Ie(e){e&=65535,i+s<8190?(fe[i+s++]=255&e,fe[i+s++]=e>>>8):(Ee(255&e),Ee(e>>>8))}function ke(){g=(g<<he^255&l[_+3-1])&ie,y=Ce(g),u[32767&_]=y,Oe(g,_)}function Be(e,t){Ye(t[e].fc,t[e].dl)}function Re(e){return 255&(e<256?z[e]:z[256+(e>>7)])}function xe(e,t,r){return e[t].fc<e[r].fc||e[t].fc===e[r].fc&&G[t]<=G[r]}function Me(e,t,r){var n;for(n=0;n<r&&re<te.length;n++)e[t+n]=255&te[re++];return n}function Te(e){var t,r,n,o,s=C,i=_,a=b,c=_>le?_-le:0,d=_+oe,p=l[i+a-1],h=l[i+a];b>=I&&(s>>=2);do{if(l[(t=e)+a]===h&&l[t+a-1]===p&&l[t]===l[i]&&l[++t]===l[i+1]){for(i+=2,t++;i<d;){for(o=!1,n=0;n<8;n+=1)if(t+=1,l[i+=1]!==l[t]){o=!0;break}if(o)break}if(r=oe-(d-i),i=d-oe,r>a){if(A=e,a=r,r>=k)break;p=l[i+a-1],h=l[i+a]}}}while((e=u[32767&e])>c&&0!=--s);return a}function qe(){var e,t,r=65536-S-_;if(-1===r)r--;else if(_>=65274){for(e=0;e<ne;e++)l[e]=l[e+ne];for(A-=ne,_-=ne,f-=ne,e=0;e<se;e++)Oe(e,(t=Ce(e))>=ne?t-ne:0);for(e=0;e<ne;e++)t=u[e],u[e]=t>=ne?t-ne:0;r+=ne}P||((e=Me(l,_+S,r))<=0?P=!0:S+=e)}function Ne(){P||(p=0,h=0,function(){var e,t,r,n,o;if(0!==M[0].dl)return;for(q.dyn_tree=B,q.static_tree=x,q.extra_bits=ve,q.extra_base=257,q.elems=ue,q.max_length=ce,q.max_code=0,N.dyn_tree=R,N.static_tree=M,N.extra_bits=be,N.extra_base=0,N.elems=pe,N.max_length=ce,N.max_code=0,D.dyn_tree=T,D.static_tree=null,D.extra_bits=_e,D.extra_base=0,D.elems=19,D.max_length=7,D.max_code=0,r=0,n=0;n<28;n++)for(J[n]=r,e=0;e<1<<ve[n];e++)V[r++]=n;for(V[r-1]=n,o=0,n=0;n<16;n++)for(F[n]=o,e=0;e<1<<be[n];e++)z[o++]=n;for(o>>=7;n<pe;n++)for(F[n]=o<<7,e=0;e<1<<be[n]-7;e++)z[256+o++]=n;for(t=0;t<=ce;t++)U[t]=0;e=0;for(;e<=143;)x[e++].dl=8,U[8]++;for(;e<=255;)x[e++].dl=9,U[9]++;for(;e<=279;)x[e++].dl=7,U[7]++;for(;e<=287;)x[e++].dl=8,U[8]++;for(We(x,287),e=0;e<pe;e++)M[e].dl=5,M[e].fc=Xe(e,5);je()}(),function(){var e;for(e=0;e<se;e++)u[ne+e]=0;if(O=Pe[E].max_lazy,I=Pe[E].good_length,k=Pe[E].nice_length,C=Pe[E].max_chain,_=0,f=0,(S=Me(l,0,65536))<=0)return P=!0,void(S=0);for(P=!1;S<ae&&!P;)qe();for(g=0,e=0;e<2;e++)g=(g<<he^255&l[e])&ie}(),r=null,s=0,i=0,E<=3?(b=2,v=0):(v=2,w=!1),a=!1)}function De(e,t,n){var s;return o||(Ne(),o=!0,0!==S)?(s=Ue(e,t,n))===n?n:a?s:(E<=3?function(){for(;0!==S&&null===r;){var e;if(ke(),0!==y&&_-y<=le&&(v=Te(y))>S&&(v=S),v>=3)if(e=Fe(_-A,v-3),S-=v,v<=O){v--;do{_++,ke()}while(0!=--v);_++}else _+=v,v=0,g=((g=255&l[_])<<he^255&l[_+1])&ie;else e=Fe(0,255&l[_]),S--,_++;for(e&&(Je(0),f=_);S<ae&&!P;)qe()}}():function(){for(;0!==S&&null===r;){if(ke(),b=v,m=A,v=2,0!==y&&b<O&&_-y<=le&&((v=Te(y))>S&&(v=S),3===v&&_-A>4096&&v--),b>=3&&v<=b){var e;e=Fe(_-1-m,b-3),S-=b-1,b-=2;do{_++,ke()}while(0!=--b);w=!1,v=2,_++,e&&(Je(0),f=_)}else w?(Fe(0,255&l[_-1])&&(Je(0),f=_),_++,S--):(w=!0,_++,S--);for(;S<ae&&!P;)qe()}}(),0===S&&(w&&Fe(0,255&l[_-1]),Je(1),a=!0),s+Ue(e,s+t,n-s)):(a=!0,0)}function Ue(e,t,n){var o,a,l;for(o=0;null!==r&&o<n;){for((a=n-o)>r.len&&(a=r.len),l=0;l<a;l++)e[t+o+l]=r.ptr[r.off+l];var c;if(r.off+=a,r.len-=a,o+=a,0===r.len)c=r,r=r.next,Se(c)}if(o===n)return o;if(i<s){for((a=n-o)>s-i&&(a=s-i),l=0;l<a;l++)e[t+o+l]=fe[i+l];o+=a,s===(i+=a)&&(s=i=0)}return o}function je(){var e;for(e=0;e<ue;e++)B[e].fc=0;for(e=0;e<pe;e++)R[e].fc=0;for(e=0;e<19;e++)T[e].fc=0;B[256].fc=1,Q=ee=0,K=Y=X=0,Z=0,$=1}function Le(e,t){for(var r=j[t],n=t<<1;n<=L&&(n<L&&xe(e,j[n+1],j[n])&&n++,!xe(e,r,j[n]));)j[t]=j[n],t=n,n<<=1;j[t]=r}function We(e,t){var r,n,o=[],s=0;for(r=1;r<=ce;r++)s=s+U[r-1]<<1,o[r]=s;for(n=0;n<=t;n++){var i=e[n].dl;0!==i&&(e[n].fc=Xe(o[i]++,i))}}function Ge(e){var t,r,n=e.dyn_tree,o=e.static_tree,s=e.elems,i=-1,a=s;for(L=0,W=573,t=0;t<s;t++)0!==n[t].fc?(j[++L]=i=t,G[t]=0):n[t].dl=0;for(;L<2;){var l=j[++L]=i<2?++i:0;n[l].fc=1,G[l]=0,Q--,null!==o&&(ee-=o[l].dl)}for(e.max_code=i,t=L>>1;t>=1;t--)Le(n,t);do{t=j[1],j[1]=j[L--],Le(n,1),r=j[1],j[--W]=t,j[--W]=r,n[a].fc=n[t].fc+n[r].fc,G[t]>G[r]+1?G[a]=G[t]:G[a]=G[r]+1,n[t].dl=n[r].dl=a,j[1]=a++,Le(n,1)}while(L>=2);j[--W]=j[1],function(e){var t,r,n,o,s,i,a=e.dyn_tree,l=e.extra_bits,c=e.extra_base,d=e.max_code,u=e.max_length,p=e.static_tree,h=0;for(o=0;o<=ce;o++)U[o]=0;for(a[j[W]].dl=0,t=W+1;t<573;t++)(o=a[a[r=j[t]].dl].dl+1)>u&&(o=u,h++),a[r].dl=o,r>d||(U[o]++,s=0,r>=c&&(s=l[r-c]),i=a[r].fc,Q+=i*(o+s),null!==p&&(ee+=i*(p[r].dl+s)));if(0!==h){do{for(o=u-1;0===U[o];)o--;U[o]--,U[o+1]+=2,U[u]--,h-=2}while(h>0);for(o=u;0!==o;o--)for(r=U[o];0!==r;)(n=j[--t])>d||(a[n].dl!==o&&(Q+=(o-a[n].dl)*a[n].fc,a[n].fc=o),r--)}}(e),We(n,i)}function Ve(e,t){var r,n,o=-1,s=e[0].dl,i=0,a=7,l=4;for(0===s&&(a=138,l=3),e[t+1].dl=65535,r=0;r<=t;r++)n=s,s=e[r+1].dl,++i<a&&n===s||(i<l?T[n].fc+=i:0!==n?(n!==o&&T[n].fc++,T[16].fc++):i<=10?T[17].fc++:T[18].fc++,i=0,o=n,0===s?(a=138,l=3):n===s?(a=6,l=3):(a=7,l=4))}function ze(e,t){var r,n,o=-1,s=e[0].dl,i=0,a=7,l=4;for(0===s&&(a=138,l=3),r=0;r<=t;r++)if(n=s,s=e[r+1].dl,!(++i<a&&n===s)){if(i<l)do{Be(n,T)}while(0!=--i);else 0!==n?(n!==o&&(Be(n,T),i--),Be(16,T),Ye(i-3,2)):i<=10?(Be(17,T),Ye(i-3,3)):(Be(18,T),Ye(i-11,7));i=0,o=n,0===s?(a=138,l=3):n===s?(a=6,l=3):(a=7,l=4)}}function Je(e){var t,r,n,o,s;if(o=_-f,H[X]=Z,Ge(q),Ge(N),n=function(){var e;for(Ve(B,q.max_code),Ve(R,N.max_code),Ge(D),e=18;e>=3&&0===T[Ae[e]].dl;e--);return Q+=3*(e+1)+5+5+4,e}(),(r=ee+3+7>>3)<=(t=Q+3+7>>3)&&(t=r),o+4<=t&&f>=0)for(Ye(0+e,3),Ze(),Ie(o),Ie(~o),s=0;s<o;s++)Ee(l[f+s]);else r===t?(Ye(2+e,3),He(x,M)):(Ye(4+e,3),function(e,t,r){var n;for(Ye(e-257,5),Ye(t-1,5),Ye(r-4,4),n=0;n<r;n++)Ye(T[Ae[n]].dl,3);ze(B,e-1),ze(R,t-1)}(q.max_code+1,N.max_code+1,n+1),He(B,R));je(),0!==e&&Ze()}function Fe(e,t){if(d[K++]=t,0===e?B[t].fc++:(e--,B[V[t]+de+1].fc++,R[Re(e)].fc++,c[Y++]=e,Z|=$),$<<=1,7&K||(H[X++]=Z,Z=0,$=1),E>2&&!(4095&K)){var r,n=8*K,o=_-f;for(r=0;r<pe;r++)n+=R[r].fc*(5+be[r]);if(n>>=3,Y<parseInt(K/2,10)&&n<parseInt(o/2,10))return!0}return 8191===K||8192===Y}function He(e,t){var r,n,o,s,i=0,a=0,l=0,u=0;if(0!==K)do{7&i||(u=H[l++]),n=255&d[i++],1&u?(Be((o=V[n])+de+1,e),0!==(s=ve[o])&&Ye(n-=J[o],s),Be(o=Re(r=c[a++]),t),0!==(s=be[o])&&Ye(r-=F[o],s)):Be(n,e),u>>=1}while(i<K);Be(256,e)}var Ke=16;function Ye(e,t){h>Ke-t?(Ie(p|=e<<h),p=e>>Ke-h,h+=t-Ke):(p|=e<<h,h+=t)}function Xe(e,t){var r=0;do{r|=1&e,e>>=1,r<<=1}while(--t>0);return r>>1}function Ze(){h>8?Ie(p):h>0&&Ee(p),p=0,h=0}e.exports=function(e,s){var i,a;te=e,re=0,void 0===s&&(s=6),function(e){var s;if(e?e<1?e=1:e>9&&(e=9):e=6,E=e,o=!1,P=!1,null===fe){for(t=r=n=null,fe=[],l=[],c=[],d=[],u=[],B=[],s=0;s<573;s++)B[s]=new ge;for(R=[],s=0;s<61;s++)R[s]=new ge;for(x=[],s=0;s<288;s++)x[s]=new ge;for(M=[],s=0;s<pe;s++)M[s]=new ge;for(T=[],s=0;s<39;s++)T[s]=new ge;q=new ye,N=new ye,D=new ye,U=[],j=[],G=[],V=[],z=[],J=[],F=[],H=[]}}(s),a=[];do{i=De(a,a.length,1024)}while(i>0);return te=null,a},e.exports.DEFAULT_LEVEL=6}()},945:(e,t,r)=>{var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g,o=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==r.g&&r.g||{},o="URLSearchParams"in n,s="Symbol"in n&&"iterator"in Symbol,i="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in n,l="ArrayBuffer"in n;if(l)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return s&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function g(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function y(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function m(e){var t=new FileReader,r=y(t);return t.readAsArrayBuffer(e),r}function w(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():l&&i&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=w(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l&&(ArrayBuffer.prototype.isPrototypeOf(e)||d(e))?this._bodyArrayBuffer=w(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=g(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=g(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(i)return this.blob().then(m);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n,o,s=g(this);if(s)return s;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=y(t),n=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=n?n[1]:"utf-8",t.readAsText(e,o),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(A)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=u(e),t=p(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},f.prototype.delete=function(e){delete this.map[u(e)]},f.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},f.prototype.set=function(e,t){this.map[u(e)]=p(t)},f.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),h(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),h(e)},s&&(f.prototype[Symbol.iterator]=f.prototype.entries);var b=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function _(e,t){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,o,s=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,s||null==e._bodyInit||(s=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(r=t.method||this.method||"GET",o=r.toUpperCase(),b.indexOf(o)>-1?o:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in n)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&s)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(s),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function A(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function P(e,t){if(!(this instanceof P))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},v.call(_.prototype),v.call(P.prototype),P.prototype.clone=function(){return new P(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},P.error=function(){var e=new P(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var S=[301,302,303,307,308];P.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new P(null,{status:t,headers:{location:e}})},t.DOMException=n.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function C(e,r){return new Promise((function(o,s){var a=new _(e,r);if(a.signal&&a.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function d(){c.abort()}if(c.onload=function(){var e,t,r={statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{t.append(n,o)}catch(e){console.warn("Response "+e.message)}}})),t)};0===a.url.indexOf("file://")&&(c.status<200||c.status>599)?r.status=200:r.status=c.status,r.url="responseURL"in c?c.responseURL:r.headers.get("X-Request-URL");var n="response"in c?c.response:c.responseText;setTimeout((function(){o(new P(n,r))}),0)},c.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},c.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request timed out"))}),0)},c.onabort=function(){setTimeout((function(){s(new t.DOMException("Aborted","AbortError"))}),0)},c.open(a.method,function(e){try{return""===e&&n.location.href?n.location.href:e}catch(t){return e}}(a.url),!0),"include"===a.credentials?c.withCredentials=!0:"omit"===a.credentials&&(c.withCredentials=!1),"responseType"in c&&(i?c.responseType="blob":l&&(c.responseType="arraybuffer")),r&&"object"==typeof r.headers&&!(r.headers instanceof f||n.Headers&&r.headers instanceof n.Headers)){var h=[];Object.getOwnPropertyNames(r.headers).forEach((function(e){h.push(u(e)),c.setRequestHeader(e,p(r.headers[e]))})),a.headers.forEach((function(e,t){-1===h.indexOf(t)&&c.setRequestHeader(t,e)}))}else a.headers.forEach((function(e,t){c.setRequestHeader(t,e)}));a.signal&&(a.signal.addEventListener("abort",d),c.onreadystatechange=function(){4===c.readyState&&a.signal.removeEventListener("abort",d)}),c.send(void 0===a._bodyInit?null:a._bodyInit)}))}C.polyfill=!0,n.fetch||(n.fetch=C,n.Headers=f,n.Request=_,n.Response=P),t.Headers=f,t.Request=_,t.Response=P,t.fetch=C}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var s=n.fetch?n:o;(t=s.fetch).default=s.fetch,t.fetch=s.fetch,t.Headers=s.Headers,t.Request=s.Request,t.Response=s.Response,e.exports=t},967:e=>{!function(){var t,r,n,o,s,i,a,l,c,d,u,p,h,f,g,y,m,w=null,v=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],b=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,99,99],A=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],P=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function C(){this.next=null,this.list=null}function O(){this.e=0,this.b=0,this.n=0,this.t=null}function E(e,t,r,n,o,s){var i;this.BMAX=16,this.N_MAX=288,this.status=0,this.root=null,this.m=0;var a,l,c,d,u,p,h,f,g,y,m,w,v,b,_,A,P=[],S=[],E=new O,I=[],k=[],B=[];for(A=this.root=null,u=0;u<this.BMAX+1;u++)P[u]=0;for(u=0;u<this.BMAX+1;u++)S[u]=0;for(u=0;u<this.BMAX;u++)I[u]=null;for(u=0;u<this.N_MAX;u++)k[u]=0;for(u=0;u<this.BMAX+1;u++)B[u]=0;a=t>256?e[256]:this.BMAX,f=e,g=0,u=t;do{P[f[g]]++,g++}while(--u>0);if(P[0]===t)return this.root=null,this.m=0,void(this.status=0);for(p=1;p<=this.BMAX&&0===P[p];p++);for(h=p,s<p&&(s=p),u=this.BMAX;0!==u&&0===P[u];u--);for(c=u,s>u&&(s=u),v=1<<p;p<u;p++,v<<=1)if((v-=P[p])<0)return this.status=2,void(this.m=s);if((v-=P[u])<0)return this.status=2,void(this.m=s);for(P[u]+=v,B[1]=p=0,f=P,g=1,w=2;--u>0;)B[w++]=p+=f[g++];f=e,g=0,u=0;do{0!==(p=f[g++])&&(k[B[p]++]=u)}while(++u<t);for(t=B[c],B[0]=u=0,f=k,g=0,d=-1,m=S[0]=0,y=null,b=0;h<=c;h++)for(i=P[h];i-- >0;){for(;h>m+S[1+d];){if(m+=S[1+d],d++,b=(b=c-m)>s?s:b,(l=1<<(p=h-m))>i+1)for(l-=i+1,w=h;++p<b&&!((l<<=1)<=P[++w]);)l-=P[w];for(m+p>a&&m<a&&(p=a-m),b=1<<p,S[1+d]=p,y=[],_=0;_<b;_++)y[_]=new O;(A=A?A.next=new C:this.root=new C).next=null,A.list=y,I[d]=y,d>0&&(B[d]=u,E.b=S[d],E.e=16+p,E.t=y,p=(u&(1<<m)-1)>>m-S[d],I[d-1][p].e=E.e,I[d-1][p].b=E.b,I[d-1][p].n=E.n,I[d-1][p].t=E.t)}for(E.b=h-m,g>=t?E.e=99:f[g]<r?(E.e=f[g]<256?16:15,E.n=f[g++]):(E.e=o[f[g]-r],E.n=n[f[g++]-r]),l=1<<h-m,p=u>>m;p<b;p+=l)y[p].e=E.e,y[p].b=E.b,y[p].n=E.n,y[p].t=E.t;for(p=1<<h-1;u&p;p>>=1)u^=p;for(u^=p;(u&(1<<m)-1)!==B[d];)m-=S[d],d--}this.m=S[1],this.status=0!==v&&1!==c?1:0}function I(e){for(;a<e;)i|=(y.length===m?-1:255&y[m++])<<a,a+=8}function k(e){return i&v[e]}function B(e){i>>=e,a-=e}function R(e,n,o){var s,i,a;if(0===o)return 0;for(a=0;;){for(I(f),s=(i=p.list[k(f)]).e;s>16;){if(99===s)return-1;B(i.b),I(s-=16),s=(i=i.t[k(s)]).e}if(B(i.b),16!==s){if(15===s)break;for(I(s),d=i.n+k(s),B(s),I(g),s=(i=h.list[k(g)]).e;s>16;){if(99===s)return-1;B(i.b),I(s-=16),s=(i=i.t[k(s)]).e}for(B(i.b),I(s),u=r-i.n-k(s),B(s);d>0&&a<o;)d--,u&=32767,r&=32767,e[n+a++]=t[r++]=t[u++];if(a===o)return o}else if(r&=32767,e[n+a++]=t[r++]=i.n,a===o)return o}return l=-1,a}function x(e,n,o){var s;if(B(s=7&a),I(16),s=k(16),B(16),I(16),s!==(65535&~i))return-1;for(B(16),d=s,s=0;d>0&&s<o;)d--,r&=32767,I(8),e[n+s++]=t[r++]=k(8),B(8);return 0===d&&(l=-1),s}function M(e,t,r){if(!w){var i,a,l=[];for(i=0;i<144;i++)l[i]=8;for(;i<256;i++)l[i]=9;for(;i<280;i++)l[i]=7;for(;i<288;i++)l[i]=8;if(0!==(a=new E(l,288,257,b,_,o=7)).status)return console.error("HufBuild error: "+a.status),-1;for(w=a.root,o=a.m,i=0;i<30;i++)l[i]=5;if((a=new E(l,30,0,A,P,s=5)).status>1)return w=null,console.error("HufBuild error: "+a.status),-1;n=a.root,s=a.m}return p=w,h=n,f=o,g=s,R(e,t,r)}function T(e,t,r){var n,o,s,i,a,l,c,d,u,y=[];for(n=0;n<316;n++)y[n]=0;if(I(5),c=257+k(5),B(5),I(5),d=1+k(5),B(5),I(4),l=4+k(4),B(4),c>286||d>30)return-1;for(o=0;o<l;o++)I(3),y[S[o]]=k(3),B(3);for(;o<19;o++)y[S[o]]=0;if(0!==(u=new E(y,19,19,null,null,f=7)).status)return-1;for(p=u.root,f=u.m,i=c+d,n=s=0;n<i;)if(I(f),B(o=(a=p.list[k(f)]).b),(o=a.n)<16)y[n++]=s=o;else if(16===o){if(I(2),o=3+k(2),B(2),n+o>i)return-1;for(;o-- >0;)y[n++]=s}else if(17===o){if(I(3),o=3+k(3),B(3),n+o>i)return-1;for(;o-- >0;)y[n++]=0;s=0}else{if(I(7),o=11+k(7),B(7),n+o>i)return-1;for(;o-- >0;)y[n++]=0;s=0}if(u=new E(y,c,257,b,_,f=9),0===f&&(u.status=1),0!==u.status&&1!==u.status)return-1;for(p=u.root,f=u.m,n=0;n<d;n++)y[n]=y[n+c];return u=new E(y,d,0,A,P,g=6),h=u.root,0===(g=u.m)&&c>257||0!==u.status?-1:R(e,t,r)}function q(e,n,o){var s,i;for(s=0;s<o;){if(c&&-1===l)return s;if(d>0){if(0!==l)for(;d>0&&s<o;)d--,u&=32767,r&=32767,e[n+s++]=t[r++]=t[u++];else{for(;d>0&&s<o;)d--,r&=32767,I(8),e[n+s++]=t[r++]=k(8),B(8);0===d&&(l=-1)}if(s===o)return s}if(-1===l){if(c)break;I(1),0!==k(1)&&(c=!0),B(1),I(2),l=k(2),B(2),p=null,d=0}switch(l){case 0:i=x(e,n+s,o-s);break;case 1:i=p?R(e,n+s,o-s):M(e,n+s,o-s);break;case 2:i=p?R(e,n+s,o-s):T(e,n+s,o-s);break;default:i=-1}if(-1===i)return c?0:-1;s+=i}return s}e.exports=function(e){var n,o=[];t||(t=[]),r=0,i=0,a=0,l=-1,c=!1,d=u=0,p=null,y=e,m=0;do{n=q(o,o.length,1024)}while(n>0);return y=null,o}}()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.m=e,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.b=document.baseURI||self.location.href;var n={};return(()=>{"use strict";function e(e){return t(o(e).map((e=>e.charCodeAt(0))))}function t(e){return decodeURIComponent(e.map((function(e){return"%"+("00"+e.toString(16)).slice(-2)})).join(""))}function o(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");return window.atob(t).split("")}r.r(n),r.d(n,{Engine:()=>Engine});var s,i,a=r(612);function l(r){const n=r.split(".");if(3!==n.length)return;const s=e(n[0]),i=JSON.parse(s);var l=e(n[1]);if("Def"===i?.cmp){var c=JSON.parse(l),d=o(c).map((e=>e.charCodeAt(0)));l=t(a.inflate(d))}return JSON.parse(l)}!function(e){e.MIN="MIN",e.FULL="FULL"}(s||(s={}));class MinAddress{phoneNumber;emailAddress;countryCode;name;postalCode}class FullAddress extends MinAddress{addressLines;locality;administrativeArea}!function(e){e.renderButton=function(e,t,r){var n=document.createElement("button"),o=t?.height??"40px";if(t?.logoPath){const e=document.createElement("img");e.src=t?.logoPath,e.style.width="30px",e.style.padding="0px",e.style.height="30px",n.appendChild(e)}const s=document.createElement("span");return s.textContent=r,n.appendChild(s),n.title=r,n.style.width=t?.width??"200px",n.style.height=o,n.style.borderRadius="8px",n.style.backgroundColor="Dark"===t?.color?"DarkOrange":"LightYellow",n.onclick=t=>e(t),n},e.popupCenter=function(e,t,r,n,o){const s=void 0!==window.screenLeft?window.screenLeft:window.screenX,i=void 0!==window.screenTop?window.screenTop:window.screenY,a=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width,l=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height,c=a/window.screen.availWidth,d=(a-r)/2/c+s,u=(l-n)/2/c+i,p=window.open(e,t,`\n width=${r/c}, \n height=${n/c}, \n top=${u}, \n left=${d}\n `),h=window.setInterval((function(){try{(null==p||p.closed)&&(window.clearInterval(h),o())}catch(e){}}),1e3);return p?.focus(),p},e.setOverlay=function(e){const t=document.createElement("div");t.style.zIndex="1",t.style.width="100%",t.style.top="0",t.style.position="fixed",t.style.height="100vh",t.style.display="flex",t.style.opacity="0.5",t.style.background="Gray",t.style.color="White",t.style.justifyContent="center",t.style.alignItems="center",t.onclick=()=>{e?e.focus():t.remove()};const r=document.createElement("div");return r.style.fontSize="2rem",r.style.width="100%",r.style.textAlign="center",r.innerHTML="Click here to resume payment authorization",t.appendChild(r),document.body.appendChild(t),t}}(i||(i={}));class Mock{_requiredAncillaryInfo;worksWithPaymentGateway=!0;rendersButton=!1;requiresLanguageResource=!1;name="Mock";constructor(e){this._requiredAncillaryInfo=e}isAvailable(){return new Promise((e=>{e(!0)}))}createButton(e,t,r){const n=`${t?.text??"Pay"} by Mock`;return i.renderButton((t=>{e(t,"Mock")}),t,n)}async startSession(e){return{success:!0,message:void 0,data:JSON.stringify({number:"4580458045804580",expirationYear:2030,expirationMonth:12,nameOnCard:"John Doe",type:"Visa"}),resultCode:"OK"}}getBillingInfo(){if(this._requiredAncillaryInfo?.billingInfo){if(this._requiredAncillaryInfo.billingInfo.details===s.FULL){return{addressLines:["123 Main St."],name:"John Smith",countryCode:"US",administrativeArea:"NY",postalCode:"012345",locality:"New York",phoneNumber:this._requiredAncillaryInfo?.billingInfo.phoneRequired?"+1(203)555-1234":"",emailAddress:"customer@domain.com"}}if(this._requiredAncillaryInfo.billingInfo.details===s.MIN){return{name:"John Smith",countryCode:"US",postalCode:"012345",phoneNumber:this._requiredAncillaryInfo?.billingInfo.phoneRequired?"+1(203)555-1234":"",emailAddress:"customer@domain.com"}}}}getShippingInfo(){if(this._requiredAncillaryInfo?.shippingInfo)return{addressLines:["123 Main St.","2nd floor","Suite 2030"],name:"John Smith",countryCode:"US",administrativeArea:"NY",postalCode:"012345",locality:"New York",phoneNumber:this._requiredAncillaryInfo?.shippingInfo.phoneRequired?"+1(203)555-1234":"",emailAddress:"customer@domain.com"}}completeSession(e){}}var c=r(945);function d(e,t){if(e||t)return e?t?`${e} ${t}`:e:t}function u(e){let t;if(function(){const e=window.location.hostname;return"localhost"===e||"127.0.0.1"===e||"::1"===e||e.startsWith("192.168.")||e.startsWith("10.")||e.endsWith(".local")}()&&"Dev"===e)t="http://localhost:4200/";else{t=`https://static${"Prod"===e?"":"-oper"}.pcibooking.net`}return`${t}/pay/`}function p(e){return`${u(e)}#/`}function h(...e){const t=[];return e.forEach((e=>{e&&t.push(e)})),t}async function f(e,t=""){const r={method:"GET",headers:{Authorization:""}};return t&&(r.headers.Authorization=`Bearer ${t}`),(0,c.fetch)(e,r).then((e=>y(e)))}async function g(e,t="",r,n="application/json"){const o={method:"POST",body:JSON.stringify(r),headers:{"Content-Type":n,Authorization:""}};return t&&(o.headers.Authorization=`Bearer ${t}`),(0,c.fetch)(e,o).then((e=>y(e)))}async function y(e){if(e.status>=400)throw new Error("Bad response from server");return e.json()}function m(e){var t=e.split("/");return e=t[0]+"//"+t[2]}async function w(e){return new Promise(((t,r)=>{var n=document.createElement("script");n.src=e,n.addEventListener("load",(e=>t(e))),n.onerror=()=>{r(new Error("Failed to load script."))},document.body.appendChild(n)}))}class GooglePay{API_VERSION=2;API_MINOR_VERSION=0;_googlePayClient=null;_config;_request;_requiredAncillaryInfo=void 0;_receivedBillingAddress=void 0;_receivedShippingAddress=void 0;_receivedEmailAddress;constructor(e,t,r){this._request=e,this._config=t,this._requiredAncillaryInfo=r}_cardPaymentMethod={type:"CARD",parameters:{allowedAuthMethods:["PAN_ONLY","CRYPTOGRAM_3DS"],allowedCardNetworks:[]}};_directTokenizationSpecification={type:"DIRECT",parameters:{protocolVersion:"ECv2",publicKey:""}};_googlePayConfiguration={apiVersion:this.API_VERSION,apiVersionMinor:this.API_MINOR_VERSION,allowedPaymentMethods:[]};worksWithPaymentGateway=!0;rendersButton=!1;requiresLanguageResource=!1;name="GooglePay";async isAvailable(){try{if(!await w("https://pay.google.com/gp/p/pay.js"))return Promise.resolve(!1);this._googlePayClient=new google.payments.api.PaymentsClient({environment:"TEST"===this._request.mode?"TEST":"PRODUCTION"}),this._directTokenizationSpecification.parameters.publicKey=this._config.pub,this._cardPaymentMethod.tokenizationSpecification=this._directTokenizationSpecification,this._cardPaymentMethod.parameters.allowedCardNetworks=this.populateCardNetworks(),this._googlePayConfiguration.allowedPaymentMethods=[this._cardPaymentMethod];const t={...this._googlePayConfiguration};try{var e=await(this._googlePayClient?.isReadyToPay(t));return Promise.resolve(e.result)}catch{return Promise.resolve(!1)}}catch(e){return console.error(e),Promise.resolve(!1)}}createButton(e,t,r){var n={onClick:t=>e(t,"GooglePay"),allowedPaymentMethods:[this._cardPaymentMethod]};t&&(n.buttonColor=this.populateButtonColor(t?.color),n.buttonType=this.populateButtonType(t?.text),n.buttonLocale=this._request.language);const o=this._googlePayClient?.createButton(n);return o}populateButtonColor(e){switch(e){case"Dark":return"black";case"Light":return"white";default:return"default"}}populateButtonType(e){switch(e){case"Book":return"book";case"Buy":return"buy";case"Checkout":return"checkout";case"Donate":return"donate";case"Pay":return"pay";case"Subscribe":return"subscribe";default:return"plain"}}async startSession(e){const t={allowedPaymentMethods:[{type:"CARD",tokenizationSpecification:this._directTokenizationSpecification,parameters:{allowedAuthMethods:["PAN_ONLY","CRYPTOGRAM_3DS"],allowedCardNetworks:this.populateCardNetworks(),billingAddressRequired:null!=this._requiredAncillaryInfo?.billingInfo,billingAddressParameters:{format:this._requiredAncillaryInfo?.billingInfo?.details??"MIN",phoneNumberRequired:this._requiredAncillaryInfo?.billingInfo?.phoneRequired??!1}}}],apiVersion:this.API_VERSION,apiVersionMinor:this.API_MINOR_VERSION,merchantInfo:{merchantId:this._config.mid,merchantName:this._config.mname},shippingAddressRequired:null!=this._requiredAncillaryInfo?.shippingInfo,emailRequired:this._requiredAncillaryInfo?.billingInfo?.emailAddressRequired||this._requiredAncillaryInfo?.shippingInfo?.emailAddressRequired,transactionInfo:{totalPriceStatus:"FINAL",totalPrice:this._request.amt.toString(),currencyCode:this._request.cur,countryCode:this._request.ctry}};try{const e=await(this._googlePayClient?.loadPaymentData(t));if(!e)throw new Error("paymentData not available");console.log("Loaded paymentData from GooglePay"),console.log(e);const r=e?.paymentMethodData;this._receivedBillingAddress=e?.paymentMethodData?.info?.billingAddress,this._receivedShippingAddress=e?.shippingAddress,this._receivedEmailAddress=e?.email;const n=r?.tokenizationData;return{success:!0,message:void 0,data:n?.token,resultCode:"OK"}}catch(e){const t=`loadPaymentData error: ${e}`;return console.error(t),{success:!1,data:void 0,message:t,resultCode:"Other"}}}getBillingInfo(){if(this._receivedBillingAddress){if(this._requiredAncillaryInfo?.billingInfo?.details===s.FULL){return{addressLines:h(this._receivedBillingAddress.address1,this._receivedBillingAddress.address2,this._receivedBillingAddress.address3),name:this._receivedBillingAddress.name,countryCode:this._receivedBillingAddress.countryCode,administrativeArea:this._receivedBillingAddress.administrativeArea,postalCode:this._receivedBillingAddress.postalCode,locality:this._receivedBillingAddress.locality,phoneNumber:this._receivedBillingAddress.phoneNumber,emailAddress:this._receivedEmailAddress}}if(this._requiredAncillaryInfo?.billingInfo?.details===s.MIN){return{name:this._receivedBillingAddress.name,countryCode:this._receivedBillingAddress.countryCode,postalCode:this._receivedBillingAddress.postalCode,phoneNumber:this._receivedBillingAddress.phoneNumber,emailAddress:this._receivedEmailAddress}}}}getShippingInfo(){if(!this._receivedShippingAddress)return;return{addressLines:h(this._receivedShippingAddress.address1,this._receivedShippingAddress.address2,this._receivedShippingAddress.address3),name:this._receivedShippingAddress.name,countryCode:this._receivedShippingAddress.countryCode,administrativeArea:this._receivedShippingAddress.administrativeArea,postalCode:this._receivedShippingAddress.postalCode,locality:this._receivedShippingAddress.locality,phoneNumber:this._receivedShippingAddress.phoneNumber,emailAddress:this._receivedEmailAddress}}completeSession(e){}populateCardNetworks(){const e=[];return this._request.brnd.forEach((t=>{let r;switch(t){case"AMEX":r="AMEX";break;case"Discover":r="DISCOVER";break;case"JCB":r="JCB";break;case"MasterCard":r="MASTERCARD";break;case"Visa":r="VISA"}r&&e.push(r)})),e}}class ExpectedEvent{timer;allowedOrigin;messageType;resolver;rejector}class Message{messageType;payload}let v=[],b=!1;const _=function(e){console.log("message received onmessage"),console.log(e);const t=e.data,r=A(e.origin,t.messageType);if(r)return window.clearTimeout(r.timer),t?r.resolver(t.payload):void 0};function A(e,t){let r=!1;for(var n=0;n<v.length;n++)if((!v[n].allowedOrigin||"*"===v[n].allowedOrigin||v[n].allowedOrigin===e)&&t===v[n].messageType){r=!0;break}if(!r)return;const o=v.splice(n,1)[0];return 0===v.length&&(window.removeEventListener("message",_),b=!1),o}async function P(e,t=void 0,r=void 0){const n=new ExpectedEvent;n.messageType=e,n.allowedOrigin=t,b||(b=!0,window.onmessage=_);const o=new Promise(((e,t)=>{n.resolver=e,n.rejector=t}));return v.push(n),console.log(`Number of expected messages: ${v.length}`),r&&(n.timer=window.setTimeout((()=>{A(n.allowedOrigin,n.messageType),n.rejector(`Timed out after ${r} milli-seconds`)}),r)),o}class PaymentResults_PerformPaymentRequestBase{providerName;countryCode}class EveriFin{async getPaymentMessage(e,t,r){const n=m(e),o=await P("PaymentId",n,3e5);if(console.log(o),!o?.success)return;const s=new EverifinPaymentSessionData;s.paymentId=o.paymentId,s.orderId=r.data,s.providerName="EveriFin";return JSON.stringify(s)}getBillingInfo(){}}class EverifinPaymentSessionData extends PaymentResults_PerformPaymentRequestBase{paymentId;orderId}class Usio{_contactInfo;async getPaymentMessage(e,t,r){const n=m(e);if(!await P("Ready",n,5e3))return;const o=new Message;o.messageType="USAccount",o.payload={language:"en",branding:"",publicKey:r.data},console.log(o),console.log("Sending public Key to popup window"),t.postMessage(o,n);const s=await P("USAccount",n,3e5);if(console.log(s),!s)return;const i=s;this._contactInfo={addressLines:[i.address1,i.address2],locality:i.city,administrativeArea:i.state,countryCode:"US",emailAddress:i.emailAddress,phoneNumber:void 0,postalCode:i.zip,name:`${i.firstName} ${i.lastName}`},i.providerName="Usio";return JSON.stringify(i)}getBillingInfo(){return this._contactInfo}}var S;!function(e){let t;!function(e){e.en="en",e.he="he",e.cs="cs",e.el="el",e.de="de",e.es="es",e.fi="fi",e.fr="fr",e.it="ja",e.ko="ko",e.no="no",e.nl="nl",e.pl="pl",e.pt="pt",e.ru="ru",e.sk="sk",e.sr="sr",e.sv="sv",e.tr="tr",e.zh="zh",e.xx="xx"}(t=e.supportedLanguages||(e.supportedLanguages={}));const r=t.en;let n={};const o=Object.keys(t);e.autoDetectLanguage=function(){return navigator.languages.forEach((e=>{const t=e.split("-")[0];if(o.includes(t))return t})),r},e.setLanguage=async function(e,t="Prod"){n={};try{const r=`${function(e){return`${u(e)}assets/i18n/`}(t)}${e}.json`;return n=await f(r),!0}catch(e){return console.error(e),!1}},e.text=function(e){return n[e]||`--${e}--`}}(S||(S={}));class BankPay{constructor(e,t,r){this._request=e,this._config=t,this._requiredAncillaryInfo=r}worksWithPaymentGateway=!1;rendersButton=!1;requiresLanguageResource=!0;name="BankPay";_config;_request;_requiredAncillaryInfo;_selectedProvider;_overlay;_popupWindowObjectReference;isAvailable(){return Promise.resolve(!0)}createButton(e,t,r){const n=t?.text??"Pay",o=`${S.text(n)} ${S.text("By")} ${S.text("BankTransfer")}`;return i.renderButton((t=>{e(t,"BankPay")}),t,o)}getBillingInfo(){return this._selectedProvider?.getBillingInfo()}getShippingInfo(){}async startSession(e){const t={success:!1,message:"Unknown error",data:void 0,resultCode:"Other"},r=this.getCountrySelectionUrl(),n=new Promise((e=>{console.log("Opening popup to "+r),this._popupWindowObjectReference=i.popupCenter(r,"Card entry",800,600,(()=>{console.log("Popup window was closed"),e()}))})),o=m(r);if(!this._popupWindowObjectReference){const e="Could not open a popup window";return console.error(e),t.message=e,t}this._overlay=i.setOverlay(this._popupWindowObjectReference);try{const r=(async()=>{try{const e=await P("Ready",o,5e3);console.log(e)}catch(e){const r="Ready message was not received within 5 seconds";return console.error(r),t.message=r,t}await this.sendCountryList(this._popupWindowObjectReference,o);try{const n=await P("Country",o,18e4);if(console.log(n),!n){const e="No country was selected";return console.error(e),t.message=e,t}const s=await e(JSON.stringify(n));if(!s){const e="Could not get bank authorization (empty)";return console.error(e),t.message=e,t}if(console.log(s),!s?.Success){const e=`Could not get bank authorization. Message: ${s?.Message}`;return console.error(e),t.message=e,t}const i=JSON.parse(s.Data);switch(console.log(i),i.providerName){case"EveriFin":this._selectedProvider=new EveriFin;break;case"Usio":this._selectedProvider=new Usio;break;default:const e=`Cannot find implementation for bank provider: ${i.providerName}`;return console.error(e),t.message=e,t}var r=await this.handlePaymentAuthorization(this._popupWindowObjectReference,o,i);return console.log("paymentValidationResults:"),console.log(r),t.success=!0,t.message=void 0,t.data=r,t}catch(e){return console.error(e),t.message=e,t}})();return await Promise.race([r,n.then((()=>(t.message="Popup window was closed",t)))])}catch(e){return console.error(e),t.message=e instanceof Error?e.message:"Unknown error occurred",t}finally{this._overlay?.remove(),this._popupWindowObjectReference?.close()}}async handlePaymentAuthorization(e,t,r){if(!e)return;const n=new Message;n.messageType="AuthUrl",n.payload=r.authUrl,console.log("Sending message to iFrame with origin: "+t),console.log(n),e.postMessage(n,t);const o=this.getAuthorizationRedirectUrl(r.providerName);try{console.log("Awaiting up to 5 minutes for authorization");return await this._selectedProvider.getPaymentMessage(o,e,r)}catch(e){return void console.error(e)}}async sendCountryList(e,t){if(!e)return;const r=new Message;r.messageType="CountryList";const n=`${this._request.url}/coveredCountries`;console.log("url: "+n),r.payload=await f(n),r.payload.language=this._request.language,r.payload.branding=this._request.brndng,console.log(r),console.log("Sending country list to popup window"),e.postMessage(r,t)}completeSession(e){}getCountrySelectionUrl(){return`${p(this._request.stg)}countrySelect`}getAuthorizationRedirectUrl(e){return`${p(this._request.stg)}/${e.toLowerCase()}`}}class ApplePay{_config;_request;APPLE_JS_VERSION=12;_applePaySession;_requiredAncillaryInfo;_receivedBillingInfo;_receivedShippingAddress;constructor(e,t,r){this._request=e,this._config=t,this._requiredAncillaryInfo=r}worksWithPaymentGateway=!0;rendersButton=!1;requiresLanguageResource=!1;name="ApplePay";async isAvailable(){if(!await w("https://applepay.cdn-apple.com/jsapi/v1.1.0/apple-pay-sdk.js"))return Promise.resolve(!1);var e;try{ApplePaySession.supportsVersion(this.APPLE_JS_VERSION)?e=ApplePaySession.canMakePayments():(e=!1,console.log("Not supported version. See https://developer.apple.com/documentation/apple_pay_on_the_web/applepaysession/1778014-supportsversion"))}catch{e=!1}return new Promise((t=>{t(e)}))}createButton(e,t,r){const n=document.createElement("apple-pay-button");return t&&(n.setAttribute("buttonstyle",this.populateButtonColor(t.color)),n.setAttribute("type",this.populateButtonType(t.text)),n.setAttribute("locale",this._request.language)),n.title="Click to pay by Apple Pay",n.style.appearance="-apple-pay-button",n.onclick=t=>e(t,"ApplePay"),n}populateButtonColor(e){switch(e){case"Dark":default:return"black";case"Light":return"white"}}populateButtonType(e){switch(e){case"Book":return"book";case"Buy":return"buy";case"Checkout":return"check-out";case"Donate":return"donate";case"Pay":return"pay";case"Subscribe":return"subscribe";default:return"plain"}}async startSession(e){const t={currencyCode:this._request.cur,countryCode:this._request.ctry,merchantCapabilities:["supports3DS","supportsCredit","supportsDebit"],supportedNetworks:this.populateCardNetworks(),total:{label:this._config.mname,amount:this._request.amt.toString(),type:"final"}};return this._requiredAncillaryInfo&&(this._requiredAncillaryInfo.billingInfo&&(t.requiredBillingContactFields=["postalAddress","name","phone","email"]),this._requiredAncillaryInfo.shippingInfo&&(t.requiredShippingContactFields=["postalAddress","name"],this._requiredAncillaryInfo.shippingInfo.emailAddressRequired&&t.requiredShippingContactFields.push("email"),this._requiredAncillaryInfo.shippingInfo.phoneRequired&&t.requiredShippingContactFields.push("phone"))),this._applePaySession=new ApplePaySession(this.APPLE_JS_VERSION,t),new Promise(((t,r)=>{this._applePaySession.onvalidatemerchant=t=>{const r=JSON.stringify({appleUrl:t.validationURL});e(r).then((e=>{if(console.log("sessionValidationCallback handling completion; Session data follows"),console.log(e?.Data),!e?.Success)throw new Error(`Bad response from session Validation ${e?.Message}`);var t=JSON.parse(e?.Data);console.log("data to completeMerchantValidation:"),console.log(e?.Data),this._applePaySession.completeMerchantValidation(t),console.log("onvalidatemerchant event handling completion")})).catch((e=>{console.error(e)}))},this._applePaySession.oncancel=e=>{console.log("oncancel event fired"),console.log(e);t({success:!1,message:"User canceled transaction",data:void 0,resultCode:"Canceled"})},this._applePaySession.onpaymentauthorized=e=>{console.log("onpaymentauthorized event fired"),this._receivedBillingInfo=e.payment?.billingContact,this._receivedShippingAddress=e.payment.shippingContact;try{console.log(e),this._applePaySession.completePayment({status:ApplePaySession.STATUS_SUCCESS});const r={success:!0,message:void 0,data:JSON.stringify(e.payment.token),resultCode:"OK"};t(r)}catch(e){console.error("onpaymentauthorized error"),console.error(e),r(e)}},this._applePaySession.begin()}))}getBillingInfo(){if(this._receivedBillingInfo){if(this._requiredAncillaryInfo?.billingInfo?.details===s.FULL){return{addressLines:this._receivedBillingInfo.addressLines??[],name:d(this._receivedBillingInfo.givenName,this._receivedBillingInfo.familyName),countryCode:this._receivedBillingInfo.countryCode,administrativeArea:this._receivedBillingInfo.administrativeArea,postalCode:this._receivedBillingInfo.postalCode,locality:this._receivedBillingInfo.locality,phoneNumber:this._receivedBillingInfo.phoneNumber,emailAddress:this._receivedBillingInfo.emailAddress}}if(this._requiredAncillaryInfo?.billingInfo?.details===s.MIN){return{name:d(this._receivedBillingInfo.givenName,this._receivedBillingInfo.familyName),countryCode:this._receivedBillingInfo.countryCode,postalCode:this._receivedBillingInfo.postalCode,phoneNumber:this._receivedBillingInfo.phoneNumber,emailAddress:this._receivedBillingInfo.emailAddress}}}}getShippingInfo(){if(!this._receivedShippingAddress)return;return