-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pay.js
308 lines (288 loc) · 117 KB
/
pay.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
(function(){window['denylistedDomainsHashedValueListForGpayButtonWithCardInfo'] = [-718583466,-651407173,1501053020,1270931793];}).call(this);(function(){window['whitelistedDomainsHashedValueListForGpayButtonWithCardInfo'] = [1432838318];}).call(this);(function(){window['denylistedMerchentIdsHashedValueListForGpayButtonWithCardInfo'] = [1260893,211376492];}).call(this);(function(){window['denylistedMerchantIdsHashedValueListForGpayButtonVariant'] = [];}).call(this);(function(){window['dynamicGpayButtonVariant'] = "GPAY_BUTTON_VARIANT_TYPE_NONE";}).call(this);(function(){/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var a=this||self;var b=["google","payments","api","ReadyToPayAdditionalBrowsers"],c=window||a;b[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+b[0]);for(var d;b.length&&(d=b.shift());)b.length?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=!0;}).call(this);
(function(){/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var a=this||self;var b=["google","payments","api","EnableDynamicGpayButton"],c=window||a;b[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+b[0]);for(var d;b.length&&(d=b.shift());)b.length?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=!0;}).call(this);
(function(){/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var a=this||self;var b=["google","payments","api","EnableDynamicUpdateForClank"],c=window||a;b[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+b[0]);for(var d;b.length&&(d=b.shift());)b.length?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=!0;}).call(this);
(function(){/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var a=this||self;var b=["google","payments","api","DisableNativeReadyToPayCheckForPaymentHandler"],c=window||a;b[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+b[0]);for(var d;b.length&&(d=b.shift());)b.length?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=!0;}).call(this);
(function(){/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var a=this||self;var b=["google","payments","api","DisablePaymentRequest"],c=window||a;b[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+b[0]);for(var d;b.length&&(d=b.shift());)b.length?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=!0;}).call(this);
(function(){/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var a=this||self;var b=["google","payments","api","EnableGpayButtonAriaLabelLocalization"],c=window||a;b[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+b[0]);for(var d;b.length&&(d=b.shift());)b.length?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=!0;}).call(this);
(function(){/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var a=this||self;var b=["google","payments","api","EnableLoadPaymentDataTimeout"],c=window||a;b[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+b[0]);for(var d;b.length&&(d=b.shift());)b.length?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=!0;}).call(this);
(function(){/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var a=this||self;var b=["google","payments","api","EnableOfferCallback"],c=window||a;b[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+b[0]);for(var d;b.length&&(d=b.shift());)b.length?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=!0;}).call(this);
(function(){/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var a=this||self;var b=["google","payments","api","EnablePaymentMethodCallback"],c=window||a;b[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+b[0]);for(var d;b.length&&(d=b.shift());)b.length?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=!0;}).call(this);
(function(){/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var a=this||self;var b=["google","payments","api","UseCanMakePaymentResultFromPayjs"],c=window||a;b[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+b[0]);for(var d;b.length&&(d=b.shift());)b.length?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=!0;}).call(this);
(function(){/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var a=this||self;var b=["google","payments","api","UseCanMakePaymentForFallbackOnMobile"],c=window||a;b[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+b[0]);for(var d;b.length&&(d=b.shift());)b.length?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=!0;}).call(this);
(function(){/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var a=this||self;var b=["google","payments","api","EnableClosePopupOnHostingPageUnload"],c=window||a;b[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+b[0]);for(var d;b.length&&(d=b.shift());)b.length?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=!0;}).call(this);
(function(){/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var a=this||self;var b=["google","payments","api","EnablePaymentHandlerSandboxBuyflow"],c=window||a;b[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+b[0]);for(var d;b.length&&(d=b.shift());)b.length?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=!0;}).call(this);
(function(){var m,n,aa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},ba="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a},ca=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");
},p=ca(this),da="function"===typeof Symbol&&"symbol"===typeof Symbol("x"),r={},ea={},t=function(a,b,c){if(!c||null!=a){c=ea[b];if(null==c)return a[b];c=a[c];return void 0!==c?c:a[b]}},u=function(a,b,c){if(b)a:{var d=a.split(".");a=1===d.length;var e=d[0];e=!a&&e in r?r:p;for(var g=0;g<d.length-1;g++){var f=d[g];if(!(f in e))break a;e=e[f]}d=d[d.length-1];c=da&&"es6"===c?e[d]:null;b=b(c);null!=b&&(a?ba(r,d,{configurable:!0,writable:!0,value:b}):b!==c&&(void 0===ea[d]&&(a=1E9*Math.random()>>>0,ea[d]=
da?p.Symbol(d):"$jscp$"+a+"$"+d),ba(e,ea[d],{configurable:!0,writable:!0,value:b})))}};u("Symbol",function(a){if(a)return a;var b=function(g,f){this.Tb=g;ba(this,"description",{configurable:!0,writable:!0,value:f})};b.prototype.toString=function(){return this.Tb};var c="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",d=0,e=function(g){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(g||"")+"_"+d++,g)};return e},"es6");
u("Symbol.iterator",function(a){if(a)return a;a=(0,r.Symbol)("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=p[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ba(d.prototype,a,{configurable:!0,writable:!0,value:function(){return fa(aa(this))}})}return a},"es6");
var fa=function(a){a={next:a};a[t(r.Symbol,"iterator")]=function(){return this};return a},v=function(a){var b="undefined"!=typeof r.Symbol&&t(r.Symbol,"iterator")&&a[t(r.Symbol,"iterator")];if(b)return b.call(a);if("number"==typeof a.length)return{next:aa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");},ha=function(a){if(!(a instanceof Array)){a=v(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a},ia="function"==typeof Object.create?Object.create:function(a){var b=
function(){};b.prototype=a;return new b},ja;if(da&&"function"==typeof Object.setPrototypeOf)ja=Object.setPrototypeOf;else{var ka;a:{var la={a:!0},ma={};try{ma.__proto__=la;ka=ma.a;break a}catch(a){}ka=!1}ja=ka?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var na=ja;
u("Promise",function(a){function b(){this.T=null}function c(f){return f instanceof e?f:new e(function(h){h(f)})}if(a)return a;b.prototype.ub=function(f){if(null==this.T){this.T=[];var h=this;this.vb(function(){h.ec()})}this.T.push(f)};var d=p.setTimeout;b.prototype.vb=function(f){d(f,0)};b.prototype.ec=function(){for(;this.T&&this.T.length;){var f=this.T;this.T=[];for(var h=0;h<f.length;++h){var l=f[h];f[h]=null;try{l()}catch(k){this.ac(k)}}}this.T=null};b.prototype.ac=function(f){this.vb(function(){throw f;
})};var e=function(f){this.oa=0;this.W=void 0;this.na=[];this.Db=!1;var h=this.ab();try{f(h.resolve,h.reject)}catch(l){h.reject(l)}};e.prototype.ab=function(){function f(k){return function(q){l||(l=!0,k.call(h,q))}}var h=this,l=!1;return{resolve:f(this.uc),reject:f(this.lb)}};e.prototype.uc=function(f){if(f===this)this.lb(new TypeError("A Promise cannot resolve to itself"));else if(f instanceof e)this.xc(f);else{a:switch(typeof f){case "object":var h=null!=f;break a;case "function":h=!0;break a;default:h=
!1}h?this.tc(f):this.Bb(f)}};e.prototype.tc=function(f){var h=void 0;try{h=f.then}catch(l){this.lb(l);return}"function"==typeof h?this.yc(h,f):this.Bb(f)};e.prototype.lb=function(f){this.Rb(2,f)};e.prototype.Bb=function(f){this.Rb(1,f)};e.prototype.Rb=function(f,h){if(0!=this.oa)throw Error("Cannot settle("+f+", "+h+"): Promise already settled in state"+this.oa);this.oa=f;this.W=h;2===this.oa&&this.vc();this.fc()};e.prototype.vc=function(){var f=this;d(function(){if(f.kc()){var h=p.console;"undefined"!==
typeof h&&h.error(f.W)}},1)};e.prototype.kc=function(){if(this.Db)return!1;var f=p.CustomEvent,h=p.Event,l=p.dispatchEvent;if("undefined"===typeof l)return!0;"function"===typeof f?f=new f("unhandledrejection",{cancelable:!0}):"function"===typeof h?f=new h("unhandledrejection",{cancelable:!0}):(f=p.document.createEvent("CustomEvent"),f.initCustomEvent("unhandledrejection",!1,!0,f));f.promise=this;f.reason=this.W;return l(f)};e.prototype.fc=function(){if(null!=this.na){for(var f=0;f<this.na.length;++f)g.ub(this.na[f]);
this.na=null}};var g=new b;e.prototype.xc=function(f){var h=this.ab();f.Ka(h.resolve,h.reject)};e.prototype.yc=function(f,h){var l=this.ab();try{f.call(h,l.resolve,l.reject)}catch(k){l.reject(k)}};e.prototype.then=function(f,h){function l(E,H){return"function"==typeof E?function(pa){try{k(E(pa))}catch(V){q(V)}}:H}var k,q,x=new e(function(E,H){k=E;q=H});this.Ka(l(f,k),l(h,q));return x};e.prototype.catch=function(f){return this.then(void 0,f)};e.prototype.Ka=function(f,h){function l(){switch(k.oa){case 1:f(k.W);
break;case 2:h(k.W);break;default:throw Error("Unexpected state: "+k.oa);}}var k=this;null==this.na?g.ub(l):this.na.push(l);this.Db=!0};e.resolve=c;e.reject=function(f){return new e(function(h,l){l(f)})};e.race=function(f){return new e(function(h,l){for(var k=v(f),q=k.next();!q.done;q=k.next())c(q.value).Ka(h,l)})};e.all=function(f){var h=v(f),l=h.next();return l.done?c([]):new e(function(k,q){function x(pa){return function(V){E[pa]=V;H--;0==H&&k(E)}}var E=[],H=0;do E.push(void 0),H++,c(l.value).Ka(x(E.length-
1),q),l=h.next();while(!l.done)})};return e},"es6");var w=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},oa=da&&"function"==typeof t(Object,"assign")?t(Object,"assign"):function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)w(d,e)&&(a[e]=d[e])}return a};u("Object.assign",function(a){return a||oa},"es6");
u("WeakMap",function(a){function b(){}function c(f){var h=typeof f;return"object"===h&&null!==f||"function"===h}if(function(){if(!a||!Object.seal)return!1;try{var f=Object.seal({}),h=Object.seal({}),l=new a([[f,2],[h,3]]);if(2!=l.get(f)||3!=l.get(h))return!1;l.delete(f);l.set(h,4);return!l.has(f)&&4==l.get(h)}catch(k){return!1}}())return a;var d="$jscomp_hidden_"+Math.random(),e=0,g=function(f){this.va=(e+=Math.random()+1).toString();if(f){f=v(f);for(var h;!(h=f.next()).done;)h=h.value,this.set(h[0],
h[1])}};g.prototype.set=function(f,h){if(!c(f))throw Error("Invalid WeakMap key");if(!w(f,d)){var l=new b;ba(f,d,{value:l})}if(!w(f,d))throw Error("WeakMap key fail: "+f);f[d][this.va]=h;return this};g.prototype.get=function(f){return c(f)&&w(f,d)?f[d][this.va]:void 0};g.prototype.has=function(f){return c(f)&&w(f,d)&&w(f[d],this.va)};g.prototype.delete=function(f){return c(f)&&w(f,d)&&w(f[d],this.va)?delete f[d][this.va]:!1};return g},"es6");
u("Map",function(a){if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var h=Object.seal({x:4}),l=new a(v([[h,"s"]]));if("s"!=l.get(h)||1!=l.size||l.get({x:4})||l.set({x:4},"t")!=l||2!=l.size)return!1;var k=l.entries(),q=k.next();if(q.done||q.value[0]!=h||"s"!=q.value[1])return!1;q=k.next();return q.done||4!=q.value[0].x||"t"!=q.value[1]||!k.next().done?!1:!0}catch(x){return!1}}())return a;var b=new r.WeakMap,c=function(h){this[0]={};this[1]=
g();this.size=0;if(h){h=v(h);for(var l;!(l=h.next()).done;)l=l.value,this.set(l[0],l[1])}};c.prototype.set=function(h,l){h=0===h?0:h;var k=d(this,h);k.list||(k.list=this[0][k.id]=[]);k.u?k.u.value=l:(k.u={next:this[1],S:this[1].S,head:this[1],key:h,value:l},k.list.push(k.u),this[1].S.next=k.u,this[1].S=k.u,this.size++);return this};c.prototype.delete=function(h){h=d(this,h);return h.u&&h.list?(h.list.splice(h.index,1),h.list.length||delete this[0][h.id],h.u.S.next=h.u.next,h.u.next.S=h.u.S,h.u.head=
null,this.size--,!0):!1};c.prototype.clear=function(){this[0]={};this[1]=this[1].S=g();this.size=0};c.prototype.has=function(h){return!!d(this,h).u};c.prototype.get=function(h){return(h=d(this,h).u)&&h.value};c.prototype.entries=function(){return e(this,function(h){return[h.key,h.value]})};c.prototype.keys=function(){return e(this,function(h){return h.key})};c.prototype.values=function(){return e(this,function(h){return h.value})};c.prototype.forEach=function(h,l){for(var k=this.entries(),q;!(q=k.next()).done;)q=
q.value,h.call(l,q[1],q[0],this)};c.prototype[t(r.Symbol,"iterator")]=c.prototype.entries;var d=function(h,l){var k=l&&typeof l;"object"==k||"function"==k?b.has(l)?k=b.get(l):(k=""+ ++f,b.set(l,k)):k="p_"+l;var q=h[0][k];if(q&&w(h[0],k))for(h=0;h<q.length;h++){var x=q[h];if(l!==l&&x.key!==x.key||l===x.key)return{id:k,list:q,index:h,u:x}}return{id:k,list:q,index:-1,u:void 0}},e=function(h,l){var k=h[1];return fa(function(){if(k){for(;k.head!=h[1];)k=k.S;for(;k.next!=k.head;)return k=k.next,{done:!1,
value:l(k)};k=null}return{done:!0,value:void 0}})},g=function(){var h={};return h.S=h.next=h.head=h},f=0;return c},"es6");var qa=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var g=c++;return{value:b(g,a[g]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[t(r.Symbol,"iterator")]=function(){return e};return e};u("Array.prototype.keys",function(a){return a?a:function(){return qa(this,function(b){return b})}},"es6");
u("Array.prototype.values",function(a){return a?a:function(){return qa(this,function(b,c){return c})}},"es8");u("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(h){return h};var e=[],g="undefined"!=typeof r.Symbol&&t(r.Symbol,"iterator")&&b[t(r.Symbol,"iterator")];if("function"==typeof g){b=g.call(b);for(var f=0;!(g=b.next()).done;)e.push(c.call(d,g.value,f++))}else for(g=b.length,f=0;f<g;f++)e.push(c.call(d,b[f],f));return e}},"es6");
u("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)w(b,d)&&c.push(b[d]);return c}},"es8");u("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}},"es6");u("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var g=d[c];if(g===b||t(Object,"is").call(Object,g,b))return!0}return!1}},"es7");
u("String.prototype.includes",function(a){return a?a:function(b,c){if(null==this)throw new TypeError("The 'this' value for String.prototype.includes must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype.includes must not be a regular expression");return-1!==(this+"").indexOf(b,c||0)}},"es6");/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var y=this||self,ra=function(a,b){a=a.split(".");var c=window||y;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=b},sa=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"},ta=function(a){var b=sa(a);return"array"==b||"object"==b&&"number"==typeof a.length},ua=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},va=function(a,
b,c){return a.call.apply(a.bind,arguments)},wa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}},xa=function(a,b,c){xa=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?va:wa;return xa.apply(null,arguments)},ya=function(a,b){function c(){}c.prototype=
b.prototype;a.pa=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.ld=function(d,e,g){for(var f=Array(arguments.length-2),h=2;h<arguments.length;h++)f[h-2]=arguments[h];return b.prototype[e].apply(d,f)}},za=function(a){return a};function Aa(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,Aa);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b)}ya(Aa,Error);Aa.prototype.name="CustomError";function Ba(a,b){a=a.split("%s");for(var c="",d=a.length-1,e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");Aa.call(this,c+a[d])}ya(Ba,Aa);Ba.prototype.name="AssertionError";function Ca(a,b,c,d){var e="Assertion failed";if(c){e+=": "+c;var g=d}else a&&(e+=": "+a,g=b);throw new Ba(""+e,g||[]);}
var z=function(a,b,c){a||Ca("",null,b,Array.prototype.slice.call(arguments,2));return a},Da=function(a,b){throw new Ba("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));},Ea=function(a,b,c){"number"!==typeof a&&Ca("Expected number but got %s: %s.",[sa(a),a],b,Array.prototype.slice.call(arguments,2));return a},Fa=function(a,b,c){ua(a)||Ca("Expected object but got %s: %s.",[sa(a),a],b,Array.prototype.slice.call(arguments,2))};var Ia=function(a,b){this.Sb=a===Ga&&b||"";this.Xb=Ha};Ia.prototype.toString=function(){return this.Sb};var A=function(a){if(a instanceof Ia&&a.constructor===Ia&&a.Xb===Ha)return a.Sb;Da("expected object of type Const, got '"+a+"'");return"type_error:Const"},B=function(a){return new Ia(Ga,a)},Ha={},Ga={};var Ja={Ub:"PAYMENT_AUTHORIZATION",Vb:"SHIPPING_ADDRESS",Wb:"SHIPPING_OPTION",fd:"UNKNOWN_INTENT"},Ka={Fc:"CANARY",Pc:"LOCAL",Xc:"PREPROD",Yc:"PRODUCTION",Zc:"SANDBOX",cd:"TEST",dd:"TIN"},La={Gc:"CARD",ed:"TOKENIZED_CARD",hd:"UPI"},Ma={Ic:"CRYPTOGRAM_3DS",Uc:"PAN_ONLY"},Na={Lc:"ESTIMATED",Nc:"FINAL",Rc:"NOT_CURRENTLY_KNOWN"},Oa={SHORT:"short",Qc:"long",Wc:"plain",Ec:"buy",Kc:"donate",Dc:"book",Hc:"checkout",Tc:"order",Vc:"pay",bd:"subscribe"},Pa={Jc:"default",Cc:"black",jd:"white"},Qa={ad:"static",
Mc:"fill"},Ra={buy:{en:152,ar:189,bg:163,ca:182,cs:192,da:154,de:183,el:178,es:183,et:147,fi:148,fr:183,hr:157,id:186,it:182,ja:148,ko:137,ms:186,nl:167,no:158,pl:182,pt:193,ru:206,sk:157,sl:211,sr:146,sv:154,th:146,tr:161,uk:207,zh:156},book:{ar:205,bg:233,ca:187,cs:213,da:162,de:176,el:180,en:161,es:188,et:186,fi:152,fr:197,hr:198,id:195,it:178,ja:150,ko:150,ms:211,nl:178,no:195,pl:221,pt:208,ru:265,sk:206,sl:266,sr:196,sv:161,th:150,tr:238,uk:248,zh:158},checkout:{ar:245,bg:200,ca:268,cs:175,da:162,
de:188,el:286,en:201,es:188,et:171,fi:158,fr:170,hr:166,id:226,it:256,ja:150,ko:150,ms:291,nl:178,no:230,pl:187,pt:271,ru:283,sk:176,sl:313,sr:153,sv:172,th:168,tr:195,uk:216,zh:158},donate:{ar:205,bg:205,ca:162,cs:212,da:171,de:186,el:163,en:180,es:165,et:150,fi:171,fr:225,hr:182,id:237,it:157,ja:167,ko:150,ms:201,nl:187,no:171,pl:252,pt:175,ru:342,sk:178,sl:242,sr:171,sv:181,th:158,tr:181,uk:256,zh:158},order:{ar:198,bg:195,ca:247,cs:198,da:166,de:190,el:208,en:170,es:157,et:150,fi:150,fr:226,hr:201,
id:195,it:171,ja:150,ko:150,ms:195,nl:192,no:171,pl:190,pt:177,ru:207,sk:190,sl:240,sr:165,sv:176,th:151,tr:188,uk:216,zh:158},pay:{ar:202,bg:200,ca:160,cs:183,da:162,de:188,el:185,en:150,es:162,et:150,fi:158,fr:170,hr:172,id:192,it:155,ja:150,ko:150,ms:192,nl:178,no:162,pl:187,pt:182,ru:213,sk:176,sl:225,sr:153,sv:172,th:168,tr:150,uk:216,zh:158},subscribe:{ar:221,bg:217,ca:226,cs:201,da:192,de:208,el:180,en:202,es:206,et:150,fi:150,fr:206,hr:178,id:260,it:190,ja:150,ko:150,ms:216,nl:208,no:192,
pl:221,pt:196,ru:243,sk:193,sl:333,sr:217,sv:228,th:213,tr:173,uk:305,zh:158}},Sa={buy:{en:168,ar:204,bg:215,ca:200,cs:164,da:170,de:185,el:175,es:208,et:158,fi:156,fr:209,hr:176,id:191,it:201,ja:183,ko:145,ms:191,nl:185,no:175,pl:164,pt:221,ru:211,sk:173,sl:234,sr:161,sv:179,th:148,tr:171,uk:207,zh:174},book:{en:178,ar:201,bg:243,ca:201,cs:200,da:179,de:190,el:194,es:202,et:186,fi:162,fr:210,hr:211,id:236,it:194,ja:183,ko:145,ms:223,nl:193,no:186,pl:199,pt:221,ru:271,sk:218,sl:273,sr:209,sv:177,
th:162,tr:242,uk:263,zh:174},checkout:{en:213,ar:233,bg:212,ca:275,cs:172,da:178,de:202,el:289,es:274,et:155,fi:156,fr:191,hr:182,id:237,it:264,ja:183,ko:145,ms:264,nl:193,no:178,pl:201,pt:196,ru:226,sk:190,sl:317,sr:176,sv:193,th:183,tr:202,uk:227,zh:174},donate:{en:194,ar:200,bg:217,ca:262,cs:174,da:187,de:199,el:179,es:180,et:176,fi:179,fr:198,hr:189,id:247,it:270,ja:183,ko:145,ms:214,nl:201,no:187,pl:289,pt:190,ru:263,sk:193,sl:251,sr:187,sv:195,th:179,tr:190,uk:264,zh:174},order:{en:185,ar:208,
bg:227,ca:271,cs:186,da:182,de:203,el:219,es:251,et:151,fi:191,fr:236,hr:198,id:208,it:186,ja:183,ko:145,ms:208,nl:206,no:186,pl:170,pt:192,ru:220,sk:204,sl:249,sr:187,sv:199,th:166,tr:196,uk:227,zh:174},pay:{en:166,ar:198,bg:212,ca:176,cs:172,da:178,de:202,el:197,es:178,et:170,fi:168,fr:185,hr:187,id:206,it:171,ja:167,ko:145,ms:206,nl:193,no:178,pl:201,pt:196,ru:257,sk:190,sl:235,sr:170,sv:187,th:183,tr:147,uk:232,zh:174},subscribe:{en:215,ar:222,bg:229,ca:228,cs:189,da:206,de:219,el:194,es:218,
et:151,fi:154,fr:218,hr:193,id:268,it:204,ja:215,ko:145,ms:228,nl:220,no:206,pl:216,pt:209,ru:252,sk:206,sl:334,sr:206,sv:238,th:223,tr:183,uk:308,zh:174}},C={buy:{ar:"\u0627\u0644\u0634\u0631\u0627\u0621 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 GPay",bg:"\u041a\u0443\u043f\u0443\u0432\u0430\u043d\u0435 \u0447\u0440\u0435\u0437 GPay",ca:"Compra amb GPay",cs:"Koupit s GPay",da:"K\u00f8b med GPay",de:"Mit GPay kaufen",el:"\u0391\u03b3\u03bf\u03c1\u03ac \u03bc\u03b5 GPay",en:"Buy with GPay",
es:"Comprar con GPay",et:"Osta GPayga",fi:"Osta GPaylla",fr:"Acheter avec GPay",hr:"Kupnja uz GPay",id:"Beli dengan GPay",it:"Acquista con GPay",ja:"GPay \u3067\u8cfc\u5165\u3059\u308b",ko:"GPay\ub85c \uad6c\ub9e4",ms:"Beli dengan GPay",nl:"Kopen met GPay",no:"Kj\u00f8p med GPay",pl:"Kup to z GPay",pt:"Comprar com o GPay",ru:"\u041a\u0443\u043f\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 GPay",sk:"K\u00fapi\u0165 cez GPay",sl:"Nakup s storitvijo GPay",sr:"\u041a\u0443\u043f\u0438 \u0443\u0437 GPay",
sv:"K\u00f6pa med GPay",th:"\u0e0b\u0e37\u0e49\u0e2d\u0e14\u0e49\u0e27\u0e22 GPay",tr:"GPayile sat\u0131n al",uk:"\u041a\u0443\u043f\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 GPay",zh:"\u901a\u8fc7 GPay \u8d2d\u4e70"},book:{ar:"\u0627\u0644\u062d\u062c\u0632 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 GPay",bg:"\u0420\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u0430\u043d\u0435 \u0447\u0440\u0435\u0437 GPay",ca:"Reserva amb GPay",cs:"Rezervovat s GPay",da:"Book med GPay",de:"Mit GPay buchen",
el:"\u039a\u03c1\u03ac\u03c4\u03b7\u03c3\u03b7 \u03bc\u03b5 GPay",en:"Book with GPay",es:"Reservar con GPay",et:"Broneeri GPayga",fi:"Varaa GPaylla",fr:"R\u00e9server avec GPay",hr:"Rezervacija uz GPay",id:"Reservasi dengan GPay",it:"Prenota con GPay",ja:"GPay \u3067\u4e88\u7d04\u3059\u308b",ko:"GPay\ub85c \uc608\uc57d",ms:"Tempah dengan GPay",nl:"Boeken met GPay",no:"Bestill med GPay",pl:"Zarezerwuj z GPay",pt:"Reservar com o GPay",ru:"\u0417\u0430\u0431\u0440\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 GPay",
sk:"Rezervova\u0165 cez GPay",sl:"Rezervacija s storitvijo GPay",sr:"\u0420\u0435\u0437\u0435\u0440\u0432\u0438\u0448\u0438 \u0443\u0437 GPay",sv:"Boka med GPay",th:"\u0e08\u0e2d\u0e07\u0e14\u0e49\u0e27\u0e22 GPay",tr:"GPayile rezervasyon yap",uk:"\u0417\u0430\u0431\u0440\u043e\u043d\u044e\u0432\u0430\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 GPay",zh:"\u901a\u8fc7 GPay \u9884\u8ba2"},checkout:{ar:"\u0625\u062a\u0645\u0627\u0645 \u0627\u0644\u062f\u0641\u0639 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 GPay",
bg:"\u041f\u043b\u0430\u0449\u0430\u043d\u0435 \u0447\u0440\u0435\u0437 GPay",ca:"Tramita la compra amb GPay",cs:"Zaplatit s GPay",da:"Betal med GPay",de:"Mit GPay bezahlen",el:"\u039f\u03bb\u03bf\u03ba\u03bb\u03ae\u03c1\u03c9\u03c3\u03b7 \u03b1\u03b3\u03bf\u03c1\u03ac\u03c2 \u03bc\u03b5 GPay",en:"Checkout with GPay",es:"Confirmar compra con GPay",et:"Tasu GPayga",fi:"Osta GPaylla",fr:"R\u00e9gler avec GPay",hr:"Naplata uz GPay",id:"Checkout dengan GPay",it:"Vai al pagamento con GPay",ja:"GPay \u3067\u6c7a\u6e08\u3059\u308b",
ko:"GPay\ub85c \uacb0\uc81c",ms:"Semak keluar dengan GPay",nl:"Betalen met GPay",no:"Betal med GPay",pl:"Zap\u0142a\u0107 przez GPay",pt:"Pagar com o GPay",ru:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 GPay",sk:"Zaplati\u0165 cez GPay",sl:"Zaklju\u010dek nakupa s storitvijo GPay",sr:"\u041f\u043b\u0430\u0442\u0438 \u0443\u0437 GPay",sv:"Handla med GPay",th:"\u0e0a\u0e33\u0e23\u0e30\u0e40\u0e07\u0e34\u0e19\u0e14\u0e49\u0e27\u0e22 GPay",tr:"GPayile \u00f6deme yap",
uk:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 GPay",zh:"\u901a\u8fc7 GPay \u7ed3\u8d26"},donate:{ar:"\u0627\u0644\u062a\u0628\u0631\u0651\u0639 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 GPay",bg:"\u0414\u0430\u0440\u044f\u0432\u0430\u043d\u0435 \u0447\u0440\u0435\u0437 GPay",ca:"Fes una donaci\u00f3 amb GPay",cs:"Darovat s GPay",da:"Doner med GPay",de:"Mit GPay spenden",el:"\u0394\u03c9\u03c1\u03b5\u03ac \u03bc\u03b5 GPay",en:"Donate with GPay",es:"Donar con GPay",
et:"Anneta GPayga",fi:"Lahjoita GPaylla",fr:"Donner avec GPay",hr:"Donacija uz GPay",id:"Beri donasi dengan GPay",it:"Fai una donazione con GPay",ja:"GPay \u3067\u5bc4\u4ed8\u3059\u308b",ko:"GPay\ub85c \uae30\ubd80",ms:"Derma dengan GPay",nl:"Doneren met GPay",no:"Don\u00e9r med GPay",pl:"Przeka\u017c darowizn\u0119 przez GPay",pt:"Doar com o GPay",ru:"\u041f\u043e\u0436\u0435\u0440\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 GPay",sk:"Darova\u0165 cez GPay",sl:"Donacija s storitvijo GPay",
sr:"\u0414\u043e\u043d\u0438\u0440\u0430\u0458 \u0443\u0437 GPay",sv:"Donera med GPay",th:"\u0e1a\u0e23\u0e34\u0e08\u0e32\u0e04\u0e14\u0e49\u0e27\u0e22 GPay",tr:"GPayile ba\u011f\u0131\u015f yap",uk:"\u041f\u043e\u0436\u0435\u0440\u0442\u0432\u0443\u0432\u0430\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 GPay",zh:"\u901a\u8fc7 GPay \u6350\u6b3e"},order:{ar:"\u0627\u0644\u0637\u0644\u0628 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 GPay",bg:"\u041f\u043e\u0440\u044a\u0447\u0432\u0430\u043d\u0435 \u0447\u0440\u0435\u0437 GPay",
ca:"Fes una comanda amb GPay",cs:"Objednat s GPay",da:"Bestil med GPay",de:"Mit GPay bestellen",el:"\u03a0\u03b1\u03c1\u03b1\u03b3\u03b3\u03b5\u03bb\u03af\u03b1 \u03bc\u03b5 GPay",en:"Order with GPay",es:"Realizar pedido con GPay",et:"Telli GPayga",fi:"Tee tilaus GPaylla",fr:"Commander avec GPay",hr:"Narud\u017eba uz GPay",id:"Pesan dengan GPay",it:"Ordina con GPay",ja:"GPay \u3067\u6ce8\u6587\u3059\u308b",ko:"GPay\ub85c \uc8fc\ubb38",ms:"Pesan dengan GPay",nl:"Bestellen met GPay",no:"Bestill med GPay",
pl:"Zam\u00f3w z GPay",pt:"Pedir com o GPay",ru:"\u0417\u0430\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 GPay",sk:"Objedna\u0165 cez GPay",sl:"Naro\u010dilo s storitvijo GPay",sr:"\u041f\u043e\u0440\u0443\u0447\u0438 \u0443\u0437 GPay ",sv:"Best\u00e4lla med GPay",th:"\u0e2a\u0e31\u0e48\u0e07\u0e0b\u0e37\u0e49\u0e2d\u0e14\u0e49\u0e27\u0e22 GPay",tr:"GPayile sipari\u015f ver",uk:"\u0417\u0430\u043c\u043e\u0432\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 GPay",zh:"\u901a\u8fc7 GPay \u8ba2\u8d2d"},
pay:{ar:"\u0627\u0644\u062f\u0641\u0639 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 GPay",bg:"\u041f\u043b\u0430\u0449\u0430\u043d\u0435 \u0447\u0440\u0435\u0437 GPay",ca:"Paga amb GPay",cs:"Zaplatit s GPay",da:"Betal med GPay",de:"Mit GPay bezahlen",el:"\u03a0\u03bb\u03b7\u03c1\u03c9\u03bc\u03ae \u03bc\u03b5 GPay",en:"Pay with GPay",es:"Pagar con GPay",et:"Maksa GPayga",fi:"Maksa GPaylla",fr:"Payer avec GPay",hr:"Pla\u0107anje uz GPay",id:"Bayar dengan GPay",it:"Paga con GPay",ja:"GPay \u3067\u652f\u6255\u3046",
ko:"GPay\ub85c \uacb0\uc81c",ms:"Bayar dengan GPay",nl:"Betalen met GPay",no:"Betal med GPay",pl:"Zap\u0142a\u0107 przez GPay",pt:"Pagar com o GPay",ru:"\u0420\u0430\u0441\u043f\u043b\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 GPay",sk:"Zaplati\u0165 cez GPay",sl:"Pla\u010dilo s storitvijo GPay",sr:"\u041f\u043b\u0430\u0442\u0438 \u0443\u0437 GPay",sv:"Betala med GPay",th:"\u0e0a\u0e33\u0e23\u0e30\u0e40\u0e07\u0e34\u0e19\u0e14\u0e49\u0e27\u0e22 GPay",tr:"GPayile \u00f6de",
uk:"\u0421\u043f\u043b\u0430\u0442\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 GPay",zh:"\u901a\u8fc7 GPay \u4ed8\u6b3e"},subscribe:{ar:"\u0627\u0644\u0627\u0634\u062a\u0631\u0627\u0643 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 GPay",bg:"\u0410\u0431\u043e\u043d\u0438\u0440\u0430\u043d\u0435 \u0447\u0440\u0435\u0437 GPay",ca:"Subscriu-te amb GPay",cs:"P\u0159edplatit s GPay",da:"Abonner med GPay",de:"Mit GPay abonnieren",el:"\u0395\u03b3\u03b3\u03c1\u03b1\u03c6\u03ae \u03bc\u03b5 GPay",
en:"Subscribe with GPay",es:"Suscribirse con GPay",et:"Telli GPayga",fi:"Tilaa GPaylla",fr:"S'abonner avecGPay",hr:"Pretplata uz GPay",id:"Berlangganan dengan GPay",it:"Abbonati con GPay",ja:"GPay \u3067\u5b9a\u671f\u8cfc\u5165\u3059\u308b",ko:"GPay\ub85c \uad6c\ub3c5",ms:"Langgan dengan GPay",nl:"Abonneren met GPay",no:"Abonner med GPay",pl:"Zasubskrybuj z GPay",pt:"Assinar com o GPay",ru:"\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 GPay",sk:"Odobera\u0165 cez GPay",
sl:"Sklenitev naro\u010dnine s storitvijo GPay",sr:"\u041f\u0440\u0435\u0442\u043f\u043b\u0430\u0442\u0430 \u0443\u0437 GPay",sv:"Prenumerera med GPay",th:"\u0e2a\u0e21\u0e31\u0e04\u0e23\u0e43\u0e0a\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e14\u0e49\u0e27\u0e22 GPay",tr:"GPayile abone ol",uk:"\u041e\u0444\u043e\u0440\u043c\u0438\u0442\u0438 \u043f\u0456\u0434\u043f\u0438\u0441\u043a\u0443 \u0447\u0435\u0440\u0435\u0437 GPay",zh:"\u901a\u8fc7 GPay \u8ba2\u9605"}},Ta=B('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" direction="ltr" height="36px" width="130px"><style>@import url(//fonts.googleapis.com/css?family=Google+Sans:500)</style><line x1="2" y1="10.5" x2="2" y2="29.5" style="stroke: #d9d9d9; stroke-width:2"></line><image x="11" y="6" width="37.5" height="29" preserveAspectRatio="none" xlink:href="https://www.gstatic.com/images/icons/material/system/1x/payment_grey600_36dp.png"></image><text x="52" y="25.5" class="small" style="font: 15px \'Google Sans\', sans-serif; fill: #5F6368">\u2022\u2022\u2022\u2022\u2022\u2022</text></svg>'),
Ua=B('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" direction="ltr" height="36px" width="130px"><style>@import url(//fonts.googleapis.com/css?family=Google+Sans:500)</style><line x1="2" y1="10.5" x2="2" y2="29.5" style="stroke: #5F6368; stroke-width:2"></line><image x="11" y="6" width="37.5" height="29" preserveAspectRatio="none" xlink:href="https://www.gstatic.com/images/icons/material/system/1x/payment_white_36dp.png"></image><text x="52" y="25.5" class="small" style="font: 15px \'Google Sans\', sans-serif; fill: #FFFFFF">\u2022\u2022\u2022\u2022\u2022\u2022</text></svg>'),
Va=B('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" direction="ltr" height="36px" width="130px"><style>@import url(//fonts.googleapis.com/css?family=Google+Sans:500)</style><line x1="2" y1="12.5" x2="2" y2="31.5" style="stroke: #5F6368; stroke-width:2"></line><image x="11" y="7" width="36.5" height="29" preserveAspectRatio="none" xlink:href="https://www.gstatic.com/images/icons/material/system/1x/payment_white_36dp.png"></image><text x="52" y="26.5" class="small" style="font: 15px \'Google Sans\', sans-serif; fill: #FFFFFF">\u2022\u2022\u2022\u2022\u2022\u2022</text></svg>'),
Wa=B('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" direction="ltr" viewBox="0 0 130 36"><style>@import url(//fonts.googleapis.com/css?family=Google+Sans:500)</style><line x1="8" y1="7" x2="8" y2="26" style="stroke: #d9d9d9; stroke-width:2"></line><image x="16" y="2.5" width="37.5" height="29" preserveAspectRatio="none" xlink:href="https://www.gstatic.com/images/icons/material/system/1x/payment_grey600_36dp.png"></image><text x="57" y="22" class="small" style="font: 15px \'Google Sans\', sans-serif; fill: #5f6368">\u2022\u2022\u2022\u2022\u2022\u2022</text></svg>'),
Xa=B('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" direction="ltr" viewBox="0 0 130 36"><style>@import url(//fonts.googleapis.com/css?family=Google+Sans:500)</style><line x1="8" y1="7" x2="8" y2="26" style="stroke: #5f6368; stroke-width:2"></line><image x="16" y="2.5" width="37.5" height="29" preserveAspectRatio="none" xlink:href="https://www.gstatic.com/images/icons/material/system/1x/payment_white_36dp.png"></image><text x="57" y="22" class="small" style="font: 15px \'Google Sans\', sans-serif; fill: #fff">\u2022\u2022\u2022\u2022\u2022\u2022</text></svg>'),
Ya=["ELECTRON","MAESTRO","ELO_DEBIT"];function D(a,b){b=void 0===b?document:b;var c=document.createElement("style");c.type="text/css";c.textContent=a;if(b instanceof HTMLDocument)document.head.appendChild(c);else if(b instanceof ShadowRoot)b.appendChild(c);else throw Error("Parameter 'buttonRootNode' should be either document or a shadowroot.");return c};var Za=function(){this.Bc=F.contentWindow};Za.prototype.postMessage=function(a,b){this.Bc.postMessage(a,b)};var $a,ab=function(){if(void 0===$a){var a=null,b=y.trustedTypes;if(b&&b.createPolicy)try{a=b.createPolicy("goog#html",{createHTML:za,createScript:za,createScriptURL:za})}catch(c){y.console&&y.console.error(c.message)}$a=a}return $a};var cb=function(a,b){if(b!==bb)throw Error("TrustedResourceUrl is not meant to be built directly");this.Lb=a};cb.prototype.toString=function(){return this.Lb+""};
var db=function(a){if(a instanceof cb&&a.constructor===cb)return a.Lb;Da("expected object of type TrustedResourceUrl, got '%s' of type %s",a,sa(a));return"type_error:TrustedResourceUrl"},hb=function(a,b){var c=A(a);if(!eb.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(fb,function(d,e){if(!Object.prototype.hasOwnProperty.call(b,e))throw Error('Found marker, "'+e+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));d=b[e];return d instanceof
Ia?A(d):encodeURIComponent(String(d))});return gb(a)},fb=/%{(\w+)}/g,eb=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),ib=/^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/,bb={},gb=function(a){var b=ab();a=b?b.createScriptURL(a):a;return new cb(a,bb)},jb=function(a,b,c){if(null==c)return b;if("string"===typeof c)return c?a+encodeURIComponent(c):"";for(var d in c)if(Object.prototype.hasOwnProperty.call(c,d)){var e=c[d];e=Array.isArray(e)?e:[e];for(var g=0;g<e.length;g++){var f=
e[g];null!=f&&(b||(b=a),b+=(b.length>a.length?"&":"")+encodeURIComponent(d)+"="+encodeURIComponent(String(f)))}}return b};var kb=Array.prototype.indexOf?function(a,b){z(null!=a.length);return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};function lb(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1}var mb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function nb(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var g=0;g<mb.length;g++)c=mb[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var G=function(a,b){if(b!==ob)throw Error("SafeUrl is not meant to be built directly");this.Kb=a};G.prototype.toString=function(){return this.Kb.toString()};var pb=function(a){if(a instanceof G&&a.constructor===G)return a.Kb;Da("expected object of type SafeUrl, got '"+a+"' of type "+sa(a));return"type_error:SafeUrl"},qb;try{new URL("s://g"),qb=!0}catch(a){qb=!1}var rb=qb,ob={};new G("about:invalid#zClosurez",ob);new G("about:blank",ob);var zb=function(a){if(!sb.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(tb,"&"));-1!=a.indexOf("<")&&(a=a.replace(ub,"<"));-1!=a.indexOf(">")&&(a=a.replace(vb,">"));-1!=a.indexOf('"')&&(a=a.replace(wb,"""));-1!=a.indexOf("'")&&(a=a.replace(xb,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(yb,"�"));return a},tb=/&/g,ub=/</g,vb=/>/g,wb=/"/g,xb=/'/g,yb=/\x00/g,sb=/[\x00&<>"']/;var Ab={},Bb=function(){if(Ab!==Ab)throw Error("SafeStyle is not meant to be built directly");this.pc=""};Bb.prototype.toString=function(){return this.pc.toString()};new Bb;var Cb={},Db=function(){if(Cb!==Cb)throw Error("SafeStyleSheet is not meant to be built directly");this.oc=""};Db.prototype.toString=function(){return this.oc.toString()};new Db;var Eb,Fb;a:{for(var Gb=["CLOSURE_FLAGS"],Hb=y,Ib=0;Ib<Gb.length;Ib++)if(Hb=Hb[Gb[Ib]],null==Hb){Fb=null;break a}Fb=Hb}var Jb=Fb&&Fb[610401301];Eb=null!=Jb?Jb:!1;function Kb(){var a=y.navigator;return a&&(a=a.userAgent)?a:""}var Lb,Mb=y.navigator;Lb=Mb?Mb.userAgentData||null:null;function I(a){return-1!=Kb().indexOf(a)};var Nb={},J=function(a,b){if(b!==Nb)throw Error("SafeHtml is not meant to be built directly");this.Jb=a};J.prototype.toString=function(){return this.Jb.toString()};
var Ob=function(a){if(a instanceof J&&a.constructor===J)return a.Jb;Da("expected object of type SafeHtml, got '"+a+"' of type "+sa(a));return"type_error:SafeHtml"},Rb=function(a){var b=Pb;b=b instanceof J?b:Qb(zb(String(b)));var c=[],d=function(e){Array.isArray(e)?e.forEach(d):(e=e instanceof J?e:Qb(zb(String(e))),c.push(Ob(e).toString()))};a.forEach(d);return Qb(c.join(Ob(b).toString()))},Sb=function(a){return Rb(Array.prototype.slice.call(arguments))},Qb=function(a){var b=ab();a=b?b.createHTML(a):
a;return new J(a,Nb)},Pb=new J(y.trustedTypes&&y.trustedTypes.emptyHTML||"",Nb),Tb=Qb("<br>");/*
SPDX-License-Identifier: Apache-2.0
*/
new G("about:blank",ob);new G("about:invalid#zClosurez",ob);var Ub=[],Vb=function(a){console.warn("A URL with content '"+a+"' was sanitized away.")};-1===Ub.indexOf(Vb)&&Ub.push(Vb);function Wb(a,b){a.src=db(b).toString()};var Xb=Object.freeze||function(a){return a};var Yb={gd:0,Oc:1,Ub:2,Vb:3,Wb:4,Sc:5},F=null,Zb=null,K=null,$b=null,ac=Date.now(),L=null,bc=!1,cc=[],ec=function(){dc({},11,["canMakePaymentForPaymentHandlerResponse"],function(){})},dc=function(a,b,c,d){function e(g){var f;a:{for(f=0;f<c.length;f++)if(g.data[c[f]]){f=!0;break a}f=!1}f&&(d(g),window.removeEventListener("message",e))}window.addEventListener("message",e);a=t(Object,"assign").call(Object,{eventType:b},a);M(a)},M=function(a){if(bc&&Zb){a=t(Object,"assign").call(Object,{buyFlowActivityMode:L,
googleTransactionId:$b,originTimeMs:ac},a);if("CANARY"==K)var b="https://ibfe-canary.corp.google.com";else b="https://pay","SANDBOX"==K?b+=".sandbox":"PREPROD"==K&&(b+="-preprod.sandbox"),b+=".google.com";Zb.postMessage(a,b)}else cc.push(a)},fc=function(){bc=!0;cc.forEach(function(a){M(a)});cc.length=0},gc=function(a){var b=0,c=0;switch(a.buttonType){case "short":b=1;break;case "long":b=2;break;case "plain":b=3;break;case "buy":b=4;break;case "donate":b=5;break;case "book":b=6;break;case "checkout":b=
7;break;case "order":b=8;break;case "pay":b=9;break;case "subscribe":b=10}switch(a.buttonSizeMode){case "static":c=1;break;case "fill":c=2}var d=void 0===a.buttonRootNode?0:3;a.buttonRootNode instanceof ShadowRoot?d=1:a.buttonRootNode instanceof HTMLDocument&&(d=2);var e=null;void 0!=a.buttonRadius&&null!=a.buttonRadius&&(e=Number(a.buttonRadius));return{buttonType:b,buttonSizeMode:c,buttonRootNode:d,buttonRadius:e}};
(function(){if(!F){var a=window.gpayInitParams||{};K=a.environment||"PRODUCTION";F=document.createElement("iframe");Wb(F,hb(B(("CANARY"==K?"https://ibfe-canary.corp":"https://pay")+("PREPROD"==K?"-preprod.sandbox":"SANDBOX"==K?".sandbox":"")+".google.com/gp/p/ui/payframe?origin=%{windowOrigin}&mid=%{merchantId}"),{windowOrigin:window.location.origin,merchantId:a.merchantInfo&&a.merchantInfo.merchantId||""}));M({eventType:15,clientLatencyStartMs:Date.now()});ec();F.height="0";F.width="0";F.style.display=
"none";F.style.visibility="hidden";F.setAttribute("allowpaymentrequest",!0);F.onload=function(){Zb=new Za;M({eventType:17,clientLatencyStartMs:Date.now()});M({eventType:16,clientLatencyStartMs:Date.now()});fc()};document.body?document.body.appendChild(F):document.addEventListener("DOMContentLoaded",function(){document.body.appendChild(F)})}})();/*
Math.uuid.js (v1.4)
http://www.broofa.com
mailto:robert@broofa.com
Copyright (c) 2010 Robert Kieffer
Dual licensed under the MIT and GPL licenses.
*/
var hc="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");function ic(a){for(var b=Array(36),c=0,d,e=0;36>e;e++)8==e||13==e||18==e||23==e?b[e]="-":14==e?b[e]="4":(2>=c&&(c=33554432+16777216*Math.random()|0),d=c&15,c>>=4,b[e]=hc[19==e?d&3|8:d]);return b.join("")+"."+a}function jc(a){for(var b=1;b<arguments.length;b++)a=kc(a,arguments[b]);return a}
function kc(a,b){if("object"!==typeof b||null===b)return a;for(var c in b)b.hasOwnProperty(c)&&void 0!==b[c]&&(null==b[c]?a[c]=null:null==a[c]||"object"!==typeof a[c]||"object"!==typeof b[c]||Array.isArray(b[c])||Array.isArray(a[c])?a[c]=b[c]:kc(a[c],b[c]));return a}function lc(a){var b=0,c;if(0==a.length)return b;for(c=0;c<a.length;c++){var d=a.charCodeAt(c);b=(b<<5)-b+d;b&=b}return b}function mc(a){console.error("DEVELOPER_ERROR in "+a.aa+": "+a.errorMessage)};var nc=function(a){nc[" "](a);return a};nc[" "]=function(){};var oc=Eb&&Lb&&0<Lb.brands.length?!1:I("Trident")||I("MSIE"),pc=I("Gecko")&&!(-1!=Kb().toLowerCase().indexOf("webkit")&&!I("Edge"))&&!(I("Trident")||I("MSIE"))&&!I("Edge"),qc=-1!=Kb().toLowerCase().indexOf("webkit")&&!I("Edge");var rc={MATH:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},sc=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if("undefined"===typeof document)return!1;var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);if(!a.firstChild)return!1;b=a.firstChild.firstChild;a.innerHTML=Ob(Pb);return!b.parentElement}),tc=function(a,b){if(a.tagName&&rc[a.tagName.toUpperCase()])throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of "+
a.tagName+".");if(sc())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=Ob(b)},uc=function(a,b,c,d){if(!(a instanceof G||a instanceof G)){a=String(a);b:{var e=a;if(rb){try{var g=new URL(e)}catch(f){e="https:";break b}e=g.protocol}else c:{g=document.createElement("a");try{g.href=e}catch(f){e=void 0;break c}e=g.protocol;e=":"===e||""===e?"https:":e}}z("javascript:"!==e,"%s is a javascript: URL",a)||(a="about:invalid#zClosurez");a=new G(a,ob)}b=b||y;c=c instanceof Ia?A(c):c||"";return void 0!==
d?b.open(pb(a),c,d):b.open(pb(a),c)};var vc=function(){return"transition".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()})},wc=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};var xc=function(a){var b=Array.prototype.map.call(arguments,A).join("");b=Qb(b);var c=document;var d="DIV";"application/xhtml+xml"===c.contentType&&(d=d.toLowerCase());d=c.createElement(d);oc?(tc(d,Sb(Tb,b)),d.removeChild(z(d.firstChild))):tc(d,b);if(1==d.childNodes.length)b=d.removeChild(z(d.firstChild));else for(b=c.createDocumentFragment();d.firstChild;)b.appendChild(d.firstChild);return b};var yc=function(a){if(a.ea&&"function"==typeof a.ea)return a.ea();if("undefined"!==typeof r.Map&&a instanceof r.Map||"undefined"!==typeof Set&&a instanceof Set)return t(Array,"from").call(Array,t(a,"values").call(a));if("string"===typeof a)return a.split("");if(ta(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}b=[];c=0;for(d in a)b[c++]=a[d];return b},zc=function(a){if(a.bb&&"function"==typeof a.bb)return a.bb();if(!a.ea||"function"!=typeof a.ea){if("undefined"!==typeof r.Map&&a instanceof
r.Map)return t(Array,"from").call(Array,t(a,"keys").call(a));if(!("undefined"!==typeof Set&&a instanceof Set)){if(ta(a)||"string"===typeof a){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}b=[];c=0;for(var d in a)b[c++]=d;return b}}},Ac=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(ta(a)||"string"===typeof a)Array.prototype.forEach.call(a,b,c);else for(var d=zc(a),e=yc(a),g=e.length,f=0;f<g;f++)b.call(c,e[f],d&&d[f],a)};var Bc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Cc=function(a){var b=a.match(Bc);a=b[1];var c=b[3];b=b[4];var d="";a&&(d+=a+":");c&&(d=d+"//"+c,b&&(d+=":"+b));return d},Dc=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var g=a[c].substring(0,d);e=a[c].substring(d+1)}else g=a[c];b(g,e?decodeURIComponent(e.replace(/\+/g," ")):"")}}};var N=function(a){this.O=this.ha=this.X="";this.j=null;this.L=this.M="";this.F=this.ic=!1;if(a instanceof N){this.F=a.F;Ec(this,a.X);var b=a.ha;O(this);this.ha=b;b=a.O;O(this);this.O=b;Fc(this,a.j);b=a.M;O(this);this.M=b;Gc(this,a.H.clone());a=a.L;O(this);this.L=a}else a&&(b=String(a).match(Bc))?(this.F=!1,Ec(this,b[1]||"",!0),a=b[2]||"",O(this),this.ha=Hc(a),a=b[3]||"",O(this),this.O=Hc(a,!0),Fc(this,b[4]),a=b[5]||"",O(this),this.M=Hc(a,!0),Gc(this,b[6]||"",!0),a=b[7]||"",O(this),this.L=Hc(a)):(this.F=
!1,this.H=new P(null,this.F))};N.prototype.toString=function(){var a=[],b=this.X;b&&a.push(Ic(b,Jc,!0),":");var c=this.O;if(c||"file"==b)a.push("//"),(b=this.ha)&&a.push(Ic(b,Jc,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.j,null!=c&&a.push(":",String(c));if(c=this.M)this.O&&"/"!=c.charAt(0)&&a.push("/"),a.push(Ic(c,"/"==c.charAt(0)?Kc:Lc,!0));(c=this.H.toString())&&a.push("?",c);(c=this.L)&&a.push("#",Ic(c,Mc));return a.join("")};
N.prototype.resolve=function(a){var b=this.clone(),c=!!a.X;c?Ec(b,a.X):c=!!a.ha;if(c){var d=a.ha;O(b);b.ha=d}else c=!!a.O;c?(d=a.O,O(b),b.O=d):c=null!=a.j;d=a.M;if(c)Fc(b,a.j);else if(c=!!a.M){if("/"!=d.charAt(0))if(this.O&&!this.M)d="/"+d;else{var e=b.M.lastIndexOf("/");-1!=e&&(d=b.M.slice(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){d=0==e.lastIndexOf("/",0);e=e.split("/");for(var g=[],f=0;f<e.length;){var h=e[f++];"."==h?d&&f==e.length&&g.push(""):".."==
h?((1<g.length||1==g.length&&""!=g[0])&&g.pop(),d&&f==e.length&&g.push("")):(g.push(h),d=!0)}d=g.join("/")}else d=e}c?(O(b),b.M=d):c=""!==a.H.toString();c?Gc(b,a.H.clone()):c=!!a.L;c&&(a=a.L,O(b),b.L=a);return b};N.prototype.clone=function(){return new N(this)};
var Ec=function(a,b,c){O(a);a.X=c?Hc(b,!0):b;a.X&&(a.X=a.X.replace(/:$/,""))},Fc=function(a,b){O(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.j=b}else a.j=null},Gc=function(a,b,c){O(a);b instanceof P?(a.H=b,a.H.ob(a.F)):(c||(b=Ic(b,Nc)),a.H=new P(b,a.F))};N.prototype.getQuery=function(){return this.H.toString()};var Oc=function(a,b,c){O(a);a.H.set(b,c)};N.prototype.removeParameter=function(a){O(this);this.H.remove(a);return this};
var O=function(a){if(a.ic)throw Error("Tried to modify a read-only Uri");};N.prototype.ob=function(a){this.F=a;this.H&&this.H.ob(a)};
var Hc=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},Ic=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Pc),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Pc=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Jc=/[#\/\?@]/g,Lc=/[#\?:]/g,Kc=/[#\?]/g,Nc=/[#\?@]/g,Mc=/#/g,P=function(a,b){this.A=this.h=null;this.D=a||null;this.F=!!b},Q=function(a){a.h||(a.h=new r.Map,a.A=0,a.D&&Dc(a.D,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g,
" ")),c)}))};P.prototype.add=function(a,b){Q(this);this.D=null;a=Qc(this,a);var c=this.h.get(a);c||this.h.set(a,c=[]);c.push(b);this.A=Ea(this.A)+1;return this};P.prototype.remove=function(a){Q(this);a=Qc(this,a);return this.h.has(a)?(this.D=null,this.A=Ea(this.A)-this.h.get(a).length,this.h.delete(a)):!1};P.prototype.clear=function(){this.h=this.D=null;this.A=0};var Rc=function(a,b){Q(a);b=Qc(a,b);return a.h.has(b)};m=P.prototype;
m.forEach=function(a,b){Q(this);this.h.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};m.bb=function(){Q(this);for(var a=t(Array,"from").call(Array,t(this.h,"values").call(this.h)),b=t(Array,"from").call(Array,t(this.h,"keys").call(this.h)),c=[],d=0;d<b.length;d++)for(var e=a[d],g=0;g<e.length;g++)c.push(b[d]);return c};
m.ea=function(a){Q(this);var b=[];if("string"===typeof a)Rc(this,a)&&(b=b.concat(this.h.get(Qc(this,a))));else{a=t(Array,"from").call(Array,t(this.h,"values").call(this.h));for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};m.set=function(a,b){Q(this);this.D=null;a=Qc(this,a);Rc(this,a)&&(this.A=Ea(this.A)-this.h.get(a).length);this.h.set(a,[b]);this.A=Ea(this.A)+1;return this};m.get=function(a,b){if(!a)return b;a=this.ea(a);return 0<a.length?String(a[0]):b};
m.toString=function(){if(this.D)return this.D;if(!this.h)return"";for(var a=[],b=t(Array,"from").call(Array,t(this.h,"keys").call(this.h)),c=0;c<b.length;c++){var d=b[c],e=encodeURIComponent(String(d));d=this.ea(d);for(var g=0;g<d.length;g++){var f=e;""!==d[g]&&(f+="="+encodeURIComponent(String(d[g])));a.push(f)}}return this.D=a.join("&")};m.clone=function(){var a=new P;a.D=this.D;this.h&&(a.h=new r.Map(this.h),a.A=this.A);return a};var Qc=function(a,b){b=String(b);a.F&&(b=b.toLowerCase());return b};
P.prototype.ob=function(a){a&&!this.F&&(Q(this),this.D=null,this.h.forEach(function(b,c){var d=c.toLowerCase();if(c!=d&&(this.remove(c),this.remove(d),0<b.length)){this.D=null;c=this.h;var e=c.set;d=Qc(this,d);var g=b.length;if(0<g){for(var f=Array(g),h=0;h<g;h++)f[h]=b[h];g=f}else g=[];e.call(c,d,g);this.A=Ea(this.A)+b.length}},this));this.F=a};P.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)Ac(arguments[b],function(c,d){this.add(d,c)},this)};var Sc=[],Tc=[],Uc=null,Vc=[],Wc=window.location.hostname,Xc=window.whitelistedDomainsHashedValueListForGpayButtonWithCardInfo||[],Yc=window.denylistedDomainsHashedValueListForGpayButtonWithCardInfo||[],Zc=window.denylistedMerchentIdsHashedValueListForGpayButtonWithCardInfo||[],$c=window.denylistedMerchantIdsHashedValueListForGpayButtonVariant||[],ad=window.dynamicGpayButtonVariant||"";
function bd(a,b,c){a=void 0===a?{}:a;(n=t(Object,"values").call(Object,Oa),t(n,"includes")).call(n,a.buttonType)||(a.buttonType="long");(n=t(Object,"values").call(Object,Qa),t(n,"includes")).call(n,a.buttonSizeMode)||(a.buttonSizeMode="static");if(!(n=t(Object,"values").call(Object,Pa),t(n,"includes")).call(n,a.buttonColor)||google.payments.api.EnableGpayNewButtonAsset)a.buttonColor="black";var d=a,e=b&&t(Zc,"includes").call(Zc,lc(b)),g=t(Xc,"includes").call(Xc,lc(Wc)),f=t(Yc,"includes").call(Yc,
lc(Wc));if((google.payments.api.EnableDynamicGpayButtonForTesting||google.payments.api.EnableDynamicGpayButton||g)&&!e&&!f&&("long"===d.buttonType||"buy"===d.buttonType||google.payments.api.EnableDynamicGpayButtonForPayButton&&"pay"===d.buttonType||google.payments.api.EnableDynamicGpayButtonForCheckoutButton&&"checkout"===d.buttonType||google.payments.api.EnableDynamicGpayButtonForPlainButton&&"plain"===d.buttonType||google.payments.api.EnableDynamicGpayButtonForShortButton&&"short"===d.buttonType||
google.payments.api.EnableDynamicGpayButtonForSubscribeButton&&"subscribe"===d.buttonType)&&(null==c||c(13),a.buttonVariant=cd(b||"",a.allowedPaymentMethods||[],dd(a.buttonLocale)||""),!google.payments.api.ForceDisableDynamicGpayButton))return ed(a);f=a;b=dd(f.buttonLocale,!0);c=f.buttonRootNode||document;t(Sc,"includes").call(Sc,c)||(D("\n.gpay-button {\n background-origin: content-box;\n background-position: center center;\n background-repeat: no-repeat;\n background-size: contain;\n border: 0px;\n border-radius: 4px;\n box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 1px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;\n cursor: pointer;\n height: 40px;\n min-height: 40px;\n padding: 12px 24px 10px;\n width: 240px;\n}\n\n.gpay-button.black {\n background-color: #000;\n box-shadow: none;\n}\n\n.gpay-button.white {\n background-color: #fff;\n}\n\n.gpay-button.short, .gpay-button.plain {\n min-width: 90px;\n width: 160px;\n}\n\n.gpay-button.black.short, .gpay-button.black.plain {\n background-image: url(https://www.gstatic.com/instantbuy/svg/dark_gpay.svg);\n}\n\n.gpay-button.black.short.new_style, .gpay-button.black.plain.new_style {\n background-image: url(https://www.gstatic.com/instantbuy/svg/refreshedgraphicaldesign/dark_gpay.svg);\n min-width: 160px;\n background-size: contain;\n}\n\n.gpay-button.white.short, .gpay-button.white.plain {\n background-image: url(https://www.gstatic.com/instantbuy/svg/light_gpay.svg);\n}\n\n.gpay-button.black.active {\n background-color: #5f6368;\n}\n\n.gpay-button.black.hover {\n background-color: #3c4043;\n}\n\n.gpay-button.white.active {\n background-color: #fff;\n}\n\n.gpay-button.white.focus {\n box-shadow: #e8e8e8 0 1px 1px 0, #e8e8e8 0 1px 3px;\n}\n\n.gpay-button.white.hover {\n background-color: #f8f8f8;\n}\n\n.gpay-button-fill, .gpay-button-fill > .gpay-button.white, .gpay-button-fill > .gpay-button.black {\n width: 100%;\n height: inherit;\n}\n\n.gpay-button-fill-new-style,\n.gpay-button-fill-new-style > .gpay-button.black {\n width: 100%;\n height: inherit;\n background-size: contain;\n}\n\n.gpay-button-fill > .gpay-button.white,\n .gpay-button-fill > .gpay-button.black {\n padding: 12px 15% 10px;\n}\n\n.gpay-button.donate, .gpay-button.book,\n.gpay-button.checkout,\n.gpay-button.subscribe, .gpay-button.pay,\n.gpay-button.order {\n padding: 9px 24px;\n}\n\n.gpay-button-fill > .gpay-button.donate,\n.gpay-button-fill > .gpay-button.book,\n.gpay-button-fill > .gpay-button.checkout,\n.gpay-button-fill > .gpay-button.order,\n.gpay-button-fill > .gpay-button.pay,\n.gpay-button-fill > .gpay-button.subscribe {\n padding: 9px 15%;\n}\n\n.gpay-button-fill-new-style > .gpay-button.donate,\n.gpay-button-fill-new-style > .gpay-button.book,\n.gpay-button-fill-new-style > .gpay-button.checkout,\n.gpay-button-fill-new-style > .gpay-button.order,\n.gpay-button-fill-new-style > .gpay-button.pay,\n.gpay-button-fill-new-style > .gpay-button.subscribe {\n padding: 12px 15%;\n background-size: contain;\n}\n\n",
c),D("\n .gpay-button.new_style {\n background-size: auto;\n border-radius: 100vh;\n padding: 11px 24px;\n box-sizing: border-box;\n border: 1px solid #747775;\n min-height: 48px;\n font-size: 20px;\n width: auto;\n }\n",c),google.payments.api.EnableGpayButtonDynamicRadius&&D("\n .gpay-card-info-container.black,\n .gpay-button.black {\n outline: 1px solid #757575;\n box-shadow: none;\n }\n .gpay-card-info-container.black.focus,\n .gpay-button.black.focus {\n outline: 1px auto Highlight;\n outline: 1px auto -webkit-focus-ring-color;\n box-shadow: none;\n }\n .gpay-card-info-container.white,\n .gpay-button.white {\n outline: 1px solid #3C4043;\n box-shadow: none;\n }\n .gpay-card-info-container.white.focus,\n .gpay-button.white.focus {\n outline: 1px auto Highlight;\n outline: 1px auto -webkit-focus-ring-color;\n box-shadow: none;\n }\n",
c),5===fd()&&D("\n .gpay-card-info-container,\n .gpay-button {\n overflow: hidden;\n }\n",c),Sc.push(c),Tc.push([]));d=Sc.indexOf(c);e=R(f)?"white":"black";g=b+"_"+f.buttonType+"_"+e;var h=f.buttonType;if(h&&"short"!=h&&"plain"!=h&&!t(Tc[d],"includes").call(Tc[d],g)){f=f.buttonType;h="white"!==e&&google.payments.api.EnableGpayNewButtonAsset?{Xa:"https://www.gstatic.com/instantbuy/svg/refreshedgraphicaldesign",eb:Sa}:{Xa:"https://www.gstatic.com/instantbuy/svg",eb:Ra};var l="white"===e?"light":
"dark";var k="long"===f?h.eb.buy[b]:h.eb[f||"buy"][b];D("long"==f||"buy"==f?"\n .gpay-button."+e+".long."+b+", .gpay-button."+e+".buy."+b+" {\n background-image: url("+h.Xa+"/"+l+"/"+b+".svg);\n min-width: "+k+"px;\n }":"\n .gpay-button."+e+"."+f+"."+b+" {\n background-image: url("+h.Xa+"/"+l+"/"+f+"/"+b+".svg);\n min-width: "+k+"px;\n }\n ",c);Tc[d].push(g)}b=document.createElement("button");gd(b,a);"default"==a.buttonColor&&(a.buttonColor="black");c=hd(a);b.setAttribute("class",
"gpay-button "+c);id(b);jd([b],a);if(a.onClick)b.addEventListener("click",a.onClick);else throw Error("Parameter 'onClick' must be set.");c=document.createElement("div");"fill"===a.buttonSizeMode&&(google.payments.api.EnableGpayNewButtonAsset?c.setAttribute("class","gpay-button-fill-new-style"):c.setAttribute("class","gpay-button-fill"));c.appendChild(b);return c}
function ed(a){t(Vc,"includes").call(Vc,a.buttonRootNode||document)||(D("\n .gpay-card-info-container {\n padding: 0;\n position: relative;\n min-width: 240px;\n height: 40px;\n min-height: 40px;\n border-radius: 4px;\n box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 1px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;\n cursor: pointer;\n border: 0px;\n }\n\n .gpay-card-info-container.new_style {\n border-radius: 100vh;\n padding: 0;\n box-sizing: border-box;\n min-height: 48px;\n width: 240px;\n border: 1px solid #747775;\n }\n\n .gpay-card-info-container.black,\n .gpay-card-info-animation-container.black {\n background-color: #000;\n box-shadow: none;\n }\n\n .gpay-card-info-container.white,\n .gpay-card-info-animation-container.white {\n background-color: #fff;\n }\n\n .gpay-card-info-container.black.active {\n background-color: #5f6368;\n }\n\n .gpay-card-info-container.black.hover,\n .gpay-card-info-animation-container.black.hover {\n background-color: #3c4043;\n }\n\n .gpay-card-info-container.white.active {\n background-color: #fff;\n }\n\n .gpay-card-info-container.white.focus {\n box-shadow: #e8e8e8 0 1px 1px 0, #e8e8e8 0 1px 3px;\n }\n\n .gpay-card-info-container.white.hover,\n .gpay-card-info-animation-container.white.hover {\n background-color: #f8f8f8;\n }\n\n .gpay-card-info-iframe {\n border: 0;\n display: block;\n height: 100%;\n margin: auto;\n max-width: 100%;\n width: 240px;\n }\n\n .gpay-card-info-container-fill .gpay-card-info-iframe, .gpay-card-info-container-fill-new-style .gpay-card-info-iframe{\n position: absolute;\n top: 0;\n height: 100%;\n width: 100%;\n }\n\n .gpay-card-info-container-fill,\n .gpay-card-info-container-fill > .gpay-card-info-container{\n width: 100%;\n height: inherit;\n }\n\n .gpay-card-info-container-fill-new-style,\n .gpay-card-info-container-fill-new-style > .gpay-card-info-container{\n width: 100%;\n height: inherit;\n }\n\n .gpay-card-info-container-fill .gpay-card-info-placeholder-container, .gpay-card-info-container-fill-new-style .gpay-card-info-placeholder-container {\n align-items: center;\n justify-content: center;\n width: 100%;\n padding-top: 3px;\n box-sizing: border-box;\n overflow: hidden;\n }\n\n .gpay-card-info-container-fill .gpay-card-info-placeholder-svg-container, .gpay-card-info-container-fill-new-style .gpay-card-info-placeholder-svg-container{\n position: relative;\n width: 60%;\n height: inherit;\n max-height: 80%;\n margin-right: -20%;\n }\n\n .gpay-card-info-container-fill .gpay-card-info-placeholder-svg-container > svg {\n position: absolute;\n left: 0;\n height: 100%;\n max-width: 100%;\n }\n\n .gpay-card-info-container-fill-new-style .gpay-card-info-placeholder-svg-container > svg {\n position: absolute;\n left: 0;\n height: 100%;\n max-width: 100%;\n }\n",a.buttonRootNode),
D('\n .gpay-card-info-animation-container {\n display: flex;\n width:100%;\n position: absolute;\n z-index: 100;\n height: 40px;\n border-radius: 4px;\n }\n\n .gpay-card-info-animation-container.new_style {\n border-radius: 100vh;\n width: 100%;\n left: 0%;\n top: 0%;\n height: 100%;\n overflow: hidden;\n }\n\n .gpay-card-info-placeholder-container {\n display: flex;\n width: 100%;\n height: 100%;\n margin: auto;\n justify-content: center;\n }\n\n .gpay-card-info-animated-progress-bar-container {\n display: flex;\n box-sizing: border-box;\n position: absolute;\n width: 100%;\n }\n\n .gpay-card-info-animated-progress-bar {\n border-radius: 4px 4px 0px 0px;\n animation-duration: 0.5s;\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-name: gpayProgressFill;\n animation-timing-function: cubic-bezier(0.97, 0.33, 1, 1);\n background: #caccce;\n width: 100%;\n height: 3px;\n max-height: 3px;\n }\n\n .gpay-card-info-animated-progress-bar-indicator {\n border-radius: 4px 4px 0px 0px;\n max-width: 20px;\n min-width: 20px;\n height: 3px;\n max-height: 3px;\n background: linear-gradient(to right, #caccce 30%, #acaeaf 60%);\n animation-delay: 0.5s;\n animation-duration: 1.7s;\n animation-fill-mode: forwards;\n animation-iteration-count: infinite;\n animation-name: gpayPlaceHolderShimmer;\n }\n\n .gpay-card-info-animated-progress-bar-new_style {\n border-radius: 4px 4px 0px 0px;\n animation-duration: 0.5s;\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-name: gpayProgressFill;\n animation-timing-function: cubic-bezier(0.97, 0.33, 1, 1);\n background: #caccce;\n width: 100%;\n height: 2px;\n max-height: 2px;\n }\n\n .gpay-card-info-animated-progress-bar-indicator-new_style {\n border-radius: 4px 4px 0px 0px;\n max-width: 20px;\n min-width: 20px;\n height: 2px;\n max-height: 2px;\n background: linear-gradient(to right, #caccce 30%, #acaeaf 60%);\n animation-delay: 0.5s;\n animation-duration: 1.7s;\n animation-fill-mode: forwards;\n animation-iteration-count: infinite;\n animation-name: gpayPlaceHolderShimmer;\n }\n\n .gpay-card-info-animated-progress-bar-new_style.no-radius {\n border-radius: 0;\n }\n\n .gpay-card-info-animated-progress-bar.no-radius {\n border-radius: 0;\n }\n\n .gpay-card-info-animated-progress-bar-indicator-new_style.no-radius {\n border-radius: 0;\n }\n\n .gpay-card-info-animated-progress-bar-indicator.no-radius {\n border-radius: 0;\n }\n\n .gpay-card-info-iframe-fade-in {\n animation-fill-mode: forwards;\n animation-duration: 0.6s;\n animation-name: gpayIframeFadeIn;\n }\n\n .gpay-card-info-animation-container-fade-out {\n animation-fill-mode: forwards;\n animation-duration: 0.6s;\n animation-name: gpayPlaceHolderFadeOut;\n }\n\n .gpay-card-info-animation-gpay-logo {\n margin: 13px 7px 0px 39px;\n background-origin: content-box;\n background-position: center center;\n background-repeat: no-repeat;\n background-size: contain;\n height: 17px;\n max-height: 17px;\n max-width: 41px;\n min-width: 41px;\n }\n\n .gpay-card-info-animation-gpay-logo.black {\n background-image: url("https://www.gstatic.com/instantbuy/svg/dark_gpay.svg");\n }\n\n .gpay-card-info-animation-gpay-logo.new_style {\n background-image: url("https://www.gstatic.com/instantbuy/svg/refreshedgraphicaldesign/dark_gpay.svg");\n background-size: contain;\n height: 19px;\n max-height: 19px;\n max-width: 50px;\n min-width: 50px;\n }\n\n .gpay-card-info-animation-gpay-logo.white {\n background-image: url("https://www.gstatic.com/instantbuy/svg/light_gpay.svg");\n }\n\n @keyframes gpayPlaceHolderShimmer{\n 0% {\n margin-left: 0px;\n }\n 100% {\n margin-left: calc(100% - 20px);\n }\n }\n\n @keyframes gpayIframeFadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n\n @keyframes gpayPlaceHolderFadeOut {\n from {\n opacity: 1;\n }\n\n to {\n opacity: 0;\n }\n }\n\n @keyframes gpayProgressFill {\n from {\n width: 0;\n }\n to {\n width: 100%;\n }\n }\n\n .gpay-card-info-container-fill .gpay-card-info-animation-container{\n top: 0;\n width: 100%;\n height: 100%;\n }\n\n .gpay-card-info-container-fill-new-style .gpay-card-info-animation-container.new_style{\n top: 0;\n width: 100%;\n height: 100%;\n overflow: hidden;\n border-radius: 100vh;\n left: 0%;\n }\n\n .gpay-card-info-container-fill .gpay-card-info-animation-gpay-logo{\n background-position: right;\n margin: 0 0 0 0;\n max-width: none;\n width: 25%;\n height:inherit;\n max-height: 50%;\n }\n\n .gpay-card-info-container-fill-new-style .gpay-card-info-animation-gpay-logo{\n background-position: right;\n background-size: contain;\n margin: 0 0 0 0;\n max-width: none;\n width: 35%;\n min-width: 35%;\n height:inherit;\n max-height: 50%;\n }\n',
a.buttonRootNode),google.payments.api.EnableGpayButtonDynamicRadius&&D("\n .gpay-card-info-container.black,\n .gpay-button.black {\n outline: 1px solid #757575;\n box-shadow: none;\n }\n .gpay-card-info-container.black.focus,\n .gpay-button.black.focus {\n outline: 1px auto Highlight;\n outline: 1px auto -webkit-focus-ring-color;\n box-shadow: none;\n }\n .gpay-card-info-container.white,\n .gpay-button.white {\n outline: 1px solid #3C4043;\n box-shadow: none;\n }\n .gpay-card-info-container.white.focus,\n .gpay-button.white.focus {\n outline: 1px auto Highlight;\n outline: 1px auto -webkit-focus-ring-color;\n box-shadow: none;\n }\n",
a.buttonRootNode||document),5===fd()&&D("\n .gpay-card-info-container,\n .gpay-button {\n overflow: hidden;\n }\n",a.buttonRootNode||document),Vc.push(a.buttonRootNode||document));var b=hd(a),c=document.createElement("button");gd(c,a);c.setAttribute("class",(-1658203989===lc(Wc)?"gpay-button":"")+" gpay-card-info-container "+b);jd([c],a);var d=document.createElement("div");d.setAttribute("class",kd(a)?"gpay-card-info-animation-container new_style black":R(a)?"gpay-card-info-animation-container white":
"gpay-card-info-animation-container black");b=document.createElement("div");b.setAttribute("class","gpay-card-info-placeholder-container");var e=document.createElement("div");e.setAttribute("class",kd(a)?"gpay-card-info-animation-gpay-logo new_style black":R(a)?"gpay-card-info-animation-gpay-logo white":"gpay-card-info-animation-gpay-logo black");var g=xc(R(a)?Ta:kd(a)?Va:Ua),f=document.createElement("div");f.setAttribute("class","gpay-card-info-animated-progress-bar-container");var h=document.createElement("div");
h.setAttribute("class",kd(a)?"gpay-card-info-animated-progress-bar-new_style":"gpay-card-info-animated-progress-bar");google.payments.api.EnableGpayButtonDynamicRadius&&h.classList.add("no-radius");var l=document.createElement("div");l.setAttribute("class",kd(a)?"gpay-card-info-animated-progress-bar-indicator-new_style":"gpay-card-info-animated-progress-bar-indicator");google.payments.api.EnableGpayButtonDynamicRadius&&l.classList.add("no-radius");h.appendChild(l);b.appendChild(e);"fill"!==a.buttonSizeMode?
b.appendChild(g):(e=xc(R(a)?Wa:Xa),g=document.createElement("div"),g.appendChild(e),g.setAttribute("class","gpay-card-info-placeholder-svg-container"),b.appendChild(g));f.appendChild(h);d.appendChild(b);d.appendChild(f);id(d);c.appendChild(d);var k=document.createElement("iframe");k.setAttribute("class","gpay-card-info-iframe");k.setAttribute("scrolling","no");b=new N("https://pay.google.com/gp/p/generate_gpay_btn_img");Oc(b,"buttonColor",a.buttonColor);Oc(b,"browserLocale",dd(a.buttonLocale));Oc(b,
"buttonSizeMode",a.buttonSizeMode);Oc(b,"enableGpayNewButtonAsset",google.payments.api.EnableGpayNewButtonAsset||!1);void 0!==a.allowedPaymentMethods&&Oc(b,"allowedPaymentMethods",JSON.stringify(a.allowedPaymentMethods));Oc(b,"gpayButtonVariantType",a.buttonVariant);k.src=b.toString();k.onload=function(){k.classList.add("gpay-card-info-iframe-fade-in");d.classList.add("gpay-card-info-animation-container-fade-out")};a.onClick&&c.addEventListener("click",a.onClick);id(c);c.appendChild(k);b=document.createElement("div");
f=kd(a)?"gpay-card-info-container-fill-new-style":"gpay-card-info-container-fill";"fill"===a.buttonSizeMode&&b.setAttribute("class",f);b.appendChild(c);return b}
function cd(a,b,c){if(t($c,"includes").call($c,lc(a)))return 1;a=fd();if(2===a){if("pt"!==c||void 0===b)return 1;b=v(b);for(c=b.next();!c.done;c=b.next())if(a=c.value,"CARD"===a.type)for(c=void 0,a=null==(c=a.parameters)?void 0:c.allowedCardNetworks,c=v(a),a=c.next();!a.done;a=c.next())if(t(Ya,"includes").call(Ya,a.value))return 2;return 1}return a}
function fd(){switch(ad){case "GPAY_BUTTON_VARIANT_TYPE_NONE":return 1;case "GPAY_BUTTON_VARIANT_TYPE_DEBIT":return 2;case "GPAY_BUTTON_VARIANT_TYPE_SECURE":return 3;case "GPAY_BUTTON_VARIANT_TYPE_SPEED":return 4;case "GPAY_BUTTON_VARIANT_TYPE_SNOWFALL":return 5;case "GPAY_BUTTON_VARIANT_TYPE_BNPL_ONLY":return 6;case "GPAY_BUTTON_VARIANT_TYPE_BNPL_CARD":return 7;default:return 0}}
function id(a){["mouseover","mouseout"].map(function(b){a.addEventListener(b,function(c){a.classList.toggle("hover","mouseover"==c.type);var d=document.querySelector(".gpay-card-info-animation-container");null!==d&&d.classList.toggle("hover","mouseover"==c.type)})});["mousedown","mouseup","mouseout"].map(function(b){a.addEventListener(b,function(c){a.classList.toggle("active","mousedown"==c.type)})});["focus","blur"].map(function(b){a.addEventListener(b,function(c){a.classList.toggle("focus","focus"==
c.type)})})}
function gd(a,b){a.setAttribute("type","button");var c="Google Pay";if(google.payments.api.EnableGpayButtonAriaLabelLocalization){var d=dd(b.buttonLocale,!0);switch(b.buttonType){case "buy":case "long":var e;c=null!=(e=C.buy[d])?e:c;break;case "book":var g;c=null!=(g=C.book[d])?g:c;break;case "checkout":var f;c=null!=(f=C.checkout[d])?f:c;break;case "donate":var h;c=null!=(h=C.donate[d])?h:c;break;case "order":var l;c=null!=(l=C.order[d])?l:c;break;case "pay":var k;c=null!=(k=C.pay[d])?k:c;break;
case "subscribe":var q;c=null!=(q=C.subscribe[d])?q:c;break;case "short":case "plain":c="Google Pay";break;default:c="Google Pay"}}a.setAttribute("aria-label",c)}
function jd(a,b){google.payments.api.EnableGpayButtonDynamicRadius&&void 0!=b.buttonRadius&&null!=b.buttonRadius&&(Uc&&Uc.remove(),Uc=D(".gpay-card-info-container.gpay-card-info-custom-radius, .gpay-button.gpay-card-info-custom-radius\n {\n border-radius: "+b.buttonRadius+"px;\n overflow: hidden;\n }\n",b.buttonRootNode),a.forEach(function(c){return c.classList.add("gpay-card-info-custom-radius")}))}
function hd(a){var b="white";R(a)||(b="black");var c=a.buttonType||"buy";"buy"===a.buttonType?c="buy long":"plain"===a.buttonType&&(c="plain short");return!R(a)&&google.payments.api.EnableGpayNewButtonAsset?b+" "+c+" new_style "+dd(a.buttonLocale):b+" "+c+" "+dd(a.buttonLocale)}function R(a){return"white"==a.buttonColor}
function dd(a,b){var c=null!=navigator.language?navigator.language.substring(0,5):"en",d=(a||c||"en").substring(0,5),e=google.payments.api.EnableGpayNewButtonAsset?Sa:Ra;if(d in e.buy)return d;d!==c&&(void 0===b?0:b)&&mc({aa:"createButton",errorMessage:'Button locale "'+a+'" is not supported, falling back to browser locale.'});return c in e.buy?c:"en"}function kd(a){return google.payments.api.EnableGpayNewButtonAsset&&!R(a)};var ld=function(){},md=function(a,b){return new r.Promise(function(c,d){setTimeout(function(){d({reason:"OTHER_ERROR",intent:a,message:"REQUEST_TIMEOUT"})},b)})},nd=function(a,b){return{error:{reason:a.reason||"OTHER_ERROR",intent:a.intent||b,message:a.message}}},od=function(a,b,c){mc({aa:"loadPaymentData",errorMessage:"An error occurred in call back, please try to avoid this by setting structured error in callback response"});a&&M({eventType:b,merchantCallbackInfo:{callbackTrigger:c||0}})};
ld.prototype.Gb=function(a,b){null===b.error&&(console.warn("Please remove null fields in callback returns."),delete b.error);return{modifiers:[{supportedMethods:["https://google.com/pay"],data:b}]}};ld.prototype.Pa=function(a,b){return{type:a,data:b}};
var pd=function(a,b,c,d){return r.Promise.resolve(r.Promise.race([md("PAYMENT_AUTHORIZATION",c),b.onPaymentAuthorized(a)])).then(function(e){return d("paymentAuthorizationResponse",e)},function(e){od("REQUEST_TIMEOUT"===e.message,27,2);return d("paymentAuthorizationResponse",nd(e,"PAYMENT_AUTHORIZATION"))})},qd=function(a,b,c,d){return r.Promise.resolve(r.Promise.race([md(a.callbackTrigger in Ja?Ja[a.callbackTrigger]:"UNKNOWN_INTENT",c),b.onPaymentDataChanged(a)])).then(function(e){return d("paymentDataCallbackResponse",
e)},function(e){od("REQUEST_TIMEOUT"===e.message,26,Yb[a.callbackTrigger]);return d("paymentDataCallbackResponse",nd(e,a.callbackTrigger||"UNKNOWN_INTENT"))})};var sd=function(){var a=window.document,b=this;this.Ab=a;this.P=a.createElement("gpay-graypane");rd(this.P,{"z-index":2147483647,display:"none",position:"fixed",top:0,right:0,bottom:0,left:0,"background-color":"rgba(32, 33, 36, .6)"});this.Sa=null;this.P.addEventListener("click",function(){if(b.Sa)try{b.Sa.focus()}catch(c){}})};sd.prototype.show=function(a){this.Sa=a||null;this.Ab.body.appendChild(this.P);rd(this.P,{display:"block",opacity:0});return td(this.P,{opacity:1})};
var ud=function(a){a.Sa=null;a.P.parentElement&&td(a.P,{opacity:0}).then(function(){rd(a.P,{display:"none"});a.Ab.body.removeChild(a.P)})};function rd(a,b){for(var c in b)a.style.setProperty(c,b[c].toString(),"important")}
function td(a,b){var c=a.ownerDocument.defaultView,d=a.style.transition||"";return(new r.Promise(function(e){c.setTimeout(function(){c.setTimeout(e,300);rd(a,t(Object,"assign").call(Object,{transition:"transform 300ms ease-out, opacity 300ms ease-out"},b))})})).then(function(){rd(a,t(Object,"assign").call(Object,{transition:d},b))})};var vd=function(a){this.s=a;this.ib=this.jb=this.B=this.ba=null;this.ga=3E4};m=vd.prototype;m.kb=function(a){this.B=a};m.xa=function(a){this.ba=a};
m.isReadyToPay=function(a){var b=wd(a);return new r.Promise(function(c){(void 0!=b.hasEnrolledInstrument?b.hasEnrolledInstrument():b.canMakePayment()).then(function(d){window.sessionStorage.setItem("google.payments.api.storage.isreadytopay.result",d.toString());var e={result:d};2<=a.apiVersion&&a.existingPaymentMethodRequired&&(e.paymentMethodPresent=d);c(e)}).catch(function(){window.sessionStorage.getItem("google.payments.api.storage.isreadytopay.result")?c({result:"true"==window.sessionStorage.getItem("google.payments.api.storage.isreadytopay.result")}):
c({result:!1})})})};m.prefetchPaymentData=function(a){wd(a,this.s,a.transactionInfo.currencyCode,a.transactionInfo.totalPrice)};m.loadPaymentData=function(a){xd(this,a)};
var wd=function(a,b,c,d){var e={};a&&(e=JSON.parse(JSON.stringify(a)));e.apiVersion||(e.apiVersion=1);e.swg&&(e.allowedPaymentMethods=["CARD"]);b&&"TEST"==b&&(e.environment=b);return new PaymentRequest([{supportedMethods:[b&&"SANDBOX"===b&&google.payments.api.EnablePaymentHandlerSandboxBuyflow?"https://pay.sandbox.google.com/gp/p/payment_method_manifest.json":"https://google.com/pay"],data:e}],{total:{label:"Estimated Total Price",amount:{currency:c||"USD",value:d||"0"}}})},xd=function(a,b){b=wd(b,
a.s,b.transactionInfo&&b.transactionInfo.currencyCode||void 0,b.transactionInfo&&b.transactionInfo.totalPrice||void 0);b.onpaymentmethodchange=function(c){var d=new ld;d=c.methodDetails.callbackTrigger?qd(c.methodDetails,a.B,a.ga,d.Gb):pd(c.methodDetails,a.B,a.ga,d.Gb);c.updateWith(d)};a.ba(b.show().then(function(c){google.payments.api.LogInternally&&console.log("payment response",c);c.complete("success");return c.details.statusCode?(google.payments.api.LogInternally&&console.log("status code",c.details.statusCode),
{error:c.details}):c.details}).catch(function(c){google.payments.api.LogInternally&&console.log("payment response with err",c);c.statusCode="CANCELED";throw c;}))};var yd=["SHIPPING_ADDRESS","SHIPPING_OPTION"];function zd(a){if(2<=a.apiVersion){var b=Ad(a);if(b&&1==b.length&&"CRYPTOGRAM_3DS"==b[0])return!0}return 1==a.allowedPaymentMethods.length&&"TOKENIZED_CARD"==a.allowedPaymentMethods[0]}function Bd(a,b){return 2<=a.apiVersion&&(a=Ad(a))&&t(a,"includes").call(a,b)?!0:!1}
function Cd(){var a=window.location.hostname,b=a.length-11;return 0<=b&&a.indexOf(".google.com",b)==b||void 0===window.isSecureContext?null:window.isSecureContext?null:"Google Pay APIs should be called in secure context!"}function Dd(a){if(a.environment&&!(n=t(Object,"values").call(Object,Ka),t(n,"includes")).call(n,a.environment))throw Error("Parameter environment in PaymentsClientOptions can optionally be set to PRODUCTION, otherwise it defaults to TEST.");}
function Ed(a){if(!a)return"isReadyToPayRequest must be set!";if(Fd(a))return"UPI not supported";if(2<=a.apiVersion){if(!("apiVersionMinor"in a))return"apiVersionMinor must be set!";if(!a.allowedPaymentMethods||!Array.isArray(a.allowedPaymentMethods)||0==a.allowedPaymentMethods.length)return"for v2 allowedPaymentMethods must be set to an array containing a list of accepted payment methods";for(var b=0;b<a.allowedPaymentMethods.length;b++){var c=a.allowedPaymentMethods[b];if("CARD"==c.type){if(!c.parameters)return"Field parameters must be setup in each allowedPaymentMethod";
var d=c.parameters.allowedCardNetworks;if(!d||!Array.isArray(d)||0==d.length)return"allowedCardNetworks must be setup in parameters for type CARD";c=c.parameters.allowedAuthMethods;if(!c||!Array.isArray(c)||0==c.length||!c.every(Gd))return"allowedAuthMethods must be setup in parameters for type 'CARD' and must contain 'CRYPTOGRAM_3DS' and/or 'PAN_ONLY'"}}}else if(!a.allowedPaymentMethods||!Array.isArray(a.allowedPaymentMethods)||0==a.allowedPaymentMethods.length||!a.allowedPaymentMethods.every(Hd))return"allowedPaymentMethods must be set to an array containing 'CARD' and/or 'TOKENIZED_CARD'!";
return null}function Hd(a){return(n=t(Object,"values").call(Object,La),t(n,"includes")).call(n,a)}function Gd(a){return(n=t(Object,"values").call(Object,Ma),t(n,"includes")).call(n,a)}
function Id(a){if(!a)return"paymentDataRequest must be set!";if(a.encryptedParameters)return null;if(Fd(a))return"UPI not supported";if(a.swg)return(a=a.swg)?a.skuId&&a.publicationId?null:"Both skuId and publicationId must be provided":"Swg parameters must be provided";if(a.transactionInfo)if(a.transactionInfo.currencyCode){if(!a.transactionInfo.totalPriceStatus||!(n=t(Object,"values").call(Object,Na),t(n,"includes")).call(n,a.transactionInfo.totalPriceStatus))return"totalPriceStatus in transactionInfo must be set to one of NOT_CURRENTLY_KNOWN, ESTIMATED or FINAL!";
if("NOT_CURRENTLY_KNOWN"!==a.transactionInfo.totalPriceStatus&&!a.transactionInfo.totalPrice)return"totalPrice in transactionInfo must be set when totalPriceStatus is ESTIMATED or FINAL!"}else return"currencyCode in transactionInfo must be set!";else return"transactionInfo must be set!";var b=Fd(a);if(b){if(!b.parameters)return"parameters must be set in allowedPaymentMethod!";b=b.parameters;if(b.payeeVpa)if(b.payeeName)if(b.referenceUrl){if(!b.mcc)return"mcc in allowedPaymentMethod parameters must be set!";
if(!b.transactionReferenceId)return"transactionReferenceId in allowedPaymentMethod parameters must be set!"}else return"referenceUrl in allowedPaymentMethod parameters must be set!";else return"payeeName in allowedPaymentMethod parameters must be set!";else return"payeeVpa in allowedPaymentMethod parameters must be set!";if("INR"!==a.transactionInfo.currencyCode)return"currencyCode in transactionInfo must be set to INR!";if("FINAL"!==a.transactionInfo.totalPriceStatus)return"totalPriceStatus in transactionInfo must be set to FINAL!";
if(!a.transactionInfo.transactionNote)return"transactionNote in transactionInfo must be set!"}return null}function Fd(a){return 2>a.apiVersion||!a.allowedPaymentMethods?null:Jd(a,"UPI")}
function Kd(a,b){if(a.callbackIntents&&!b)return"paymentDataCallbacks must be set";if(t(a.callbackIntents,"includes").call(a.callbackIntents,"PAYMENT_AUTHORIZATION")!==!!b.onPaymentAuthorized)return"Both PAYMENT_AUTHORIZATION intent and onPaymentAuthorized must be set";var c=yd.slice();google.payments.api.EnableOfferCallback&&c.push("OFFER");google.payments.api.EnablePaymentMethodCallback&&c.push("PAYMENT_METHOD");return!!c.filter(function(d){return t(a.callbackIntents,"includes").call(a.callbackIntents,
d)}).length!==!!b.onPaymentDataChanged?"onPaymentDataChanged callback must be set if any of "+(c+" callback intent is set."):null}function Ad(a){return a.allowedPaymentMethods&&(a=Jd(a,"CARD"))&&a.parameters?a.parameters.allowedAuthMethods:null}function Jd(a,b){for(var c=0;c<a.allowedPaymentMethods.length;c++){var d=a.allowedPaymentMethods[c];if(d.type==b)return d}return null};var Md=function(a,b){var c=Ld.transition;if(!c){var d=vc();c=d;void 0===a.style[d]&&(d=(qc?"Webkit":pc?"Moz":oc?"ms":null)+wc(d),void 0!==a.style[d]&&(c=d));Ld.transition=c}c&&(a.style[c]=b)},Ld={};var Nd=function(a,b){Array.isArray(b)||(b=[b]);z(0<b.length,"At least one Css3Property should be specified.");b=b.map(function(c){if("string"===typeof c)return c;Fa(c,"Expected css3 property to be an object.");var d=c.qc+" "+c.duration+"s "+c.timing+" "+c.delay+"s";z(c.qc&&"number"===typeof c.duration&&c.timing&&"number"===typeof c.delay,"Unexpected css3 property value: %s",d);return d});Md(a,b.join(","))};var Od=function(){this.La=this.La;this.Ra=this.Ra};Od.prototype.La=!1;Od.prototype.dispose=function(){this.La||(this.La=!0,this.ta())};Od.prototype.ta=function(){if(this.Ra)for(;this.Ra.length;)this.Ra.shift()()};var Pd=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.Aa=!1};Pd.prototype.stopPropagation=function(){this.Aa=!0};Pd.prototype.preventDefault=function(){this.defaultPrevented=!0};var Qd=function(){if(!y.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{var c=function(){};y.addEventListener("test",c,b);y.removeEventListener("test",c,b)}catch(d){}return a}();var Sd=function(a,b){Pd.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.ua=null;if(a){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;
this.currentTarget=b;if(b=a.relatedTarget){if(pc){a:{try{nc(b.nodeName);var e=!0;break a}catch(g){}e=!1}e||(b=null)}}else"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.offsetX=qc||void 0!==a.offsetX?a.offsetX:a.layerX,this.offsetY=qc||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?
a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:Rd[a.pointerType]||"";this.state=a.state;this.timeStamp=a.timeStamp;this.ua=
a;a.defaultPrevented&&Sd.pa.preventDefault.call(this)}};ya(Sd,Pd);var Rd=Xb({2:"touch",3:"pen",4:"mouse"});Sd.prototype.stopPropagation=function(){Sd.pa.stopPropagation.call(this);this.ua.stopPropagation?this.ua.stopPropagation():this.ua.cancelBubble=!0};Sd.prototype.preventDefault=function(){Sd.pa.preventDefault.call(this);var a=this.ua;a.preventDefault?a.preventDefault():a.returnValue=!1};var Td="closure_listenable_"+(1E6*Math.random()|0);var Ud=0;var Vd=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Na=e;this.key=++Ud;this.Ba=this.Ja=!1},Wd=function(a){a.Ba=!0;a.listener=null;a.proxy=null;a.src=null;a.Na=null};var Xd=function(a){this.src=a;this.v={};this.Fa=0};Xd.prototype.add=function(a,b,c,d,e){var g=a.toString();a=this.v[g];a||(a=this.v[g]=[],this.Fa++);var f=Yd(a,b,d,e);-1<f?(b=a[f],c||(b.Ja=!1)):(b=new Vd(b,this.src,g,!!d,e),b.Ja=c,a.push(b));return b};Xd.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.v))return!1;var e=this.v[a];b=Yd(e,b,c,d);return-1<b?(Wd(e[b]),z(null!=e.length),Array.prototype.splice.call(e,b,1),0==e.length&&(delete this.v[a],this.Fa--),!0):!1};
var Zd=function(a,b){var c=b.type;if(c in a.v){var d=a.v[c],e=kb(d,b),g;if(g=0<=e)z(null!=d.length),Array.prototype.splice.call(d,e,1);g&&(Wd(b),0==a.v[c].length&&(delete a.v[c],a.Fa--))}};Xd.prototype.cb=function(a,b,c,d){a=this.v[a.toString()];var e=-1;a&&(e=Yd(a,b,c,d));return-1<e?a[e]:null};Xd.prototype.hasListener=function(a,b){var c=void 0!==a,d=c?a.toString():"",e=void 0!==b;return lb(this.v,function(g){for(var f=0;f<g.length;++f)if(!(c&&g[f].type!=d||e&&g[f].capture!=b))return!0;return!1})};
var Yd=function(a,b,c,d){for(var e=0;e<a.length;++e){var g=a[e];if(!g.Ba&&g.listener==b&&g.capture==!!c&&g.Na==d)return e}return-1};var $d="closure_lm_"+(1E6*Math.random()|0),ae={},be=0,de=function(a,b,c,d,e){if(d&&d.once)ce(a,b,c,d,e);else if(Array.isArray(b))for(var g=0;g<b.length;g++)de(a,b[g],c,d,e);else c=ee(c),a&&a[Td]?(d=ua(d)?!!d.capture:!!d,fe(a),a.J.add(String(b),c,!1,d,e)):ge(a,b,c,!1,d,e)},ge=function(a,b,c,d,e,g){if(!b)throw Error("Invalid event type");var f=ua(e)?!!e.capture:!!e,h=he(a);h||(a[$d]=h=new Xd(a));c=h.add(b,c,d,f,g);if(!c.proxy){d=ie();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)Qd||(e=f),void 0===
e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(je(b.toString()),d);else if(a.addListener&&a.removeListener)z("change"===b,"MediaQueryList only has a change event"),a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");be++}},ie=function(){var a=ke,b=function(c){return a.call(b.src,b.listener,c)};return b},ce=function(a,b,c,d,e){if(Array.isArray(b))for(var g=0;g<b.length;g++)ce(a,b[g],c,d,e);else c=ee(c),a&&a[Td]?a.J.add(String(b),
c,!0,ua(d)?!!d.capture:!!d,e):ge(a,b,c,!0,d,e)},le=function(a,b,c,d,e){if(Array.isArray(b))for(var g=0;g<b.length;g++)le(a,b[g],c,d,e);else d=ua(d)?!!d.capture:!!d,c=ee(c),a&&a[Td]?a.J.remove(String(b),c,d,e):a&&(a=he(a))&&(b=a.cb(b,c,d,e))&&me(b)},me=function(a){if("number"!==typeof a&&a&&!a.Ba){var b=a.src;if(b&&b[Td])Zd(b.J,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(je(c),d):b.addListener&&b.removeListener&&b.removeListener(d);
be--;(c=he(b))?(Zd(c,a),0==c.Fa&&(c.src=null,b[$d]=null)):Wd(a)}}},je=function(a){return a in ae?ae[a]:ae[a]="on"+a},ke=function(a,b){if(a.Ba)a=!0;else{b=new Sd(b,this);var c=a.listener,d=a.Na||a.src;a.Ja&&me(a);a=c.call(d,b)}return a},he=function(a){a=a[$d];return a instanceof Xd?a:null},ne="__closure_events_fn_"+(1E9*Math.random()>>>0),ee=function(a){z(a,"Listener can not be null.");if("function"===typeof a)return a;z(a.handleEvent,"An object listener must have handleEvent method.");a[ne]||(a[ne]=
function(b){return a.handleEvent(b)});return a[ne]};var S=function(){Od.call(this);this.J=new Xd(this);this.Yb=this;this.hb=null};ya(S,Od);S.prototype[Td]=!0;S.prototype.addEventListener=function(a,b,c,d){de(this,a,b,c,d)};S.prototype.removeEventListener=function(a,b,c,d){le(this,a,b,c,d)};
S.prototype.dispatchEvent=function(a){fe(this);var b=this.hb;if(b){var c=[];for(var d=1;b;b=b.hb)c.push(b),z(1E3>++d,"infinite loop")}b=this.Yb;d=a.type||a;if("string"===typeof a)a=new Pd(a,b);else if(a instanceof Pd)a.target=a.target||b;else{var e=a;a=new Pd(d,b);nb(a,e)}e=!0;if(c)for(var g=c.length-1;!a.Aa&&0<=g;g--){var f=a.currentTarget=c[g];e=oe(f,d,!0,a)&&e}a.Aa||(f=a.currentTarget=b,e=oe(f,d,!0,a)&&e,a.Aa||(e=oe(f,d,!1,a)&&e));if(c)for(g=0;!a.Aa&&g<c.length;g++)f=a.currentTarget=c[g],e=oe(f,
d,!1,a)&&e;return e};S.prototype.ta=function(){S.pa.ta.call(this);if(this.J){var a=this.J,b=0,c;for(c in a.v){for(var d=a.v[c],e=0;e<d.length;e++)++b,Wd(d[e]);delete a.v[c];a.Fa--}}this.hb=null};var oe=function(a,b,c,d){b=a.J.v[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,g=0;g<b.length;++g){var f=b[g];if(f&&!f.Ba&&f.capture==c){var h=f.listener,l=f.Na||f.src;f.Ja&&Zd(a.J,f);e=!1!==h.call(l,d)&&e}}return e&&!d.defaultPrevented};
S.prototype.cb=function(a,b,c,d){return this.J.cb(String(a),b,c,d)};S.prototype.hasListener=function(a,b){return this.J.hasListener(void 0!==a?String(a):void 0,b)};var fe=function(a){z(a.J,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};var pe=function(a,b){S.call(this);this.Oa=a||1;this.Ea=b||y;this.xb=xa(this.Ac,this);this.Eb=Date.now()};ya(pe,S);m=pe.prototype;m.enabled=!1;m.K=null;m.setInterval=function(a){this.Oa=a;this.K&&this.enabled?(this.stop(),this.start()):this.K&&this.stop()};m.Ac=function(){if(this.enabled){var a=Date.now()-this.Eb;0<a&&a<.8*this.Oa?this.K=this.Ea.setTimeout(this.xb,this.Oa-a):(this.K&&(this.Ea.clearTimeout(this.K),this.K=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
m.start=function(){this.enabled=!0;this.K||(this.K=this.Ea.setTimeout(this.xb,this.Oa),this.Eb=Date.now())};m.stop=function(){this.enabled=!1;this.K&&(this.Ea.clearTimeout(this.K),this.K=null)};m.ta=function(){pe.pa.ta.call(this);this.stop();delete this.Ea};/*
Copyright 2017 The Web Activities Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS-IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
var qe=function(a,b,c,d,e,g){this.code=a;this.data="ok"==a?b:null;this.mode=c;this.origin=d;this.gb=e;this.wc=g;this.ok="ok"==a;this.error="failed"==a?Error(String(b)||""):null};function re(a){var b=a.indexOf("#");return-1==b?a:a.substring(0,b)}function se(a){return a?(/^[?#]/.test(a)?a.slice(1):a).split("&").reduce(function(b,c){var d=c.split("=");c=decodeURIComponent(d[0]||"");d=decodeURIComponent(d[1]||"");c&&(b[c]=d);return b},{}):{}}
function te(a){var b={requestId:a.requestId,returnUrl:a.Qb,args:a.Zb};void 0!==a.origin&&(b.origin=a.origin);void 0!==a.gb&&(b.originVerified=a.gb);return JSON.stringify(b)}function ue(a,b,c){if(b.ok)c(b);else{var d;if(!(d=b.error)){d=null;if("function"==typeof a.DOMException){a=a.DOMException;try{d=new a("AbortError","AbortError")}catch(e){}}d||(d=Error("AbortError"),d.name="AbortError",d.code=20)}a=d;a.kd=b;c(r.Promise.reject(a))}}
function ve(a){a=a.navigator;return/Trident|MSIE|IEMobile/i.test(a&&a.userAgent)}function we(a){setTimeout(function(){throw a;})}var T=function(a,b,c){this.g=a;this.qb=b;this.C=c;this.sc=!0;this.rb=null;this.sb=!1;this.U=this.Qa=this.V=this.j=null;this.wb=this.hc.bind(this)};T.prototype.connect=function(a){if(this.V)throw Error("already connected");this.V=a;this.g.addEventListener("message",this.wb)};
T.prototype.disconnect=function(){if(this.V&&(this.V=null,this.j&&(xe(this.j),this.j=null),this.g.removeEventListener("message",this.wb),this.U)){for(var a in this.U){var b=this.U[a];b.port1&&xe(b.port1);b.port2&&xe(b.port2)}this.U=null}};T.prototype.isConnected=function(){return null!=this.C};
var ye=function(a){a.V&&!a.rb&&(a.rb="function"==typeof a.qb?a.qb():a.qb);return a.rb},ze=function(a){if(null==a.C)throw Error("not connected");return a.C},Ce=function(a,b){var c=null;a.sb&&"function"==typeof a.g.MessageChannel&&(c=new a.g.MessageChannel);c?(Ae(a,"start",b,[c.port2]),Be(a,c.port1)):Ae(a,"start",b)},Ae=function(a,b,c,d){c={sentinel:"__ACTIVITIES__",cmd:b,payload:c||null};if(a.j)a.j.postMessage(c,d||void 0);else{var e=ye(a);if(!e)throw Error("not connected");a="connect"==b?null!=a.C?
a.C:"*":ze(a);e.postMessage(c,a,d||void 0)}};T.prototype.customMessage=function(a){Ae(this,"msg",a)};var De=function(a,b){a.U||(a.U={});var c=a.U[b];if(!c){var d;c=new r.Promise(function(e){d=e});c={port1:null,port2:null,Pb:d,promise:c};a.U[b]=c}return c},Be=function(a,b){a.j&&xe(a.j);a.j=b;a.j.onmessage=function(c){var d=c.data,e=d&&d.cmd;d=d&&d.payload||null;e&&a.ma(e,d,c)}};
T.prototype.hc=function(a){if(!this.sc||ye(this)==a.source){var b=a.data;if(b&&"__ACTIVITIES__"==b.sentinel){var c=b.cmd;if(!this.j||"connect"==c||"start"==c){var d=a.origin;b=b.payload||null;null==this.C&&"start"==c&&(this.C=d);null==this.C&&a.source&&ye(this)==a.source&&(this.C=d);d==this.C&&this.ma(c,b,a)}}}};
T.prototype.ma=function(a,b,c){"connect"==a?(this.j&&(xe(this.j),this.j=null),this.sb=b&&b.acceptsChannel||!1,this.V(a,b)):"start"==a?((c=c.ports&&c.ports[0])&&Be(this,c),this.V(a,b)):"msg"==a?null!=this.Qa&&null!=b&&this.Qa(b):"cnget"==a?(b=b.name||"",a=De(this,b),a.port1||(c=new this.g.MessageChannel,a.port1=c.port1,a.port2=c.port2,a.Pb(a.port1)),a.port2&&(Ae(this,"cnset",{name:b},[a.port2]),a.port2=null)):"cnset"==a?(a=c.ports[0],b=De(this,b.name),b.port1=a,b.Pb(a)):this.V(a,b)};
function xe(a){try{a.close()}catch(b){}}var Ee=function(a,b,c){var d=this;this.wa=a;this.Va=b;this.Ha=c||null;this.g=this.wa.ownerDocument.defaultView;this.C=Cc(db(b).toString());this.sa=null;this.Za=new r.Promise(function(e){d.sa=e});this.Ta=null;new r.Promise(function(e){d.Ta=e});this.I=null;this.Ua=new r.Promise(function(e){d.I=e});this.Ob=this.Hb=null;this.m=new T(this.g,function(){return d.wa.contentWindow},this.C)};m=Ee.prototype;
m.connect=function(){var a=this.wa;if("isConnected"in a)a=a.isConnected;else{var b=a.ownerDocument&&a.ownerDocument.documentElement;a=b&&b.contains(a)||!1}if(!a)throw Error("iframe must be in DOM");this.m.connect(this.ma.bind(this));Wb(this.wa,this.Va);return this.Za};m.disconnect=function(){this.m.disconnect()};m.Ga=function(){return this.Ua};m.Ma=function(){return this.wa.contentWindow||null};m.message=function(a){this.m.customMessage(a)};m.onMessage=function(a){this.m.Qa=a};
m.ma=function(a,b){"connect"==a?(Ce(this.m,this.Ha),this.sa()):"result"==a?this.I&&(a=b.code,b=new qe(a,"failed"==a?Error(b.data||""):b.data,"iframe",ze(this.m),!0,!0),ue(this.g,b,this.I),this.I=null,Ae(this.m,"close"),this.disconnect()):"ready"==a?this.Ta&&(this.Ta(),this.Ta=null):"resize"==a&&(this.Ob=b.height,this.Hb&&this.Hb(this.Ob))};
var Fe=function(a,b,c,d,e,g){var f=this,h=d&&A(d);if(!h||"_blank"!=h&&"_top"!=h&&"_"==h[0])throw Error('The only allowed targets are "_blank", "_top" and name targets');this.g=a;this.rc=b;this.Va=c;this.mc=d;this.Ha=e||null;this.fa=g||{};this.sa=null;this.Za=new r.Promise(function(l){f.sa=l});this.I=null;this.Ua=new r.Promise(function(l){f.I=l});this.m=this.R=this.Y=null};m=Fe.prototype;m.open=function(){return Ge(this)};
m.disconnect=function(){this.R&&(this.R.stop(),this.R=null);this.m&&(this.m.disconnect(),this.m=null);if(this.Y){try{this.Y.close()}catch(a){}this.Y=null}this.I=null};m.Ma=function(){return this.Y};m.Ga=function(){return this.Ua};m.message=function(a){this.m.customMessage(a)};m.onMessage=function(a){this.m.Qa=a};
var Ge=function(a){var b=He(a),c=a.Va;if(!a.fa.od){var d=te({requestId:a.rc,Qb:a.fa.Qb||re(a.g.location.href),Zb:a.Ha});c=c+(-1==c.indexOf("#")?"#":"&")+encodeURIComponent("__WA__")+"="+encodeURIComponent(d)}d=a.mc;"_top"!=A(d)&&ve(a.g)&&(d=B("_top"));try{var e=uc(c,a.g,d,b)}catch(g){}if(!e&&"_top"!=A(d)&&!a.fa.md){d=B("_top");try{e=uc(c,a.g,d)}catch(g){}}e?(a.Y=e,"_top"!=A(d)&&Ie(a)):Je(a,Error("failed to open window"));return a.Ua.catch(function(){})},He=function(a){var b=a.g.screen,c=b.availWidth||
b.width,d=b.availHeight||b.height,e=a.g==a.g.top;var g=a.g.navigator;g=/Edge/i.test(g&&g.userAgent);c=Math.max(c-(e&&a.g.outerWidth>a.g.innerWidth?Math.min(100,a.g.outerWidth-a.g.innerWidth):g?100:0),.5*c);var f=Math.max(d-(e&&a.g.outerHeight>a.g.innerHeight?Math.min(100,a.g.outerHeight-a.g.innerHeight):g?100:0),.5*d);d=Math.floor(Math.min(600,.9*c));e=Math.floor(Math.min(600,.9*f));a.fa.width&&(d=Math.min(a.fa.width,c));a.fa.height&&(e=Math.min(a.fa.height,f));a=Math.floor((b.width-d)/2);b=Math.floor((b.height-
e)/2);c={height:e,width:d,resizable:"yes",scrollbars:"yes"};g||(c.left=a,c.top=b);g="";for(var h in c)g&&(g+=","),g+=h+"="+c[h];return g},Ie=function(a){a.R=new pe(500);a.R.addEventListener("tick",function(){Ke(a,!0)});a.R.start();a.m=new T(a.g,a.Y,null);a.m.connect(a.ma.bind(a))},Ke=function(a,b){if(!a.Y||a.Y.closed)a.R&&(a.R.stop(),a.R=null),a.g.setTimeout(function(){try{a.W("canceled",null)}catch(c){Je(a,c)}},b?3E3:0)},Je=function(a,b){a.I&&a.I(r.Promise.reject(b));a.disconnect()};
Fe.prototype.W=function(a,b){if(this.I){var c=this.m.isConnected();a=new qe(a,b,"popup",c?ze(this.m):Cc(this.Va),c,c);ue(this.g,a,this.I);this.I=null}this.m&&Ae(this.m,"close");this.disconnect()};Fe.prototype.ma=function(a,b){var c=this;"connect"==a?(Ce(this.m,this.Ha),this.sa()):"result"==a?(a=b.code,this.W(a,"failed"==a?Error(b.data||""):b.data)):"check"==a&&this.g.setTimeout(function(){return Ke(c)},200)};var Le=function(a,b,c,d,e){this.g=a;this.cc=b;this.dc=c;this.C=d;this.zc=e};
Le.prototype.Ga=function(){var a=this,b=new qe(this.cc,this.dc,"redirect",this.C,this.zc,!1);return new r.Promise(function(c){ue(a.g,b,c)})};var Me=function(){var a=window,b=this;this.version="1.23";this.g=a;this.L=a.location.hash;this.mb={};this.nb={};this.Mb=null;new r.Promise(function(c){b.Mb=c})},Ne=function(a,b,c){var d=new Ee(a,b,c);return d.connect().then(function(){return d})};Me.prototype.open=function(a,b,c,d,e){return{pd:Oe(this,a,b,c,d,e).Ma()}};
var Pe=function(a,b,c,d,e){var g=Oe(a,"GPAY",b,c,d,e);return g.Za.then(function(){return g})};
Me.prototype.xa=function(a,b){var c=this.mb[a];c||(c=[],this.mb[a]=c);c.push(b);c=this.nb[a];if(!c&&this.L){try{var d=this.g,e=se(this.L).__WA_RES__;if(e){var g=JSON.parse(e);if(g&&g.requestId==a){var f=d.location.hash;if(f){var h=encodeURIComponent("__WA_RES__")+"=";e=-1;do if(e=f.indexOf(h,e),-1!=e){var l=0<e?f.substring(e-1,e):"";if(""==l||"?"==l||"#"==l||"&"==l){var k=f.indexOf("&",e+1);-1==k&&(k=f.length);f=f.substring(0,e)+f.substring(k+1)}else e++}while(-1!=e&&e<f.length)}var q=f;q=q||"";if(q!=
d.location.hash&&d.history&&d.history.replaceState)try{d.history.replaceState(d.history.state,"",q)}catch(V){}var x=g.code,E=g.data,H=g.origin,pa=d.document.referrer&&Cc(d.document.referrer);c=new Le(d,x,E,H,H==pa)}else c=null}else c=null}catch(V){we(V),this.Mb(V)}c&&(this.nb[a]=c)}(a=c)&&Qe(a,b)};
var Oe=function(a,b,c,d,e,g){var f=new Fe(a.g,b,c,d,e,g);f.open().then(function(){Re(a,b,f)});return f},Qe=function(a,b){r.Promise.resolve().then(function(){b(a)})},Re=function(a,b,c){var d=a.mb[b];d&&d.forEach(function(e){Qe(c,e)});a.nb[b]=c};var U=function(a,b,c,d){this.s=a;this.Wa=b||!1;this.tb=c||new Me;this.Cb=new sd;this.za=this.ba=null;this.pb=!1;this.zb=this.j=null;this.Nb=d||null;this.ib=this.jb=this.B=this.Ca=null;this.ga=3E4;this.Wa&&D("\n.google-payments-dialog {\n animation: none 0s ease 0s 1 normal none running;\n background: none 0 0 / auto repeat scroll padding-box border-box #fff;\n border: 0 none #333;\n border-collapse: separate;\n bottom: 0;\n box-shadow: #808080 0 3px 0 0, #808080 0 0 22px;\n box-sizing: border-box;\n letter-spacing: normal;\n max-height: 100%;\n overflow: visible;\n position: fixed;\n width: 100%;\n appearance: none;\n left: 0;\n}\n@media (min-width: 600px) {\n .google-payments-dialog {\n width: 480px;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n max-height: 600px;\n }\n}\n.google-payments-dialogContainer {\n position: fixed;\n z-index: 2147483647;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n overflow: hidden;\n background-color: rgba(0,0,0,0.4);\n}\n")};
U.prototype.xa=function(a){this.ba||(this.ba=a,this.tb.xa("GPAY",this.lc.bind(this)))};
U.prototype.lc=function(a){var b=this;ud(this.Cb);this.ba(a.Ga().then(function(c){if("TIN"!=b.s&&c.origin!=Se(b))throw Error("channel mismatch");var d=c.data;if(d.redirectEncryptedCallbackData)return L=3,Te(b,d.redirectEncryptedCallbackData).then(function(e){var g=t(Object,"assign").call(Object,{},d);delete g.redirectEncryptedCallbackData;return t(Object,"assign").call(Object,g,e)});if(!c.gb||!c.wc)throw Error("channel mismatch");return d},function(c){var d=c.message;c=c.message;try{c=JSON.parse(d.substring(7))}catch(e){}c.statusCode&&
-1==["DEVELOPER_ERROR","MERCHANT_ACCOUNT_ERROR"].indexOf(c.statusCode)&&(c={statusCode:"CANCELED"});"AbortError"==c&&(c={statusCode:"CANCELED"});return r.Promise.reject(c)}))};
var Te=function(a,b){return new r.Promise(function(c,d){var e=Ue(a),g=new XMLHttpRequest;g.open("POST",e,!0);"withCredentials"in g&&(g.withCredentials=!0);g.onreadystatechange=function(){if(!(2>g.readyState))if(100>g.status||599<g.status)g.onreadystatechange=null,d(Error("Unknown HTTP status "+g.status));else if(4==g.readyState)try{c(JSON.parse(g.responseText))}catch(f){d(f)}};g.onerror=function(){d(Error("Network failure"))};g.onabort=function(){d(Error("Request aborted"))};g.send(b)})};
U.prototype.isReadyToPay=function(a){var b=this;return new r.Promise(function(c,d){if(zd(a))c({result:!1});else{var e=window.navigator.userAgent,g=0<e.indexOf("OPA/")&&0<e.indexOf("AppleWebKit"),f=0<e.indexOf("Instagram"),h=0<e.indexOf("FB_IAB")||0<e.indexOf("FBIOS"),l=0<e.indexOf("AndroidMapsWebView");if((g||f||h||l)&&!b.Wa)c({result:!1});else{f=!1;if(google.payments.api.ReadyToPayAdditionalBrowsers){if(0<e.indexOf("UCMini")){c({result:!1});return}f=0<e.indexOf("OPT")||0<e.indexOf("UCBrowser")}var k=
0<e.indexOf("Chrome")||0<e.indexOf("Firefox")||0<e.indexOf("Safari")||f||g;k&&2<=a.apiVersion&&a.existingPaymentMethodRequired?(a.environment=b.s,dc(a,6,["isReadyToPayResponse","isReadyToPayError"],function(q){var x={result:k};a.existingPaymentMethodRequired&&(q.data.isReadyToPayError?d({statusCode:"DEVELOPER_ERROR",statusMessage:"Ready to pay error. Cause : "+q.data.isReadyToPayError}):x.paymentMethodPresent="READY_TO_PAY"==q.data.isReadyToPayResponse);c(x)})):c({result:k})}}})};
U.prototype.prefetchPaymentData=function(a){if(this.Wa){this.ra(a);var b=Ve(this),c=We(this,b.container,b.iframe,a,Xe(a));this.za={container:b.container,iframe:b.iframe,request:a,dataPromise:c}}};
U.prototype.loadPaymentData=function(a){var b=this;a.swg||a.apiVersion||(a.apiVersion=1);if(a.forceRedirect&&this.B)throw Error("Callback is not supported in redirect mode");a.environment=this.s;this.ra(a);var c=Xe(a);if(this.Wa){L=1;if(this.za){var d=this.za;a=this.za.dataPromise;this.za=null}else d=Ve(this),a=We(this,d.container,d.iframe,a,c);Ye(this,d.container,d.iframe);history.pushState({},"",window.location.href);var e=function(g){g.preventDefault();g=d;g.container.parentNode&&(b.zb(r.Promise.reject({errorCode:"CANCELED"})),
Ze(g.container,g.iframe),b.j&&b.j.disconnect());window.removeEventListener("popstate",e)};window.addEventListener("popstate",e);c=new r.Promise(function(g){b.zb=g});this.ba(r.Promise.race([a,c]))}else return L=a.forceRedirect?3:2,Pe(this.tb,$e(this,c),a.forceRedirect?B("_top"):B("gp-js-popup"),a,af(a)).then(function(g){var f=new ld;b.Cb.show(g&&g.Ma());google.payments.api.EnableClosePopupOnHostingPageUnload&&window.addEventListener("beforeunload",function(){var h;null==(h=g.Ma())||h.close()});g.onMessage(function(h){"partialPaymentDataCallback"==
h.type?b.jb=qd(h.data,b.B,b.ga,f.Pa).then(function(l){return g.message(l)}):"fullPaymentDataCallback"==h.type&&(b.ib=pd(h.data,b.B,b.ga,f.Pa).then(function(l){g.message(l)}))})})};var af=function(a){var b={width:600,height:600};a.forceRedirect||a.swg||(b.disableRedirectFallback=!0);return b};U.prototype.kb=function(a){this.B=a};
var Se=function(a){return"LOCAL"==a.s?"":"https://"+("PREPROD"==a.s?"pay-preprod.sandbox":"SANDBOX"==a.s?"pay.sandbox":"CANARY"==a.s?"ibfe-canary.corp":"pay")+".google.com"},Ue=function(a){var b=Se(a)+"/gp/p/apis/buyflow/process";a.Nb&&(b+="?rk="+encodeURIComponent(a.Nb));return b},Xe=function(a){var b;if(null==(b=a.i)?0:b.disableNgbf)return!1;var c;if((null==(c=a.callbackIntents)?0:c.length)&&!google.payments.api.EnableWebNgbfForCallbackIntents||a.nd)return!1;if(a.allowedPaymentMethods)for(a=v(a.allowedPaymentMethods),
b=a.next();!b.done;b=a.next())if(b=b.value,b.parameters&&b.parameters.cvcRequired)return!1;return!0},$e=function(a,b){a="TIN"==a.s?"/ui/pay":Se(a)+"/gp/p/ui/pay";b&&(a+="?ng=true");return a},bf=function(a,b,c,d){var e=window.location.origin,g=B("https://pay.google.com/%{path}");if("CANARY"==a)g=B("https://ibfe-canary.corp.google.com/%{path}");else if("SANDBOX"==a||"PREPROD"==a)g=B("https://pay"+("PREPROD"==a?"-preprod":"")+".sandbox.google.com/%{path}");a={origin:e,coordination_token:void 0===c?"":
c,ng:b,hl:void 0===d?"":d};g=hb(g,{path:B("gp/p/ui/pay")});g=db(g).toString();g=ib.exec(g);b=g[3]||"";return gb(g[1]+jb("?",g[2]||"",a)+jb("#",b))},Ze=function(a,b){cf(b,"all 250ms ease 0s");b.height="0px";setTimeout(function(){a.parentNode&&a.parentNode.removeChild(a)},250)},Ve=function(a){var b=document.createElement("div");b.classList.add("google-payments-dialogContainer");var c=document.createElement("div");c.classList.add("iframeContainer");var d=document.createElement("iframe");d.classList.add("google-payments-dialog");
d.setAttribute("frameborder","0");d.setAttribute("scrolling","no");c.appendChild(d);b.appendChild(c);document.body.appendChild(b);b={container:b,iframe:d};c=b.iframe;d=b.container;d.addEventListener("click",xa(a.bc,a,b));d.style.display="none";c.style.display="none";c.height="0px";cf(c,"all 250ms ease 0s");a.pb=!1;return b};U.prototype.bc=function(a){a.container.parentNode&&history.back()};
var Ye=function(a,b,c){b.style.display="block";c.style.display="block";setTimeout(function(){c.height="280px";setTimeout(function(){a.pb=!0;a.Ca&&(cf(c,a.Ca.transition),c.height=a.Ca.height,a.Ca=null)},250)},1)},cf=function(a,b){Nd(a,b);a.style.setProperty("-webkit-transition",b)},We=function(a,b,c,d,e){d.swg||d.apiVersion||(d.apiVersion=1);var g="";d.i&&d.i.coordinationToken&&(g=d.i.coordinationToken);d.environment=a.s;var f;e=bf(a.s,e,g,d.i.firstPartyLocale);return Ne(c,e,d).then(function(h){a.j=
h;var l=new ld;h.onMessage(function(k){"partialPaymentDataCallback"==k.type?a.jb=qd(k.data,a.B,a.ga,l.Pa).then(function(q){return h.message(q)}):"fullPaymentDataCallback"==k.type?a.ib=pd(k.data,a.B,a.ga,l.Pa).then(function(q){return h.message(q)}):"resize"==k.type&&(a.pb?(f||(f=Date.now()),Date.now()<f+250?cf(c,k.transition+", height 250ms"):cf(c,k.transition),c.height=k.height):a.Ca={height:k.height,transition:k.transition})});return h.Ga()}).then(function(h){Ze(b,c);history.back();return h.data},
function(h){Ze(b,c);history.back();return r.Promise.reject(h)})};U.prototype.ra=function(a){var b={startTimeMs:Date.now()};a.i=a.i?t(Object,"assign").call(Object,b,a.i):b};var df="actions.google.com amp-actions.sandbox.google.com amp-actions-staging.sandbox.google.com amp-actions-autopush.sandbox.google.com payments.developers.google.com payments.google.com".split(" "),X=function(a,b,c,d){this.fb=b;Dd(a);this.Fb=null;this.s=a.environment||"TEST";ef||(ef=-1!=df.indexOf(window.location.hostname)&&a.i&&a.i.googleTransactionId?a.i.googleTransactionId:ic(this.s));this.G=a;this.yb=a.merchantInfo&&a.merchantInfo.merchantId?a.merchantInfo.merchantId:"";a.paymentDataCallback&&
(a.paymentDataCallbacks={onPaymentDataChanged:a.paymentDataCallback});this.B=null;this.l=new ff(a,c);this.Z=new U(this.s,c,d,a.i&&a.i.redirectKey);this.ia=5;this.N=null;b=this.l.mode;this.la=5===b||4===b?new vd(this.s):this.Z;a.paymentDataCallbacks&&(this.B=a.paymentDataCallbacks,this.la.kb(a.paymentDataCallbacks),this.Z.kb(a.paymentDataCallbacks));this.Z.xa(this.Ib.bind(this));this.la.xa(this.Ib.bind(this));L=b;$b=ef;M({eventType:9,clientLatencyStartMs:Date.now(),buyFlowActivityReason:this.l.o,softwareInfo:W(this)});
window.addEventListener("message",function(e){-1!=df.indexOf(window.location.hostname)&&"logPaymentData"===e.data.name&&M(e.data.data)})},ef,W=function(a){return a.G.merchantInfo&&a.G.merchantInfo.softwareInfo?a.G.merchantInfo.softwareInfo:null};
X.prototype.isReadyToPay=function(a){var b=this;if(a){var c={};this.G.environment&&(c.environment=this.G.environment);this.G.merchantInfo&&(c.merchantInfo=this.G.merchantInfo);this.G.i&&(c.i=this.G.i);a=t(Object,"assign").call(Object,{},c,a);this.yb=a.merchantInfo&&a.merchantInfo.merchantId?a.merchantInfo.merchantId:""}var d=Date.now(),e=[].concat(ha(this.l.o));M({eventType:12,clientLatencyStartMs:d,buyFlowActivityReason:e,softwareInfo:W(this)});var g=Cd()||Ed(a);if(g)return new r.Promise(function(k,
q){mc({aa:"isReadyToPay",errorMessage:g});M({eventType:0,buyFlowActivityReason:e,error:2,softwareInfo:W(b)});q({statusCode:"DEVELOPER_ERROR",statusMessage:g})});var f=[].concat(ha(this.l.o)),h=gf(this,a,f);if(a.activityModeRequired){var l=null;return hf.then(function(k){l=k;return h},function(){l=!1;return h}).then(function(k){l||(f.push(40),5===b.l.mode&&(b.l.mode=2));k.activityMode=b.l.mode;jf(b,d,k,f,a);return k}).catch(function(k){kf(b,k,f,a);throw k;})}return h.then(function(k){jf(b,d,k,f,a);
return k}).catch(function(k){kf(b,k,f,a);throw k;})};
var jf=function(a,b,c,d,e){M({eventType:0,clientLatencyStartMs:b,isReadyToPayApiResponse:c,buyFlowActivityReason:d,softwareInfo:W(a),isReadyToPayRequest:e})},kf=function(a,b,c,d){b.statusCode?(b=b.statusCode,b="INTERNAL_ERROR"==b?1:"DEVELOPER_ERROR"==b?2:"MERCHANT_ACCOUNT_ERROR"==b?4:"UNSUPPORTED_API_VERSION"==b?5:"BUYER_CANCEL"==b?6:0):b=1;M({eventType:0,buyFlowActivityReason:c,error:b,softwareInfo:W(a),isReadyToPayRequest:d})},gf=function(a,b,c){if(google.payments.api.DisableNativeReadyToPayCheckForPaymentHandler?
4===a.l.mode&&!lf(b):a.l.Da&&!lf(b)){if(2<=b.apiVersion)return mf(a,b,c);var d=a.Z.isReadyToPay(b),e=a.la.isReadyToPay(b);if(zd(b)&&!a.l.qa)return c.push(6),e;c.push(7);return e.then(function(){return d})}return a.Z.isReadyToPay(b)},mf=function(a,b,c){var d=r.Promise.resolve({result:!1});b.existingPaymentMethodRequired&&(d=r.Promise.resolve({result:!1,paymentMethodPresent:!1}));var e=d;if(Bd(b,"CRYPTOGRAM_3DS")){e=JSON.parse(JSON.stringify(b));for(var g=0;g<e.allowedPaymentMethods.length;g++)"CARD"==
e.allowedPaymentMethods[g].type&&(e.allowedPaymentMethods[g].parameters.allowedAuthMethods=["CRYPTOGRAM_3DS"]);c.push(8);e=a.la.isReadyToPay(e)}var f=d;Bd(b,"PAN_ONLY")&&(c.push(9),f=a.Z.isReadyToPay(b));return a.l.qa?(c.push(99),e.then(function(){return f})):e.then(function(h){return 1==(h&&h.result)?h:f})};m=X.prototype;m.prefetchPaymentData=function(a){var b=Cd()||Id(a);b?mc({aa:"prefetchPaymentData",errorMessage:b}):(this.ra(a),this.l.Da&&!lf(a)?this.la.prefetchPaymentData(a):this.Z.prefetchPaymentData(a))};
m.notifyAvailableOffers=function(){};
m.loadPaymentData=function(a){var b=this,c=[].concat(ha(this.l.o)),d=function(){return M({eventType:5,buyFlowActivityReason:c.length?c:[99],softwareInfo:W(b),buttonInfo:b.N})},e=Cd()||Id(a);this.ia=a&&a.swg?6:5;L=this.l.mode;if(e)this.fb(new r.Promise(function(l,k){M({eventType:1,error:2,buyFlowMode:b.ia,softwareInfo:W(b),buttonInfo:b.N});mc({aa:"loadPaymentData",errorMessage:e});k({statusCode:"DEVELOPER_ERROR",statusMessage:e})})),d();else{if(this.B||a.callbackIntents){var g=Kd(a,this.B);if(g){this.fb(new r.Promise(function(l,
k){M({eventType:1,error:2,buyFlowMode:b.ia,softwareInfo:W(b),buttonInfo:b.N});mc({aa:"loadPaymentData",errorMessage:g});k({statusCode:"DEVELOPER_ERROR",statusMessage:g})}));d();return}}this.Fb=Date.now();var f=nf(this.l,a,c),h=5===f||4===f?this.la:this.Z;f!==this.l.mode&&(L=f);this.ra(a);d();h.loadPaymentData(a)}};
m.ka=function(a){a=void 0===a?{}:a;this.N=gc(a);var b=bd(a,this.yb,function(c){return M({eventType:c})});void 0!=a.buttonVariant&&(this.N.buttonVariant=Number(a.buttonVariant));M({eventType:2,clientLatencyStartMs:Date.now(),buyFlowActivityReason:this.l.o,softwareInfo:W(this),buttonInfo:this.N});return b};
m.Ib=function(a){var b=this;a=a.then(function(c){google.payments.api.LogInternally&&console.log("payment data",c);if(c.error){var d=Error();d.statusCode=c.error.statusCode;d.statusMessage=c.error.statusMessage;mc({aa:"loadPaymentData",errorMessage:d.statusMessage});throw d;}return c});a.then(function(c){google.payments.api.LogInternally&&console.log("payment data resolve to ",c);M({eventType:1,clientLatencyStartMs:b.Fb,buyFlowMode:b.ia,buyFlowActivityReason:b.l.o,softwareInfo:W(b),buttonInfo:b.N})}).catch(function(c){google.payments.api.LogInternally&&
console.log("payment data has error",c);c.errorCode?M({eventType:1,error:c.errorCode,buyFlowMode:b.ia,buyFlowActivityReason:b.l.o,softwareInfo:W(b),buttonInfo:b.N}):M({eventType:1,error:6,buyFlowMode:b.ia,buyFlowActivityReason:b.l.o,softwareInfo:W(b),buttonInfo:b.N})});this.fb(a)};
m.ra=function(a){var b={googleTransactionId:ef,usingPayJs:!0};a.i=a.i?t(Object,"assign").call(Object,b,a.i):b;a.i.firstPartyMerchantIdentifier&&delete a.i.firstPartyMerchantIdentifier;this.G.i&&this.G.i.firstPartyMerchantIdentifier&&(a.i.firstPartyMerchantIdentifier=this.G.i.firstPartyMerchantIdentifier)};X.prototype.createButton=X.prototype.ka;X.prototype.loadPaymentData=X.prototype.loadPaymentData;X.prototype.notifyAvailableOffers=X.prototype.notifyAvailableOffers;
X.prototype.prefetchPaymentData=X.prototype.prefetchPaymentData;X.prototype.isReadyToPay=X.prototype.isReadyToPay;
var hf=null,of=null,ff=function(a,b){b=void 0===b?!1:b;this.Ya=a;this.o=[];null!=window.navigator.userAgent.match(/Android|iPhone|iPad|iPod|BlackBerry|IEMobile/i)?(this.o.push(37),a=!1):(a=window.navigator.userAgent.match(/Chrome\/([0-9]+)\./i),"PaymentRequest"in window&&null!=a&&70<=Number(a[1])&&"Google Inc."==window.navigator.vendor?(this.o.push(98),this.Ya.paymentDataCallbacks&&this.o.push(97),a=!0):(this.o.push(36),a=!1));this.qa=a;this.Da=pf(this);this.mode=2;b?(this.o=[38],this.mode=1):this.Da&&
this.qa?this.mode=5:this.Da&&(this.mode=4);this.Ya.paymentDataCallbacks&&this.o.push(1)},lf=function(a){return!0===(a.i&&a.i.disableNative)},nf=function(a,b,c){return 2===a.mode||1===a.mode?a.mode:lf(b)?(c.push(3),2):!of&&(a.qa||google.payments.api.UseCanMakePaymentForFallbackOnMobile&&a.Da)?(c.push(40),2):a.qa&&b.swg?(c.push(5),2):a.mode},pf=function(a){if(!window.PaymentRequest)return a.o.push(41),!1;var b=-1!==window.navigator.userAgent.indexOf("OPT/"),c=-1!==window.navigator.userAgent.indexOf("SamsungBrowser/");
if(-1!==window.navigator.userAgent.indexOf("OPR/")||b||c)return a.o.push(35),!1;if(a.qa)return!0;if(google.payments.api.DisablePaymentRequest&&!google.payments.api.EnablePaymentRequest)return a.o.push(3),!1;b=window.navigator.userAgent.match(/Android/i);c=window.navigator.userAgent.match(/Chrome\/([0-9]+)\./i);if(!(null!=b&&"PaymentRequest"in window&&"Google Inc."==window.navigator.vendor&&null!=c&&59<=Number(c[1])))return a.o.push(34),!1;if(!a.Ya.paymentDataCallbacks)return!0;if(92>Number(c[1]))return!1;
a.o.push(96);return google.payments.api.EnableDynamicUpdateForClank?!0:(a.o.push(42),!1)};ra("google.payments.api.PaymentsAsyncClient",X);X.prototype.isReadyToPay=X.prototype.isReadyToPay;X.prototype.prefetchPaymentData=X.prototype.prefetchPaymentData;X.prototype.loadPaymentData=X.prototype.loadPaymentData;X.prototype.createButton=X.prototype.ka;X.prototype.notifyAvailableOffers=X.prototype.notifyAvailableOffers;var Y=function(){var a=Error.call(this,"This method can only be called one at a time");this.message=a.message;"stack"in a&&(this.stack=a.stack)},qf=Error;Y.prototype=ia(qf.prototype);Y.prototype.constructor=Y;if(na)na(Y,qf);else for(var rf in qf)if("prototype"!=rf)if(Object.defineProperties){var sf=Object.getOwnPropertyDescriptor(qf,rf);sf&&Object.defineProperty(Y,rf,sf)}else Y[rf]=qf[rf];Y.pa=qf.prototype;var Z=function(a,b){a=void 0===a?{}:a;this.jc=jc({},window.gpayMerchantIdFromUrl?{merchantInfo:{merchantId:window.gpayMerchantIdFromUrl}}:{},window.gpayInitParams,a);this.Ia=new X(this.jc,this.nc.bind(this),b);this.ya=null};m=Z.prototype;m.nc=function(a){this.ya(a)};m.isReadyToPay=function(a){return this.Ia.isReadyToPay(a)};m.prefetchPaymentData=function(a){this.Ia.prefetchPaymentData(a)};m.notifyAvailableOffers=function(){};
m.loadPaymentData=function(a){var b=this;google.payments.api.EnablePwgTestExperiment&&console.log("ZOMBIEMONKEYATEMYBRAIN");return(new r.Promise(function(c){if(b.ya)throw new Y;b.ya=c;b.Ia.loadPaymentData(a)})).then(function(c){b.ya=null;return c},function(c){c instanceof Y||(b.ya=null);throw c;})};m.ka=function(a){a=void 0===a?{}:a;return this.Ia.ka(a)};Z.prototype.createButton=Z.prototype.ka;Z.prototype.loadPaymentData=Z.prototype.loadPaymentData;Z.prototype.notifyAvailableOffers=Z.prototype.notifyAvailableOffers;
Z.prototype.prefetchPaymentData=Z.prototype.prefetchPaymentData;Z.prototype.isReadyToPay=Z.prototype.isReadyToPay;ra("google.payments.api.PaymentsClient",Z);Z.prototype.isReadyToPay=Z.prototype.isReadyToPay;Z.prototype.prefetchPaymentData=Z.prototype.prefetchPaymentData;Z.prototype.loadPaymentData=Z.prototype.loadPaymentData;Z.prototype.createButton=Z.prototype.ka;Z.prototype.notifyAvailableOffers=Z.prototype.notifyAvailableOffers;if(google.payments.api.UseCanMakePaymentResultFromPayjs){try{hf=(new PaymentRequest([{supportedMethods:["https://google.com/pay"],data:{apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:[{type:"CARD",parameters:{allowedAuthMethods:["PAN_ONLY","CRYPTOGRAM_3DS"],allowedCardNetworks:["VISA","MASTERCARD"]}}]}}],{total:{label:"Estimated Total Price",amount:{currency:"USD",value:"10"}}})).canMakePayment()}catch(a){hf=r.Promise.resolve(!1)}hf.then(function(a){return of=a}).catch(function(){return of=
!1})};}).call(this);