@paypal/messaging-components 1.68.1 → 1.68.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bizcomponents/js/messaging.js +2 -2
- package/dist/bizcomponents/js/modal.js +2 -2
- package/dist/bizcomponents/js/renderMessage.js +2 -2
- package/dist/bizcomponents/js/smart-credit-message.js +2 -2
- package/dist/bizcomponents/js/smart-credit-modal-v2-lander.js +2 -2
- package/dist/bizcomponents/js/smart-credit-modal-v2.js +2 -2
- package/dist/bizcomponents/js/versioned/{messaging@1.68.1.js → messaging@1.68.2.js} +3 -3
- package/dist/bizcomponents/js/versioned/{modal@1.68.1.js → modal@1.68.2.js} +3 -3
- package/dist/bizcomponents/{sandbox/versioned/renderMessage@1.68.1.js → js/versioned/renderMessage@1.68.2.js} +3 -3
- package/dist/bizcomponents/js/versioned/{smart-credit-message@1.68.1.js → smart-credit-message@1.68.2.js} +3 -3
- package/dist/bizcomponents/js/versioned/{smart-credit-modal-v2-lander@1.68.1.js → smart-credit-modal-v2-lander@1.68.2.js} +3 -3
- package/dist/bizcomponents/js/versioned/{smart-credit-modal-v2@1.68.1.js → smart-credit-modal-v2@1.68.2.js} +3 -3
- package/dist/bizcomponents/sandbox/messaging.js +2 -2
- package/dist/bizcomponents/sandbox/modal.js +2 -2
- package/dist/bizcomponents/sandbox/renderMessage.js +2 -2
- package/dist/bizcomponents/sandbox/smart-credit-message.js +2 -2
- package/dist/bizcomponents/sandbox/smart-credit-modal-v2-lander.js +2 -2
- package/dist/bizcomponents/sandbox/smart-credit-modal-v2.js +2 -2
- package/dist/bizcomponents/sandbox/versioned/{messaging@1.68.1.js → messaging@1.68.2.js} +3 -3
- package/dist/bizcomponents/sandbox/versioned/{modal@1.68.1.js → modal@1.68.2.js} +3 -3
- package/dist/bizcomponents/{js/versioned/renderMessage@1.68.1.js → sandbox/versioned/renderMessage@1.68.2.js} +3 -3
- package/dist/bizcomponents/sandbox/versioned/{smart-credit-message@1.68.1.js → smart-credit-message@1.68.2.js} +3 -3
- package/dist/bizcomponents/sandbox/versioned/{smart-credit-modal-v2-lander@1.68.1.js → smart-credit-modal-v2-lander@1.68.2.js} +3 -3
- package/dist/bizcomponents/sandbox/versioned/{smart-credit-modal-v2@1.68.1.js → smart-credit-modal-v2@1.68.2.js} +3 -3
- package/dist/bizcomponents/stage/messaging.js +2 -2
- package/dist/bizcomponents/stage/modal.js +2 -2
- package/dist/bizcomponents/stage/renderMessage.js +2 -2
- package/dist/bizcomponents/stage/smart-credit-message.js +2 -2
- package/dist/bizcomponents/stage/smart-credit-modal-v2-lander.js +2 -2
- package/dist/bizcomponents/stage/smart-credit-modal-v2.js +2 -2
- package/dist/bizcomponents/stage/versioned/{messaging@1.68.1.js → messaging@1.68.2.js} +3 -3
- package/dist/bizcomponents/stage/versioned/{modal@1.68.1.js → modal@1.68.2.js} +3 -3
- package/dist/bizcomponents/stage/versioned/{renderMessage@1.68.1.js → renderMessage@1.68.2.js} +3 -3
- package/dist/bizcomponents/stage/versioned/{smart-credit-message@1.68.1.js → smart-credit-message@1.68.2.js} +3 -3
- package/dist/bizcomponents/stage/versioned/{smart-credit-modal-v2-lander@1.68.1.js → smart-credit-modal-v2-lander@1.68.2.js} +3 -3
- package/dist/bizcomponents/stage/versioned/{smart-credit-modal-v2@1.68.1.js → smart-credit-modal-v2@1.68.2.js} +3 -3
- package/package.json +2 -2
- /package/dist/bizcomponents/js/versioned/{messaging@1.68.1.js.map → messaging@1.68.2.js.map} +0 -0
- /package/dist/bizcomponents/js/versioned/{modal@1.68.1.js.map → modal@1.68.2.js.map} +0 -0
- /package/dist/bizcomponents/js/versioned/{renderMessage@1.68.1.js.map → renderMessage@1.68.2.js.map} +0 -0
- /package/dist/bizcomponents/js/versioned/{smart-credit-message@1.68.1.js.map → smart-credit-message@1.68.2.js.map} +0 -0
- /package/dist/bizcomponents/js/versioned/{smart-credit-modal-v2-lander@1.68.1.js.map → smart-credit-modal-v2-lander@1.68.2.js.map} +0 -0
- /package/dist/bizcomponents/js/versioned/{smart-credit-modal-v2@1.68.1.js.map → smart-credit-modal-v2@1.68.2.js.map} +0 -0
- /package/dist/bizcomponents/sandbox/versioned/{messaging@1.68.1.js.map → messaging@1.68.2.js.map} +0 -0
- /package/dist/bizcomponents/sandbox/versioned/{modal@1.68.1.js.map → modal@1.68.2.js.map} +0 -0
- /package/dist/bizcomponents/sandbox/versioned/{renderMessage@1.68.1.js.map → renderMessage@1.68.2.js.map} +0 -0
- /package/dist/bizcomponents/sandbox/versioned/{smart-credit-message@1.68.1.js.map → smart-credit-message@1.68.2.js.map} +0 -0
- /package/dist/bizcomponents/sandbox/versioned/{smart-credit-modal-v2-lander@1.68.1.js.map → smart-credit-modal-v2-lander@1.68.2.js.map} +0 -0
- /package/dist/bizcomponents/sandbox/versioned/{smart-credit-modal-v2@1.68.1.js.map → smart-credit-modal-v2@1.68.2.js.map} +0 -0
- /package/dist/bizcomponents/stage/versioned/{messaging@1.68.1.js.map → messaging@1.68.2.js.map} +0 -0
- /package/dist/bizcomponents/stage/versioned/{modal@1.68.1.js.map → modal@1.68.2.js.map} +0 -0
- /package/dist/bizcomponents/stage/versioned/{renderMessage@1.68.1.js.map → renderMessage@1.68.2.js.map} +0 -0
- /package/dist/bizcomponents/stage/versioned/{smart-credit-message@1.68.1.js.map → smart-credit-message@1.68.2.js.map} +0 -0
- /package/dist/bizcomponents/stage/versioned/{smart-credit-modal-v2-lander@1.68.1.js.map → smart-credit-modal-v2-lander@1.68.2.js.map} +0 -0
- /package/dist/bizcomponents/stage/versioned/{smart-credit-modal-v2@1.68.1.js.map → smart-credit-modal-v2@1.68.2.js.map} +0 -0
@@ -1,3 +1,3 @@
|
|
1
|
-
/* version: 1.68.
|
2
|
-
!function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return{}.hasOwnProperty.call(e,n)},t.p="",t(t.s=171)}([function(e,n){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,n,t){var r=t(34),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);e.exports=r?a:function(e){return function(){return i.apply(e,arguments)}}},function(e,n,t){var r=t(65),o=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},function(e,n,t){var r=t(7),o=t(72),i=t(12),a=t(49),u=t(71),c=t(70),s=r.Symbol,d=o("wks"),f=c?s.for||s:s&&s.withoutSetter||a;e.exports=function(e){return i(d,e)||(d[e]=u&&i(s,e)?s[e]:f("Symbol."+e)),d[e]}},function(e,n,t){var r=t(156);e.exports=r},function(e,n,t){var r=t(0);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,n,t){"use strict";var r=t(7),o=t(111),i=t(52),a=t(2),u=t(73).f,c=t(112),s=t(16),d=t(25),f=t(20),l=t(12),p=function(e){var n=function(t,r,i){if(this instanceof n){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,i)}return o(e,this,arguments)};return n.prototype=e.prototype,n};e.exports=function(e,n){var t,o,h,v,y,m,w,g,E,_=e.target,b=e.global,S=e.stat,N=e.proto,T=b?r:S?r[_]:(r[_]||{}).prototype,A=b?s:s[_]||f(s,_,{})[_],P=A.prototype;for(v in n)o=!(t=c(b?v:_+(S?".":"#")+v,e.forced))&&T&&l(T,v),m=A[v],o&&(w=e.dontCallGetSet?(E=u(T,v))&&E.value:T[v]),y=o&&w?w:n[v],o&&typeof m==typeof y||(g=e.bind&&o?d(y,r):e.wrap&&o?p(y):N&&a(y)?i(y):y,(e.sham||y&&y.sham||m&&m.sham)&&f(g,"sham",!0),f(A,v,g),N&&(l(s,h=_+"Prototype")||f(s,h,{}),f(s[h],v,y),e.real&&P&&(t||!P[v])&&f(P,v,y)))}},function(e,n){var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof window&&window)||function(){return this}()||this||Function("return this")()},function(e,n,t){var r=t(146);e.exports=r},,function(e,n,t){var r=t(2),o=t(65),i=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===i}:function(e){return"object"==typeof e?null!==e:r(e)}},function(e,n,t){var r=t(34),o=function(){}.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},function(e,n,t){var r=t(1),o=t(21),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,n){return i(o(e),n)}},function(e,n,t){var r=t(151);e.exports=r},function(e,n,t){var r=t(5),o=t(66),i=t(68),a=t(15),u=t(44),c=TypeError,s=Object.defineProperty,d=Object.getOwnPropertyDescriptor;n.f=r?i?function(e,n,t){if(a(e),n=u(n),a(t),"function"==typeof e&&"prototype"===n&&"value"in t&&"writable"in t&&!t.writable){var r=d(e,n);r&&r.writable&&(e[n]=t.value,t={configurable:"configurable"in t?t.configurable:r.configurable,enumerable:"enumerable"in t?t.enumerable:r.enumerable,writable:!1})}return s(e,n,t)}:s:function(e,n,t){if(a(e),n=u(n),a(t),o)try{return s(e,n,t)}catch(e){}if("get"in t||"set"in t)throw c("Accessors not supported");return"value"in t&&(e[n]=t.value),e}},function(e,n,t){var r=t(10),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not an object")}},function(e,n){e.exports={}},function(e,n,t){var r=t(144);e.exports=r},function(e,n,t){var r=t(43),o=t(27);e.exports=function(e){return r(o(e))}},function(e,n,t){var r=t(1),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},function(e,n,t){var r=t(5),o=t(14),i=t(38);e.exports=r?function(e,n,t){return o.f(e,n,i(1,t))}:function(e,n,t){return e[n]=t,e}},function(e,n,t){var r=t(27),o=Object;e.exports=function(e){return o(r(e))}},function(e,n,t){var r=t(78);e.exports=function(e){return r(e.length)}},function(e,n,t){var r=t(158);e.exports=r},function(e,n){e.exports={}},function(e,n,t){var r=t(52),o=t(29),i=t(34),a=r(r.bind);e.exports=function(e,n){return o(e),void 0===n?e:i?a(e,n):function(){return e.apply(n,arguments)}}},function(e,n,t){var r=t(140);e.exports=r},function(e,n,t){var r=t(35),o=TypeError;e.exports=function(e){if(r(e))throw o("Can't call method on "+e);return e}},function(e,n,t){var r=t(16),o=t(7),i=t(2),a=function(e){return i(e)?e:void 0};e.exports=function(e,n){return arguments.length<2?a(r[e])||a(o[e]):r[e]&&r[e][n]||o[e]&&o[e][n]}},function(e,n,t){var r=t(2),o=t(47),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a function")}},function(e,n){e.exports=!0},function(e,n,t){var r=t(60),o=t(2),i=t(19),a=t(3)("toStringTag"),u=Object,c="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var n,t,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,n){try{return e[n]}catch(e){}}(n=u(e),a))?t:c?i(n):"Object"==(r=i(n))&&o(n.callee)?"Arguments":r}},function(e,n,t){var r=t(28);e.exports=r},function(e,n,t){var r=t(148);e.exports=r},function(e,n,t){var r=t(0);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},function(e,n){e.exports=function(e){return null==e}},function(e,n){e.exports=function(){}},function(e,n,t){var r,o,i,a=t(105),u=t(7),c=t(10),s=t(20),d=t(12),f=t(48),l=t(50),p=t(39),h=u.TypeError;if(a||f.state){var v=f.state||(f.state=new(0,u.WeakMap));v.get=v.get,v.has=v.has,v.set=v.set,r=function(e,n){if(v.has(e))throw h("Object already initialized");return n.facade=e,v.set(e,n),n},o=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var y=l("state");p[y]=!0,r=function(e,n){if(d(e,y))throw h("Object already initialized");return n.facade=e,s(e,y,n),n},o=function(e){return d(e,y)?e[y]:{}},i=function(e){return d(e,y)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(n){var t;if(!c(n)||(t=o(n)).type!==e)throw h("Incompatible receiver, "+e+" required");return t}}}},function(e,n){e.exports=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}}},function(e,n){e.exports={}},function(e,n,t){var r=t(75),o=t(56);e.exports=Object.keys||function(e){return r(e,o)}},function(e,n,t){var r=t(31),o=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},function(e,n,t){var r=t(154);e.exports=r},function(e,n,t){var r=t(1),o=t(0),i=t(19),a=Object,u=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?u(e,""):a(e)}:a},function(e,n,t){var r=t(106),o=t(69);e.exports=function(e){var n=r(e,"string");return o(n)?n:n+""}},function(e,n,t){var r=t(1);e.exports=r({}.isPrototypeOf)},function(e,n,t){var r=t(29),o=t(35);e.exports=function(e,n){var t=e[n];return o(t)?void 0:r(t)}},function(e,n){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},function(e,n,t){var r=t(7),o=t(110),i=r["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,n,t){var r=t(1),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},function(e,n,t){var r=t(72),o=t(49),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,n,t){"use strict";var r=t(6),o=t(11),i=t(30),a=t(113),u=t(2),c=t(114),s=t(57),d=t(120),f=t(59),l=t(20),p=t(58),h=t(3),v=t(24),y=t(74),m=a.PROPER,w=a.CONFIGURABLE,g=y.IteratorPrototype,E=y.BUGGY_SAFARI_ITERATORS,_=h("iterator"),b=function(){return this};e.exports=function(e,n,t,a,h,y,S){c(t,n,a);var N,T,A,P=function(e){if(e===h&&C)return C;if(!E&&e in O)return O[e];switch(e){case"keys":case"values":case"entries":return function(){return new t(this,e)}}return function(){return new t(this)}},x=n+" Iterator",R=!1,O=e.prototype,I=O[_]||O["@@iterator"]||h&&O[h],C=!E&&I||P(h),D="Array"==n&&O.entries||I;if(D&&(N=s(D.call(new e)))!==Object.prototype&&N.next&&(i||s(N)===g||(d?d(N,g):u(N[_])||p(N,_,b)),f(N,x,!0,!0),i&&(v[x]=b)),m&&"values"==h&&I&&"values"!==I.name&&(!i&&w?l(O,"name","values"):(R=!0,C=function(){return o(I,this)})),h)if(T={values:P("values"),keys:y?C:P("keys"),entries:P("entries")},S)for(A in T)(E||R||!(A in O))&&p(O,A,T[A]);else r({target:n,proto:!0,forced:E||R},T);return i&&!S||O[_]===C||p(O,_,C,{name:h}),v[n]=C,T}},function(e,n,t){var r=t(19),o=t(1);e.exports=function(e){if("Function"===r(e))return o(e)}},function(e,n,t){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);n.f=i?function(e){var n=o(this,e);return!!n&&n.enumerable}:r},function(e,n,t){var r,o=t(15),i=t(115),a=t(56),u=t(39),c=t(117),s=t(67),d=t(50)("IE_PROTO"),f=function(){},l=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(l("")),e.close();var n=e.parentWindow.Object;return e=null,n},h=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,n;h="undefined"!=typeof document?document.domain&&r?p(r):((n=s("iframe")).style.display="none",c.appendChild(n),n.src=String("javascript:"),(e=n.contentWindow.document).open(),e.write(l("document.F=Object")),e.close(),e.F):p(r);for(var t=a.length;t--;)delete h.prototype[a[t]];return h()};u[d]=!0,e.exports=Object.create||function(e,n){var t;return null!==e?(f.prototype=o(e),t=new f,f.prototype=null,t[d]=e):t=h(),void 0===n?t:i.f(t,n)}},function(e,n,t){var r=t(116);e.exports=function(e){var n=+e;return n!=n||0===n?0:r(n)}},function(e,n){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,n,t){var r=t(12),o=t(2),i=t(21),a=t(50),u=t(118),c=a("IE_PROTO"),s=Object,d=s.prototype;e.exports=u?s.getPrototypeOf:function(e){var n=i(e);if(r(n,c))return n[c];var t=n.constructor;return o(t)&&n instanceof t?t.prototype:n instanceof s?d:null}},function(e,n,t){var r=t(20);e.exports=function(e,n,t,o){return o&&o.enumerable?e[n]=t:r(e,n,t),e}},function(e,n,t){var r=t(60),o=t(14).f,i=t(20),a=t(12),u=t(119),c=t(3)("toStringTag");e.exports=function(e,n,t,s){if(e){var d=t?e:e.prototype;a(d,c)||o(d,c,{configurable:!0,value:n}),s&&!r&&i(d,"toString",u)}}},function(e,n,t){var r={};r[t(3)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,n){e.exports=function(e,n){return{value:e,done:n}}},function(e,n,t){var r=t(31),o=t(46),i=t(35),a=t(24),u=t(3)("iterator");e.exports=function(e){if(!i(e))return o(e,u)||o(e,"@@iterator")||a[r(e)]}},,function(e,n,t){"use strict";var r=t(18),o=t(36),i=t(24),a=t(37),u=t(14).f,c=t(51),s=t(61),d=t(30),f=t(5),l=a.set,p=a.getterFor("Array Iterator");e.exports=c(Array,"Array",(function(e,n){l(this,{type:"Array Iterator",target:r(e),index:0,kind:n})}),(function(){var e=p(this),n=e.target,t=e.kind,r=e.index++;return!n||r>=n.length?(e.target=void 0,s(void 0,!0)):s("keys"==t?r:"values"==t?n[r]:[r,n[r]],!1)}),"values");var h=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!d&&f&&"values"!==h.name)try{u(h,"name",{value:"values"})}catch(e){}},function(e,n){var t="object"==typeof document&&document.all;e.exports={all:t,IS_HTMLDDA:void 0===t&&void 0!==t}},function(e,n,t){var r=t(5),o=t(0),i=t(67);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,n,t){var r=t(7),o=t(10),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,n,t){var r=t(5),o=t(0);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(e,n,t){var r=t(28),o=t(2),i=t(45),a=t(70),u=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var n=r("Symbol");return o(n)&&i(n.prototype,u(e))}},function(e,n,t){var r=t(71);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,n,t){var r=t(107),o=t(0),i=t(7).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(e,n,t){var r=t(30),o=t(48);(e.exports=function(e,n){return o[e]||(o[e]=void 0!==n?n:{})})("versions",[]).push({version:"3.31.1",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(e,n,t){var r=t(5),o=t(11),i=t(53),a=t(38),u=t(18),c=t(44),s=t(12),d=t(66),f=Object.getOwnPropertyDescriptor;n.f=r?f:function(e,n){if(e=u(e),n=c(n),d)try{return f(e,n)}catch(e){}if(s(e,n))return a(!o(i.f,e,n),e[n])}},function(e,n,t){"use strict";var r,o,i,a=t(0),u=t(2),c=t(10),s=t(54),d=t(57),f=t(58),l=t(3),p=t(30),h=l("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=d(d(i)))!==Object.prototype&&(r=o):v=!0),!c(r)||a((function(){var e={};return r[h].call(e)!==e}))?r={}:p&&(r=s(r)),u(r[h])||f(r,h,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},function(e,n,t){var r=t(1),o=t(12),i=t(18),a=t(76).indexOf,u=t(39),c=r([].push);e.exports=function(e,n){var t,r=i(e),s=0,d=[];for(t in r)!o(u,t)&&o(r,t)&&c(d,t);for(;n.length>s;)o(r,t=n[s++])&&(~a(d,t)||c(d,t));return d}},function(e,n,t){var r=t(18),o=t(77),i=t(22),a=function(e){return function(n,t,a){var u,c=r(n),s=i(c),d=o(a,s);if(e&&t!=t){for(;s>d;)if((u=c[d++])!=u)return!0}else for(;s>d;d++)if((e||d in c)&&c[d]===t)return e||d||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,n,t){var r=t(55),o=Math.max,i=Math.min;e.exports=function(e,n){var t=r(e);return t<0?o(t+n,0):i(t,n)}},function(e,n,t){var r=t(55),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,n,t){var r=t(6),o=t(1),i=t(39),a=t(10),u=t(12),c=t(14).f,s=t(80),d=t(126),f=t(128),l=t(49),p=t(130),h=!1,v=l("meta"),y=0,m=function(e){c(e,v,{value:{objectID:"O"+y++,weakData:{}}})},w=e.exports={enable:function(){w.enable=function(){},h=!0;var e=s.f,n=o([].splice),t={};t[v]=1,e(t).length&&(s.f=function(t){for(var r=e(t),o=0,i=r.length;o<i;o++)if(r[o]===v){n(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:d.f}))},fastKey:function(e,n){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!u(e,v)){if(!f(e))return"F";if(!n)return"E";m(e)}return e[v].objectID},getWeakData:function(e,n){if(!u(e,v)){if(!f(e))return!0;if(!n)return!1;m(e)}return e[v].weakData},onFreeze:function(e){return p&&h&&f(e)&&!u(e,v)&&m(e),e}};i[v]=!0},function(e,n,t){var r=t(75),o=t(56).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,n,t){"use strict";var r=t(44),o=t(14),i=t(38);e.exports=function(e,n,t){var a=r(n);a in e?o.f(e,a,i(0,t)):e[a]=t}},function(e,n,t){var r=t(25),o=t(11),i=t(15),a=t(47),u=t(83),c=t(22),s=t(45),d=t(84),f=t(62),l=t(85),p=TypeError,h=function(e,n){this.stopped=e,this.result=n},v=h.prototype;e.exports=function(e,n,t){var y,m,w,g,E,_,b,S=!(!t||!t.AS_ENTRIES),N=!(!t||!t.IS_RECORD),T=!(!t||!t.IS_ITERATOR),A=!(!t||!t.INTERRUPTED),P=r(n,t&&t.that),x=function(e){return y&&l(y,"normal",e),new h(!0,e)},R=function(e){return S?(i(e),A?P(e[0],e[1],x):P(e[0],e[1])):A?P(e,x):P(e)};if(N)y=e.iterator;else if(T)y=e;else{if(!(m=f(e)))throw p(a(e)+" is not iterable");if(u(m)){for(w=0,g=c(e);g>w;w++)if((E=R(e[w]))&&s(v,E))return E;return new h(!1)}y=d(e,m)}for(_=N?e.next:y.next;!(b=o(_,y)).done;){try{E=R(b.value)}catch(e){l(y,"throw",e)}if("object"==typeof E&&E&&s(v,E))return E}return new h(!1)}},function(e,n,t){var r=t(3),o=t(24),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},function(e,n,t){var r=t(11),o=t(29),i=t(15),a=t(47),u=t(62),c=TypeError;e.exports=function(e,n){var t=arguments.length<2?u(e):n;if(o(t))return i(r(t,e));throw c(a(e)+" is not iterable")}},function(e,n,t){var r=t(11),o=t(15),i=t(46);e.exports=function(e,n,t){var a,u;o(e);try{if(!(a=i(e,"return"))){if("throw"===n)throw t;return t}a=r(a,e)}catch(e){u=!0,a=e}if("throw"===n)throw t;if(u)throw a;return o(a),t}},function(e,n,t){var r=t(45),o=TypeError;e.exports=function(e,n){if(r(n,e))return e;throw o("Incorrect invocation")}},function(e,n,t){var r=t(25),o=t(1),i=t(43),a=t(21),u=t(22),c=t(88),s=o([].push),d=function(e){var n=1==e,t=2==e,o=3==e,d=4==e,f=6==e,l=7==e,p=5==e||f;return function(h,v,y,m){for(var w,g,E=a(h),_=i(E),b=r(v,y),S=u(_),N=0,T=m||c,A=n?T(h,S):t||l?T(h,0):void 0;S>N;N++)if((p||N in _)&&(g=b(w=_[N],N,E),e))if(n)A[N]=g;else if(g)switch(e){case 3:return!0;case 5:return w;case 6:return N;case 2:s(A,w)}else switch(e){case 4:return!1;case 7:s(A,w)}return f?-1:o||d?d:A}};e.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6),filterReject:d(7)}},function(e,n,t){var r=t(131);e.exports=function(e,n){return new(r(e))(0===n?0:n)}},function(e,n,t){var r=t(19);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,n,t){var r=t(1),o=t(0),i=t(2),a=t(31),u=t(28),c=t(132),s=function(){},d=[],f=u("Reflect","construct"),l=/^\s*(?:class|function)\b/,p=r(l.exec),h=!l.exec(s),v=function(e){if(!i(e))return!1;try{return f(s,d,e),!0}catch(e){return!1}},y=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(l,c(e))}catch(e){return!0}};y.sham=!0,e.exports=!f||o((function(){var e;return v(v.call)||!v(Object)||!v((function(){e=!0}))||e}))?y:v},function(e,n,t){var r=t(14);e.exports=function(e,n,t){return r.f(e,n,t)}},function(e,n,t){"use strict";var r=t(137).charAt,o=t(41),i=t(37),a=t(51),u=t(61),c=i.set,s=i.getterFor("String Iterator");a(String,"String",(function(e){c(this,{type:"String Iterator",string:o(e),index:0})}),(function(){var e,n=s(this),t=n.string,o=n.index;return o>=t.length?u(void 0,!0):(e=r(t,o),n.index+=e.length,u(e,!1))}))},function(e,n,t){var r=t(150),o=TypeError;e.exports=function(e){if(r(e))throw o("The method doesn't accept regular expressions");return e}},function(e,n,t){var r=t(3)("match");e.exports=function(e){var n=/./;try{"/./"[e](n)}catch(t){try{return n[r]=!1,"/./"[e](n)}catch(e){}}return!1}},function(e,n,t){var r=t(104);t(138),e.exports=r},function(e,n,t){var r=t(163);e.exports=r},function(e,n,t){var r=t(168);e.exports=r},function(e,n,t){e.exports=t(170)},function(e,n){e.exports=function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return{}.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}([function(e,n,t){"use strict";function r(e,n){for(var t=[],r=0;r<e.length;r++){var o=e[r].render(n);if(o)if(Array.isArray(o))for(var i=0;i<o.length;i++){var a=o[i];a&&t.push(a)}else t.push(o)}return t}t.r(n),t.d(n,"Spinner",(function(){return E})),t.d(n,"SpinnerPage",(function(){return _})),t.d(n,"VenmoSpinner",(function(){return b})),t.d(n,"VenmoSpinnerPage",(function(){return S}));var o=function(){function e(e,n,t){this.type="element",this.name=void 0,this.props=void 0,this.children=void 0,this.onRender=void 0,this.name=e,this.props=n||{},this.children=t;var r=this.props.onRender;"function"==typeof r&&(this.onRender=r,delete n.onRender)}var n=e.prototype;return n.render=function(e){var n=e(this);return this.onRender&&this.onRender(n),n},n.renderChildren=function(e){return r(this.children,e)},e}(),i=function(){function e(e){this.type="fragment",this.children=void 0,this.children=e}return e.prototype.render=function(e){return r(this.children,e)},e}(),a=function(){function e(e){this.type="text",this.text=void 0,this.text=e}return e.prototype.render=function(e){return e(this)},e}(),u=function(){function e(e,n,t){this.type="component",this.component=void 0,this.props=void 0,this.children=void 0,this.component=e,this.props=n||{},this.children=t,this.props.children=t}var n=e.prototype;return n.renderComponent=function(e){var n=function(e){var n=c(Array.isArray(e)?e:[e]);return 1===n.length?n[0]:n.length>1?new i(n):void 0}(this.component(this.props,this.children));if(n)return n.render(e)},n.render=function(e){return e(this)},n.renderChildren=function(e){return r(this.children,e)},e}();function c(e){for(var n=[],t=0;t<e.length;t++){var r=e[t];if(r)if("string"==typeof r||"number"==typeof r)n.push(new a(r.toString()));else{if("boolean"==typeof r)continue;if(Array.isArray(r))for(var o=0,i=c(r);o<i.length;o++)n.push(i[o]);else{if(!r||"element"!==r.type&&"text"!==r.type&&"component"!==r.type)throw new TypeError("Unrecognized node type: "+typeof r);n.push(r)}}}return n}var s,d,f,l=function(e,n){for(var t=arguments.length,r=new Array(t>2?t-2:0),i=2;i<t;i++)r[i-2]=arguments[i];if(r=c(r),"string"==typeof e)return new o(e,n,r);if("function"==typeof e)return new u(e,n,r);throw new TypeError("Expected jsx element to be a string or a function")},p=function(e,n){return n},h=((s={}).svg="http://www.w3.org/2000/svg",s),v=((d={})["xlink:href"]="http://www.w3.org/1999/xlink",d);function y(e,n){return e.createTextNode(n.text)}function m(e,n){for(var t=n.props,r=0,o=Object.keys(t);r<o.length;r++){var i=o[r],a=t[i];if(null!=a&&"el"!==i&&"innerHTML"!==i)if(i.match(/^on[A-Z][a-z]/)&&"function"==typeof a)e.addEventListener(i.slice(2).toLowerCase(),a);else if("string"==typeof a||"number"==typeof a){var u=v[i];u?e.setAttributeNS(u,i,a.toString()):e.setAttribute(i,a.toString())}else"boolean"==typeof a&&!0===a&&e.setAttribute(i,"")}"iframe"!==e.tagName.toLowerCase()||t.id||e.setAttribute("id","jsx-iframe-"+"xxxxxxxxxx".replace(/./g,(function(){return"0123456789abcdef".charAt(Math.floor(Math.random()*"0123456789abcdef".length))})))}var w=((f={}).iframe=function(e,n){var t=n.children[0];if(1!==n.children.length||!t||"element"!==t.type||"html"!==t.name)throw new Error("Expected only single html element node as child of iframe element");e.addEventListener("load",(function(){var n=e.contentWindow;if(!n)throw new Error("Expected frame to have contentWindow");for(var r=n.document,o=r.documentElement;o.children&&o.children.length;)o.removeChild(o.children[0]);for(var i=t.render(function(e){void 0===e&&(e={});var n=e.doc,t=void 0===n?document:n,r=function(e,n){if("component"===e.type)return e.renderComponent((function(e){return r(e,n)}));if("text"===e.type)return y(t,e);if("element"===e.type){var o=function(e,n,t){return e.createElementNS(t,n.name)}(t,e,n);return m(o,e),g(o,e,t,(function(e){return r(e,n)})),o}throw new TypeError("Unhandleable node")},o=function(e){if("component"===e.type)return e.renderComponent(o);if("text"===e.type)return y(t,e);if("element"===e.type){var n=h[e.name.toLowerCase()];if(n)return r(e,n);var i=function(e,n){return n.props.el?n.props.el:e.createElement(n.name)}(t,e);return m(i,e),g(i,e,t,o),i}throw new TypeError("Unhandleable node")};return o}({doc:r}));i.children.length;)o.appendChild(i.children[0])}))},f.script=function(e,n){var t=n.children[0];if(1!==n.children.length||!t||"text"!==t.type)throw new Error("Expected only single text node as child of script element");e.text=t.text},f.default=function(e,n,t){for(var r=0,o=n.renderChildren(t);r<o.length;r++)e.appendChild(o[r])},f);function g(e,n,t,r){if(n.props.hasOwnProperty("innerHTML")){if(n.children.length)throw new Error("Expected no children to be passed when innerHTML prop is set");var o=n.props.innerHTML;if("string"!=typeof o)throw new TypeError("innerHTML prop must be string");"script"===n.name?e.text=o:(e.innerHTML=o,function(e,n){void 0===n&&(n=window.document);for(var t=0,r=e.querySelectorAll("script");t<r.length;t++){var o=r[t],i=o.parentNode;if(i){var a=n.createElement("script");a.text=o.textContent,i.replaceChild(a,o)}}}(e,t))}else(w[n.name]||w.default)(e,n,r)}function E(e){return l("div",{class:"preloader spinner"},l("style",{nonce:e.nonce,innerHTML:"\n\n body {\n width: 100%;\n height: 100%;\n overflow: hidden;\n position: fixed;\n top: 0;\n left: 0;\n margin: 0;\n }\n\n .spinner {\n height: 100%;\n width: 100%;\n position: absolute;\n z-index: 10\n }\n\n .spinner .spinWrap {\n width: 200px;\n height: 100px;\n position: absolute;\n top: 50%;\n left: 50%;\n margin-left: -100px;\n margin-top: -50px\n }\n\n .spinner .loader,\n .spinner .spinnerImage {\n height: 100px;\n width: 100px;\n position: absolute;\n top: 0;\n left: 50%;\n opacity: 1;\n filter: alpha(opacity=100)\n }\n\n .spinner .spinnerImage {\n margin: 28px 0 0 -25px;\n background: url(https://www.paypalobjects.com/images/checkout/hermes/icon_ot_spin_lock_skinny.png) no-repeat\n }\n\n .spinner .loader {\n margin: 0 0 0 -55px;\n background-color: transparent;\n animation: rotation .7s infinite linear;\n border-left: 5px solid #cbcbca;\n border-right: 5px solid #cbcbca;\n border-bottom: 5px solid #cbcbca;\n border-top: 5px solid #2380be;\n border-radius: 100%\n }\n\n @keyframes rotation {\n from {\n transform: rotate(0deg)\n }\n to {\n transform: rotate(359deg)\n }\n }\n"}),l("div",{class:"spinWrap"},l("p",{class:"spinnerImage"}),l("p",{class:"loader"})))}function _(e,n){var t=e.nonce;return l("html",null,l("head",null,l("title",null,"PayPal"),l("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})),l("body",null,l(E,{nonce:t}),n))}function b(e){return l(p,null,l("style",{nonce:e.nonce,innerHTML:'\n body {\n width: 100%;\n height: 100%;\n overflow: hidden;\n position: fixed;\n top: 0;\n left: 0;\n margin: 0;\n }\n .spinner {\n color: official;\n display: inline-block;\n width: 80px;\n height: 80px;\n position: absolute;\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n }\n .spinner div {\n transform-origin: 40px 40px;\n animation: spinner 1.2s linear infinite;\n }\n .spinner div:after {\n content: " ";\n display: block;\n position: absolute;\n top: 20px;\n left: 37px;\n width: 3px;\n height: 10px;\n border-radius: 30%;\n background: #808080;\n }\n .spinner div:nth-child(1) {\n transform: rotate(0deg);\n animation-delay: -1.1s;\n }\n .spinner div:nth-child(2) {\n transform: rotate(30deg);\n animation-delay: -1s;\n }\n .spinner div:nth-child(3) {\n transform: rotate(60deg);\n animation-delay: -0.9s;\n }\n .spinner div:nth-child(4) {\n transform: rotate(90deg);\n animation-delay: -0.8s;\n }\n .spinner div:nth-child(5) {\n transform: rotate(120deg);\n animation-delay: -0.7s;\n }\n .spinner div:nth-child(6) {\n transform: rotate(150deg);\n animation-delay: -0.6s;\n }\n .spinner div:nth-child(7) {\n transform: rotate(180deg);\n animation-delay: -0.5s;\n }\n .spinner div:nth-child(8) {\n transform: rotate(210deg);\n animation-delay: -0.4s;\n }\n .spinner div:nth-child(9) {\n transform: rotate(240deg);\n animation-delay: -0.3s;\n }\n .spinner div:nth-child(10) {\n transform: rotate(270deg);\n animation-delay: -0.2s;\n }\n .spinner div:nth-child(11) {\n transform: rotate(300deg);\n animation-delay: -0.1s;\n }\n .spinner div:nth-child(12) {\n transform: rotate(330deg);\n animation-delay: 0s;\n }\n @keyframes spinner {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n'}),l("div",{class:"spinner"},l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null)))}function S(e,n){var t=e.nonce;return l("html",null,l("head",null,l("title",null,"Venmo"),l("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})),l("body",null,l(b,{nonce:t}),n))}}])},,,,,function(e,n,t){t(64),t(123),t(136),t(92);var r=t(16);e.exports=r.Map},function(e,n,t){var r=t(7),o=t(2),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},function(e,n,t){var r=t(11),o=t(10),i=t(69),a=t(46),u=t(109),c=t(3),s=TypeError,d=c("toPrimitive");e.exports=function(e,n){if(!o(e)||i(e))return e;var t,c=a(e,d);if(c){if(void 0===n&&(n="default"),t=r(c,e,n),!o(t)||i(t))return t;throw s("Can't convert object to primitive value")}return void 0===n&&(n="number"),u(e,n)}},function(e,n,t){var r,o,i=t(7),a=t(108),u=i.process,c=i.Deno,s=u&&u.versions||c&&c.version,d=s&&s.v8;d&&(o=(r=d.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},function(e,n){e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(e,n,t){var r=t(11),o=t(2),i=t(10),a=TypeError;e.exports=function(e,n){var t,u;if("string"===n&&o(t=e.toString)&&!i(u=r(t,e)))return u;if(o(t=e.valueOf)&&!i(u=r(t,e)))return u;if("string"!==n&&o(t=e.toString)&&!i(u=r(t,e)))return u;throw a("Can't convert object to primitive value")}},function(e,n,t){var r=t(7),o=Object.defineProperty;e.exports=function(e,n){try{o(r,e,{value:n,configurable:!0,writable:!0})}catch(t){r[e]=n}return n}},function(e,n,t){var r=t(34),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},function(e,n,t){var r=t(0),o=t(2),i=/#|\.prototype\./,a=function(e,n){var t=c[u(e)];return t==d||t!=s&&(o(n)?r(n):!!n)},u=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},s=a.NATIVE="N",d=a.POLYFILL="P";e.exports=a},function(e,n,t){var r=t(5),o=t(12),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,u=o(i,"name"),c=u&&"something"===function(){}.name,s=u&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:u,PROPER:c,CONFIGURABLE:s}},function(e,n,t){"use strict";var r=t(74).IteratorPrototype,o=t(54),i=t(38),a=t(59),u=t(24),c=function(){return this};e.exports=function(e,n,t,s){var d=n+" Iterator";return e.prototype=o(r,{next:i(+!s,t)}),a(e,d,!1,!0),u[d]=c,e}},function(e,n,t){var r=t(5),o=t(68),i=t(14),a=t(15),u=t(18),c=t(40);n.f=r&&!o?Object.defineProperties:function(e,n){a(e);for(var t,r=u(n),o=c(n),s=o.length,d=0;s>d;)i.f(e,t=o[d++],r[t]);return e}},function(e,n){var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},function(e,n,t){var r=t(28);e.exports=r("document","documentElement")},function(e,n,t){var r=t(0);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,n,t){"use strict";var r=t(60),o=t(31);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,n,t){var r=t(121),o=t(15),i=t(122);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,n=!1,t={};try{(e=r(Object.prototype,"__proto__","set"))(t,[]),n=t instanceof Array}catch(e){}return function(t,r){return o(t),i(r),n?e(t,r):t.__proto__=r,t}}():void 0)},function(e,n,t){var r=t(1),o=t(29);e.exports=function(e,n,t){try{return r(o(Object.getOwnPropertyDescriptor(e,n)[t]))}catch(e){}}},function(e,n,t){var r=t(2),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},function(e,n,t){t(124)},function(e,n,t){"use strict";t(125)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),t(133))},function(e,n,t){"use strict";var r=t(6),o=t(7),i=t(79),a=t(0),u=t(20),c=t(82),s=t(86),d=t(2),f=t(10),l=t(59),p=t(14).f,h=t(87).forEach,v=t(5),y=t(37),m=y.set,w=y.getterFor;e.exports=function(e,n,t){var y,g=-1!==e.indexOf("Map"),E=-1!==e.indexOf("Weak"),_=g?"set":"add",b=o[e],S=b&&b.prototype,N={};if(v&&d(b)&&(E||S.forEach&&!a((function(){(new b).entries().next()})))){var T=(y=n((function(n,t){m(s(n,T),{type:e,collection:new b}),null!=t&&c(t,n[_],{that:n,AS_ENTRIES:g})}))).prototype,A=w(e);h(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var n="add"==e||"set"==e;!(e in S)||E&&"clear"==e||u(T,e,(function(t,r){var o=A(this).collection;if(!n&&E&&!f(t))return"get"==e&&void 0;var i=o[e](0===t?0:t,r);return n?this:i}))})),E||p(T,"size",{configurable:!0,get:function(){return A(this).collection.size}})}else y=t.getConstructor(n,e,g,_),i.enable();return l(y,e,!1,!0),N[e]=y,r({global:!0,forced:!0},N),E||t.setStrong(y,e,g),y}},function(e,n,t){var r=t(19),o=t(18),i=t(80).f,a=t(127),u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return u&&"Window"==r(e)?function(e){try{return i(e)}catch(e){return a(u)}}(e):i(o(e))}},function(e,n,t){var r=t(77),o=t(22),i=t(81),a=Array,u=Math.max;e.exports=function(e,n,t){for(var c=o(e),s=r(n,c),d=r(void 0===t?c:t,c),f=a(u(d-s,0)),l=0;s<d;s++,l++)i(f,l,e[s]);return f.length=l,f}},function(e,n,t){var r=t(0),o=t(10),i=t(19),a=t(129),u=Object.isExtensible,c=r((function(){u(1)}));e.exports=c||a?function(e){return!!o(e)&&(!a||"ArrayBuffer"!=i(e))&&(!u||u(e))}:u},function(e,n,t){var r=t(0);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},function(e,n,t){var r=t(0);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,n,t){var r=t(89),o=t(90),i=t(10),a=t(3)("species"),u=Array;e.exports=function(e){var n;return r(e)&&(o(n=e.constructor)&&(n===u||r(n.prototype))||i(n)&&null===(n=n[a]))&&(n=void 0),void 0===n?u:n}},function(e,n,t){var r=t(1),o=t(2),i=t(48),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},function(e,n,t){"use strict";var r=t(54),o=t(91),i=t(134),a=t(25),u=t(86),c=t(35),s=t(82),d=t(51),f=t(61),l=t(135),p=t(5),h=t(79).fastKey,v=t(37),y=v.set,m=v.getterFor;e.exports={getConstructor:function(e,n,t,d){var f=e((function(e,o){u(e,l),y(e,{type:n,index:r(null),first:void 0,last:void 0,size:0}),p||(e.size=0),c(o)||s(o,e[d],{that:e,AS_ENTRIES:t})})),l=f.prototype,v=m(n),w=function(e,n,t){var r,o,i=v(e),a=g(e,n);return a?a.value=t:(i.last=a={index:o=h(n,!0),key:n,value:t,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),p?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},g=function(e,n){var t,r=v(e),o=h(n);if("F"!==o)return r.index[o];for(t=r.first;t;t=t.next)if(t.key==n)return t};return i(l,{clear:function(){for(var e=v(this),n=e.index,t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),delete n[t.index],t=t.next;e.first=e.last=void 0,p?e.size=0:this.size=0},delete:function(e){var n=v(this),t=g(this,e);if(t){var r=t.next,o=t.previous;delete n.index[t.index],t.removed=!0,o&&(o.next=r),r&&(r.previous=o),n.first==t&&(n.first=r),n.last==t&&(n.last=o),p?n.size--:this.size--}return!!t},forEach:function(e){for(var n,t=v(this),r=a(e,arguments.length>1?arguments[1]:void 0);n=n?n.next:t.first;)for(r(n.value,n.key,this);n&&n.removed;)n=n.previous},has:function(e){return!!g(this,e)}}),i(l,t?{get:function(e){var n=g(this,e);return n&&n.value},set:function(e,n){return w(this,0===e?0:e,n)}}:{add:function(e){return w(this,e=0===e?0:e,e)}}),p&&o(l,"size",{configurable:!0,get:function(){return v(this).size}}),f},setStrong:function(e,n,t){var r=n+" Iterator",o=m(n),i=m(r);d(e,n,(function(e,n){y(this,{type:r,target:e,state:o(e),kind:n,last:void 0})}),(function(){for(var e=i(this),n=e.kind,t=e.last;t&&t.removed;)t=t.previous;return e.target&&(e.last=t=t?t.next:e.state.first)?f("keys"==n?t.key:"values"==n?t.value:[t.key,t.value],!1):(e.target=void 0,f(void 0,!0))}),t?"entries":"values",!t,!0),l(n)}}},function(e,n,t){var r=t(58);e.exports=function(e,n,t){for(var o in n)t&&t.unsafe&&e[o]?e[o]=n[o]:r(e,o,n[o],t);return e}},function(e,n,t){"use strict";var r=t(28),o=t(91),i=t(3),a=t(5),u=i("species");e.exports=function(e){var n=r(e);a&&n&&!n[u]&&o(n,u,{configurable:!0,get:function(){return this}})}},function(e,n){},function(e,n,t){var r=t(1),o=t(55),i=t(41),a=t(27),u=r("".charAt),c=r("".charCodeAt),s=r("".slice),d=function(e){return function(n,t){var r,d,f=i(a(n)),l=o(t),p=f.length;return l<0||l>=p?e?"":void 0:(r=c(f,l))<55296||r>56319||l+1===p||(d=c(f,l+1))<56320||d>57343?e?u(f,l):r:e?s(f,l,l+2):d-56320+(r-55296<<10)+65536}};e.exports={codeAt:d(!1),charAt:d(!0)}},function(e,n,t){t(64);var r=t(139),o=t(7),i=t(31),a=t(20),u=t(24),c=t(3)("toStringTag");for(var s in r){var d=o[s],f=d&&d.prototype;f&&i(f)!==c&&a(f,c,s),u[s]=u.Array}},function(e,n){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,n,t){t(141);var r=t(16);e.exports=r.Object.assign},function(e,n,t){var r=t(6),o=t(142);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},function(e,n,t){"use strict";var r=t(5),o=t(1),i=t(11),a=t(0),u=t(40),c=t(143),s=t(53),d=t(21),f=t(43),l=Object.assign,p=Object.defineProperty,h=o([].concat);e.exports=!l||a((function(){if(r&&1!==l({b:1},l(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},n={},t=Symbol();return e[t]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),7!=l({},e)[t]||"abcdefghijklmnopqrst"!=u(l({},n)).join("")}))?function(e,n){for(var t=d(e),o=arguments.length,a=1,l=c.f,p=s.f;o>a;)for(var v,y=f(arguments[a++]),m=l?h(u(y),l(y)):u(y),w=m.length,g=0;w>g;)v=m[g++],r&&!i(p,y,v)||(t[v]=y[v]);return t}:l},function(e,n){n.f=Object.getOwnPropertySymbols},function(e,n,t){t(145);var r=t(32);e.exports=r("Array","find")},function(e,n,t){"use strict";var r=t(6),o=t(87).find,i=t(36),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},function(e,n,t){t(147);var r=t(32);e.exports=r("Array","includes")},function(e,n,t){"use strict";var r=t(6),o=t(76).includes,i=t(0),a=t(36);r({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},function(e,n,t){t(149);var r=t(32);e.exports=r("String","includes")},function(e,n,t){"use strict";var r=t(6),o=t(1),i=t(93),a=t(27),u=t(41),c=t(94),s=o("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~s(u(a(this)),u(i(e)),arguments.length>1?arguments[1]:void 0)}})},function(e,n,t){var r=t(10),o=t(19),i=t(3)("match");e.exports=function(e){var n;return r(e)&&(void 0!==(n=e[i])?!!n:"RegExp"==o(e))}},function(e,n,t){t(152);var r=t(16);e.exports=r.Object.entries},function(e,n,t){var r=t(6),o=t(153).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},function(e,n,t){var r=t(5),o=t(0),i=t(1),a=t(57),u=t(40),c=t(18),s=i(t(53).f),d=i([].push),f=r&&o((function(){var e=Object.create(null);return e[2]=2,!s(e,2)})),l=function(e){return function(n){for(var t,o=c(n),i=u(o),l=f&&null===a(o),p=i.length,h=0,v=[];p>h;)t=i[h++],r&&!(l?t in o:s(o,t))||d(v,e?[t,o[t]]:o[t]);return v}};e.exports={entries:l(!0),values:l(!1)}},function(e,n,t){t(155);var r=t(16);e.exports=r.Object.keys},function(e,n,t){var r=t(6),o=t(21),i=t(40);r({target:"Object",stat:!0,forced:t(0)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},function(e,n,t){t(157);var r=t(32);e.exports=r("String","startsWith")},function(e,n,t){"use strict";var r,o=t(6),i=t(52),a=t(73).f,u=t(78),c=t(41),s=t(93),d=t(27),f=t(94),l=t(30),p=i("".startsWith),h=i("".slice),v=Math.min,y=f("startsWith");o({target:"String",proto:!0,forced:!(!l&&!y&&(r=a(String.prototype,"startsWith"),r&&!r.writable)||y)},{startsWith:function(e){var n=c(d(this));s(e);var t=u(v(arguments.length>1?arguments[1]:void 0,n.length)),r=c(e);return p?p(n,r,t):h(n,t,t+r.length)===r}})},function(e,n,t){t(92),t(159);var r=t(16);e.exports=r.Array.from},function(e,n,t){var r=t(6),o=t(160);r({target:"Array",stat:!0,forced:!t(162)((function(e){Array.from(e)}))},{from:o})},function(e,n,t){"use strict";var r=t(25),o=t(11),i=t(21),a=t(161),u=t(83),c=t(90),s=t(22),d=t(81),f=t(84),l=t(62),p=Array;e.exports=function(e){var n=i(e),t=c(this),h=arguments.length,v=h>1?arguments[1]:void 0,y=void 0!==v;y&&(v=r(v,h>2?arguments[2]:void 0));var m,w,g,E,_,b,S=l(n),N=0;if(!S||this===p&&u(S))for(m=s(n),w=t?new this(m):p(m);m>N;N++)b=y?v(n[N],N):n[N],d(w,N,b);else for(_=(E=f(n,S)).next,w=t?new this:[];!(g=o(_,E)).done;N++)b=y?a(E,v,[g.value,N],!0):g.value,d(w,N,b);return w.length=N,w}},function(e,n,t){var r=t(15),o=t(85);e.exports=function(e,n,t,i){try{return i?n(r(t)[0],t[1]):n(t)}catch(n){o(e,"throw",n)}}},function(e,n,t){var r=t(3)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,n){if(!n&&!o)return!1;var t=!1;try{var i={};i[r]=function(){return{next:function(){return{done:t=!0}}}},e(i)}catch(e){}return t}},function(e,n,t){t(164),t(167);var r=t(32);e.exports=r("Array","flatMap")},function(e,n,t){"use strict";var r=t(6),o=t(165),i=t(29),a=t(21),u=t(22),c=t(88);r({target:"Array",proto:!0},{flatMap:function(e){var n,t=a(this),r=u(t);return i(e),(n=c(t,0)).length=o(n,t,t,r,0,1,e,arguments.length>1?arguments[1]:void 0),n}})},function(e,n,t){"use strict";var r=t(89),o=t(22),i=t(166),a=t(25),u=function(e,n,t,c,s,d,f,l){for(var p,h,v=s,y=0,m=!!f&&a(f,l);y<c;)y in t&&(p=m?m(t[y],y,n):t[y],d>0&&r(p)?(h=o(p),v=u(e,n,p,h,v,d-1)-1):(i(v+1),e[v]=p),v++),y++;return v};e.exports=u},function(e,n){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},function(e,n,t){t(36)("flatMap")},function(e,n,t){t(169);var r=t(16);e.exports=r.Number.isNaN},function(e,n,t){t(6)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,n,t){"undefined"!=typeof self&&self,e.exports=function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return{}.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}([function(e,n,t){"use strict";t.r(n),t.d(n,"APM_LIST",(function(){return c})),t.d(n,"DEFAULT_COUNTRY",(function(){return R})),t.d(n,"DEFAULT_CURRENCY",(function(){return O})),t.d(n,"DEFAULT_INTENT",(function(){return I})),t.d(n,"DEFAULT_COMMIT",(function(){return C})),t.d(n,"DEFAULT_SALE_COMMIT",(function(){return D})),t.d(n,"DEFAULT_NONSALE_COMMIT",(function(){return M})),t.d(n,"DEFAULT_VAULT",(function(){return L})),t.d(n,"DEFAULT_COMPONENTS",(function(){return F})),t.d(n,"DEFAULT_DEBUG",(function(){return k})),t.d(n,"ENV",(function(){return H})),t.d(n,"MOBILE_ENV",(function(){return j})),t.d(n,"ERROR_CODE",(function(){return B})),t.d(n,"FPTI_KEY",(function(){return U})),t.d(n,"FPTI_USER_ACTION",(function(){return W})),t.d(n,"FPTI_DATA_SOURCE",(function(){return G})),t.d(n,"FPTI_FEED",(function(){return q})),t.d(n,"FPTI_SDK_NAME",(function(){return Z})),t.d(n,"FUNDING",(function(){return r})),t.d(n,"FUNDING_BRAND_LABEL",(function(){return o})),t.d(n,"CARD",(function(){return i})),t.d(n,"WALLET_INSTRUMENT",(function(){return a})),t.d(n,"FUNDING_PRODUCTS",(function(){return u})),t.d(n,"COUNTRY",(function(){return s})),t.d(n,"LANG",(function(){return d})),t.d(n,"COUNTRY_LANGS",(function(){return f})),t.d(n,"BASE_SDK_METRIC_NAMESPACE",(function(){return z})),t.d(n,"payPalWebV5Dimensions",(function(){return K})),t.d(n,"INTENT",(function(){return l})),t.d(n,"COMMIT",(function(){return p})),t.d(n,"VAULT",(function(){return h})),t.d(n,"CURRENCY",(function(){return v})),t.d(n,"SDK_PATH",(function(){return y})),t.d(n,"WEB_SDK_BRIDGE_PATH",(function(){return m})),t.d(n,"SDK_SETTINGS",(function(){return w})),t.d(n,"SDK_DATA_ATTRIBUTES",(function(){return g})),t.d(n,"SDK_QUERY_KEYS",(function(){return E})),t.d(n,"COMPONENTS",(function(){return _})),t.d(n,"DEBUG",(function(){return b})),t.d(n,"QUERY_BOOL",(function(){return S})),t.d(n,"UNKNOWN",(function(){return N})),t.d(n,"PROTOCOL",(function(){return T})),t.d(n,"PAGE_TYPES",(function(){return A})),t.d(n,"MERCHANT_ID_MAX",(function(){return P})),t.d(n,"DISPLAY_ONLY_VALUES",(function(){return x})),t.d(n,"PLATFORM",(function(){return Y})),t.d(n,"TYPES",(function(){return V}));var r={PAYPAL:"paypal",VENMO:"venmo",APPLEPAY:"applepay",ITAU:"itau",CREDIT:"credit",PAYLATER:"paylater",CARD:"card",IDEAL:"ideal",SEPA:"sepa",BANCONTACT:"bancontact",GIROPAY:"giropay",SOFORT:"sofort",EPS:"eps",MYBANK:"mybank",P24:"p24",PAYU:"payu",BLIK:"blik",TRUSTLY:"trustly",OXXO:"oxxo",BOLETO:"boleto",BOLETOBANCARIO:"boletobancario",WECHATPAY:"wechatpay",MERCADOPAGO:"mercadopago",MULTIBANCO:"multibanco",SATISPAY:"satispay",PAIDY:"paidy",ZIMPLER:"zimpler",MAXIMA:"maxima"},o={PAYPAL:"PayPal",CREDIT:"PayPal Credit"},i={VISA:"visa",MASTERCARD:"mastercard",AMEX:"amex",DISCOVER:"discover",HIPER:"hiper",ELO:"elo",JCB:"jcb",CUP:"cup",DINERS:"diners",MAESTRO:"maestro",EFTPOS:"eftpos",CB_NATIONALE:"cb_nationale"},a={BALANCE:"balance",CARD:"card",BANK:"bank",CREDIT:"credit"},u={PAY_IN_3:"payIn3",PAY_IN_4:"payIn4",PAYLATER:"paylater",CREDIT:"credit"},c=[r.IDEAL,r.BANCONTACT,r.GIROPAY,r.SOFORT,r.EPS,r.MYBANK,r.P24,r.PAYU,r.BLIK,r.TRUSTLY,r.OXXO,r.BOLETO,r.BOLETOBANCARIO,r.WECHATPAY,r.MERCADOPAGO,r.MULTIBANCO,r.SATISPAY,r.PAIDY,r.MAXIMA,r.ZIMPLER],s={AD:"AD",AE:"AE",AG:"AG",AI:"AI",AL:"AL",AM:"AM",AN:"AN",AO:"AO",AR:"AR",AT:"AT",AU:"AU",AW:"AW",AZ:"AZ",BA:"BA",BB:"BB",BE:"BE",BF:"BF",BG:"BG",BH:"BH",BI:"BI",BJ:"BJ",BM:"BM",BN:"BN",BO:"BO",BR:"BR",BS:"BS",BT:"BT",BW:"BW",BY:"BY",BZ:"BZ",CA:"CA",CD:"CD",CG:"CG",CH:"CH",CI:"CI",CK:"CK",CL:"CL",CM:"CM",CN:"CN",CO:"CO",CR:"CR",CV:"CV",CY:"CY",CZ:"CZ",DE:"DE",DJ:"DJ",DK:"DK",DM:"DM",DO:"DO",DZ:"DZ",EC:"EC",EE:"EE",EG:"EG",ER:"ER",ES:"ES",ET:"ET",FI:"FI",FJ:"FJ",FK:"FK",FM:"FM",FO:"FO",FR:"FR",GA:"GA",GB:"GB",GD:"GD",GE:"GE",GF:"GF",GI:"GI",GL:"GL",GM:"GM",GN:"GN",GP:"GP",GR:"GR",GT:"GT",GW:"GW",GY:"GY",HK:"HK",HN:"HN",HR:"HR",HU:"HU",ID:"ID",IE:"IE",IL:"IL",IN:"IN",IS:"IS",IT:"IT",JM:"JM",JO:"JO",JP:"JP",KE:"KE",KG:"KG",KH:"KH",KI:"KI",KM:"KM",KN:"KN",KR:"KR",KW:"KW",KY:"KY",KZ:"KZ",LA:"LA",LC:"LC",LI:"LI",LK:"LK",LS:"LS",LT:"LT",LU:"LU",LV:"LV",MA:"MA",MC:"MC",MD:"MD",ME:"ME",MG:"MG",MH:"MH",MK:"MK",ML:"ML",MN:"MN",MQ:"MQ",MR:"MR",MS:"MS",MT:"MT",MU:"MU",MV:"MV",MW:"MW",MX:"MX",MY:"MY",MZ:"MZ",NA:"NA",NC:"NC",NE:"NE",NF:"NF",NG:"NG",NI:"NI",NL:"NL",NO:"NO",NP:"NP",NR:"NR",NU:"NU",NZ:"NZ",OM:"OM",PA:"PA",PE:"PE",PF:"PF",PG:"PG",PH:"PH",PL:"PL",PM:"PM",PN:"PN",PT:"PT",PW:"PW",PY:"PY",QA:"QA",RE:"RE",RO:"RO",RS:"RS",RU:"RU",RW:"RW",SA:"SA",SB:"SB",SC:"SC",SE:"SE",SG:"SG",SH:"SH",SI:"SI",SJ:"SJ",SK:"SK",SL:"SL",SM:"SM",SN:"SN",SO:"SO",SR:"SR",ST:"ST",SV:"SV",SZ:"SZ",TC:"TC",TD:"TD",TG:"TG",TH:"TH",TJ:"TJ",TM:"TM",TN:"TN",TO:"TO",TR:"TR",TT:"TT",TV:"TV",TW:"TW",TZ:"TZ",UA:"UA",UG:"UG",US:"US",UY:"UY",VA:"VA",VC:"VC",VE:"VE",VG:"VG",VN:"VN",VU:"VU",WF:"WF",WS:"WS",YE:"YE",YT:"YT",ZA:"ZA",ZM:"ZM",ZW:"ZW"},d={AR:"ar",BG:"bg",CS:"cs",DA:"da",DE:"de",EL:"el",EN:"en",ES:"es",ET:"et",FI:"fi",FR:"fr",HE:"he",HU:"hu",ID:"id",IT:"it",JA:"ja",KO:"ko",LT:"lt",LV:"lv",MS:"ms",NL:"nl",NO:"no",PL:"pl",PT:"pt",RO:"ro",RU:"ru",SI:"si",SK:"sk",SL:"sl",SQ:"sq",SV:"sv",TH:"th",TL:"tl",TR:"tr",VI:"vi",ZH:"zh",ZH_HANT:"zh_Hant"},f={AD:[d.EN,d.FR,d.ES,d.ZH],AE:[d.EN,d.FR,d.ES,d.ZH,d.AR],AG:[d.EN,d.FR,d.ES,d.ZH],AI:[d.EN,d.FR,d.ES,d.ZH],AL:[d.SQ,d.EN],AM:[d.EN,d.FR,d.ES,d.ZH],AN:[d.EN,d.FR,d.ES,d.ZH],AO:[d.EN,d.FR,d.ES,d.ZH],AR:[d.ES,d.EN],AT:[d.DE,d.EN],AU:[d.EN],AW:[d.EN,d.FR,d.ES,d.ZH],AZ:[d.EN,d.FR,d.ES,d.ZH],BA:[d.EN],BB:[d.EN,d.FR,d.ES,d.ZH],BE:[d.EN,d.NL,d.FR],BF:[d.FR,d.EN,d.ES,d.ZH],BG:[d.BG,d.EN],BH:[d.AR,d.EN,d.FR,d.ES,d.ZH],BI:[d.FR,d.EN,d.ES,d.ZH],BJ:[d.FR,d.EN,d.ES,d.ZH],BM:[d.EN,d.FR,d.ES,d.ZH],BN:[d.MS,d.EN],BO:[d.ES,d.EN,d.FR,d.ZH],BR:[d.PT,d.EN],BS:[d.EN,d.FR,d.ES,d.ZH],BT:[d.EN],BW:[d.EN,d.FR,d.ES,d.ZH],BY:[d.EN],BZ:[d.EN,d.ES,d.FR,d.ZH],CA:[d.EN,d.FR],CD:[d.FR,d.EN,d.ES,d.ZH],CG:[d.EN,d.FR,d.ES,d.ZH],CH:[d.DE,d.FR,d.EN],CI:[d.FR,d.EN],CK:[d.EN,d.FR,d.ES,d.ZH],CL:[d.ES,d.EN,d.FR,d.ZH],CM:[d.FR,d.EN],CN:[d.ZH],CO:[d.ES,d.EN,d.FR,d.ZH],CR:[d.ES,d.EN,d.FR,d.ZH],CV:[d.EN,d.FR,d.ES,d.ZH],CY:[d.EN],CZ:[d.CS,d.EN],DE:[d.DE,d.EN],DJ:[d.FR,d.EN,d.ES,d.ZH],DK:[d.DA,d.EN],DM:[d.EN,d.FR,d.ES,d.ZH],DO:[d.ES,d.EN,d.FR,d.ZH],DZ:[d.AR,d.EN,d.FR,d.ES,d.ZH],EC:[d.ES,d.EN,d.FR,d.ZH],EE:[d.ET,d.EN,d.RU],EG:[d.AR,d.EN,d.FR,d.ES,d.ZH],ER:[d.EN,d.FR,d.ES,d.ZH],ES:[d.ES,d.EN],ET:[d.EN,d.FR,d.ES,d.ZH],FI:[d.FI,d.EN],FJ:[d.EN,d.FR,d.ES,d.ZH],FK:[d.EN,d.FR,d.ES,d.ZH],FM:[d.EN],FO:[d.DA,d.EN,d.FR,d.ES,d.ZH],FR:[d.FR,d.EN],GA:[d.FR,d.EN,d.ES,d.ZH],GB:[d.EN],GD:[d.EN,d.FR,d.ES,d.ZH],GE:[d.EN,d.FR,d.ES,d.ZH],GF:[d.EN,d.FR,d.ES,d.ZH],GI:[d.EN,d.FR,d.ES,d.ZH],GL:[d.DA,d.EN,d.FR,d.ES,d.ZH],GM:[d.EN,d.FR,d.ES,d.ZH],GN:[d.FR,d.EN,d.ES,d.ZH],GP:[d.EN,d.FR,d.ES,d.ZH],GR:[d.EL,d.EN],GT:[d.ES,d.EN,d.FR,d.ZH],GW:[d.EN,d.FR,d.ES,d.ZH],GY:[d.EN,d.FR,d.ES,d.ZH],HK:[d.EN,d.ZH_HANT,d.ZH],HN:[d.ES,d.EN,d.FR,d.ZH],HR:[d.EN],HU:[d.HU,d.EN],ID:[d.ID,d.EN],IE:[d.EN,d.FR,d.ES,d.ZH],IL:[d.HE,d.EN],IN:[d.EN],IS:[d.EN],IT:[d.IT,d.EN],JM:[d.EN,d.ES,d.FR,d.ZH],JO:[d.AR,d.EN,d.FR,d.ES,d.ZH],JP:[d.JA,d.EN],KE:[d.EN,d.FR,d.ES,d.ZH],KG:[d.EN,d.FR,d.ES,d.ZH],KH:[d.EN],KI:[d.EN,d.FR,d.ES,d.ZH],KM:[d.FR,d.EN,d.ES,d.ZH],KN:[d.EN,d.FR,d.ES,d.ZH],KR:[d.KO,d.EN],KW:[d.AR,d.EN,d.FR,d.ES,d.ZH],KY:[d.EN,d.FR,d.ES,d.ZH],KZ:[d.EN,d.FR,d.ES,d.ZH],LA:[d.EN],LC:[d.EN,d.FR,d.ES,d.ZH],LI:[d.EN,d.FR,d.ES,d.ZH],LK:[d.SI,d.EN],LS:[d.EN,d.FR,d.ES,d.ZH],LT:[d.LT,d.EN,d.RU,d.ZH],LU:[d.EN,d.DE,d.FR,d.ES,d.ZH],LV:[d.LV,d.EN,d.RU],MA:[d.AR,d.EN,d.FR,d.ES,d.ZH],MC:[d.FR,d.EN],MD:[d.EN],ME:[d.EN],MG:[d.EN,d.FR,d.ES,d.ZH],MH:[d.EN,d.FR,d.ES,d.ZH],MK:[d.EN],ML:[d.FR,d.EN,d.ES,d.ZH],MN:[d.EN],MQ:[d.EN,d.FR,d.ES,d.ZH],MR:[d.EN,d.FR,d.ES,d.ZH],MS:[d.EN,d.FR,d.ES,d.ZH],MT:[d.EN],MU:[d.EN,d.FR,d.ES,d.ZH],MV:[d.EN],MW:[d.EN,d.FR,d.ES,d.ZH],MX:[d.ES,d.EN],MY:[d.MS,d.EN],MZ:[d.EN,d.FR,d.ES,d.ZH],NA:[d.EN,d.FR,d.ES,d.ZH],NC:[d.EN,d.FR,d.ES,d.ZH],NE:[d.FR,d.EN,d.ES,d.ZH],NF:[d.EN,d.FR,d.ES,d.ZH],NG:[d.EN],NI:[d.ES,d.EN,d.FR,d.ZH],NL:[d.NL,d.EN],NO:[d.NO,d.EN],NP:[d.EN],NR:[d.EN,d.FR,d.ES,d.ZH],NU:[d.EN,d.FR,d.ES,d.ZH],NZ:[d.EN,d.FR,d.ES,d.ZH],OM:[d.AR,d.EN,d.FR,d.ES,d.ZH],PA:[d.ES,d.EN,d.FR,d.ZH],PE:[d.ES,d.EN,d.FR,d.ZH],PF:[d.EN,d.FR,d.ES,d.ZH],PG:[d.EN,d.FR,d.ES,d.ZH],PH:[d.TL,d.EN],PL:[d.PL,d.EN],PM:[d.EN,d.FR,d.ES,d.ZH],PN:[d.EN,d.FR,d.ES,d.ZH],PT:[d.PT,d.EN],PW:[d.EN,d.FR,d.ES,d.ZH],PY:[d.ES,d.EN],QA:[d.EN,d.FR,d.ES,d.ZH,d.AR],RE:[d.EN,d.FR,d.ES,d.ZH],RO:[d.RO,d.EN],RS:[d.EN,d.FR,d.ES,d.ZH],RU:[d.RU,d.EN],RW:[d.FR,d.EN,d.ES,d.ZH],SA:[d.AR,d.EN,d.FR,d.ES,d.ZH],SB:[d.EN,d.FR,d.ES,d.ZH],SC:[d.FR,d.EN,d.ES,d.ZH],SE:[d.SV,d.EN],SG:[d.EN],SH:[d.EN,d.FR,d.ES,d.ZH],SI:[d.SL,d.EN],SJ:[d.EN,d.FR,d.ES,d.ZH],SK:[d.SK,d.EN],SL:[d.EN,d.FR,d.ES,d.ZH],SM:[d.EN,d.FR,d.ES,d.ZH],SN:[d.FR,d.EN,d.ES,d.ZH],SO:[d.EN,d.FR,d.ES,d.ZH],SR:[d.EN,d.FR,d.ES,d.ZH],ST:[d.EN,d.FR,d.ES,d.ZH],SV:[d.ES,d.EN,d.FR,d.ZH],SZ:[d.EN,d.FR,d.ES,d.ZH],TC:[d.EN,d.FR,d.ES,d.ZH],TD:[d.FR,d.EN,d.ES,d.ZH],TG:[d.FR,d.EN,d.ES,d.ZH],TH:[d.TH,d.EN],TJ:[d.EN,d.FR,d.ES,d.ZH],TM:[d.EN,d.FR,d.ES,d.ZH],TN:[d.AR,d.EN,d.FR,d.ES,d.ZH],TO:[d.EN],TR:[d.TR,d.EN],TT:[d.EN,d.FR,d.ES,d.ZH],TV:[d.EN,d.FR,d.ES,d.ZH],TW:[d.ZH_HANT,d.ZH,d.EN],TZ:[d.EN,d.FR,d.ES,d.ZH],UA:[d.EN,d.RU,d.FR,d.ES,d.ZH],UG:[d.EN,d.FR,d.ES,d.ZH],US:[d.EN,d.FR,d.ES,d.ZH],UY:[d.ES,d.EN,d.FR,d.ZH],VA:[d.EN,d.FR,d.ES,d.ZH],VC:[d.EN,d.FR,d.ES,d.ZH],VE:[d.ES,d.EN,d.FR,d.ZH],VG:[d.EN,d.FR,d.ES,d.ZH],VN:[d.VI,d.EN],VU:[d.EN,d.FR,d.ES,d.ZH],WF:[d.EN,d.FR,d.ES,d.ZH],WS:[d.EN],YE:[d.AR,d.EN,d.FR,d.ES,d.ZH],YT:[d.EN,d.FR,d.ES,d.ZH],ZA:[d.EN,d.FR,d.ES,d.ZH],ZM:[d.EN,d.FR,d.ES,d.ZH],ZW:[d.EN]},l={CAPTURE:"capture",AUTHORIZE:"authorize",ORDER:"order",TOKENIZE:"tokenize",SUBSCRIPTION:"subscription"},p={TRUE:!0,FALSE:!1},h={TRUE:!0,FALSE:!1},v={AED:"AED",AFN:"AFN",ALL:"ALL",AMD:"AMD",ANG:"ANG",ARS:"ARS",AOA:"AOA",AUD:"AUD",AWG:"AWG",AZN:"AZN",BAM:"BAM",BBD:"BBD",BDT:"BDT",BGN:"BGN",BHD:"BHD",BIF:"BIF",BMD:"BMD",BND:"BND",BOB:"BOB",BRL:"BRL",BSD:"BSD",BTN:"BTN",BWP:"BWP",BZD:"BZD",CAD:"CAD",CDF:"CDF",CHF:"CHF",CLP:"CLP",COP:"COP",CRC:"CRC",CVE:"CVE",CZK:"CZK",DJF:"DJF",DKK:"DKK",DOP:"DOP",DZD:"DZD",EGP:"EGP",ETB:"ETB",ERN:"ERN",EUR:"EUR",FJD:"FJD",FKP:"FKP",GBP:"GBP",GEL:"GEL",GHS:"GHS",GIP:"GIP",GMD:"GMD",GNF:"GNF",GTQ:"GTQ",GYD:"GYD",HKD:"HKD",HNL:"HNL",HRK:"HRK",HTG:"HTG",HUF:"HUF",IDR:"IDR",ILS:"ILS",INR:"INR",ISK:"ISK",JMD:"JMD",JOD:"JOD",JPY:"JPY",KGS:"KGS",KES:"KES",KHR:"KHR",KMF:"KMF",KRW:"KRW",KWD:"KWD",KYD:"KYD",KZT:"KZT",LAK:"LAK",LKR:"LKR",LRD:"LRD",LSL:"LSL",MAD:"MAD",MDL:"MDL",MGA:"MGA",MKD:"MKD",MNT:"MNT",MOP:"MOP",MRO:"MRO",MRU:"MRU",MUR:"MUR",MVR:"MVR",MWK:"MWK",MXN:"MXN",MYR:"MYR",MZN:"MZN",NAD:"NAD",NGN:"NGN",NIO:"NIO",NOK:"NOK",NPR:"NPR",NZD:"NZD",OMR:"OMR",PAB:"PAB",PEN:"PEN",PGK:"PGK",PHP:"PHP",PKR:"PKR",PLN:"PLN",PYG:"PYG",QAR:"QAR",RON:"RON",RSD:"RSD",RUB:"RUB",RWF:"RWF",SAR:"SAR",SBD:"SBD",SCR:"SCR",SEK:"SEK",SGD:"SGD",SHP:"SHP",SLE:"SLE",SLL:"SLL",SOS:"SOS",SRD:"SRD",STN:"STN",SVC:"SVC",SZL:"SZL",THB:"THB",TMT:"TMT",TJS:"TJS",TND:"TND",TOP:"TOP",TTD:"TTD",TWD:"TWD",TZS:"TZS",UAH:"UAH",UGX:"UGX",USD:"USD",UYU:"UYU",UZS:"UZS",VES:"VES",VND:"VND",VUV:"VUV",WST:"WST",XAF:"XAF",XCD:"XCD",XOF:"XOF",XPF:"XPF",YER:"YER",ZAR:"ZAR",ZMW:"ZMW"},y="/sdk/js",m="/web-sdk/v6/bridge",w={AMOUNT:"data-amount",API_STAGE_HOST:"data-api-stage-host",CLIENT_METADATA_ID:"data-client-metadata-id",CLIENT_TOKEN:"data-client-token",CSP_NONCE:"data-csp-nonce",ENABLE_3DS:"data-enable-3ds",JS_SDK_LIBRARY:"data-js-sdk-library",MERCHANT_ID:"data-merchant-id",NAMESPACE:"data-namespace",PAGE_TYPE:"data-page-type",PARTNER_ATTRIBUTION_ID:"data-partner-attribution-id",POPUPS_DISABLED:"data-popups-disabled",SDK_INTEGRATION_SOURCE:"data-sdk-integration-source",SDK_TOKEN:"data-sdk-client-token",SHOPPER_SESSION_ID:"data-shopper-session-id",STAGE_HOST:"data-stage-host",USER_EXPERIENCE_FLOW:"data-user-experience-flow",USER_ID_TOKEN:"data-user-id-token"},g=w,E={COMPONENTS:"components",ENV:"env",DEBUG:"debug",CACHEBUST:"cachebust",CLIENT_ID:"client-id",MERCHANT_ID:"merchant-id",LOCALE:"locale",CURRENCY:"currency",INTENT:"intent",COMMIT:"commit",VAULT:"vault",BUYER_COUNTRY:"buyer-country",ENABLE_FUNDING:"enable-funding",DISABLE_FUNDING:"disable-funding",DISABLE_CARD:"disable-card",INTEGRATION_DATE:"integration-date",STAGE_HOST:"stage-host",STAGE_ALIAS:"stage-alias",CDN_REGISTRY:"cdn-registry",VERSION:"version"},_={BUTTONS:"buttons",CARD_FIELDS:"card-fields",HOSTED_BUTTONS:"hosted-buttons",HOSTED_FIELDS:"hosted-fields"},b={TRUE:!0,FALSE:!1},S={TRUE:"true",FALSE:"false"},N="unknown",T={HTTP:"http",HTTPS:"https"},A={HOME:"home",PRODUCT:"product",CART:"cart",CHECKOUT:"checkout",PRODUCT_LISTING:"product-listing",SEARCH_RESULTS:"search-results",PRODUCT_DETAILS:"product-details",MINI_CART:"mini-cart"},P=10,x={VAULTABLE:"vaultable"},R=s.US,O=v.USD,I=l.CAPTURE,C=p.TRUE,D=p.TRUE,M=p.TRUE,L=h.FALSE,F=_.BUTTONS,k=b.FALSE,H={LOCAL:"local",STAGE:"stage",SANDBOX:"sandbox",PRODUCTION:"production",TEST:"test"},j={ANDROID:"android",IOS:"iOS"},B={VALIDATION_ERROR:"validation_error"},U={BUTTON_LAYOUT:"button_layout",BUTTON_MESSAGE_AMOUNT:"button_message_amount",BUTTON_MESSAGE_CREDIT_PRODUCT_IDENTIFIER:"button_message_credit_product_identifier",BUTTON_MESSAGE_COLOR:"button_message_color",BUTTON_MESSAGE_CURRENCY:"button_message_currency",BUTTON_MESSAGE_ALIGN:"button_message_align",BUTTON_MESSAGE_POSITION:"button_message_position",BUTTON_MESSAGE_OFFER_COUNTRY:"button_message_offer_country",BUTTON_MESSAGE_OFFER_TYPE:"button_message_offer_type",BUTTON_MESSAGE_TYPE:"button_message_type",BUTTON_SESSION_UID:"button_session_id",BUTTON_SOURCE:"button_source",BUTTON_TYPE:"button_type",BUTTON_VERSION:"button_version",BUYER_COUNTRY:"buyer_cntry",CHECKOUT_APP:"checkout_app",CHOSEN_FI_TYPE:"chosen_fi_type",CHOSEN_FUNDING:"selected_payment_method",CLIENT_ID:"client_id",CONTEXT_CORRID:"context_correlation_id",CONTEXT_ID:"context_id",CONTEXT_TYPE:"context_type",CPL_CHUNK_METRICS:"cpl_chunk_metrics",CPL_COMP_METRICS:"cpl_comp_metrics",CPL_QUERY_METRICS:"cpl_query_metrics",DATA_SOURCE:"serverside_data_source",DISABLE_CARD:"disable_card",DISABLE_FUNDING:"disable_funding",ERROR_CODE:"ext_error_code",ERROR_DESC:"ext_error_desc",EVENT_NAME:"event_name",EXPERIMENT_EXPERIENCE:"experimentation_experience",EXPERIMENT_NAME:"pxp_exp_id",EXPERIMENT_TREATMENT:"experimentation_treatment",FEED:"feed_name",FI_ID:"fi_id",FI_LIST:"fi_list",FIELDS_COMPONENT_SESSION_ID:"fields_component_session_id",FUNDING_COUNT:"eligible_payment_count",FUNDING_LIST:"eligible_payment_methods",HOSTED_BUTTON_ID:"hosted_button_id",INTEGRATION_IDENTIFIER:"integration_identifier",IS_VAULT:"is_vault",JS_SDK_LIBRARY:"js_sdk_library",LOCALE:"locale",MERCHANT_DOMAIN:"merchant_domain",MOBILE_APP_VERSION:"mobile_app_version",MOBILE_BUNDLE_IDENTIFIER:"mapv",OPTION_SELECTED:"optsel",PAGE:"page_name",PAGE_LOAD_TIME:"page_load_time",PAGE_TYPE:"pp_placement",PARTNER_ATTRIBUTION_ID:"bn_code",PAY_ID:"pay_id",PAY_NOW:"pay_now",PAYMENT_FLOW:"payment_flow",POTENTIAL_PAYMENT_METHODS:"potential_payment_methods",PRODUCT:"product",RECOMMENDED_PAYMENT:"recommended_payment",REFERER:"referer_url",REFERRER_DOMAIN:"referrer_domain",RESPONSE_DURATION:"response_duration",SDK_CACHE:"sdk_cache",SDK_ENVIRONMENT:"sdk_environment",SDK_INTEGRATION_SOURCE:"sdk_integration_source",SDK_LOAD_TIME:"sdk_load_time",SDK_NAME:"sdk_name",SDK_VERSION:"sdk_version",SELECTED_FI:"merchant_selected_funding_source",SELLER_ID:"seller_id",SESSION_UID:"page_session_id",STATE:"state_name",STICKINESS_ID:"stickiness_id",TIMESTAMP:"t",TOKEN:"token",TRANSITION:"transition_name",TRANSITION_TIME:"transition_time",TREATMENT_NAME:"pxp_trtmnt_id",USER_ACTION:"user_action",USER_AGENT:"user_agent",USER_IDENTITY_METHOD:"user_identity_method",VERSION:"checkoutjs_version",AVAILABLE_PAYMENT_NETWORKS:"available_payment_networks",SELECTED_CARD_TYPE:"selected_card_type",CURRENCY:"currency",AMOUNT:"amount"},W={COMMIT:"commit",CONTINUE:"continue"},G={PAYMENTS_SDK:"checkout"},q={PAYMENTS_SDK:"payments_sdk"},Z={PAYMENTS_SDK:"payments_sdk"},z="pp.sdks.ppcp",K={sdk_platform:"web",major_version:"5"},Y={DESKTOP:"desktop",MOBILE:"mobile"},V=!0}])},function(e,n,t){"use strict";function r(e,n){return(r=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function o(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,r(e,n)}function i(){return(i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function a(e){try{if(!e)return!1;if("undefined"!=typeof Promise&&e instanceof Promise)return!0;if("undefined"!=typeof window&&"function"==typeof window.Window&&e instanceof window.Window)return!1;if("undefined"!=typeof window&&"function"==typeof window.constructor&&e instanceof window.constructor)return!1;var n={}.toString;if(n){var t=n.call(e);if("[object Window]"===t||"[object global]"===t||"[object DOMWindow]"===t)return!1}if("function"==typeof e.then)return!0}catch(e){return!1}return!1}t.r(n);var u,c=[],s=[],d=0;function f(){if(!d&&u){var e=u;u=null,e.resolve()}}function l(){d+=1}function p(){d-=1,f()}var h=function(){function e(e){var n=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],e){var t,r,o=!1,i=!1,a=!1;l();try{e((function(e){a?n.resolve(e):(o=!0,t=e)}),(function(e){a?n.reject(e):(i=!0,r=e)}))}catch(e){return p(),void this.reject(e)}p(),a=!0,o?this.resolve(t):i&&this.reject(r)}}var n=e.prototype;return n.resolve=function(e){if(this.resolved||this.rejected)return this;if(a(e))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=e,this.dispatch(),this},n.reject=function(e){var n=this;if(this.resolved||this.rejected)return this;if(a(e))throw new Error("Can not reject promise with another promise");if(!e){var t=e&&"function"==typeof e.toString?e.toString():{}.toString.call(e);e=new Error("Expected reject to be called with Error, got "+t)}return this.rejected=!0,this.error=e,this.errorHandled||setTimeout((function(){n.errorHandled||function(e,n){if(-1===c.indexOf(e)){c.push(e),setTimeout((function(){throw e}),1);for(var t=0;t<s.length;t++)s[t](e,n)}}(e,n)}),1),this.dispatch(),this},n.asyncReject=function(e){return this.errorHandled=!0,this.reject(e),this},n.dispatch=function(){var n=this.resolved,t=this.rejected,r=this.handlers;if(!this.dispatching&&(n||t)){this.dispatching=!0,l();for(var o=function(e,n){return e.then((function(e){n.resolve(e)}),(function(e){n.reject(e)}))},i=0;i<r.length;i++){var u=r[i],c=u.onSuccess,s=u.onError,d=u.promise,f=void 0;if(n)try{f=c?c(this.value):this.value}catch(e){d.reject(e);continue}else if(t){if(!s){d.reject(this.error);continue}try{f=s(this.error)}catch(e){d.reject(e);continue}}if(f instanceof e&&(f.resolved||f.rejected)){var h=f;h.resolved?d.resolve(h.value):d.reject(h.error),h.errorHandled=!0}else a(f)?f instanceof e&&(f.resolved||f.rejected)?f.resolved?d.resolve(f.value):d.reject(f.error):o(f,d):d.resolve(f)}r.length=0,this.dispatching=!1,p()}},n.then=function(n,t){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.then expected a function for success handler");if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.then expected a function for error handler");var r=new e;return this.handlers.push({promise:r,onSuccess:n,onError:t}),this.errorHandled=!0,this.dispatch(),r},n.catch=function(e){return this.then(void 0,e)},n.finally=function(n){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.finally expected a function");return this.then((function(t){return e.try(n).then((function(){return t}))}),(function(t){return e.try(n).then((function(){throw t}))}))},n.timeout=function(e,n){var t=this;if(this.resolved||this.rejected)return this;var r=setTimeout((function(){t.resolved||t.rejected||t.reject(n||new Error("Promise timed out after "+e+"ms"))}),e);return this.then((function(e){return clearTimeout(r),e}))},n.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},n.lazy=function(){return this.errorHandled=!0,this},e.resolve=function(n){return n instanceof e?n:a(n)?new e((function(e,t){return n.then(e,t)})):(new e).resolve(n)},e.reject=function(n){return(new e).reject(n)},e.asyncReject=function(n){return(new e).asyncReject(n)},e.all=function(n){var t=new e,r=n.length,o=[].slice();if(!r)return t.resolve(o),t;for(var i=function(e,n,i){return n.then((function(n){o[e]=n,0==(r-=1)&&t.resolve(o)}),(function(e){i.reject(e)}))},u=0;u<n.length;u++){var c=n[u];if(c instanceof e){if(c.resolved){o[u]=c.value,r-=1;continue}}else if(!a(c)){o[u]=c,r-=1;continue}i(u,e.resolve(c),t)}return 0===r&&t.resolve(o),t},e.hash=function(n){var t={},r=[],o=function(e){if(n.hasOwnProperty(e)){var o=n[e];a(o)?r.push(o.then((function(n){t[e]=n}))):t[e]=o}};for(var i in n)o(i);return e.all(r).then((function(){return t}))},e.map=function(n,t){return e.all(n.map(t))},e.onPossiblyUnhandledException=function(e){return function(e){return s.push(e),{cancel:function(){s.splice(s.indexOf(e),1)}}}(e)},e.try=function(n,t,r){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.try expected a function");var o;l();try{o=n.apply(t,r||[])}catch(n){return p(),e.reject(n)}return p(),e.resolve(o)},e.delay=function(n){return new e((function(e){setTimeout(e,n)}))},e.isPromise=function(n){return!!(n&&n instanceof e)||a(n)},e.flush=function(){return n=u=u||new e,f(),n;var n},e}();function v(e){return"[object RegExp]"==={}.toString.call(e)}var y={IFRAME:"iframe",POPUP:"popup"},m="Call was rejected by callee.\r\n";function w(e){return void 0===e&&(e=window),e.location.protocol}function g(e){if(void 0===e&&(e=window),e.mockDomain){var n=e.mockDomain.split("//")[0];if(n)return n}return w(e)}function E(e){return void 0===e&&(e=window),"about:"===g(e)}function _(e){if(void 0===e&&(e=window),e)try{if(e.parent&&e.parent!==e)return e.parent}catch(e){}}function b(e){if(void 0===e&&(e=window),e&&!_(e))try{return e.opener}catch(e){}}function S(e){try{return!0}catch(e){}return!1}function N(e){void 0===e&&(e=window);var n=e.location;if(!n)throw new Error("Can not read window location");var t=w(e);if(!t)throw new Error("Can not read window protocol");if("file:"===t)return"file://";if("about:"===t){var r=_(e);return r&&S()?N(r):"about://"}var o=n.host;if(!o)throw new Error("Can not read window host");return t+"//"+o}function T(e){void 0===e&&(e=window);var n=N(e);return n&&e.mockDomain&&0===e.mockDomain.indexOf("mock:")?e.mockDomain:n}function A(e){if(!function(e){try{if(e===window)return!0}catch(e){}try{var n=Object.getOwnPropertyDescriptor(e,"location");if(n&&!1===n.enumerable)return!1}catch(e){}try{if(E(e)&&S())return!0}catch(e){}try{if(function(e){return void 0===e&&(e=window),"mock:"===g(e)}(e)&&S())return!0}catch(e){}try{if(N(e)===N(window))return!0}catch(e){}return!1}(e))return!1;try{if(e===window)return!0;if(E(e)&&S())return!0;if(T(window)===T(e))return!0}catch(e){}return!1}function P(e){if(!A(e))throw new Error("Expected window to be same domain");return e}function x(e,n){if(!e||!n)return!1;var t=_(n);return t?t===e:-1!==function(e){var n=[];try{for(;e.parent!==e;)n.push(e.parent),e=e.parent}catch(e){}return n}(n).indexOf(e)}function R(e){var n,t,r=[];try{n=e.frames}catch(t){n=e}try{t=n.length}catch(e){}if(0===t)return r;if(t){for(var o=0;o<t;o++){var i=void 0;try{i=n[o]}catch(e){continue}r.push(i)}return r}for(var a=0;a<100;a++){var u=void 0;try{u=n[a]}catch(e){return r}if(!u)return r;r.push(u)}return r}function O(e){for(var n=[],t=0,r=R(e);t<r.length;t++){var o=r[t];n.push(o);for(var i=0,a=O(o);i<a.length;i++)n.push(a[i])}return n}function I(e){void 0===e&&(e=window);try{if(e.top)return e.top}catch(e){}if(_(e)===e)return e;try{if(x(window,e)&&window.top)return window.top}catch(e){}try{if(x(e,window)&&window.top)return window.top}catch(e){}for(var n=0,t=O(e);n<t.length;n++){var r=t[n];try{if(r.top)return r.top}catch(e){}if(_(r)===r)return r}}function C(e){var n=I(e);if(!n)throw new Error("Can not determine top window");var t=[].concat(O(n),[n]);return-1===t.indexOf(e)&&(t=[].concat(t,[e],O(e))),t}var D=[],M=[];function L(e,n){void 0===n&&(n=!0);try{if(e===window)return!1}catch(e){return!0}try{if(!e)return!0}catch(e){return!0}try{if(e.closed)return!0}catch(e){return!e||e.message!==m}if(n&&A(e))try{if(e.mockclosed)return!0}catch(e){}try{if(!e.parent||!e.top)return!0}catch(e){}var t=function(e,n){for(var t=0;t<e.length;t++)try{if(e[t]===n)return t}catch(e){}return-1}(D,e);if(-1!==t){var r=M[t];if(r&&function(e){if(!e.contentWindow)return!0;if(!e.parentNode)return!0;var n=e.ownerDocument;if(n&&n.documentElement&&!n.documentElement.contains(e)){for(var t=e;t.parentNode&&t.parentNode!==t;)t=t.parentNode;if(!t.host||!n.documentElement.contains(t.host))return!0}return!1}(r))return!0}return!1}function F(e,n){for(var t=R(e),r=0;r<t.length;r++){var o=t[r];try{if(A(o)&&o.name===n&&-1!==t.indexOf(o))return o}catch(e){}}try{if(-1!==t.indexOf(e.frames[n]))return e.frames[n]}catch(e){}try{if(-1!==t.indexOf(e[n]))return e[n]}catch(e){}}function k(e){return void 0===e&&(e=window),b(e=e||window)||_(e)||void 0}function H(e,n){for(var t=0;t<e.length;t++)for(var r=e[t],o=0;o<n.length;o++)if(r===n[o])return!0;return!1}function j(e){void 0===e&&(e=window);for(var n=0,t=e;t;)(t=_(t))&&(n+=1);return n}function B(e,n){var t=I(e)||e,r=I(n)||n;try{if(t&&r)return t===r}catch(e){}var o=C(e),i=C(n);if(H(o,i))return!0;var a=b(t),u=b(r);return a&&H(C(a),i)||u&&H(C(u),o),!1}function U(e,n){if("string"==typeof e){if("string"==typeof n)return"*"===e||n===e;if(v(n))return!1;if(Array.isArray(n))return!1}return v(e)?v(n)?e.toString()===n.toString():!Array.isArray(n)&&Boolean(n.match(e)):!!Array.isArray(e)&&(Array.isArray(n)?JSON.stringify(e)===JSON.stringify(n):!v(n)&&e.some((function(e){return U(e,n)})))}function W(e){return e.match(/^(https?|mock|file):\/\//)?e.split("/").slice(0,3).join("/"):T()}function G(e,n,t,r){var o;void 0===t&&(t=1e3),void 0===r&&(r=1/0);var i=function(){if(L(e))return o&&clearTimeout(o),n();r<=0?clearTimeout(o):(r-=t,o=setTimeout(i,t))};return i(),{cancel:function(){o&&clearTimeout(o)}}}function q(e){try{if(e===window)return!0}catch(e){if(e&&e.message===m)return!0}try{if("[object Window]"==={}.toString.call(e))return!0}catch(e){if(e&&e.message===m)return!0}try{if(window.Window&&e instanceof window.Window)return!0}catch(e){if(e&&e.message===m)return!0}try{if(e&&e.self===e)return!0}catch(e){if(e&&e.message===m)return!0}try{if(e&&e.parent===e)return!0}catch(e){if(e&&e.message===m)return!0}try{if(e&&e.top===e)return!0}catch(e){if(e&&e.message===m)return!0}try{if(e&&"__unlikely_value__"===e.__cross_domain_utils_window_check__)return!1}catch(e){return!0}try{if("postMessage"in e&&"self"in e&&"location"in e)return!0}catch(e){}return!1}function Z(e){if(A(e))return P(e).frameElement;for(var n=0,t=document.querySelectorAll("iframe");n<t.length;n++){var r=t[n];if(r&&r.contentWindow&&r.contentWindow===e)return r}}function z(e){if(function(e){return void 0===e&&(e=window),Boolean(_(e))}(e)){var n=Z(e);if(n&&n.parentElement)return void n.parentElement.removeChild(n)}try{e.close()}catch(e){}}function K(e,n){for(var t=0;t<e.length;t++)try{if(e[t]===n)return t}catch(e){}return-1}var Y,V=function(){function e(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>0)+"__",function(){if("undefined"==typeof WeakMap)return!1;if(void 0===Object.freeze)return!1;try{var e=new WeakMap,n={};return Object.freeze(n),e.set(n,"__testvalue__"),"__testvalue__"===e.get(n)}catch(e){return!1}}())try{this.weakmap=new WeakMap}catch(e){}this.keys=[],this.values=[]}var n=e.prototype;return n._cleanupClosedWindows=function(){for(var e=this.weakmap,n=this.keys,t=0;t<n.length;t++){var r=n[t];if(q(r)&&L(r)){if(e)try{e.delete(r)}catch(e){}n.splice(t,1),this.values.splice(t,1),t-=1}}},n.isSafeToReadWrite=function(e){return!q(e)},n.set=function(e,n){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{t.set(e,n)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=this.name,o=e[r];return void(o&&o[0]===e?o[1]=n:Object.defineProperty(e,r,{value:[e,n],writable:!0}))}catch(e){}this._cleanupClosedWindows();var i=this.keys,a=this.values,u=K(i,e);-1===u?(i.push(e),a.push(n)):a[u]=n},n.get=function(e){if(!e)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{if(n.has(e))return n.get(e)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var t=e[this.name];return t&&t[0]===e?t[1]:void 0}catch(e){}this._cleanupClosedWindows();var r=K(this.keys,e);if(-1!==r)return this.values[r]},n.delete=function(e){if(!e)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{n.delete(e)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var t=e[this.name];t&&t[0]===e&&(t[0]=t[1]=void 0)}catch(e){}this._cleanupClosedWindows();var r=this.keys,o=K(r,e);-1!==o&&(r.splice(o,1),this.values.splice(o,1))},n.has=function(e){if(!e)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{if(n.has(e))return!0}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var t=e[this.name];return!(!t||t[0]!==e)}catch(e){}return this._cleanupClosedWindows(),-1!==K(this.keys,e)},n.getOrSet=function(e,n){if(this.has(e))return this.get(e);var t=n();return this.set(e,t),t},e}();function J(e){return(J=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Q(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function X(e,n,t){return(X=Q()?Reflect.construct:function(e,n,t){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return t&&r(i,t.prototype),i}).apply(null,arguments)}function $(e){var n="function"==typeof Map?new Map:void 0;return($=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return X(e,arguments,J(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r(t,e)})(e)}function ee(e){var n=!1;try{(e instanceof window.Element||null!==e&&"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument)&&(n=!0)}catch(e){}return n}function ne(e){return e.name||e.__name__||e.displayName||"anonymous"}function te(e,n){try{delete e.name,e.name=n}catch(e){}return e.__name__=e.displayName=n,e}function re(e){if("function"==typeof btoa)return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,n){return String.fromCharCode(parseInt(n,16))}))).replace(/[=]/g,"");if("undefined"!=typeof Buffer)return Buffer.from(e,"utf8").toString("base64").replace(/[=]/g,"");throw new Error("Can not find window.btoa or Buffer")}function oe(){var e="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,(function(){return e.charAt(Math.floor(Math.random()*e.length))}))+"_"+re((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function ie(){if("undefined"!=typeof window)return window;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("No global found")}function ae(e){try{return JSON.stringify([].slice.call(e),(function(e,n){return"function"==typeof n?"memoize["+function(e){if(Y=Y||new V,null==e||"object"!=typeof e&&"function"!=typeof e)throw new Error("Invalid object");var n=Y.get(e);return n||(n=typeof e+":"+oe(),Y.set(e,n)),n}(n)+"]":ee(n)?{}:n}))}catch(e){throw new Error("Arguments not serializable -- can not be used to memoize")}}function ue(){return{}}var ce=0,se=0;function de(e,n){void 0===n&&(n={});var t,r,o=n.thisNamespace,i=void 0!==o&&o,a=n.time,u=ce;ce+=1;var c=function(){for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];var s,d;u<se&&(t=null,r=null,u=ce,ce+=1),s=i?(r=r||new V).getOrSet(this,ue):t=t||{};try{d=ae(o)}catch(n){return e.apply(this,arguments)}var f=s[d];if(f&&a&&Date.now()-f.time<a&&(delete s[d],f=null),f)return f.value;var l=Date.now(),p=e.apply(this,arguments);return s[d]={time:l,value:p},p};return c.reset=function(){t=null,r=null},te(c,(n.name||ne(e))+"::memoized")}function fe(e){var n={};function t(){for(var t=arguments,r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var u=ae(i);return n.hasOwnProperty(u)||(n[u]=h.try((function(){return e.apply(r,t)})).finally((function(){delete n[u]}))),n[u]}return t.reset=function(){n={}},te(t,ne(e)+"::promiseMemoized")}function le(e,n,t){void 0===t&&(t=[]);var r=e.__inline_memoize_cache__=e.__inline_memoize_cache__||{},o=ae(t);return r.hasOwnProperty(o)?r[o]:r[o]=n.apply(void 0,t)}function pe(){}function he(e){var n=!1;return te((function(){if(!n)return n=!0,e.apply(this,arguments)}),ne(e)+"::once")}function ve(e,n){if(void 0===n&&(n=1),n>=3)return"stringifyError stack overflow";try{if(!e)return"<unknown error: "+{}.toString.call(e)+">";if("string"==typeof e)return e;if(e instanceof Error){var t=e&&e.stack,r=e&&e.message;if(t&&r)return-1!==t.indexOf(r)?t:r+"\n"+t;if(t)return t;if(r)return r}return e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}catch(e){return"Error while stringifying error: "+ve(e,n+1)}}function ye(e){return"string"==typeof e?e:e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}function me(e,n){if(!n)return e;if(Object.assign)return Object.assign(e,n);for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}function we(e,n){void 0===n&&(n=Boolean);var t={};for(var r in e)e.hasOwnProperty(r)&&n(e[r],r)&&(t[r]=e[r]);return t}function ge(e){return e}function Ee(e,n){var t;return function r(){t=setTimeout((function(){e(),r()}),n)}(),{cancel:function(){clearTimeout(t)}}}function _e(){var e={},n={},t={on:function(e,t){var r=n[e]=n[e]||[];r.push(t);var o=!1;return{cancel:function(){o||(o=!0,r.splice(r.indexOf(t),1))}}},once:function(e,n){var r=t.on(e,(function(){r.cancel(),n()}));return r},trigger:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];var i=n[e],a=[];if(i)for(var u=function(){var e=i[c];a.push(h.try((function(){return e.apply(void 0,r)})))},c=0;c<i.length;c++)u();return h.all(a).then(pe)},triggerOnce:function(n){if(e[n])return h.resolve();e[n]=!0;for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.trigger.apply(t,[n].concat(o))},reset:function(){n={}}};return t}function be(e){return e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))}function Se(e,n,t){if(Array.isArray(e)){if("number"!=typeof n)throw new TypeError("Array key must be number")}else if("object"==typeof e&&null!==e&&"string"!=typeof n)throw new TypeError("Object key must be string");Object.defineProperty(e,n,{configurable:!0,enumerable:!0,get:function(){delete e[n];var r=t();return e[n]=r,r},set:function(t){delete e[n],e[n]=t}})}function Ne(e){return[].slice.call(e)}function Te(e){return"object"==typeof(n=e)&&null!==n&&"[object Object]"==={}.toString.call(e);var n}function Ae(e){if(!Te(e))return!1;var n=e.constructor;if("function"!=typeof n)return!1;var t=n.prototype;return!!Te(t)&&!!t.hasOwnProperty("isPrototypeOf")}function Pe(e,n,t){if(void 0===t&&(t=""),Array.isArray(e)){for(var r=e.length,o=[],i=function(r){Se(o,r,(function(){var o=t?t+"."+r:""+r,i=n(e[r],r,o);return(Ae(i)||Array.isArray(i))&&(i=Pe(i,n,o)),i}))},a=0;a<r;a++)i(a);return o}if(Ae(e)){var u={},c=function(r){if(!e.hasOwnProperty(r))return 1;Se(u,r,(function(){var o=t?t+"."+r:""+r,i=n(e[r],r,o);return(Ae(i)||Array.isArray(i))&&(i=Pe(i,n,o)),i}))};for(var s in e)c(s);return u}throw new Error("Pass an object or array")}function xe(e){return null!=e}function Re(e){return"[object RegExp]"==={}.toString.call(e)}function Oe(e,n,t){if(e.hasOwnProperty(n))return e[n];var r=t();return e[n]=r,r}function Ie(e){var n,t=[],r=!1,o={set:function(n,t){return r||(e[n]=t,o.register((function(){delete e[n]}))),t},register:function(e){var o=he((function(){return e(n)}));return r?e(n):t.push(o),{cancel:function(){var e=t.indexOf(o);-1!==e&&t.splice(e,1)}}},all:function(e){n=e;var o=[];for(r=!0;t.length;){var i=t.shift();o.push(i())}return h.all(o).then(pe)}};return o}function Ce(e,n){if(null==n)throw new Error("Expected "+e+" to be present");return n}de.clear=function(){se=ce},de((function(e){if(Object.values)return Object.values(e);var n=[];for(var t in e)e.hasOwnProperty(t)&&n.push(e[t]);return n}));var De=function(e){function n(n){var t;return(t=e.call(this,n)||this).name=t.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(t,t.constructor):t.stack=new Error(n).stack,t}return o(n,e),n}($(Error));function Me(){var e=document.body;if(!e)throw new Error("Body element not found");return e}function Le(){return Boolean(document.body)&&"complete"===document.readyState}function Fe(){return Boolean(document.body)&&"interactive"===document.readyState}function ke(e){return encodeURIComponent(e)}function He(e){return le(He,(function(){var n={};if(!e)return n;if(-1===e.indexOf("="))return n;for(var t=0,r=e.split("&");t<r.length;t++){var o=r[t];(o=o.split("="))[0]&&o[1]&&(n[decodeURIComponent(o[0])]=decodeURIComponent(o[1]))}return n}),[e])}function je(e,n){return void 0===n&&(n={}),n&&Object.keys(n).length?(void 0===(t=i({},He(e),n))&&(t={}),Object.keys(t).filter((function(e){return"string"==typeof t[e]||"boolean"==typeof t[e]})).map((function(e){var n=t[e];if("string"!=typeof n&&"boolean"!=typeof n)throw new TypeError("Invalid type for query");return ke(e)+"="+ke(n.toString())})).join("&")):e;var t}function Be(){return"undefined"!=typeof window&&void 0!==window.location}function Ue(){return le(Ue,(function(){try{if("undefined"==typeof window)return!1;if(window.localStorage){var e=Math.random().toString();window.localStorage.setItem("__test__localStorage__",e);var n=window.localStorage.getItem("__test__localStorage__");if(window.localStorage.removeItem("__test__localStorage__"),e===n)return!0}}catch(e){}return!1}))}function We(e,n){e.appendChild(n)}function Ge(e,n){return void 0===n&&(n=document),ee(e)?e:"string"==typeof e?n.querySelector(e):void 0}function qe(e){return new h((function(n,t){var r=ye(e),o=Ge(e);if(o)return n(o);if(Le())return t(new Error("Document is ready and element "+r+" does not exist"));var i=setInterval((function(){return(o=Ge(e))?(n(o),void clearInterval(i)):Le()?(clearInterval(i),t(new Error("Document is ready and element "+r+" does not exist"))):void 0}),10)}))}de((function(){return new h((function(e){if(Le()||Fe())return e();var n=setInterval((function(){if(Le()||Fe())return clearInterval(n),e()}),10)}))}));var Ze,ze=function(e){function n(){return e.apply(this,arguments)||this}return o(n,e),n}(De);function Ke(e){if((Ze=Ze||new V).has(e)){var n=Ze.get(e);if(n)return n}var t=new h((function(n,t){e.addEventListener("load",(function(){(function(e){if(function(){for(var e=0;e<D.length;e++){var n=!1;try{n=D[e].closed}catch(e){}n&&(M.splice(e,1),D.splice(e,1))}}(),e&&e.contentWindow)try{D.push(e.contentWindow),M.push(e)}catch(e){}})(e),n(e)})),e.addEventListener("error",(function(r){e.contentWindow?n(e):t(r)}))}));return Ze.set(e,t),t}function Ye(e){return Ke(e).then((function(e){if(!e.contentWindow)throw new Error("Could not find window in iframe");return e.contentWindow}))}function Ve(e,n){void 0===e&&(e={});var t=e.style||{},r=function(e,n,t){void 0===e&&(e="div"),void 0===n&&(n={}),e=e.toLowerCase();var r,o,i,a=document.createElement(e);if(n.style&&me(a.style,n.style),n.class&&(a.className=n.class.join(" ")),n.id&&a.setAttribute("id",n.id),n.attributes)for(var u=0,c=Object.keys(n.attributes);u<c.length;u++){var s=c[u];a.setAttribute(s,n.attributes[s])}if(n.styleSheet&&(r=a,o=n.styleSheet,void 0===i&&(i=window.document),r.styleSheet?r.styleSheet.cssText=o:r.appendChild(i.createTextNode(o))),n.html){if("iframe"===e)throw new Error("Iframe html can not be written unless container provided and iframe in DOM");a.innerHTML=n.html}return a}("iframe",{attributes:i({allowTransparency:"true"},e.attributes||{}),style:i({backgroundColor:"transparent",border:"none"},t),html:e.html,class:e.class}),o=window.navigator.userAgent.match(/MSIE|Edge/i);return r.hasAttribute("id")||r.setAttribute("id",oe()),Ke(r),n&&function(e,n){void 0===n&&(n=document);var t=Ge(e,n);if(t)return t;throw new Error("Can not find element: "+ye(e))}(n).appendChild(r),(e.url||o)&&r.setAttribute("src",e.url||"about:blank"),r}function Je(e,n,t){return e.addEventListener(n,t),{cancel:function(){e.removeEventListener(n,t)}}}function Qe(e){e.style.setProperty("display","")}function Xe(e){e.style.setProperty("display","none","important")}function $e(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function en(e){return!(e&&e.parentNode&&e.ownerDocument&&e.ownerDocument.documentElement&&e.ownerDocument.documentElement.contains(e))}function nn(e,n,t){var r=void 0===t?{}:t,o=r.width,i=void 0===o||o,a=r.height,u=void 0===a||a,c=r.interval,s=void 0===c?100:c,d=r.win,f=void 0===d?window:d,l=e.offsetWidth,p=e.offsetHeight,h=!1;n({width:l,height:p});var v,y,m=function(){if(!h&&function(e){return Boolean(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}(e)){var t=e.offsetWidth,r=e.offsetHeight;(i&&t!==l||u&&r!==p)&&n({width:t,height:r}),l=t,p=r}};return f.addEventListener("resize",m),void 0!==f.ResizeObserver?((v=new f.ResizeObserver(m)).observe(e),y=Ee(m,10*s)):void 0!==f.MutationObserver?((v=new f.MutationObserver(m)).observe(e,{attributes:!0,childList:!0,subtree:!0,characterData:!1}),y=Ee(m,10*s)):y=Ee(m,s),{cancel:function(){h=!0,v.disconnect(),window.removeEventListener("resize",m),y.cancel()}}}function tn(e){for(;e.parentNode;)e=e.parentNode;return"[object ShadowRoot]"===e.toString()}var rn="undefined"!=typeof document?document.currentScript:null,on=de((function(){if(rn)return rn;if(rn=function(){try{var e=function(){try{throw new Error("_")}catch(e){return e.stack||""}}(),n=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e),t=n&&n[1];if(!t)return;for(var r=0,o=[].slice.call(document.getElementsByTagName("script")).reverse();r<o.length;r++){var i=o[r];if(i.src&&i.src===t)return i}}catch(e){}}())return rn;throw new Error("Can not determine current script")})),an=oe(),un=de((function(){var e;try{e=on()}catch(e){return an}var n=e.getAttribute("data-uid");if(n&&"string"==typeof n)return n;if((n=e.getAttribute("data-uid-auto"))&&"string"==typeof n)return n;if(e.src){var t=function(e){for(var n="",t=0;t<e.length;t++){var r=e[t].charCodeAt(0)*t;e[t+1]&&(r+=e[t+1].charCodeAt(0)*(t-1)),n+=String.fromCharCode(97+Math.abs(r)%26)}return n}(JSON.stringify({src:e.src,dataset:e.dataset}));n="uid_"+t.slice(t.length-30)}else n=oe();return e.setAttribute("data-uid-auto",n),n}));function cn(e){var n=e.name,t=e.lifetime,r=void 0===t?12e5:t,o=e.stickySessionId;return le(cn,(function(){var e,t="__"+n+"_storage__",i=oe();function a(n){var r,o=Ue();if(e&&(r=e),!r&&o){var a=window.localStorage.getItem(t);a&&(r=JSON.parse(a))}r||(r=ie()[t]),r||(r={id:i}),r.id||(r.id=i),e=r;var u=n(r);return o?window.localStorage.setItem(t,JSON.stringify(r)):ie()[t]=r,e=null,u}function u(){return a((function(e){return e.id}))}function c(e){return a((function(n){var t=n.__session__,i=Date.now();return t&&i-t.created>r&&(t=null),t||(t={guid:o||oe(),created:i}),n.__session__=t,e(t)}))}return{getState:a,getID:u,isStateFresh:function(){return u()===i},getSessionState:function(e){return c((function(n){return n.state=n.state||{},e(n.state)}))},getSessionID:function(){return c((function(e){return e.guid}))}}}),[{name:n,lifetime:r}])}var sn=[];function dn(e){var n=e.url,t=e.method,r=void 0===t?"get":t,o=e.headers,i=void 0===o?{}:o,a=e.json,u=e.data,c=e.body,s=e.win,d=void 0===s?window:s,f=e.timeout,l=void 0===f?0:f;return new h((function(e,t){if(a&&u||a&&c||u&&a)throw new Error("Only options.json or options.data or options.body should be passed");for(var o={},s=0,f=Object.keys(i);s<f.length;s++){var p=f[s];o[p.toLowerCase()]=i[p]}a?o["content-type"]=o["content-type"]||"application/json":(u||c)&&(o["content-type"]=o["content-type"]||"application/x-www-form-urlencoded; charset=utf-8"),o.accept=o.accept||"application/json";for(var h=0;h<sn.length;h++)for(var v=(0,sn[h])(),y=0,m=Object.keys(v);y<m.length;y++){var w=m[y];o[w.toLowerCase()]=v[w]}var g=new d.XMLHttpRequest;for(var E in g.addEventListener("load",(function(){var o=function(e){void 0===e&&(e="");for(var n={},t=0,r=e.trim().split("\n");t<r.length;t++){var o=r[t].split(":"),i=o[0],a=o.slice(1);n[i.toLowerCase()]=a.join(":").trim()}return n}(this.getAllResponseHeaders());if(!this.status)return t(new Error("Request to "+r.toLowerCase()+" "+n+" failed: no response status code."));var i=o["content-type"],a=i&&(0===i.indexOf("application/json")||0===i.indexOf("text/json")),u=this.responseText;try{u=JSON.parse(u)}catch(e){if(a)return t(new Error("Invalid json: "+this.responseText+"."))}return e({status:this.status,headers:o,body:u})}),!1),g.addEventListener("error",(function(e){t(new Error("Request to "+r.toLowerCase()+" "+n+" failed: "+e.toString()+"."))}),!1),g.open(r,n,!0),o)o.hasOwnProperty(E)&&g.setRequestHeader(E,o[E]);a?c=JSON.stringify(a):u&&(c=Object.keys(u).map((function(e){return encodeURIComponent(e)+"="+(u?encodeURIComponent(u[e]):"")})).join("&")),g.timeout=l,g.ontimeout=function(){t(new Error("Request to "+r.toLowerCase()+" "+n+" has timed out"))},g.send(c)}))}function fn(e){return"string"==typeof e&&/^[0-9]+%$/.test(e)}function ln(e){if("number"==typeof e)return e;var n=e.match(/^([0-9]+)(px|%)$/);if(!n)throw new Error("Could not match css value from "+e);return parseInt(n[1],10)}function pn(e){return ln(e)+"px"}function hn(e){return"number"==typeof e?pn(e):fn(e)?e:pn(e)}function vn(e,n){if("number"==typeof e)return e;if(fn(e))return parseInt(n*ln(e)/100,10);var t;if("string"==typeof(t=e)&&/^[0-9]+px$/.test(t))return ln(e);throw new Error("Can not normalize dimension: "+e)}function yn(){return"__post_robot_11_0_0___"+un()}function mn(e){void 0===e&&(e=window);var n=yn();return e!==window?e[n]:e[n]=e[n]||{}}var wn=function(){return{}};function gn(e,n){return void 0===e&&(e="store"),void 0===n&&(n=wn),Oe(mn(),e,(function(){var e=n();return{has:function(n){return e.hasOwnProperty(n)},get:function(n,t){return e.hasOwnProperty(n)?e[n]:t},set:function(n,t){return e[n]=t,t},del:function(n){delete e[n]},getOrSet:function(n,t){return Oe(e,n,t)},reset:function(){e=n()},keys:function(){return Object.keys(e)}}}))}var En,_n=function(){};function bn(){var e=mn();return e.WINDOW_WILDCARD=e.WINDOW_WILDCARD||new _n,e.WINDOW_WILDCARD}function Sn(e,n){return void 0===e&&(e="store"),void 0===n&&(n=wn),gn("windowStore").getOrSet(e,(function(){var t=new V,r=function(e){return t.getOrSet(e,n)};return{has:function(n){return r(n).hasOwnProperty(e)},get:function(n,t){var o=r(n);return o.hasOwnProperty(e)?o[e]:t},set:function(n,t){return r(n)[e]=t,t},del:function(n){delete r(n)[e]},getOrSet:function(n,t){return Oe(r(n),e,t)}}}))}function Nn(){return gn("instance").getOrSet("instanceID",oe)}function Tn(e,n){var t=n.domain,r=Sn("helloPromises"),o=r.get(e);o&&o.resolve({domain:t});var i=h.resolve({domain:t});return r.set(e,i),i}function An(e,n){return(0,n.send)(e,"postrobot_hello",{instanceID:Nn()},{domain:"*",timeout:-1}).then((function(n){var t=n.origin,r=n.data.instanceID;return Tn(e,{domain:t}),{win:e,domain:t,instanceID:r}}))}function Pn(e,n){var t=n.send;return Sn("windowInstanceIDPromises").getOrSet(e,(function(){return An(e,{send:t}).then((function(e){return e.instanceID}))}))}function xn(e){Sn("knownWindows").set(e,!0)}function Rn(e){return"object"==typeof e&&null!==e&&"string"==typeof e.__type__}function On(e){return void 0===e?"undefined":null===e?"null":Array.isArray(e)?"array":"function"==typeof e?"function":"object"==typeof e?e instanceof Error?"error":"function"==typeof e.then?"promise":"[object RegExp]"==={}.toString.call(e)?"regex":"[object Date]"==={}.toString.call(e)?"date":"object":"string"==typeof e?"string":"number"==typeof e?"number":"boolean"==typeof e?"boolean":void 0}function In(e,n){return{__type__:e,__val__:n}}var Cn,Dn=((En={}).function=function(){},En.error=function(e){return In("error",{message:e.message,stack:e.stack,code:e.code,data:e.data})},En.promise=function(){},En.regex=function(e){return In("regex",e.source)},En.date=function(e){return In("date",e.toJSON())},En.array=function(e){return e},En.object=function(e){return e},En.string=function(e){return e},En.number=function(e){return e},En.boolean=function(e){return e},En.null=function(e){return e},En[void 0]=function(e){return In("undefined",e)},En),Mn={},Ln=((Cn={}).function=function(){throw new Error("Function serialization is not implemented; nothing to deserialize")},Cn.error=function(e){var n=e.stack,t=e.code,r=e.data,o=new Error(e.message);return o.code=t,r&&(o.data=r),o.stack=n+"\n\n"+o.stack,o},Cn.promise=function(){throw new Error("Promise serialization is not implemented; nothing to deserialize")},Cn.regex=function(e){return new RegExp(e)},Cn.date=function(e){return new Date(e)},Cn.array=function(e){return e},Cn.object=function(e){return e},Cn.string=function(e){return e},Cn.number=function(e){return e},Cn.boolean=function(e){return e},Cn.null=function(e){return e},Cn[void 0]=function(){},Cn),Fn={};function kn(){for(var e=gn("idToProxyWindow"),n=0,t=e.keys();n<t.length;n++){var r=t[n];e.get(r).shouldClean()&&e.del(r)}}function Hn(e,n){var t=n.send,r=n.id,o=void 0===r?oe():r,i=e.then((function(e){if(A(e))return P(e).name})),a=e.then((function(e){if(L(e))throw new Error("Window is closed, can not determine type");return b(e)?y.POPUP:y.IFRAME}));i.catch(pe),a.catch(pe);var u=function(){return e.then((function(e){if(!L(e))return A(e)?P(e).name:i}))};return{id:o,getType:function(){return a},getInstanceID:fe((function(){return e.then((function(e){return Pn(e,{send:t})}))})),close:function(){return e.then(z)},getName:u,focus:function(){return e.then((function(e){e.focus()}))},isClosed:function(){return e.then((function(e){return L(e)}))},setLocation:function(n,t){return void 0===t&&(t={}),e.then((function(e){var r=window.location.protocol+"//"+window.location.host,o=t.method,i=void 0===o?"get":o,a=t.body;if(0===n.indexOf("/"))n=""+r+n;else if(!n.match(/^https?:\/\//)&&0!==n.indexOf(r))throw new Error("Expected url to be http or https url, or absolute path, got "+JSON.stringify(n));if("post"===i)return u().then((function(e){if(!e)throw new Error("Can not post to window without target name");!function(e){var n=e.url,t=e.target,r=e.body,o=e.method,i=void 0===o?"post":o,a=document.createElement("form");if(a.setAttribute("target",t),a.setAttribute("method",i),a.setAttribute("action",n),a.style.display="none",r)for(var u=0,c=Object.keys(r);u<c.length;u++){var s,d=c[u],f=document.createElement("input");f.setAttribute("name",d),f.setAttribute("value",null==(s=r[d])?void 0:s.toString()),a.appendChild(f)}Me().appendChild(a),a.submit(),Me().removeChild(a)}({url:n,target:e,method:i,body:a})}));if("get"!==i)throw new Error("Unsupported method: "+i);if(A(e))try{if(e.location&&"function"==typeof e.location.replace)return void e.location.replace(n)}catch(e){}e.location=n}))},setName:function(n){return e.then((function(e){var t=A(e),r=Z(e);if(!t)throw new Error("Can not set name for cross-domain window: "+n);P(e).name=n,r&&r.setAttribute("name",n),i=h.resolve(n)}))}}}new h((function(e){if(window.document&&window.document.body)return e(window.document.body);var n=setInterval((function(){if(window.document&&window.document.body)return clearInterval(n),e(window.document.body)}),10)}));var jn=function(){function e(e){var n=e.send,t=e.win,r=e.serializedWindow;this.id=void 0,this.isProxyWindow=!0,this.serializedWindow=void 0,this.actualWindow=void 0,this.actualWindowPromise=void 0,this.send=void 0,this.name=void 0,this.actualWindowPromise=new h,this.serializedWindow=r||Hn(this.actualWindowPromise,{send:n}),gn("idToProxyWindow").set(this.getID(),this),t&&this.setWindow(t,{send:n})}var n=e.prototype;return n.getID=function(){return this.serializedWindow.id},n.getType=function(){return this.serializedWindow.getType()},n.isPopup=function(){return this.getType().then((function(e){return e===y.POPUP}))},n.setLocation=function(e,n){var t=this;return this.serializedWindow.setLocation(e,n).then((function(){return t}))},n.getName=function(){return this.serializedWindow.getName()},n.setName=function(e){var n=this;return this.serializedWindow.setName(e).then((function(){return n}))},n.close=function(){var e=this;return this.serializedWindow.close().then((function(){return e}))},n.focus=function(){var e=this,n=this.isPopup(),t=this.getName(),r=h.hash({isPopup:n,name:t}).then((function(e){var n=e.name;e.isPopup&&n&&window.open("",n,"noopener")})),o=this.serializedWindow.focus();return h.all([r,o]).then((function(){return e}))},n.isClosed=function(){return this.serializedWindow.isClosed()},n.getWindow=function(){return this.actualWindow},n.setWindow=function(e,n){var t=n.send;this.actualWindow=e,this.actualWindowPromise.resolve(this.actualWindow),this.serializedWindow=Hn(this.actualWindowPromise,{send:t,id:this.getID()}),Sn("winToProxyWindow").set(e,this)},n.awaitWindow=function(){return this.actualWindowPromise},n.matchWindow=function(e,n){var t=this,r=n.send;return h.try((function(){return t.actualWindow?e===t.actualWindow:h.hash({proxyInstanceID:t.getInstanceID(),knownWindowInstanceID:Pn(e,{send:r})}).then((function(n){var o=n.proxyInstanceID===n.knownWindowInstanceID;return o&&t.setWindow(e,{send:r}),o}))}))},n.unwrap=function(){return this.actualWindow||this},n.getInstanceID=function(){return this.serializedWindow.getInstanceID()},n.shouldClean=function(){return Boolean(this.actualWindow&&L(this.actualWindow))},n.serialize=function(){return this.serializedWindow},e.unwrap=function(n){return e.isProxyWindow(n)?n.unwrap():n},e.serialize=function(n,t){var r=t.send;return kn(),e.toProxyWindow(n,{send:r}).serialize()},e.deserialize=function(n,t){var r=t.send;return kn(),gn("idToProxyWindow").get(n.id)||new e({serializedWindow:n,send:r})},e.isProxyWindow=function(e){return Boolean(e&&!q(e)&&e.isProxyWindow)},e.toProxyWindow=function(n,t){var r=t.send;if(kn(),e.isProxyWindow(n))return n;var o=n;return Sn("winToProxyWindow").get(o)||new e({win:o,send:r})},e}();function Bn(e,n,t,r,o){var i=Sn("methodStore"),a=gn("proxyWindowMethods");jn.isProxyWindow(r)?a.set(e,{val:n,name:t,domain:o,source:r}):(a.del(e),i.getOrSet(r,(function(){return{}}))[e]={domain:o,name:t,val:n,source:r})}function Un(e,n){var t=Sn("methodStore"),r=gn("proxyWindowMethods");return t.getOrSet(e,(function(){return{}}))[n]||r.get(n)}function Wn(e,n,t,r,o){!function(e){var n=e.on,t=e.send;gn("builtinListeners").getOrSet("functionCalls",(function(){return n("postrobot_method",{domain:"*"},(function(e){var n=e.source,r=e.origin,o=e.data,i=o.id,a=o.name,u=Un(n,i);if(!u)throw new Error("Could not find method '"+a+"' with id: "+o.id+" in "+T(window));var c=u.source,s=u.domain,d=u.val;return h.try((function(){if(!U(s,r))throw new Error("Method '"+o.name+"' domain "+JSON.stringify(Re(u.domain)?u.domain.source:u.domain)+" does not match origin "+r+" in "+T(window));if(jn.isProxyWindow(c))return c.matchWindow(n,{send:t}).then((function(e){if(!e)throw new Error("Method call '"+o.name+"' failed - proxy window does not match source in "+T(window))}))})).then((function(){return d.apply({source:n,origin:r},o.args)}),(function(e){return h.try((function(){if(d.onError)return d.onError(e)})).then((function(){var n;throw e.stack&&(e.stack="Remote call to "+a+"("+(void 0===(n=o.args)&&(n=[]),Ne(n).map((function(e){return"string"==typeof e?"'"+e+"'":void 0===e?"undefined":null===e?"null":"boolean"==typeof e?e.toString():Array.isArray(e)?"[ ... ]":"object"==typeof e?"{ ... }":"function"==typeof e?"() => { ... }":"<"+typeof e+">"})).join(", ")+") failed\n\n")+e.stack),e}))})).then((function(e){return{result:e,id:i,name:a}}))}))}))}({on:o.on,send:o.send});var i=t.__id__||oe();e=jn.unwrap(e);var a=t.__name__||t.name||r;return"string"==typeof a&&"function"==typeof a.indexOf&&0===a.indexOf("anonymous::")&&(a=a.replace("anonymous::",r+"::")),jn.isProxyWindow(e)?(Bn(i,t,a,e,n),e.awaitWindow().then((function(e){Bn(i,t,a,e,n)}))):Bn(i,t,a,e,n),In("cross_domain_function",{id:i,name:a})}function Gn(e,n,t,r){var o,i=r.on,a=r.send;return function(e,n){void 0===n&&(n=Mn);var t=JSON.stringify(e,(function(e){var t=this[e];if(Rn(this))return t;var r=On(t);if(!r)return t;var o=n[r]||Dn[r];return o?o(t,e):t}));return void 0===t?"undefined":t}(t,((o={}).promise=function(t,r){return function(e,n,t,r,o){return In("cross_domain_zalgo_promise",{then:Wn(e,n,(function(e,n){return t.then(e,n)}),r,{on:o.on,send:o.send})})}(e,n,t,r,{on:i,send:a})},o.function=function(t,r){return Wn(e,n,t,r,{on:i,send:a})},o.object=function(e){return q(e)||jn.isProxyWindow(e)?In("cross_domain_window",jn.serialize(e,{send:a})):e},o))}function qn(e,n,t,r){var o,i=r.send;return function(e,n){if(void 0===n&&(n=Fn),"undefined"!==e)return JSON.parse(e,(function(e,t){if(Rn(this))return t;var r,o;if(Rn(t)?(r=t.__type__,o=t.__val__):(r=On(t),o=t),!r)return o;var i=n[r]||Ln[r];return i?i(o,e):o}))}(t,((o={}).cross_domain_zalgo_promise=function(e){return function(e,n,t){return new h(t.then)}(0,0,e)},o.cross_domain_function=function(t){return function(e,n,t,r){var o=t.id,i=t.name,a=r.send,u=function(t){function r(){var u=arguments;return jn.toProxyWindow(e,{send:a}).awaitWindow().then((function(e){var c=Un(e,o);if(c&&c.val!==r)return c.val.apply({source:window,origin:T()},u);var s=[].slice.call(u);return t.fireAndForget?a(e,"postrobot_method",{id:o,name:i,args:s},{domain:n,fireAndForget:!0}):a(e,"postrobot_method",{id:o,name:i,args:s},{domain:n,fireAndForget:!1}).then((function(e){return e.data.result}))})).catch((function(e){throw e}))}return void 0===t&&(t={}),r.__name__=i,r.__origin__=n,r.__source__=e,r.__id__=o,r.origin=n,r},c=u();return c.fireAndForget=u({fireAndForget:!0}),c}(e,n,t,{send:i})},o.cross_domain_window=function(e){return jn.deserialize(e,{send:i})},o))}var Zn={};function zn(e,n,t,r){var o=r.on,i=r.send;return h.try((function(){var r=Sn().getOrSet(e,(function(){return{}}));return r.buffer=r.buffer||[],r.buffer.push(t),r.flush=r.flush||h.flush().then((function(){if(L(e))throw new Error("Window is closed");var t,a,u=Gn(e,n,(t=r.buffer||[],(a={})[yn()]=t,a),{on:o,send:i});delete r.buffer;for(var c=Object.keys(Zn),s=[],d=0;d<c.length;d++){var f=c[d];try{Zn[f](e,u,n)}catch(e){s.push(e)}}if(s.length===c.length)throw new Error("All post-robot messaging strategies failed:\n\n"+s.map((function(e,n){return n+". "+ve(e)})).join("\n\n"))})),r.flush.then((function(){delete r.flush}))})).then(pe)}function Kn(e){return gn("responseListeners").get(e)}function Yn(e){gn("responseListeners").del(e)}function Vn(e){return gn("erroredResponseListeners").has(e)}function Jn(e){var n=e.name,t=e.win,r=e.domain,o=Sn("requestListeners");if("*"===t&&(t=null),"*"===r&&(r=null),!n)throw new Error("Name required to get request listener");for(var i=0,a=[t,bn()];i<a.length;i++){var u=a[i];if(u){var c=o.get(u);if(c){var s=c[n];if(s){if(r&&"string"==typeof r){if(s[r])return s[r];if(s.__domain_regex__)for(var d=0,f=s.__domain_regex__;d<f.length;d++){var l=f[d],p=l.listener;if(U(l.regex,r))return p}}if(s["*"])return s["*"]}}}}}function Qn(e,n){var t=n.on,r=n.send,o=gn("receivedMessages");try{if(!window||window.closed||!e.source)return}catch(e){return}var i=e.source,a=e.origin,u=function(e,n,t,r){var o,i=r.on,a=r.send;try{o=qn(n,t,e,{on:i,send:a})}catch(e){return}if(o&&"object"==typeof o&&null!==o){var u=o[yn()];if(Array.isArray(u))return u}}(e.data,i,a,{on:t,send:r});if(u){xn(i);for(var c,s=function(){var e=u[d];if(o.has(e.id))return{v:void 0};if(o.set(e.id,!0),L(i)&&!e.fireAndForget)return{v:void 0};0===e.origin.indexOf("file:")&&(a="file://");try{"postrobot_message_request"===e.type?function(e,n,t,r){var o=r.on,i=r.send,a=Jn({name:t.name,win:e,domain:n}),u="postrobot_method"===t.name&&t.data&&"string"==typeof t.data.name?t.data.name+"()":t.name;function c(r,a,c){return h.flush().then((function(){if(!t.fireAndForget&&!L(e))try{return zn(e,n,{id:oe(),origin:T(window),type:"postrobot_message_response",hash:t.hash,name:t.name,ack:r,data:a,error:c},{on:o,send:i})}catch(e){throw new Error("Send response message failed for "+u+" in "+T()+"\n\n"+ve(e))}}))}h.all([h.flush().then((function(){if(!t.fireAndForget&&!L(e))try{return zn(e,n,{id:oe(),origin:T(window),type:"postrobot_message_ack",hash:t.hash,name:t.name},{on:o,send:i})}catch(e){throw new Error("Send ack message failed for "+u+" in "+T()+"\n\n"+ve(e))}})),h.try((function(){if(!a)throw new Error("No handler found for post message: "+t.name+" from "+n+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);return a.handler({source:e,origin:n,data:t.data})})).then((function(e){return c("success",e)}),(function(e){return c("error",null,e)}))]).then(pe).catch((function(e){if(a&&a.handleError)return a.handleError(e);throw e}))}(i,a,e,{on:t,send:r}):"postrobot_message_response"===e.type?function(e,n,t){if(!Vn(t.hash)){var r,o=Kn(t.hash);if(!o)throw new Error("No handler found for post message response for message: "+t.name+" from "+n+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);if(!U(o.domain,n))throw new Error("Response origin "+n+" does not match domain "+(r=o.domain,Array.isArray(r)?"("+r.join(" | ")+")":v(r)?"RegExp("+r.toString()+")":r.toString()));if(e!==o.win)throw new Error("Response source does not match registered window");Yn(t.hash),"error"===t.ack?o.promise.reject(t.error):"success"===t.ack&&o.promise.resolve({source:e,origin:n,data:t.data})}}(i,a,e):"postrobot_message_ack"===e.type&&function(e,n,t){if(!Vn(t.hash)){var r=Kn(t.hash);if(!r)throw new Error("No handler found for post message ack for message: "+t.name+" from "+n+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);try{if(!U(r.domain,n))throw new Error("Ack origin "+n+" does not match domain "+r.domain.toString());if(e!==r.win)throw new Error("Ack source does not match registered window")}catch(e){r.promise.reject(e)}r.ack=!0}}(i,a,e)}catch(e){setTimeout((function(){throw e}),0)}},d=0;d<u.length;d++)if(c=s())return c.v}}function Xn(e,n,t){if(!e)throw new Error("Expected name");if("function"==typeof(n=n||{})&&(t=n,n={}),!t)throw new Error("Expected handler");var r=function e(n,t){var r=n.name,o=n.win,i=n.domain,a=Sn("requestListeners");if(!r||"string"!=typeof r)throw new Error("Name required to add request listener");if(o&&"*"!==o&&jn.isProxyWindow(o)){var u=o.awaitWindow().then((function(n){return e({name:r,win:n,domain:i},t)}));return{cancel:function(){u.then((function(e){return e.cancel()}),pe)}}}var c=o;if(Array.isArray(c)){for(var s=[],d=0,f=c;d<f.length;d++)s.push(e({name:r,domain:i,win:f[d]},t));return{cancel:function(){for(var e=0;e<s.length;e++)s[e].cancel()}}}if(Array.isArray(i)){for(var l=[],p=0,h=i;p<h.length;p++)l.push(e({name:r,win:c,domain:h[p]},t));return{cancel:function(){for(var e=0;e<l.length;e++)l[e].cancel()}}}var v=Jn({name:r,win:c,domain:i});c&&"*"!==c||(c=bn());var y=(i=i||"*").toString();if(v)throw c&&i?new Error("Request listener already exists for "+r+" on domain "+i.toString()+" for "+(c===bn()?"wildcard":"specified")+" window"):c?new Error("Request listener already exists for "+r+" for "+(c===bn()?"wildcard":"specified")+" window"):i?new Error("Request listener already exists for "+r+" on domain "+i.toString()):new Error("Request listener already exists for "+r);var m,w,g=a.getOrSet(c,(function(){return{}})),E=Oe(g,r,(function(){return{}}));return Re(i)?(m=Oe(E,"__domain_regex__",(function(){return[]}))).push(w={regex:i,listener:t}):E[y]=t,{cancel:function(){delete E[y],w&&(m.splice(m.indexOf(w,1)),m.length||delete E.__domain_regex__),Object.keys(E).length||delete g[r],c&&!Object.keys(g).length&&a.del(c)}}}({name:e,win:n.window,domain:n.domain||"*"},{handler:t||n.handler,handleError:n.errorHandler||function(e){throw e}});return{cancel:function(){r.cancel()}}}Zn.postrobot_post_message=function(e,n,t){0===t.indexOf("file:")&&(t="*"),e.postMessage(n,t)},Zn.postrobot_global=function(e,n){if(!function(e){return(e=e||window).navigator.mockUserAgent||e.navigator.userAgent}(window).match(/MSIE|rv:11|trident|edge\/12|edge\/13/i))throw new Error("Global messaging not needed for browser");if(!A(e))throw new Error("Post message through global disabled between different domain windows");if(!1!==B(window,e))throw new Error("Can only use global to communicate between two different windows, not between frames");var t=mn(e);if(!t)throw new Error("Can not find postRobot global on foreign window");t.receiveMessage({source:window,origin:T(),data:n})};var $n=function(e,n,t,r){var o=(r=r||{}).domain||"*",i=r.timeout||-1,a=r.timeout||5e3,u=r.fireAndForget||!1;return jn.toProxyWindow(e,{send:$n}).awaitWindow().then((function(e){return h.try((function(){if(function(e,n,t){if(!e)throw new Error("Expected name");if(t&&"string"!=typeof t&&!Array.isArray(t)&&!Re(t))throw new TypeError("Can not send "+e+". Expected domain "+JSON.stringify(t)+" to be a string, array, or regex");if(L(n))throw new Error("Can not send "+e+". Target window is closed")}(n,e,o),function(e,n){var t=k(n);if(t)return t===e;if(n===e)return!1;if(I(n)===n)return!1;for(var r=0,o=R(e);r<o.length;r++)if(o[r]===n)return!0;return!1}(window,e))return function(e,n,t){void 0===n&&(n=5e3),void 0===t&&(t="Window");var r=function(e){return Sn("helloPromises").getOrSet(e,(function(){return new h}))}(e);return-1!==n&&(r=r.timeout(n,new Error(t+" did not load after "+n+"ms"))),r}(e,a)})).then((function(n){return function(e,n,t,r){var o=r.send;return h.try((function(){return"string"==typeof n?n:h.try((function(){return t||An(e,{send:o}).then((function(e){return e.domain}))})).then((function(e){if(!U(n,n))throw new Error("Domain "+ye(n)+" does not match "+ye(n));return e}))}))}(e,o,(void 0===n?{}:n).domain,{send:$n})})).then((function(r){var o=r,a="postrobot_method"===n&&t&&"string"==typeof t.name?t.name+"()":n,c=new h,s=n+"_"+oe();if(!u){var d={name:n,win:e,domain:o,promise:c};!function(e,n){gn("responseListeners").set(e,n)}(s,d);var f=Sn("requestPromises").getOrSet(e,(function(){return[]}));f.push(c),c.catch((function(){!function(e){gn("erroredResponseListeners").set(e,!0)}(s),Yn(s)}));var l=function(e){return Sn("knownWindows").get(e,!1)}(e)?1e4:2e3,p=i,v=l,y=p,m=Ee((function(){return L(e)?c.reject(new Error("Window closed for "+n+" before "+(d.ack?"response":"ack"))):d.cancelled?c.reject(new Error("Response listener was cancelled for "+n)):(v=Math.max(v-500,0),-1!==y&&(y=Math.max(y-500,0)),d.ack||0!==v?0===y?c.reject(new Error("No response for postMessage "+a+" in "+T()+" in "+p+"ms")):void 0:c.reject(new Error("No ack for postMessage "+a+" in "+T()+" in "+l+"ms")))}),500);c.finally((function(){m.cancel(),f.splice(f.indexOf(c,1))})).catch(pe)}return zn(e,o,{id:oe(),origin:T(window),type:"postrobot_message_request",hash:s,name:n,data:t,fireAndForget:u},{on:Xn,send:$n}).then((function(){return u?c.resolve():c}),(function(e){throw new Error("Send request message failed for "+a+" in "+T()+"\n\n"+ve(e))}))}))}))};function et(e){return jn.toProxyWindow(e,{send:$n})}function nt(){var e,n,t;mn().initialized||(mn().initialized=!0,function(e){var n=e.on,t=e.send,r=mn();r.receiveMessage=r.receiveMessage||function(e){return Qn(e,{on:n,send:t})}}({on:Xn,send:$n}),function(e){var n=e.on,t=e.send;gn().getOrSet("postMessageListener",(function(){return Je(window,"message",(function(e){!function(e,n){var t=n.on,r=n.send;h.try((function(){var n=e.source||e.sourceElement,o=e.origin||e.originalEvent&&e.originalEvent.origin,i=e.data;if("null"===o&&(o="file://"),n){if(!o)throw new Error("Post message did not have origin domain");Qn({source:n,origin:o,data:i},{on:t,send:r})}}))}(e,{on:n,send:t})}))}))}({on:Xn,send:$n}),n=(e={on:Xn,send:$n}).on,t=e.send,gn("builtinListeners").getOrSet("helloListener",(function(){var e=n("postrobot_hello",{domain:"*"},(function(e){return Tn(e.source,{domain:e.origin}),{instanceID:Nn()}})),r=k();return r&&An(r,{send:t}).catch((function(e){})),e})))}function tt(e){for(var n=0,t=Sn("requestPromises").get(e,[]);n<t.length;n++)t[n].reject(new Error("Window "+(L(e)?"closed":"cleaned up")+" before response")).catch(pe)}function rt(e){var n="__zoid_10_4_0___"+un();if(!A(e))throw new Error("Can not get global for window on different domain");return e[n]||(e[n]={}),e[n]}function ot(e,n){try{return n(rt(e))}catch(e){}}function it(e){return{get:function(){var n=this;return h.try((function(){if(n.source&&n.source!==window)throw new Error("Can not call get on proxy object from a remote window");return e}))}}}function at(e){return re(JSON.stringify(e))}function ut(e){var n=rt(e);return n.references=n.references||{},n.references}function ct(e){var n,t,r=e.data,o=e.metaData,i=e.sender,a=e.receiver,u=e.passByReference,c=void 0!==u&&u,s=e.basic,d=void 0!==s&&s,f=et(a.win),l=d?JSON.stringify(r):Gn(f,a.domain,r,{on:Xn,send:$n}),p=c?(n=l,t=oe(),ut(window)[t]=n,{type:"uid",uid:t}):function(e){return{type:"raw",val:e}}(l);return{serializedData:at({sender:{domain:i.domain},metaData:o,reference:p}),cleanReference:function(){var e,n;e=window,"uid"===(n=p).type&&delete ut(e)[n.uid]}}}function st(e){var n,t,r=e.sender,o=e.basic,i=void 0!==o&&o,a=function(e){return JSON.parse(function(e){if("function"==typeof atob)return decodeURIComponent([].map.call(atob(e),(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));if("undefined"!=typeof Buffer)return Buffer.from(e,"base64").toString("utf8");throw new Error("Can not find window.atob or Buffer")}(e))}(e.data),u=a.reference,c=a.metaData;n="function"==typeof r.win?r.win({metaData:c}):r.win,t="function"==typeof r.domain?r.domain({metaData:c}):"string"==typeof r.domain?r.domain:a.sender.domain;var s=function(e,n){if("raw"===n.type)return n.val;if("uid"===n.type)return ut(e)[n.uid];throw new Error("Unsupported ref type: "+n.type)}(n,u);return{data:i?JSON.parse(s):function(e,n,t){return qn(e,n,t,{on:Xn,send:$n})}(n,t,s),metaData:c,sender:{win:n,domain:t},reference:u}}nt();var dt={NAVIGATED_AWAY:"Window navigated away",COMPONENT_DESTROYED:"Component destroyed",COMPONENT_CLOSED:"Component closed",WINDOW_CLOSED:"Detected component window close",IFRAME_CLOSE:"Detected iframe close"},ft=y;function lt(e){return"__zoid__"+e.name+"__"+e.serializedPayload+"__"}function pt(e){if(!e)throw new Error("No window name");var n=e.split("__"),t=n[1],r=n[2],o=n[3];if("zoid"!==t)throw new Error("Window not rendered by zoid - got "+t);if(!r)throw new Error("Expected component name");if(!o)throw new Error("Expected serialized payload ref");return{name:r,serializedInitialPayload:o}}var ht=de((function(e){var n=st({data:pt(e).serializedInitialPayload,sender:{win:function(e){return function(e){if("opener"===e.type)return Ce("opener",b(window));if("parent"===e.type&&"number"==typeof e.distance)return Ce("parent",function(e,n){return void 0===n&&(n=1),function(e,n){void 0===n&&(n=1);for(var t=e,r=0;r<n;r++){if(!t)return;t=_(t)}return t}(e,j(e)-n)}(window,e.distance));if("global"===e.type&&e.uid&&"string"==typeof e.uid){var n=e.uid,t=k(window);if(!t)throw new Error("Can not find ancestor window");for(var r=0,o=C(t);r<o.length;r++){var i=o[r];if(A(i)){var a=ot(i,(function(e){return e.windows&&e.windows[n]}));if(a)return a}}}else if("name"===e.type){var u=e.name;return Ce("namedWindow",function(e,n){return F(e,n)||function e(n,t){var r=F(n,t);if(r)return r;for(var o=0,i=R(n);o<i.length;o++){var a=e(i[o],t);if(a)return a}}(I(e)||e,n)}(Ce("ancestor",k(window)),u))}throw new Error("Unable to find "+e.type+" parent component window")}(e.metaData.windowRef)}}});return{parent:n.sender,payload:n.data,reference:n.reference}}));function vt(){return ht(window.name)}function yt(e,n){if(void 0===n&&(n=window),e===_(n))return{type:"parent",distance:j(e)};if(e===b(n))return{type:"opener"};if(A(e)&&(r=e)!==I(r)){var t=P(e).name;if(t)return{type:"name",name:t}}var r}function mt(e,n,t,r,o){if(!e.hasOwnProperty(t))return r;var i=e[t];return"function"==typeof i.childDecorate?i.childDecorate({value:r,uid:o.uid,tag:o.tag,close:o.close,focus:o.focus,onError:o.onError,onProps:o.onProps,resize:o.resize,getParent:o.getParent,getParentDomain:o.getParentDomain,show:o.show,hide:o.hide,export:o.export,getSiblings:o.getSiblings}):r}function wt(){return h.try((function(){window.focus()}))}function gt(){return h.try((function(){window.close()}))}var Et=function(){return pe},_t=function(e){return he(e.value)};function bt(e,n,t){for(var r=0,o=Object.keys(i({},e,n));r<o.length;r++){var a=o[r];t(a,n[a],e[a])}}function St(e,n,t){var r={};return h.all(function(e,n,o){var i=[];return bt(e,n,(function(e,n,o){var a=function(e,n,o){return h.resolve().then((function(){var i,a;if(null!=o&&n){var u=(i={},i.get=n.queryParam,i.post=n.bodyParam,i)[t],c=(a={},a.get=n.queryValue,a.post=n.bodyValue,a)[t];if(u)return h.hash({finalParam:h.try((function(){return"function"==typeof u?u({value:o}):"string"==typeof u?u:e})),finalValue:h.try((function(){return"function"==typeof c&&xe(o)?c({value:o}):o}))}).then((function(t){var o,i=t.finalParam,a=t.finalValue;if("boolean"==typeof a)o=a.toString();else if("string"==typeof a)o=a.toString();else if("object"==typeof a&&null!==a){if("json"===n.serialization)o=JSON.stringify(a);else if("base64"===n.serialization)o=re(JSON.stringify(a));else if("dotify"===n.serialization||!n.serialization){o=function e(n,t,r){for(var o in void 0===t&&(t=""),void 0===r&&(r={}),t=t?t+".":t,n)n.hasOwnProperty(o)&&null!=n[o]&&"function"!=typeof n[o]&&(n[o]&&Array.isArray(n[o])&&n[o].length&&n[o].every((function(e){return"object"!=typeof e}))?r[""+t+o+"[]"]=n[o].join(","):n[o]&&"object"==typeof n[o]?r=e(n[o],""+t+o,r):r[""+t+o]=n[o].toString());return r}(a,e);for(var u=0,c=Object.keys(o);u<c.length;u++){var s=c[u];r[s]=o[s]}return}}else"number"==typeof a&&(o=a.toString());r[i]=o}))}}))}(e,n,o);i.push(a)})),i}(n,e)).then((function(){return r}))}function Nt(e){var n,t,r,o,a,u=e.uid,c=e.options,s=e.overrides,d=void 0===s?{}:s,f=e.parentWin,l=void 0===f?window:f,p=c.propsDef,v=c.containerTemplate,y=c.prerenderTemplate,m=c.tag,w=c.name,g=c.attributes,E=c.dimensions,_=c.autoResize,b=c.url,S=c.domain,N=c.exports,x=new h,R=[],O=Ie(),I={},C={},D={visible:!0},M=d.event?d.event:_e(),F=d.props?d.props:{},H=!1,q=d.onError,Z=d.getProxyContainer,K=d.show,Y=d.hide,V=d.close,J=d.renderContainer,Q=d.getProxyWindow,X=d.setProxyWin,$=d.openFrame,ee=d.openPrerenderFrame,ne=d.prerender,te=d.open,re=d.openPrerender,ie=d.watchForUnload,ae=d.getInternalState,ue=d.setInternalState,ce=function(){return"function"==typeof E?E({props:F}):E},se=function(){return h.try((function(){return d.resolveInitPromise?d.resolveInitPromise():x.resolve()}))},fe=function(e){return h.try((function(){return d.rejectInitPromise?d.rejectInitPromise(e):x.reject(e)}))},le=function(e){for(var n={},t=0,r=Object.keys(F);t<r.length;t++){var o=r[t],i=p[o];if(!i||!1!==i.sendToChild){var a=i&&i.trustedDomains&&i.trustedDomains.length>0?i.trustedDomains.reduce((function(n,t){return n||U(t,e)}),!1):U(e,T(window));i&&i.sameDomain&&!a||i&&i.trustedDomains&&!a||(n[o]=F[o])}}return h.hash(n)},we=function(){return h.try((function(){return ae?ae():D}))},ge=function(e){return h.try((function(){return ue?ue(e):D=i({},D,e)}))},be=function(){return Q?Q():h.try((function(){var e=F.window;if(e){var n=et(e);return O.register((function(){return e.close()})),n}return new jn({send:$n})}))},Se=function(e){return X?X(e):h.try((function(){n=e}))},Te=function(){return K?K():h.hash({setState:ge({visible:!0}),showElement:t?t.get().then(Qe):null}).then(pe)},Ae=function(){return Y?Y():h.hash({setState:ge({visible:!1}),showElement:t?t.get().then(Xe):null}).then(pe)},Pe=function(){return"function"==typeof b?b({props:F}):b},Re=function(){return"function"==typeof g?g({props:F}):g},Oe=function(){return W(Pe())},Ce=function(e,n){var t=n.windowName;return $?$(e,{windowName:t}):h.try((function(){if(e===ft.IFRAME)return it(Ve({attributes:i({name:t,title:w},Re().iframe)}))}))},De=function(e){return ee?ee(e):h.try((function(){if(e===ft.IFRAME)return it(Ve({attributes:i({name:"__zoid_prerender_frame__"+w+"_"+oe()+"__",title:"prerender__"+w},Re().iframe)}))}))},Me=function(e,n,t){return re?re(e,n,t):h.try((function(){if(e===ft.IFRAME){if(!t)throw new Error("Expected proxy frame to be passed");return t.get().then((function(e){return O.register((function(){return $e(e)})),Ye(e).then((function(e){return P(e)})).then((function(e){return et(e)}))}))}if(e===ft.POPUP)return n;throw new Error("No render context available for "+e)}))},Le=function(){return h.try((function(){if(n)return h.all([M.trigger("zoid-focus"),n.focus()]).then(pe)}))},Fe=function(){var e=rt(window);return e.windows=e.windows||{},e.windows[u]=window,O.register((function(){delete e.windows[u]})),u},ke=function(e,n,t,r){if(n===T(window))return{type:"global",uid:Fe()};if(e!==window)throw new Error("Can not construct cross-domain window reference for different target window");if(F.window){var o=r.getWindow();if(!o)throw new Error("Can not construct cross-domain window reference for lazy window prop");if(k(o)!==window)throw new Error("Can not construct cross-domain window reference for window prop with different ancestor")}if(t===ft.POPUP)return{type:"opener"};if(t===ft.IFRAME)return{type:"parent",distance:j(window)};throw new Error("Can not construct window reference for child")},He=function(e,t){return h.try((function(){var i;o=e,r=t,null==(i=n)||i.isPopup().then((function(e){var r;""!==(null==t?void 0:t.name)&&e&&(null==(r=n)||r.setName(null==t?void 0:t.name))})).finally((function(){se(),O.register((function(){return t.close.fireAndForget().catch(pe)}))}))}))},Be=function(e){var n=e.width,t=e.height;return h.try((function(){M.trigger("zoid-resize",{width:n,height:t})}))},Ue=function(e){return h.try((function(){return M.trigger("zoid-destroy")})).catch(pe).then((function(){return O.all(e)})).then((function(){var n=e||new Error(dt.COMPONENT_DESTROYED);a&&en(a)||Object.values(dt).includes(n.message)?x.resolve():x.asyncReject(n)}))},Ze=de((function(e){return h.try((function(){if(V){if(L(V.__source__))return;return V()}return h.try((function(){return M.trigger("zoid-close")})).then((function(){return Ue(e||new Error(dt.COMPONENT_CLOSED))}))}))})),Ke=function(e,n){var t=n.proxyWin,r=n.proxyFrame,o=n.windowName;return te?te(e,{proxyWin:t,proxyFrame:r,windowName:o}):h.try((function(){if(e===ft.IFRAME){if(!r)throw new Error("Expected proxy frame to be passed");return r.get().then((function(e){return Ye(e).then((function(n){return O.register((function(){return $e(e)})),O.register((function(){return tt(n)})),n}))}))}if(e===ft.POPUP){var n=ce(),t=n.width,a=void 0===t?"300px":t,u=n.height,c=void 0===u?"150px":u;a=vn(a,window.outerWidth),c=vn(c,window.outerWidth);var s=function(e,n){var t=(n=n||{}).closeOnUnload,r=void 0===t?1:t,o=n.name,a=void 0===o?"":o,u=n.width,c=n.height,s=0,d=0;u&&(window.outerWidth?d=Math.round((window.outerWidth-u)/2)+window.screenX:window.screen.width&&(d=Math.round((window.screen.width-u)/2))),c&&(window.outerHeight?s=Math.round((window.outerHeight-c)/2)+window.screenY:window.screen.height&&(s=Math.round((window.screen.height-c)/2))),delete n.closeOnUnload,delete n.name,u&&c&&(n=i({top:s,left:d,width:u,height:c,status:1,toolbar:0,menubar:0,resizable:1,scrollbars:1},n));var f,l,p=Object.keys(n).map((function(e){if(null!=n[e])return e+"="+ye(n[e])})).filter(Boolean).join(",");try{f=window.open("",a,p)}catch(l){throw new ze("Can not open popup window - "+(l.stack||l.message))}if(L(f))throw new ze("Can not open popup window - blocked");return r&&window.addEventListener("unload",(function(){return f.close()})),f}(0,i({name:o,width:a,height:c},Re().popup));return O.register((function(){return z(s)})),O.register((function(){return tt(s)})),s}throw new Error("No render context available for "+e)})).then((function(e){return t.setWindow(e,{send:$n}),t.setName(o).then((function(){return t}))}))},rn=function(){return h.try((function(){var e=Je(window,"unload",he((function(){Ue(new Error(dt.NAVIGATED_AWAY))}))),n=G(l,Ue,3e3);if(O.register(n.cancel),O.register(e.cancel),ie)return ie()}))},on=function(e,n){var t=!1;return O.register((function(){t=!0})),h.delay(2e3).then((function(){return e.isClosed()})).then((function(r){if(!t){if(n===ft.POPUP&&r)return Ze(new Error("Detected popup close"));var o=Boolean(a&&en(a));return n===ft.IFRAME&&r&&(o||H)?Ze(new Error(dt.IFRAME_CLOSE)):on(e,n)}}))},an=function(e){var n=!1;return e.isClosed().then((function(t){return t?(n=!0,Ze(new Error(dt.WINDOW_CLOSED))):h.delay(200).then((function(){return e.isClosed()})).then((function(e){if(e)return n=!0,Ze(new Error(dt.WINDOW_CLOSED))}))})).then((function(){return n}))},un=function(e){return q?q(e):h.try((function(){if(-1===R.indexOf(e))return R.push(e),x.asyncReject(e),M.trigger("zoid-error",e)}))},cn=new h,sn=function(e){return h.try((function(){cn.resolve(e)}))};He.onError=un;var dn=function(e,n){return e({uid:u,container:n.container,context:n.context,doc:n.doc,frame:n.frame,prerenderFrame:n.prerenderFrame,focus:Le,close:Ze,state:I,props:F,tag:m,dimensions:ce(),event:M})},fn=function(e,n){var t=n.context;return ne?ne(e,{context:t}):h.try((function(){if(y){M.trigger("zoid-prerender");var n=e.getWindow();if(n&&A(n)&&function(e){try{if(!e.location.href)return!0;if("about:blank"===e.location.href)return!0}catch(e){}return!1}(n)){var r=(n=P(n)).document,o=dn(y,{context:t,doc:r});if(o){if(o.ownerDocument!==r)throw new Error("Expected prerender template to have been created with document from child window");!function(e,n){var t=n.tagName.toLowerCase();if("html"!==t)throw new Error("Expected element to be html, got "+t);for(var r=e.document.documentElement,o=0,i=Ne(r.children);o<i.length;o++)r.removeChild(i[o]);for(var a=0,u=Ne(n.children);a<u.length;a++)r.appendChild(u[a])}(n,o);var i=_.width,a=void 0!==i&&i,u=_.height,c=void 0!==u&&u,s=_.element,d=void 0===s?"body":s;if((d=Ge(d,r))&&(a||c)){var f=nn(d,(function(e){Be({width:a?e.width:void 0,height:c?e.height:void 0})}),{width:a,height:c,win:n});M.on("zoid-rendered",f.cancel)}M.trigger("zoid-prerendered")}}}}))},ln=function(e,n){var r=n.proxyFrame,o=n.proxyPrerenderFrame,i=n.context,a=n.rerender;return J?J(e,{proxyFrame:r,proxyPrerenderFrame:o,context:i,rerender:a}):h.hash({container:e.get(),frame:r?r.get():null,prerenderFrame:o?o.get():null,internalState:we()}).then((function(e){var n=e.container,r=e.internalState.visible,o=dn(v,{context:i,container:n,frame:e.frame,prerenderFrame:e.prerenderFrame,doc:document});if(o){r||Xe(o),We(n,o);var u=function(e,n){n=he(n);var t,r,o,i=!1,a=[],u=function(){i=!0;for(var e=0;e<a.length;e++)a[e].disconnect();t&&t.cancel(),o&&o.removeEventListener("unload",c),r&&$e(r)},c=function(){i||(n(),u())};if(en(e))return c(),{cancel:u};if(window.MutationObserver)for(var s=e.parentElement;s;){var d=new window.MutationObserver((function(){en(e)&&c()}));d.observe(s,{childList:!0}),a.push(d),s=s.parentElement}return(r=document.createElement("iframe")).setAttribute("name","__detect_close_"+oe()+"__"),r.style.display="none",Ye(r).then((function(e){(o=P(e)).addEventListener("unload",c)})),e.appendChild(r),t=Ee((function(){en(e)&&c()}),1e3),{cancel:u}}(o,(function(){var e=new Error("Detected container element removed from DOM");return h.delay(1).then((function(){if(!en(o))return O.all(e),a().then(se,fe);Ze(e)}))}));return O.register((function(){return u.cancel()})),O.register((function(){return $e(o)})),t=it(o)}}))},pn=function(){return{state:I,event:M,close:Ze,focus:Le,resize:Be,onError:un,updateProps:yn,show:Te,hide:Ae}},hn=function(e){void 0===e&&(e={});var n=a,t=pn();me(C,e),function(e,n,t,r,o){var i=r.state,a=r.close,u=r.focus,c=r.event,s=r.onError;bt(t,e,(function(e,r,d){var f=!1,l=d;Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){return f?l:(f=!0,function(){if(!r)return l;var f=r.alias;if(f&&!xe(d)&&xe(t[f])&&(l=t[f]),r.value&&(l=r.value({props:n,state:i,close:a,focus:u,event:c,onError:s,container:o})),!r.default||xe(l)||xe(t[e])||(l=r.default({props:n,state:i,close:a,focus:u,event:c,onError:s,container:o})),xe(l)){if("array"===r.type?!Array.isArray(l):typeof l!==r.type)throw new TypeError("Prop is not of type "+r.type+": "+e)}else if(!1!==r.required&&!xe(t[e]))throw new Error('Expected prop "'+e+'" to be defined');return xe(l)&&r.decorate&&(l=r.decorate({value:l,props:n,state:i,close:a,focus:u,event:c,onError:s,container:o})),l}())}})})),bt(n,e,pe)}(p,F,C,t,n)},yn=function(e){return hn(e),x.then((function(){var e=r,t=n;if(e&&t&&o)return le(o).then((function(n){return e.updateProps(n).catch((function(e){return an(t).then((function(n){if(!n)throw e}))}))}))}))},mn=function(e){return Z?Z(e):h.try((function(){return qe(e)})).then((function(e){return tn(e)&&(e=function e(n){var t=function(e){var n=function(e){for(;e.parentNode;)e=e.parentNode;if(tn(e))return e}(e);if(n&&n.host)return n.host}(n);if(!t)throw new Error("Element is not in shadow dom");var r="shadow-slot-"+oe(),o=document.createElement("slot");o.setAttribute("name",r),n.appendChild(o);var i=document.createElement("div");return i.setAttribute("slot",r),t.appendChild(i),tn(t)?e(i):i}(e)),a=e,it(e)}))};return{init:function(){M.on("zoid-render",(function(){return F.onRender()})),M.on("zoid-prerender",(function(){return F.onPrerender()})),M.on("zoid-display",(function(){return F.onDisplay()})),M.on("zoid-rendered",(function(){return F.onRendered()})),M.on("zoid-prerendered",(function(){return F.onPrerendered()})),M.on("zoid-close",(function(){return F.onClose()})),M.on("zoid-destroy",(function(){return F.onDestroy()})),M.on("zoid-resize",(function(){return F.onResize()})),M.on("zoid-focus",(function(){return F.onFocus()})),M.on("zoid-props",(function(e){return F.onProps(e)})),M.on("zoid-error",(function(e){return F&&F.onError?F.onError(e):fe(e).then((function(){setTimeout((function(){throw e}),1)}))})),O.register(M.reset)},render:function(e){var t=e.target,r=e.container,o=e.context,i=e.rerender;return h.try((function(){var e=Oe(),a=S||Oe();!function(e,n,t){if(e!==window){if(!B(window,e))throw new Error("Can only renderTo an adjacent frame");var r=T();if(!U(n,r)&&!A(e))throw new Error("Can not render remotely to "+n.toString()+" - can only render to "+r);if(t&&"string"!=typeof t)throw new Error("Container passed to renderTo must be a string selector, got "+typeof t+" }")}}(t,a,r);var s=h.try((function(){if(t!==window)return function(e,n){for(var t={},r=0,o=Object.keys(F);r<o.length;r++){var i=o[r],a=p[i];a&&a.allowDelegate&&(t[i]=F[i])}var c=$n(n,"zoid_delegate_"+w,{uid:u,overrides:{props:t,event:M,close:Ze,onError:un,getInternalState:we,setInternalState:ge,resolveInitPromise:se,rejectInitPromise:fe}}).then((function(e){var t=e.data.parent;return O.register((function(e){if(!L(n))return t.destroy(e)})),t.getDelegateOverrides()})).catch((function(e){throw new Error("Unable to delegate rendering. Possibly the component is not loaded in the target window.\n\n"+ve(e))}));return Z=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.getProxyContainer.apply(e,n)}))},J=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.renderContainer.apply(e,n)}))},K=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.show.apply(e,n)}))},Y=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.hide.apply(e,n)}))},ie=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.watchForUnload.apply(e,n)}))},e===ft.IFRAME?(Q=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.getProxyWindow.apply(e,n)}))},$=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.openFrame.apply(e,n)}))},ee=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.openPrerenderFrame.apply(e,n)}))},ne=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.prerender.apply(e,n)}))},te=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.open.apply(e,n)}))},re=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.openPrerender.apply(e,n)}))}):e===ft.POPUP&&(X=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.setProxyWin.apply(e,n)}))}),c}(o,t)})),d=F.window,f=rn(),l=St(p,F,"post"),v=M.trigger("zoid-render"),y=mn(r),g=be(),E=y.then((function(){return hn()})),_=E.then((function(){return St(p,F,"get").then((function(e){return function(e,n){var t,r,o=n.query||{},i=n.hash||{},a=e.split("#");r=a[1];var u=(t=a[0]).split("?");t=u[0];var c=je(u[1],o),s=je(r,i);return c&&(t=t+"?"+c),s&&(t=t+"#"+s),t}(function(e){if(0!==W(e).indexOf("mock:"))return e;throw new Error("Mock urls not supported out of test mode")}(Pe()),{query:e})}))})),b=g.then((function(n){return function(e){var n=void 0===e?{}:e,t=n.proxyWin,r=n.initialChildDomain,o=n.childDomainMatch,i=n.target,a=void 0===i?window:i,c=n.context;return function(e){var n=void 0===e?{}:e,t=n.proxyWin,r=n.childDomainMatch,o=n.context;return le(n.initialChildDomain).then((function(e){return{uid:u,context:o,tag:m,childDomainMatch:r,version:"10_4_0",props:e,exports:(n=t,{init:function(e){return He(this.origin,e)},close:Ze,checkClose:function(){return an(n)},resize:Be,onError:un,show:Te,hide:Ae,export:sn})};var n}))}({proxyWin:t,initialChildDomain:r,childDomainMatch:o,context:c}).then((function(e){var n=ct({data:e,metaData:{windowRef:ke(a,r,c,t)},sender:{domain:T(window)},receiver:{win:t,domain:o},passByReference:r===T()}),i=n.serializedData;return O.register(n.cleanReference),i}))}({proxyWin:(r={proxyWin:n,initialChildDomain:e,childDomainMatch:a,target:t,context:o}).proxyWin,initialChildDomain:r.initialChildDomain,childDomainMatch:r.childDomainMatch,target:r.target,context:r.context}).then((function(e){return lt({name:w,serializedPayload:e})}));var r})),N=b.then((function(e){return Ce(o,{windowName:e})})),P=De(o),R=h.hash({proxyContainer:y,proxyFrame:N,proxyPrerenderFrame:P}).then((function(e){return ln(e.proxyContainer,{context:o,proxyFrame:e.proxyFrame,proxyPrerenderFrame:e.proxyPrerenderFrame,rerender:i})})).then((function(e){return e})),I=h.hash({windowName:b,proxyFrame:N,proxyWin:g}).then((function(e){var n=e.proxyWin;return d?n:Ke(o,{windowName:e.windowName,proxyWin:n,proxyFrame:e.proxyFrame})})),C=h.hash({proxyWin:I,proxyPrerenderFrame:P}).then((function(e){return Me(o,e.proxyWin,e.proxyPrerenderFrame)})),D=I.then((function(e){return n=e,Se(e)})),k=h.hash({proxyPrerenderWin:C,state:D}).then((function(e){return fn(e.proxyPrerenderWin,{context:o})})),j=h.hash({proxyWin:I,windowName:b}).then((function(e){if(d)return e.proxyWin.setName(e.windowName)})),G=h.hash({body:l}).then((function(e){return c.method?c.method:Object.keys(e.body).length?"post":"get"})),q=h.hash({proxyWin:I,windowUrl:_,body:l,method:G,windowName:j,prerender:k}).then((function(e){return e.proxyWin.setLocation(e.windowUrl,{method:e.method,body:e.body})})),z=I.then((function(e){on(e,o)})),V=h.hash({container:R,prerender:k}).then((function(){return M.trigger("zoid-display")})),oe=I.then((function(e){})),ae=q.then((function(){return h.try((function(){var e=F.timeout;if(e)return x.timeout(e,new Error("Loading component timed out after "+e+" milliseconds"))}))})),ue=x.then((function(){return H=!0,M.trigger("zoid-rendered")}));return h.hash({initPromise:x,buildUrlPromise:_,onRenderPromise:v,getProxyContainerPromise:y,openFramePromise:N,openPrerenderFramePromise:P,renderContainerPromise:R,openPromise:I,openPrerenderPromise:C,setStatePromise:D,prerenderPromise:k,loadUrlPromise:q,buildWindowNamePromise:b,setWindowNamePromise:j,watchForClosePromise:z,onDisplayPromise:V,openBridgePromise:oe,runTimeoutPromise:ae,onRenderedPromise:ue,delegatePromise:s,watchForUnloadPromise:f,finalSetPropsPromise:E})})).catch((function(e){return h.all([un(e),Ue(e)]).then((function(){throw e}),(function(){throw e}))})).then(pe)},destroy:Ue,getProps:function(){return F},setProps:hn,export:sn,getHelpers:pn,getDelegateOverrides:function(){return h.try((function(){return{getProxyContainer:mn,show:Te,hide:Ae,renderContainer:ln,getProxyWindow:be,watchForUnload:rn,openFrame:Ce,openPrerenderFrame:De,prerender:fn,open:Ke,openPrerender:Me,setProxyWin:Se}}))},getExports:function(){return N({getExports:function(){return cn}})}}}var Tt={register:function(e,n,t,r){var i=r.React,a=r.ReactDOM;return function(e){function n(){return e.apply(this,arguments)||this}o(n,e);var r=n.prototype;return r.render=function(){return i.createElement("div",null)},r.componentDidMount=function(){var e=a.findDOMNode(this),n=t(me({},this.props));n.render(e,ft.IFRAME),this.setState({parent:n})},r.componentDidUpdate=function(){this.state&&this.state.parent&&this.state.parent.updateProps(me({},this.props)).catch(pe)},n}(i.Component)}},At={register:function(e,n,t,r){return r.component(e,{render:function(e){return e("div")},inheritAttrs:!1,mounted:function(){var e,n=this.$el;this.parent=t(i({},(e=this.$attrs,Object.keys(e).reduce((function(n,t){var r=e[t];return"style-object"===t||"styleObject"===t?(n.style=r,n.styleObject=r):t.includes("-")?n[be(t)]=r:n[t]=r,n}),{})))),this.parent.render(n,ft.IFRAME)},watch:{$attrs:{handler:function(){this.parent&&this.$attrs&&this.parent.updateProps(i({},this.$attrs)).catch(pe)},deep:!0}}})}},Pt={register:function(e,n,t){return{template:"<div></div>",inheritAttrs:!1,mounted:function(){var e,n=this.$el;this.parent=t(i({},(e=this.$attrs,Object.keys(e).reduce((function(n,t){var r=e[t];return"style-object"===t||"styleObject"===t?(n.style=r,n.styleObject=r):t.includes("-")?n[be(t)]=r:n[t]=r,n}),{})))),this.parent.render(n,ft.IFRAME)},watch:{$attrs:{handler:function(){this.parent&&this.$attrs&&this.parent.updateProps(i({},this.$attrs)).catch(pe)},deep:!0}}}}},xt={register:function(e,n,t,r){return r.module(e,[]).directive(be(e),(function(){for(var e={},r=0,o=Object.keys(n);r<o.length;r++)e[o[r]]="=";return e.props="=",{scope:e,restrict:"E",controller:["$scope","$element",function(e,n){function r(){if("$apply"!==e.$root.$$phase&&"$digest"!==e.$root.$$phase)try{e.$apply()}catch(e){}}var o=function(){return Pe(e.props,(function(e){return"function"==typeof e?function(){var n=e.apply(this,arguments);return r(),n}:e}))},i=t(o());i.render(n[0],ft.IFRAME),e.$watch((function(){i.updateProps(o()).catch(pe)}))}]}}))}},Rt={register:function(e,n,t,r){var o=r.Component,a=r.NgModule,u=r.ElementRef,c=r.NgZone,s=r.Inject,d=function(){function e(e,n){this.elementRef=void 0,this.internalProps=void 0,this.parent=void 0,this.props=void 0,this.zone=void 0,this._props=void 0,this._props={},this.elementRef=e,this.zone=n}var n=e.prototype;return n.getProps=function(){var e=this;return Pe(i({},this.internalProps,this.props),(function(n){if("function"==typeof n){var t=e.zone;return function(){var e=arguments,r=this;return t.run((function(){return n.apply(r,e)}))}}return n}))},n.ngOnInit=function(){var e=this.elementRef.nativeElement;this.parent=t(this.getProps()),this.parent.render(e,ft.IFRAME)},n.ngDoCheck=function(){this.parent&&!function(e,n){var t={};for(var r in e)if(e.hasOwnProperty(r)&&(t[r]=!0,e[r]!==n[r]))return!1;for(var o in n)if(!t[o])return!1;return!0}(this._props,this.props)&&(this._props=i({},this.props),this.parent.updateProps(this.getProps()))},e}();d.annotations=void 0,d.parameters=void 0,d.parameters=[[new s(u)],[new s(c)]],d.annotations=[new o({selector:e,template:"<div></div>",inputs:["props"]})];var f=function(){};return f.annotations=void 0,f.annotations=[new a({declarations:[d],exports:[d]})],f}};function Ot(e){var n=e.uid,t=e.frame,r=e.prerenderFrame,o=e.doc,i=e.props,a=e.event,u=e.dimensions,c=u.width,s=u.height;if(t&&r){var d=o.createElement("div");d.setAttribute("id",n);var f=o.createElement("style");return i.cspNonce&&f.setAttribute("nonce",i.cspNonce),f.appendChild(o.createTextNode("\n #"+n+" {\n display: inline-block;\n position: relative;\n width: "+c+";\n height: "+s+";\n }\n\n #"+n+" > iframe {\n display: inline-block;\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n transition: opacity .2s ease-in-out;\n }\n\n #"+n+" > iframe.zoid-invisible {\n opacity: 0;\n }\n\n #"+n+" > iframe.zoid-visible {\n opacity: 1;\n }\n ")),d.appendChild(t),d.appendChild(r),d.appendChild(f),r.classList.add("zoid-visible"),t.classList.add("zoid-invisible"),a.on("zoid-rendered",(function(){r.classList.remove("zoid-visible"),r.classList.add("zoid-invisible"),t.classList.remove("zoid-invisible"),t.classList.add("zoid-visible"),setTimeout((function(){$e(r)}),1)})),a.on("zoid-resize",(function(e){var n=e.width,t=e.height;"number"==typeof n&&(d.style.width=hn(n)),"number"==typeof t&&(d.style.height=hn(t))})),d}}function It(e){var n=e.doc,t=e.props,r=n.createElement("html"),o=n.createElement("body"),i=n.createElement("style"),a=n.createElement("div");return a.classList.add("spinner"),t.cspNonce&&i.setAttribute("nonce",t.cspNonce),r.appendChild(o),o.appendChild(a),o.appendChild(i),i.appendChild(n.createTextNode("\n html, body {\n width: 100%;\n height: 100%;\n }\n\n .spinner {\n position: fixed;\n max-height: 60vmin;\n max-width: 60vmin;\n height: 40px;\n width: 40px;\n top: 50%;\n left: 50%;\n box-sizing: border-box;\n border: 3px solid rgba(0, 0, 0, .2);\n border-top-color: rgba(33, 128, 192, 0.8);\n border-radius: 100%;\n animation: rotation .7s infinite linear;\n }\n\n @keyframes rotation {\n from {\n transform: translateX(-50%) translateY(-50%) rotate(0deg);\n }\n to {\n transform: translateX(-50%) translateY(-50%) rotate(359deg);\n }\n }\n ")),r}var Ct=Ie(),Dt=Ie();function Mt(e){var n,t,r=function(e){var n=e.tag,t=e.url,r=e.domain,o=e.bridgeUrl,a=e.props,u=void 0===a?{}:a,c=e.getExtensions,s=void 0===c?function(){return{}}:c,d=e.dimensions,f=void 0===d?{}:d,l=e.autoResize,p=void 0===l?{}:l,h=e.allowedParentDomains,v=void 0===h?"*":h,y=e.attributes,m=void 0===y?{}:y,w=e.defaultContext,g=void 0===w?ft.IFRAME:w,E=e.containerTemplate,_=void 0===E?Ot:E,b=e.prerenderTemplate,S=void 0===b?It:b,N=e.validate,T=e.eligible,P=void 0===T?function(){return{eligible:!0}}:T,x=e.logger,R=void 0===x?{info:pe}:x,O=e.exports,I=void 0===O?pe:O,C=e.method,D=e.children,M=void 0===D?function(){return{}}:D,F=n.replace(/-/g,"_"),k=i({},{window:{type:"object",sendToChild:!1,required:!1,allowDelegate:!0,validate:function(e){var n=e.value;if(!q(n)&&!jn.isProxyWindow(n))throw new Error("Expected Window or ProxyWindow");if(q(n)){if(L(n))throw new Error("Window is closed");if(!A(n))throw new Error("Window is not same domain")}},decorate:function(e){return et(e.value)}},timeout:{type:"number",required:!1,sendToChild:!1},cspNonce:{type:"string",required:!1},onDisplay:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:Et,decorate:_t},onRendered:{type:"function",required:!1,sendToChild:!1,default:Et,decorate:_t},onRender:{type:"function",required:!1,sendToChild:!1,default:Et,decorate:_t},onPrerendered:{type:"function",required:!1,sendToChild:!1,default:Et,decorate:_t},onPrerender:{type:"function",required:!1,sendToChild:!1,default:Et,decorate:_t},onClose:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:Et,decorate:_t},onDestroy:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:Et,decorate:_t},onResize:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:Et},onFocus:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:Et},close:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.close}},focus:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.focus}},resize:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.resize}},uid:{type:"string",required:!1,sendToChild:!1,childDecorate:function(e){return e.uid}},tag:{type:"string",required:!1,sendToChild:!1,childDecorate:function(e){return e.tag}},getParent:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.getParent}},getParentDomain:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.getParentDomain}},show:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.show}},hide:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.hide}},export:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.export}},onError:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.onError}},onProps:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.onProps}},getSiblings:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.getSiblings}}},u);if(!_)throw new Error("Container template required");return{name:F,tag:n,url:t,domain:r,bridgeUrl:o,method:C,propsDef:k,dimensions:f,autoResize:p,allowedParentDomains:v,attributes:m,defaultContext:g,containerTemplate:_,prerenderTemplate:S,validate:N,logger:R,eligible:P,children:M,exports:"function"==typeof I?I:function(e){for(var n=e.getExports,t={},r=function(){var e=i[o],r=I[e].type,a=n().then((function(n){return n[e]}));t[e]="function"===r?function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return a.then((function(e){return e.apply(void 0,n)}))}:a},o=0,i=Object.keys(I);o<i.length;o++)r();return t},getExtensions:s}}(e),o=r.name,a=r.tag,u=r.defaultContext,c=r.propsDef,s=r.eligible,d=r.children,f=r.getExtensions,l=rt(window),p={},v=[],y=function(){if(function(e){try{return pt(window.name).name===e}catch(e){}return!1}(o)){var e=vt().payload;if(e.tag===a&&U(e.childDomainMatch,T()))return!0}return!1},m=de((function(){if(y()){if(window.xprops)throw delete l.components[a],new Error("Can not register "+o+" as child - child already registered");var e=function(e){var n,t=e.tag,r=e.propsDef,o=e.autoResize,i=e.allowedParentDomains,a=[],u=vt(),c=u.parent,s=u.payload,d=c.win,f=c.domain,l=new h,p=s.version,v=s.uid,y=s.exports,m=s.context,w=s.props;if(!function(e,n){if(!/_/.test(e)||!/_/.test("10_4_0"))throw new Error("Versions are in an invalid format ("+e+", 10_4_0)");return e.split("_")[0]==="10_4_0".split("_")[0]}(p))throw new Error("Parent window has zoid version "+p+", child window has version 10_4_0");var g=y.show,E=y.hide,_=y.close,b=y.onError,S=y.checkClose,N=y.export,x=y.resize,R=y.init,O=function(){return d},I=function(){return f},D=function(e){return a.push(e),{cancel:function(){a.splice(a.indexOf(e),1)}}},M=function(e){return x.fireAndForget({width:e.width,height:e.height})},L=function(e){return l.resolve(e),N(e)},F=function(e){var r=(void 0===e?{}:e).anyParent,o=[],i=n.parent;if(void 0===r&&(r=!i),!r&&!i)throw new Error("No parent found for "+t+" child");for(var a=0,u=C(window);a<u.length;a++){var c=u[a];if(A(c)){var s=P(c).xprops;if(s&&O()===s.getParent()){var d=s.parent;if(r||!i||d&&d.uid===i.uid){var f=ot(c,(function(e){return e.exports}));o.push({props:s,exports:f})}}}}return o},k=function(e,o,i){void 0===i&&(i=!1);var u=function(e,n,t,r,o,i){void 0===i&&(i=!1);for(var a={},u=0,c=Object.keys(t);u<c.length;u++){var s=c[u],d=n[s],f=d&&d.trustedDomains&&d.trustedDomains.length>0?d.trustedDomains.reduce((function(e,n){return e||U(n,T(window))}),!1):r===T(window)||A(e);if((!d||!d.sameDomain||f)&&(!d||!d.trustedDomains||f)){var l=mt(n,0,s,t[s],o);a[s]=l,d&&d.alias&&!a[d.alias]&&(a[d.alias]=l)}}if(!i)for(var p=0,h=Object.keys(n);p<h.length;p++){var v=h[p];t.hasOwnProperty(v)||(a[v]=mt(n,0,v,void 0,o))}return a}(d,r,e,o,{tag:t,show:g,hide:E,close:_,focus:wt,onError:b,resize:M,getSiblings:F,onProps:D,getParent:O,getParentDomain:I,uid:v,export:L},i);n?me(n,u):n=u;for(var c=0;c<a.length;c++)(0,a[c])(n)},H=function(e){return h.try((function(){return k(e,f,!0)}))};return{init:function(){return h.try((function(){var n="";return A(d)&&(n=function(e){var n=e.componentName,t=e.parentComponentWindow,r=st({data:pt(window.name).serializedInitialPayload,sender:{win:t},basic:!0}),o=r.sender;if("uid"===r.reference.type||"global"===r.metaData.windowRef.type){var i=lt({name:n,serializedPayload:ct({data:r.data,metaData:{windowRef:yt(t)},sender:{domain:o.domain},receiver:{win:window,domain:T()},basic:!0}).serializedData});return window.name=i,i}}({componentName:e.name,parentComponentWindow:d})||""),rt(window).exports=e.exports({getExports:function(){return l}}),function(e,n){if(!U(e,n))throw new Error("Can not be rendered by domain: "+n)}(i,f),xn(d),window.addEventListener("beforeunload",(function(){S.fireAndForget()})),window.addEventListener("unload",(function(){S.fireAndForget()})),G(d,(function(){gt()})),R({name:n,updateProps:H,close:gt})})).then((function(){return(e=o.width,n=void 0!==e&&e,t=o.height,r=void 0!==t&&t,i=o.element,qe(void 0===i?"body":i).catch(pe).then((function(e){return{width:n,height:r,element:e}}))).then((function(e){var n=e.width,t=e.height,r=e.element;r&&(n||t)&&m!==ft.POPUP&&nn(r,(function(e){M({width:n?e.width:void 0,height:t?e.height:void 0})}),{width:n,height:t})}));var e,n,t,r,i})).catch((function(e){b(e)}))},getProps:function(){return n||(k(w,f),n)}}}(r);return e.init(),e}})),w=function(e){var n,t="zoid-"+a+"-"+oe(),c=e||{},l=s({props:c}),p=l.eligible,y=l.reason,m=c.onDestroy;c.onDestroy=function(){if(n&&p&&v.splice(v.indexOf(n),1),m)return m.apply(void 0,arguments)};var g=Nt({uid:t,options:r});g.init(),p?g.setProps(c):c.onDestroy&&c.onDestroy(),Ct.register((function(e){return g.destroy(e||new Error("zoid destroyed all components"))}));var E=function(e){var n=(void 0===e?{}:e).decorate;return w((void 0===n?ge:n)(c))},_=function(e,t,r){return h.try((function(){if(!p){var n=new Error(y||o+" component is not eligible");return g.destroy(n).then((function(){throw n}))}if(!q(e))throw new Error("Must pass window to renderTo");return function(e,n){return h.try((function(){if(e.window)return et(e.window).getType();if(n){if(n!==ft.IFRAME&&n!==ft.POPUP)throw new Error("Unrecognized context: "+n);return n}return u}))}(c,r)})).then((function(o){if(t=function(e,n){if(n){if("string"!=typeof n&&!ee(n))throw new TypeError("Expected string or element selector to be passed");return n}if(e===ft.POPUP)return"body";throw new Error("Expected element to be passed to render iframe")}(o,t),e!==window&&"string"!=typeof t)throw new Error("Must pass string element when rendering to another window");return g.render({target:e,container:t,context:o,rerender:function(){var o=E();return me(n,o),o.renderTo(e,t,r)}})})).catch((function(e){return g.destroy(e).then((function(){throw e}))}))};return n=i({},f(g),g.getExports(),g.getHelpers(),function(){for(var e=d(),n={},r=function(){var r=a[o],u=e[r];n[r]=function(e){var n=g.getProps(),r=i({},e,{parent:{uid:t,props:n,export:g.export}});return u(r)}},o=0,a=Object.keys(e);o<a.length;o++)r();return n}(),{isEligible:function(){return p},clone:E,render:function(e,n){return _(window,e,n)},renderTo:function(e,n,t){return _(e,n,t)}}),p&&v.push(n),n};if(m(),n=Xn("zoid_allow_delegate_"+o,(function(){return!0})),t=Xn("zoid_delegate_"+o,(function(e){var n=e.data;return{parent:Nt({uid:n.uid,options:r,overrides:n.overrides,parentWin:e.source})}})),Dt.register(n.cancel),Dt.register(t.cancel),l.components=l.components||{},l.components[a])throw new Error("Can not register multiple components with the same tag: "+a);return l.components[a]=!0,{init:w,instances:v,driver:function(e,n){var t={react:Tt,angular:xt,vue:At,vue3:Pt,angular2:Rt};if(!t[e])throw new Error("Could not find driver for framework: "+e);return p[e]||(p[e]=t[e].register(a,c,w,n)),p[e]},isChild:y,canRenderTo:function(e){return $n(e,"zoid_allow_delegate_"+o).then((function(e){return e.data})).catch((function(){return!1}))},registerChild:m}}var Lt=function(e){nt();var n=Mt(e),t=function(e){return n.init(e)};t.driver=function(e,t){return n.driver(e,t)},t.isChild=function(){return n.isChild()},t.canRenderTo=function(e){return n.canRenderTo(e)},t.instances=n.instances;var r=n.registerChild();return r&&(window.xprops=t.xprops=r.getProps()),t},Ft=t(4),kt=t.n(Ft),Ht=t(23),jt=t.n(Ht),Bt=t(42),Ut=t.n(Bt),Wt=t(26),Gt=t.n(Wt),qt=t(95),Zt=t.n(qt),zt=de((function(){try{return on()}catch(e){throw function(e,n,t){var r=t?ve(t):"";return new Error('PayPal Payments SDK script not found on page! Expected to find <script src="https://'+e+n+'">\n\n'+r)}(__SDK_HOST__,__PATH__,e)}}));de((function(){for(var e={},n=0,t=zt().attributes;n<t.length;n++){var r=t[n];0===r.name.indexOf("data-")&&(e[r.name]=r.value)}return e["data-uid"]=un(),e})),de((function(e){try{if(e&&"function"==typeof atob){var n=JSON.parse(window.atob(e.split(".")[1])).options;return(void 0===n?{}:n).customer_id||""}return""}catch(e){throw new Error("Error decoding SDK token")}}));var Kt=["warn","error"],Yt=["error","warn","info","debug"],Vt=function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};function Jt(e){var n=e.url,t=e.prefix,r=e.metricNamespacePrefix,o=e.logLevel,a=void 0===o?"warn":o,u=e.transport,c=void 0===u?function(e){var n=e.url,t=e.method,r=e.headers,o=e.json,i=e.enableSendBeacon,a=void 0!==i&&i;return h.try((function(){var e=window,i=A(e)?P(e):window,u=!1;return function(e){var n=e.headers,t=e.enableSendBeacon,r=n&&Object.keys(n).length;return!!(window&&window.navigator.sendBeacon&&!r&&t&&window.Blob)}({headers:r,enableSendBeacon:a})&&(u=function(e){var n=e.win,t=void 0===n?window:n,r=e.url,o=e.data,i=e.useBlob,a=void 0===i||i;try{var u=JSON.stringify(o);if(!t.navigator.sendBeacon)throw new Error("No sendBeacon available");if(a){var c=new Blob([u],{type:"application/json"});return t.navigator.sendBeacon(r,c)}return t.navigator.sendBeacon(r,u)}catch(e){return!1}}({win:i,url:n,data:o,useBlob:!0})),u||dn({win:i,url:n,method:t,headers:r,json:o})})).then(pe)}:u,s=e.flushInterval,d=void 0===s?6e4:s,f=e.enableSendBeacon,l=void 0!==f&&f,p=[],v=[],y=[],m=[],w=[],g=[],E=[],_=[];function b(e,n,t){if(Be()&&window.console&&window.console.log&&!(Yt.indexOf(e)>Yt.indexOf(a))){var r=[n];r.push(t),(t.error||t.warning)&&r.push("\n\n",t.error||t.warning);try{window.console[e]&&window.console[e].apply?window.console[e].apply(window.console,r):window.console.log&&window.console.log.apply&&window.console.log.apply(window.console,r)}catch(e){}}}function S(){return h.try((function(){if(Be()&&"file:"!==window.location.protocol&&(p.length||v.length||y.length)){for(var e={},t=0;t<w.length;t++)Vt(e,(0,w[t])(e));for(var r,o={},i=0;i<_.length;i++)Vt(o,(0,_[i])(o));return n&&(r=c({method:"POST",url:n,headers:o,json:{events:p,meta:e,tracking:v,metrics:y},enableSendBeacon:l}).catch(pe)),p=[],v=[],y=[],h.resolve(r).then(pe)}}))}var N,T,x,R,O=(void 0===T&&(T=50),te((function(){R&&clearTimeout(R);var e=x=x||new h;return R=setTimeout((function(){x=null,R=null,h.try(N).then((function(n){e.resolve(n)}),(function(n){e.reject(n)}))}),T),e}),ne(N=S)+"::promiseDebounced"));function I(e,n,r){if(void 0===r&&(r={}),!Be())return M;t&&(n=t+"_"+n);for(var o=i({},we(r),{timestamp:Date.now().toString()}),a=0;a<m.length;a++)Vt(o,(0,m[a])(o));return function(e,n,t){p.push({level:e,event:n,payload:t}),-1!==Kt.indexOf(e)&&O()}(e,n,o),b(e,n,o),M}function C(e,n){return e.push(n),M}function D(e){if(!Be())return M;r&&(e.metricNamespace=r+"."+e.metricNamespace),E.length>0&&!e.dimensions&&(e.dimensions={});for(var n=0;n<E.length;n++)Vt(e.dimensions||{},(0,E[n])(e.dimensions||{}));return b("debug","metric."+e.metricNamespace,e.dimensions||{}),y.push(e),M}Be()&&Ee(O,d),"object"==typeof window&&(window.addEventListener("beforeunload",(function(){S()})),window.addEventListener("unload",(function(){S()})),window.addEventListener("pagehide",(function(){S()})));var M={debug:function(e,n){return I("debug",e,n)},info:function(e,n){return I("info",e,n)},warn:function(e,n){return I("warn",e,n)},error:function(e,n){return I("error",e,n)},track:function(e){if(void 0===e&&(e={}),!Be())return M;for(var n=we(e),t=0;t<g.length;t++)Vt(n,(0,g[t])(n));return b("debug","track",n),v.push(n),M},metric:D,metricCounter:function(e){var n;return D({metricNamespace:e.namespace,metricEventName:e.event,metricValue:null!=(n=e.value)?n:1,metricType:"counter",dimensions:e.dimensions})},metricGauge:function(e){return D({metricNamespace:e.namespace,metricEventName:e.event,metricValue:e.value,metricType:"gauge",dimensions:e.dimensions})},metricHistogram:function(e){return D({metricNamespace:e.namespace,metricEventName:e.event,metricValue:e.value,metricType:"histogram",dimensions:e.dimensions})},flush:O,immediateFlush:S,addPayloadBuilder:function(e){return C(m,e)},addMetaBuilder:function(e){return C(w,e)},addMetricDimensionBuilder:function(e){return C(E,e)},addTrackingBuilder:function(e){return C(g,e)},addHeaderBuilder:function(e){return C(_,e)},setTransport:function(e){return c=e,M},configure:function(e){return e.url&&(n=e.url),e.prefix&&(t=e.prefix),e.logLevel&&(a=e.logLevel),e.transport&&(c=e.transport),e.flushInterval&&(d=e.flushInterval),e.enableSendBeacon&&(l=e.enableSendBeacon),M},__buffer__:{get events(){return p},get tracking(){return v},get metrics(){return y}}};return Object.defineProperty(M,"__buffer__",{writable:!1}),M}var Qt,Xt=de((function(){return Jt({url:(void 0===(e="/xoplatform/logger/api/logger")&&(e=""),"https://www.paypal.com"+e),metricNamespacePrefix:"pp.sdks.ppcp"});var e}));function $t(e,n,t,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void t(e)}u.done?n(c):Promise.resolve(c).then(r,o)}function er(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){$t(i,r,o,a,u,"next",e)}function u(e){$t(i,r,o,a,u,"throw",e)}a(void 0)}))}}var nr=((Qt={}).local="https://cdn-latest.static.engineering.dev.paypalinc.com/qaRdaAssets/fraudnet/async/fb-raw.js",Qt.stage="https://cdn-latest.static.engineering.dev.paypalinc.com/qaRdaAssets/fraudnet/async/fb-raw.js",Qt.sandbox="https://c.paypal.com/da/r/fb.js",Qt.production="https://c.paypal.com/da/r/fb.js",Qt.test="https://c.paypal.com/da/r/fb.js",Qt);de((function(e){var n=e.env,t=e.cspNonce,r=e.queryStringParams,o=void 0===r?{}:r;!function(e){var n=e.env,t=e.cspNonce,r=void 0===t?"":t,o=e.clientMetadataID,i=e.appName;new h((function(e){var t,a={f:o,s:i,io:!0,cb1:"fnCallback"};"sandbox"===n&&(a.sandbox=!0);var u=document.createElement("script");u.setAttribute("nonce",r),u.setAttribute("type","application/json"),u.setAttribute("id","fconfig"),u.setAttribute("fncls","fnparams-dede7cc5-15fd-4c75-a9f4-36c430ee3a99"),u.text=JSON.stringify(a),null==(t=document.body)||t.appendChild(u),e()}))}({env:n,cspNonce:t,clientMetadataID:e.clientMetadataID,appName:e.appName});var i,a=function(e){var n=e.cspNonce,t=e.env,r=e.queryStringParams,o=void 0===r?{}:r;return new h((function(e,r){var i,a=document.createElement("script"),u=Object.keys(o).map((function(e){return e+"="+encodeURIComponent(String(o[e]))})).join("&"),c=u.length?nr[t]+"?"+u:nr[t];a.setAttribute("nonce",n||""),a.setAttribute("src",c),window.fnCallback=e,null==(i=document.body)||i.appendChild(a),a.addEventListener("load",(function(){e()})),a.addEventListener("error",(function(){r(new Error("Fraudnet failed to load."))})),a.addEventListener("abort",(function(){r(new Error("Fraudnet load was aborted."))}))}))}({cspNonce:t,env:n,queryStringParams:o}).catch((function(){Xt().warn("ppcp_axo_init_fraudnet_failed")}));return{collect:(i=er((function*(){try{yield a,yield window.PAYPAL.asyncData.collect()}catch(e){Xt().warn("ppcp_axo_collect_fraudnet_failed")}})),function(){return i.apply(this,arguments)})}})),de((function(e){Xt().info("rest_api_create_access_token");var n,t=re(e+":");return dn({method:"post",url:(n="/v1/oauth2/token",void 0===n&&(n=""),""+("undefined"!=typeof window&&void 0!==window.location&&"https://www.paypal.com"===T()?"https://www.paypal.com":__PAYPAL_API_DOMAIN__)+n),headers:{Authorization:"Basic "+t},data:{grant_type:"client_credentials"}}).then((function(n){var t=n.body;if(t&&"invalid_client"===t.error)throw new Error("Auth Api invalid client id: "+e+":\n\n"+JSON.stringify(t,null,4));if(!t||!t.access_token)throw new Error("Auth Api response error:\n\n"+JSON.stringify(t,null,4));return t.access_token}))})),de(_e);var tr,rr,or,ir,ar,ur={alg:"RS256",create:{hash:"SHA-256",modulusLength:4096,name:"RSASSA-PKCS1-v1_5",publicExponent:new Uint8Array([1,0,1])},extractable:!1,sign:{hash:"SHA-256",name:"RSASSA-PKCS1-v1_5"},usages:["sign","verify"]},cr=(rr=er((function*(){if(!tr){var e=ur.create,n=ur.extractable,t=ur.usages,r=yield window.crypto.subtle.generateKey(e,n,t);tr=tr||{publicKey:r.publicKey,privateKey:r.privateKey}}return tr})),function(){return rr.apply(this,arguments)}),sr=function(e){return new Uint8Array(e.split("").map((function(e){return e.charCodeAt(0)})))},dr=function(e){return String.fromCharCode.apply(String,e)},fr=function(e){return btoa(e).replace(/[=]+/g,"").replace(/\+/g,"-").replace(/\//g,"_")},lr=(or=er((function*(e){var n=sr(e),t=yield window.crypto.subtle.digest("sha-256",n),r=dr(new Uint8Array(t));return fr(r)})),function(e){return or.apply(this,arguments)}),pr=(ir=er((function*(e){var n=e.crv,t=e.e,r=e.kty,o=e.n,i=e.x,a=e.y;return yield lr(JSON.stringify({crv:n,e:t,kty:r,n:o,x:i,y:a}))})),function(e){return ir.apply(this,arguments)}),hr=(ar=er((function*(e){var n=e.accessToken,t=e.method,r=e.nonce,o=e.publicKey,i=e.privateKey,a=e.uri,u=yield window.crypto.subtle.exportKey("jwk",o),c=fr(JSON.stringify({alg:ur.alg,typ:"dpop+jwt",jwk:u})),s={ath:n?yield lr(n):void 0,cnf:{jkt:yield pr(u)},htm:t,htu:a,iat:Math.floor(new Date/1e3),jti:window.crypto.randomUUID(),nonce:r},d=fr(JSON.stringify(s)),f=yield window.crypto.subtle.sign(ur.sign,i,sr(c+"."+d));return c+"."+d+"."+fr(dr(new Uint8Array(f)))})),function(e){return ar.apply(this,arguments)}),vr=(er((function*(e){var n=e.accessToken,t=e.method,r=e.uri,o=e.nonce,a=yield cr(),u=a.privateKey,c=a.publicKey;return i({},n&&{Authorization:"DPoP "+n},{DPoP:yield hr({accessToken:n,method:t,uri:r,nonce:o,publicKey:c,privateKey:u})})})),{PAY_LATER_LONG_TERM:"PAY_LATER_LONG_TERM",PAY_LATER_SHORT_TERM:"PAY_LATER_SHORT_TERM",PAY_LATER_PAY_IN_1:"PAY_LATER_PAY_IN_1",PAYPAL_CREDIT_NO_INTEREST:"PAYPAL_CREDIT_NO_INTEREST",PAY_LATER:"PAY_LATER",REWARDS:"REWARDS"}),yr={MESSAGE:"paypal-message",MODAL:"paypal-credit-modal",TREATEMENTS:"paypal-credit-treatments"};function mr(){return!1}function wr(){return"production"}function gr(){}function Er(){}var _r=("undefined"!=typeof document?document:{}).currentScript;function br(){return _r||document.querySelector('script[src$="messaging.js"]')||document.querySelector('script[src$="merchant.js"]')}function Sr(){}function Nr(){return"paypal"}function Tr(){var e;return(null==(e=br())?void 0:e.getAttribute("data-pp-namespace"))||"paypal"}function Ar(){return"1.68.1"}function Pr(){return Object.values(yr).some((function(e){return window.name.startsWith("__zoid__"+e.replace(/-/g,"_"))}))}function xr(){return cn({name:Tr()})}function Rr(){return xr().getSessionID()}function Or(){return xr().getID()}function Ir(e){return xr().getState((function(n){return Object.assign(n,e)}))}function Cr(){}function Dr(){window}function Mr(e){var n=[];n.push("native-modal");var t=e||"";return n.length>0&&(t+=t?","+n.join(","):n.join(",")),void 0===e&&""===t?void 0:t}var Lr=t(17),Fr=t.n(Lr),kr=t(8),Hr=t.n(kr),jr=t(33),Br=t.n(jr),Ur=t(13),Wr=t.n(Ur);function Gr(e,n){for(var t=[],r=0;r<e.length;r++){var o=e[r].render(n);if(o)if(Array.isArray(o))for(var i=0;i<o.length;i++){var a=o[i];a&&t.push(a)}else t.push(o)}return t}var qr=function(){function e(e,n,t){this.type="element",this.name=void 0,this.props=void 0,this.children=void 0,this.onRender=void 0,this.name=e,this.props=n||{},this.children=t;var r=this.props.onRender;"function"==typeof r&&(this.onRender=r,delete n.onRender)}var n=e.prototype;return n.render=function(e){var n=e(this);return this.onRender&&this.onRender(n),n},n.renderChildren=function(e){return Gr(this.children,e)},e}(),Zr=function(){function e(e){this.type="fragment",this.children=void 0,this.children=e}return e.prototype.render=function(e){return Gr(this.children,e)},e}(),zr=function(){function e(e){this.type="text",this.text=void 0,this.text=e}return e.prototype.render=function(e){return e(this)},e}(),Kr=function(){function e(e,n,t){this.type="component",this.component=void 0,this.props=void 0,this.children=void 0,this.component=e,this.props=n||{},this.children=t,this.props.children=t}var n=e.prototype;return n.renderComponent=function(e){var n=function(e){var n=Yr(Array.isArray(e)?e:[e]);return 1===n.length?n[0]:n.length>1?new Zr(n):void 0}(this.component(this.props,this.children));if(n)return n.render(e)},n.render=function(e){return e(this)},n.renderChildren=function(e){return Gr(this.children,e)},e}();function Yr(e){for(var n=[],t=0;t<e.length;t++){var r=e[t];if(r)if("string"==typeof r||"number"==typeof r)n.push(new zr(r.toString()));else{if("boolean"==typeof r)continue;if(Array.isArray(r))for(var o=0,i=Yr(r);o<i.length;o++)n.push(i[o]);else{if(!r||"element"!==r.type&&"text"!==r.type&&"component"!==r.type)throw new TypeError("Unrecognized node type: "+typeof r);n.push(r)}}}return n}var Vr,Jr,Qr,Xr=function(e,n){for(var t=arguments.length,r=new Array(t>2?t-2:0),o=2;o<t;o++)r[o-2]=arguments[o];if(r=Yr(r),"string"==typeof e)return new qr(e,n,r);if("function"==typeof e)return new Kr(e,n,r);throw new TypeError("Expected jsx element to be a string or a function")},$r=((Vr={}).svg="http://www.w3.org/2000/svg",Vr),eo=((Jr={})["xlink:href"]="http://www.w3.org/1999/xlink",Jr);function no(e,n){return e.createTextNode(n.text)}function to(e,n){for(var t=n.props,r=0,o=Object.keys(t);r<o.length;r++){var i=o[r],a=t[i];if(null!=a&&"el"!==i&&"innerHTML"!==i)if(i.match(/^on[A-Z][a-z]/)&&"function"==typeof a)e.addEventListener(i.slice(2).toLowerCase(),a);else if("string"==typeof a||"number"==typeof a){var u=eo[i];u?e.setAttributeNS(u,i,a.toString()):e.setAttribute(i,a.toString())}else"boolean"==typeof a&&!0===a&&e.setAttribute(i,"")}"iframe"!==e.tagName.toLowerCase()||t.id||e.setAttribute("id","jsx-iframe-"+"xxxxxxxxxx".replace(/./g,(function(){return"0123456789abcdef".charAt(Math.floor(Math.random()*"0123456789abcdef".length))})))}var ro=((Qr={}).iframe=function(e,n){var t=n.children[0];if(1!==n.children.length||!t||"element"!==t.type||"html"!==t.name)throw new Error("Expected only single html element node as child of iframe element");e.addEventListener("load",(function(){var n=e.contentWindow;if(!n)throw new Error("Expected frame to have contentWindow");for(var r=n.document,o=r.documentElement;o.children&&o.children.length;)o.removeChild(o.children[0]);for(var i=t.render(io({doc:r}));i.children.length;)o.appendChild(i.children[0])}))},Qr.script=function(e,n){var t=n.children[0];if(1!==n.children.length||!t||"text"!==t.type)throw new Error("Expected only single text node as child of script element");e.text=t.text},Qr.default=function(e,n,t){for(var r=0,o=n.renderChildren(t);r<o.length;r++)e.appendChild(o[r])},Qr);function oo(e,n,t,r){if(n.props.hasOwnProperty("innerHTML")){if(n.children.length)throw new Error("Expected no children to be passed when innerHTML prop is set");var o=n.props.innerHTML;if("string"!=typeof o)throw new TypeError("innerHTML prop must be string");"script"===n.name?e.text=o:(e.innerHTML=o,function(e,n){void 0===n&&(n=window.document);for(var t=0,r=e.querySelectorAll("script");t<r.length;t++){var o=r[t],i=o.parentNode;if(i){var a=n.createElement("script");a.text=o.textContent,i.replaceChild(a,o)}}}(e,t))}else(ro[n.name]||ro.default)(e,n,r)}function io(e){void 0===e&&(e={});var n=e.doc,t=void 0===n?document:n,r=function(e,n){if("component"===e.type)return e.renderComponent((function(e){return r(e,n)}));if("text"===e.type)return no(t,e);if("element"===e.type){var o=function(e,n,t){return e.createElementNS(t,n.name)}(t,e,n);return to(o,e),oo(o,e,t,(function(e){return r(e,n)})),o}throw new TypeError("Unhandleable node")},o=function(e){if("component"===e.type)return e.renderComponent(o);if("text"===e.type)return no(t,e);if("element"===e.type){var n=$r[e.name.toLowerCase()];if(n)return r(e,n);var i=function(e,n){return n.props.el?n.props.el:e.createElement(n.name)}(t,e);return to(i,e),oo(i,e,t,o),i}throw new TypeError("Unhandleable node")};return o}function ao(e){var n=new Map;return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var i=JSON.stringify(r);return n.has(i)||n.set(i,e.apply(void 0,r)),n.get(i)}}function uo(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.apply(void 0,t.concat(r))}}function co(e,n){return void 0===n&&(n=e.length),function t(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return o.length<n?function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.apply(void 0,o.concat(n))}:e.apply(void 0,o)}}co((function(e,n){return n[e]})),co((function(e,n){var t;return(t={})[e]=n,t}));var so=ao((function(e){return new h((function(n){var t=document.createElement("script");t.src=e,t.addEventListener("load",(function(){document.body.removeChild(t),n()})),"loading"===document.readyState?window.addEventListener("DOMContentLoaded",(function(){return document.body.appendChild(t)})):document.body.appendChild(t)}))})),fo=function(){return(new Date).getTime()},lo=ao((function(){var e=document.querySelector('meta[name="viewport"]')||Xr("meta",{name:"viewport",content:""}).render(io({doc:document}));return e.parentNode||document.head.appendChild(e),[function(){var n,t,r;e.__pp_prev_content__||(e.__pp_prev_content__=null!=(n=e.getAttribute("content"))?n:"",e.setAttribute("content","width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui, shrink-to-fit=no"),document.body.__pp_prev_overflow__=null!=(t=document.body.style.overflow)?t:"",document.body.__pp_prev_msOverflowStyle__=null!=(r=document.body.style.msOverflowStyle)?r:"",document.body.style.setProperty("overflow","hidden"),document.body.style.setProperty("-ms-overflow-style","scrollbar"))},function(){e.__pp_prev_content__&&e.setAttribute("content",e.__pp_prev_content__),delete e.__pp_prev_content__,document.body.style.setProperty("overflow",document.body.__pp_prev_overflow__),document.body.style.setProperty("-ms-overflow-style",document.body.__pp_prev_msOverflowStyle__),delete document.body.__pp_prev_overflow__,delete document.body.__pp_prev_msOverflowStyle__}]}));function po(e){if(void 0===e)return"NONE";switch(e.toUpperCase()){case"LT_NQEZ":case"LT_NQGZ":case"LT_MQEZ":case"LT_MQEZ_RB":case"LT_MQGZ":case"LT_SQEZ":case"LT_SQEZ_RB":case"LT_SQGZ":case"GPL:EQZ":case"GPL:GTZ":case"GPLQ:EQZ":case"GPLQ:GTZ":case"GPL:EQZ:NON-DE":case"GPL:GTZ:NON-DE":case"GPLQ:EQZ:NON-DE":case"GPLQ:GTZ:NON-DE":case"PLLT_NQ_EZ_XB":case"PLLT_NQ_GZ_XB":case"PLLT_MQ_EZ_XB":case"PLLT_MQ_GZ_XB":case"PLLT_NQ_EZ":case"PLLT_NQ_GZ":case"PLLT_MQ_EZ":case"PLLT_MQ_GZ":case"PLLT_SQ_EZ":case"PLLT_SQ_GZ":case vr.PAY_LATER_LONG_TERM:return vr.PAY_LATER_LONG_TERM;case"GPL":case"GPLQ":case"GPLNQ":case"GPLNQ_RANGE":case"PL":case"PLQ":case"ST_SQ":case"ST_NQ":case"SHORT_TERM:Q":case"SHORT_TERM:NQ":case"SHORT_TERM:NO_AMOUNT":case"PLST_NQ":case"PLST_SQ":case vr.PAY_LATER_SHORT_TERM:return vr.PAY_LATER_SHORT_TERM;case"PI30":case"PI30Q":case"PI30NQ":case"PI30:NON-DE":case"PI30Q:NON-DE":case"PI30NQ:NON-DE":case"PLP1_NA_XB":case"PLP1_NA":case"PLP1_NQ_XB":case"PLP1_NQ":case"PLP1_SQ_XB":case"PLP1_SQ":case vr.PAY_LATER_PAY_IN_1:return vr.PAY_LATER_PAY_IN_1;case"NI":case"NI:NON-US":case"NIQ":case"NIQ:NON-US":case"PPCNI_NQ":case"PPCNI_NQ_XB":case"PPCNI_SQ":case"PPCNI_SQ_XB":case vr.PAYPAL_CREDIT_NO_INTEREST:return vr.PAYPAL_CREDIT_NO_INTEREST;case vr.PAY_LATER:return vr.PAY_LATER;case vr.REWARDS:return vr.REWARDS;default:return}}function ho(){var e,n,t,r;return null!=(e=xr().getState((function(e){return null==e?void 0:e.ts})))?e:(r=decodeURIComponent(null!=(n=null==(t=document.cookie.split("; ").find((function(e){return e.startsWith("ts_c=")})))?void 0:t.slice(5))?n:""),0===Object.keys(r).length?null:Object.fromEntries(new URLSearchParams(r).entries()))}function vo(e,n){var t=void 0===n?{}:n,r=t.inZoid,o=t.debugObj;/(\?|&)pp_debug=true(&|$)/.test(window.location.search)&&!!r===Pr()&&console.warn("PayPal Messages Debug:",e,null!=o?o:"")}var yo=t(96),mo=t.n(yo);function wo(e){return Wr()(e).reduce((function(e,n){var t,r,o,a=n[0],u=n[1];return Array.isArray(u)?i({},e,((r={})[a]=[].concat(u),r)):i({},e,"object"==typeof u?((o={})[a]=wo(u),o):((t={})[a]=u,t))}),{})}function go(e,n){return function e(n,t){return Wr()(t).reduce((function(t,r){var o,a,u,c,s=r[0],d=r[1];return Array.isArray(d)?i({},t,((a={})[s]=[].concat(d),a)):"object"!=typeof d||null===d||n[s]&&"object"==typeof n[s]&&!Array.isArray(n[s])?i({},t,"object"==typeof d&&null!==d?((c={})[s]=e(n[s],d),c):((o={})[s]=d,o)):i({},t,((u={})[s]=wo(d),u))}),n)}(wo(e),n)}function Eo(e,n,t){var r;void 0===t&&(t="-");var o,i=e.indexOf(t);if(-1===i)return(o={})[e]=n,o;var a=e.slice(0,i),u=e.slice(i+1);return(r={})[a]=Eo(u,n,t),r}var _o=function(e){var n;return null==e||null==(n=e.ownerDocument)?void 0:n.defaultView},bo=function(){try{return window.top.document.body&&window.top}catch(e){return}};function So(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}function No(e){var n={buyercountry:"buyerCountry",merchantid:"merchantId",cspnonce:"cspNonce",ectoken:"ecToken",contextualcomponents:"contextualComponents",customerid:"customerId",fontfamily:"fontFamily",fontsource:"fontSource",onclick:"onClick",onapply:"onApply",onrender:"onRender",pagetype:"pageType","style-text-fontfamily":"style-text-fontFamily","style-text-fontsource":"style-text-fontSource"},t=["onclick","onapply","onrender"],r=jt()(e.attributes).filter((function(e){var n=e.nodeName;return kt()(n,"data-pp-")})).reduce((function(e,r){var o=r.nodeValue;if(o){var i,a=r.nodeName.replace("data-pp-",""),u=Hr()(t,a)?new Function(o):o;return go(e,function(e,n){if(kt()(n,"["))try{return Eo(e,JSON.parse(n.replace(/'/g,'"')))}catch(e){}return Eo(e,n)}(null!=(i=n[a])?i:a,u))}return e}),{});if(!e.firstElementChild||"SCRIPT"!==e.firstElementChild.tagName||"text/template"!==e.firstElementChild.getAttribute("type"))return r;var o=e.firstElementChild.textContent.trim();return e.removeChild(e.firstElementChild),go(r,{style:{markup:o}})}co((function(e,n,t){return n.getElementsByClassName(e+"__"+t)[0]})),co((function(e,n){var t=document.createElement("style");t.textContent=n,e.insertBefore(t,e.firstChild)})),co((function(e,n){if(Array.isArray(n))n.forEach((function(n){return e.appendChild(n)}));else if(n instanceof HTMLElement)e.appendChild(n);else if("string"==typeof n){var t=document.createElement("span");t.innerHTML=n,e.appendChild(t)}else!1===n&&e.parentNode.removeChild(e)})),co((function(e,n){if(Array.isArray(n))[].concat(n).reverse().forEach((function(n){return e.insertBefore(n,e.firstChild)}));else if(n instanceof HTMLElement)e.insertBefore(n,e.firstChild);else if("string"==typeof n){var t=document.createElement("span");t.innerHTML=n,e.insertBefore(t,e.firstChild)}else!1===n&&e.parentNode.removeChild(e)}));var To=co((function(e,n,t,r){if(void 0===t&&(t="PayPal Credit"),void 0===r&&(r=""),Array.isArray(n))n.forEach((function(n){return To(e,n,t)}));else if("string"==typeof n){var o=new Image;o.alt=t,o.className="message__logo",o.src=n,r&&(o.srcset=r),e.appendChild(o)}else if("object"==typeof n){var i=n.src,a=n.dimensions,u=a[0],c=a[1],s=new Image;s.src=i,s.alt=t;var d=document.createElement("div");d.className="message__logo message__logo--svg";var f=document.createElement("canvas");f.height=c,f.width=u,d.appendChild(s),d.appendChild(f),e.appendChild(d)}else e.parentNode.removeChild(e)}),2);function Ao(e){var n=e.getBoundingClientRect(),t=_o(e),r=(n.top+n.bottom)/2,o=(n.left+n.right)/2;return!(r>t.innerHeight||r<0||o>t.innerWidth||o<0)}function Po(e){var n=_o(e);if("function"==typeof n.getComputedStyle){var t=n.getComputedStyle(e);if("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility")||"auto"!==t.getPropertyValue("clip"))return!0}var r=e.getBoundingClientRect();return r.left>n.document.body.scrollWidth||r.right<0||r.top>n.document.body.scrollHeight||r.bottom<0||0===e.offsetWidth||0===e.offsetHeight}function xo(e){return"string"==typeof e?jt()(document.querySelectorAll(e)):So(e)?[e]:Array.isArray(e)&&e.every(So)?mo()(e,xo):[]}var Ro=function(e,n){if((null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE&&!(e instanceof Window)||(null==n?void 0:n.nodeType)!==Node.ELEMENT_NODE)return!1;var t=e instanceof Window?{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}:e.getBoundingClientRect(),r=n.getBoundingClientRect();return t.top<=r.top&&t.bottom>=r.bottom&&t.left<=r.left&&t.right>=r.right},Oo="__paypal_messages_"+"1.68.1".replace(/[.-]/g,"_")+"__",Io=function(){var e,n,t;return null!=(e=window[Oo])?e:(n=function(e){void 0===e&&(e={});var n=i({},e);return[n,uo(Gt.a,n)]}(window[Oo]||{index:1,config:{},messagesMap:new Zt.a}),(t=n[0]).setGlobalState=n[1],Object.defineProperty(window,Oo,{value:t,enumerable:!1,configurable:!0,writable:!1}),window[Oo])},Co=function(e){return Io().setGlobalState(e)},Do=function(){var e=Io().index;return Co({index:e+1}),e},Mo=function(){var e=0;return function(n){return n+" "+(e+=1)}};function Lo(e){return""+function(){var e=Object({__LOCAL__:"https://localhost.paypal.com:8080",__SANDBOX__:"https://www.sandbox.paypal.com",__PRODUCTION__:"https://www.paypal.com"})["__"+"production".toUpperCase()+"__"];if(e)return e;throw new Error("Missing PayPal Domain")}()+Object({__MESSAGE__:"/credit-presentment/smart/message",__TREATMENTS__:"/credit-presentment/experiments/local",__MODAL__:"/credit-presentment/smart/modal",__LOGGER__:"/credit-presentment/glog",__CREDIT_APPLY__:"/ppcreditapply/da/us"})["__"+e.toUpperCase()+"__"]}var Fo=function(e,n){return function(){var t;return Io()[e]||Co(((t={})[e]=n(),t)),Io()[e]}},ko=_e(),Ho=function(){var e=br();if(e&&!e[Oo]){vo("Script:",{debugObj:e});var n=No(e);Co({config:i({},Io().config,{account:void 0,merchantId:void 0,currency:void 0,pageType:void 0},n)}),e[Oo]=!0}},jo=new h((function(e){return ko.once("treatments",e)})),Bo=new h((function(e){return ko.once("render",e)})),Uo=(new h((function(e){return ko.once("modal-render",e)})),new h((function(e){return"undefined"!=typeof document&&"complete"!==document.readyState?window.addEventListener("load",e):e()}))),Wo=new h((function(e){return"undefined"!=typeof document&&"loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e()}));function Go(e,n){var t,r,o,a,u,c,s,d,f=n.meta,l=n.events,p=n.tracking,h=null!=(t=f.global)?t:{},v=h.deviceID,y=h.sessionID,m=h.integration_type,w=h.messaging_version;e.startsWith("client-id:")&&(r=e.slice(10));var g=Object.entries(f).filter((function(n){return n[1].account===e})).map((function(e){var n,t=e[0],r=e[1],f=r.type,h=r.partnerClientId,v=r.buttonSessionId,y=r.messageRequestId,m=r.stats,w=void 0===m?{}:m,g=r.trackingDetails,E=g.clickUrl;delete g.clickUrl,d=null!=d?d:h,o=null!=o?o:g.MERCHANT_PROFILE_HASH,a=null!=a?a:g.MERCHANT_PROFILE_VALID,u=null!=u?u:g.BUYER_PROFILE_HASH,c=null!=c?c:g.BUYER_PROFILE_VALID,s=null!=s?s:w.bn_code;var _=p.filter((function(e){return e.index===t}));s=null!=s?s:null==(n=_.find((function(e){return void 0!==e.bn_code})))?void 0:n.bn_code;var b=w.render_duration,S=w.request_duration;return delete w.render_duration,delete w.request_duration,i({component_type:f,instance_id:y,button_session_id:v,fdata:new URLSearchParams(E).get("fdata"),merchant_events:l.filter((function(e){var n;return(null==(n=e.payload)?void 0:n.index)===t}))},g,w,{component_events:_.filter((function(e){return"MORS"!==e.event_type})).map((function(e){return i({render_duration:b,request_duration:S},e)}))})}));return{specversion:"1.0",type:"com.paypal.credit.upstream-presentment.v1",source:"urn:paypal:event-src:js-sdk:messages",datacontenttype:"application/json",dataschema:"ppaas:events.credit.FinancingPresentmentAsyncAPISpecification/v1/schema/json/credit_upstream_presentment_event.json",data:{client_id:r,merchant_id:e,partner_client_id:d,partner_attribution_id:s,merchant_profile_hash:o,merchant_profile_valid:a,buyer_profile_hash:u,buyer_profile_valid:c,device_id:v,session_id:y,integration_type:m,integration_version:w,components:g}}}var qo=Jt({url:Lo("LOGGER"),prefix:"paypal_messages",logLevel:"warn",flushInterval:1e4,transport:function(e){var n=e.url,t=e.method,r=e.json,o=e.headers,a=r.events.reduce((function(e,n){var t=n.payload;return[].concat(e,[t.index,t.refIndex])}),[]),u=r.tracking.reduce((function(e,n){return[].concat(e,[n.index,n.refIndex])}),[]),c=a.concat(u),s=Ut()(r.meta).filter((function(e){return Hr()(c,e)||"global"===e})).reduce((function(e,n){var t;return i({},e,((t={})[n]=r.meta[n],t))}),{}),d=r;d.meta=s;var f,l,p,v,y=n;return h.all((f=d,l=f.meta,p=f.events,v=f.tracking,Array.from(new Set(Object.values(l).map((function(e){return e.account})).filter(Boolean))).reduce((function(e,n){return[].concat(e,[Go(n,{meta:l,events:p,tracking:v})])}),[])).map((function(e){return function(e,n,t){var r=void 0===t?{}:t,o=r.data,a=r.headers,u=r.withCredentials;return new h((function(t,r){var c=new XMLHttpRequest;u&&(c.withCredentials=!0),c.onreadystatechange=function(){if(4===c.readyState){var e=c.getAllResponseHeaders().trim().split("\n").reduce((function(e,n){var t,r=n.trim().split(": "),o=r[1];return i({},e,((t={})[r[0].toLowerCase()]=o,t))}),{});switch(c.status){case 200:t({headers:e,data:e["content-type"]&&Br()(e["content-type"],"application/json")?JSON.parse(c.responseText):c.responseText});break;case 204:t({headers:e});break;default:r(new Error("Request failed"))}}},c.open(e,n,!0),a&&Wr()(a).forEach((function(e){c.setRequestHeader(e[0],e[1])})),c.send("object"==typeof o?JSON.stringify(o):o)}))}(t,y,{headers:i({"content-type":"application/json"},o),data:e,withCredentials:!0})})))}});qo.addMetaBuilder((function(){return{global:{integration_type:"STANDALONE",messaging_version:"1.68.1"}}})),qo.addPayloadBuilder((function(e){return delete e.container,delete e.selector,{}})),qo.addTrackingBuilder((function(){return{timestamp:(new Date).getTime()}}));var Zo=Fo("__insertion_observer__",(function(){return new MutationObserver((function(e){var n=[];e.forEach((function(e){"attributes"===e.type&&"data-pp-message"===e.attributeName?n.push(e.target):jt()(e.addedNodes).forEach((function(e){So(e)&&(e.hasAttribute("data-pp-message")?n.push(e):jt()(e.querySelectorAll("[data-pp-message]")).forEach((function(e){return n.push(e)})))}))})),n.length>0&&n.forEach((function(e){var n;return null==(n=window[Tr()])?void 0:n.Messages({_auto:!0}).render(e)}))}))})),zo=Fo("__attribute_observer__",(function(){return new MutationObserver((function(e){var n=Io().messagesMap,t=e.reduce((function(e,t){return n.has(t.target)&&kt()(t.attributeName,"data-pp-")?(e.push(t.target),e):e}),[]);t.length>0&&t.forEach((function(e){var n;return null==(n=window[Tr()])?void 0:n.Messages().render(e)}))}))})),Ko=function(){return h.resolve(void 0===window.IntersectionObserver?so("https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=IntersectionObserver"):void 0)},Yo=Fo("__viewport_intersection_observer__",(function(){return Ko().then((function(){return new IntersectionObserver((function(e,n){e.forEach((function(e){var t=e.target.getAttribute("data-pp-id");e.isIntersecting&&(qo.track({index:t,et:"CLIENT_IMPRESSION",event_type:"scroll",visible:"true"}),n.unobserve(e.target))}))}),{threshold:.5})}))})),Vo=Fo("__intersection_observer__",(function(){return Ko().then((function(){return h.all([Uo,Bo])})).then((function(){var e=function(e){for(var n=_o(e),t=[],r=e;(null==(o=r)?void 0:o.parentNode.nodeType)===Node.ELEMENT_NODE;){var o;0!==r.parentNode.offsetHeight&&t.push(r.parentNode),r=r.parentNode}t.reverse();var i=t[0],a=Fr()(t,(function(e,t,r){var o,a=e.offsetHeight,u=r[t+1];if(u&&a<=u.offsetHeight)return i=u,!1;if(a>n.innerHeight&&a>=i.offsetHeight)return!0;var c=null!=(o=r[t-1])?o:e.parentNode;return!!(u&&u.offsetHeight<a&&Ro(c,e))})),u=Ro(n,a)?void 0:a;return vo("Root:",{debugObj:u||"undefined. Viewport is used as the root."}),u}(Io().messagesMap.keys().next().value);return new IntersectionObserver((function(n,t){var r=Io().messagesMap;n.forEach((function(n){var o,i=n.target,a=i.parentNode.parentNode;vo("Message Container:",{debugObj:a}),vo("Messages Container Parent:",{debugObj:a.parentNode});var u=(r.get(a)||{}).state;if(null!=u&&u.renderStart){var c,s=a.getAttribute("data-pp-id"),d=Number(i.getAttribute("data-width")),f=Number(i.getAttribute("data-height")),l=fo()-u.renderStart;0===(null==(o=n.rootBounds)?void 0:o.width)&&0===n.rootBounds.height&&(c=Ro(e,i)),(n.intersectionRatio<.9&&n.intersectionRatio>0&&!function(e,n){if((null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE&&!(e instanceof Window)||(null==n?void 0:n.nodeType)!==Node.ELEMENT_NODE)return!1;var t=e instanceof Window?{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}:e.getBoundingClientRect(),r=n.getBoundingClientRect();return r.left>=t.right||r.right<=t.left||r.bottom<=t.top||r.top>=t.bottom}(null!=e?e:window,i)||Math.ceil(i.getBoundingClientRect().width+1)<d)&&!c?(qo.warn(u.renderComplete?"update_hidden":"hidden",{description:"PayPal Message has been hidden. Message must be visible and requires minimum dimensions of "+d+"px x "+f+"px. Current container is "+n.intersectionRect.width+"px x "+n.intersectionRect.height+"px.",container:a,index:s,duration:l}),qo.track({index:s,et:"CLIENT_IMPRESSION",event_type:"message_hidden"}),vo("Message Hidden: true"),u.renderComplete=!0,delete u.renderStart,i.style.setProperty("opacity","0","important"),i.style.setProperty("pointer-events","none","important"),t.unobserve(i)):(i.style.setProperty("opacity",1),i.style.setProperty("pointer-events",null),qo.info(u.renderComplete?"update_visible":"visible",{index:s,duration:l}),u.renderComplete=!0,delete u.renderStart,t.unobserve(i))}else t.unobserve(i)}))}),{root:e})}))})),Jo=Fo("__paypal_credit_treatments__",(function(){return Lt({tag:yr.TREATEMENTS,url:Lo("TREATMENTS"),domain:/\.paypal\.com(:\d+)?$/,containerTemplate:function(e){var n=e.uid,t=e.prerenderFrame,r=e.frame,o=e.doc;return Xr("span",{id:n},Xr("style",null,"\n #"+n+" {\n position: absolute!important;\n left: -99999px;\n top: -99999px;\n width: 1px;\n height: 1px;\n }\n "),Xr("node",{el:r}),Xr("node",{el:t})).render(io({doc:o}))},props:{disableSetCookie:{type:"boolean",queryParam:!0,required:!1,value:mr},features:{type:"string",queryParam:"features",required:!1,value:Mr},namespace:{type:"string",queryParam:!1,value:Nr},onReady:{type:"function",queryParam:!1,value:function(){return function(e){var n=e.deviceID;Ir({experiments:{treatmentsHash:e.treatmentsHash,expiration:Date.now()+9e5},id:n}),ko.trigger("treatments")}}},sdkMeta:{type:"string",queryParam:!0,sendToChild:!1,required:!1,value:Sr,debug:vo("SDK Meta: "+void 0)},uid:{type:"string",queryParam:!0,value:un,debug:vo("ScriptUID: "+un())},stageTag:{type:"string",queryParam:!0,required:!1,value:Cr},env:{type:"string",queryParam:!0,value:wr,debug:vo("Environment: production")},scriptUID:{type:"string",queryParam:!0,value:un,debug:vo("ScriptUID: "+un())},version:{type:"string",queryParam:!0,value:Ar,debug:vo("Library Version: 1.68.1")},integrationType:{type:"string",queryParam:!0,value:function(){return"STANDALONE"},debug:vo("Library Integration: STANDALONE")}}})})),Qo=ao((function(){Jo()().render(document.body)}));function Xo(){if(Pr()||!Ue())return null;var e=xr().getState((function(e){return e.experiments}));return e?(e.expiration<Date.now()&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",(function(){return Qo()})):Qo()),e.treatmentsHash):null}var $o=function(e){return"__paypal_messaging_performance__"+e},ei=function e(){return le(e,(function(){var e=window.performance;if(e&&e.now&&e.timing&&e.timing.connectEnd&&e.timing.navigationStart&&Math.abs(e.now()-Date.now())>1e3&&e.now()-(e.timing.connectEnd-e.timing.navigationStart)>0)return e}))}();function ni(e){var n,t;return null!=(n=null==ei||null==(t=ei.getEntriesByName($o(e))[0])?void 0:t.duration)?n:-1}function ti(e){var n,t=null==ei?void 0:ei.getEntriesByType("navigation")[0];return null!=(n=null==t?void 0:t[e])?n:-1}function ri(e,n){var t=void 0===n?{}:n,r=t.startMark,o=t.endMark,i=t.repeat;if(ei){if(-1!==ni(e)){if(!i)return;ei.clearMeasures($o(e)),ei.clearMarks($o(e))}window.document.documentMode||Boolean(window.navigator&&window.navigator.userAgent&&/Edge|MSIE|rv:11/i.test(window.navigator.userAgent))?ei.measure($o(e)):ei.measure($o(e),r?$o(r):void 0,o?$o(o):void 0),ei.mark($o(e))}}var oi=ao((function(){var e=window.document.body.appendChild(window.document.createElement("div"));e.setAttribute("class","pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads text-ad-links"),e.style.setProperty("width","1px","important"),e.style.setProperty("height","1px","important"),e.style.setProperty("position","absolute","important"),e.style.setProperty("left","-10000px","important"),e.style.setProperty("top","-1000px","important");var n=void 0!==window.getComputedStyle?window.getComputedStyle(e):void 0;return new h((function(t){!function r(o){return o<=0?(window.document.body.removeChild(e),t(!1)):null!==window.document.body.getAttribute("abp")||n&&("none"===n.getPropertyValue("display")||"hidden"===n.getPropertyValue("visibility"))||null===e.offsetParent||0===e.offsetHeight||0===e.offsetLeft||0===e.offsetTop||0===e.offsetWidth||0===e.clientHeight||0===e.clientWidth?(window.document.body.removeChild(e),t(!0)):setTimeout((function(){r(o-1)}),50)}(5)}))})),ii=function(e){return Math.round(e).toString()};Pr()||Uo.then((function(){var e={et:"CLIENT_IMPRESSION",event_type:"page_loaded",script_load_delay:ii(ni("scriptLoadDelay")),dom_load_delay:ii(ti("domContentLoadedEventStart")),page_load_delay:ii(ti("loadEventStart"))};qo.track(e)}));var ai=t(97),ui=t.n(ai);function ci(e,n){switch(e){case"STRING":return"string"==typeof n;case"BOOLEAN":return"boolean"==typeof n;case"NUMBER":return"number"==typeof n&&!ui()(n);case"FUNCTION":return"function"==typeof n;case"ARRAY":return Array.isArray(n);case"OBJECT":return!Array.isArray(n)&&"object"==typeof n&&null!==n;case"ANY":return!0;default:return!1}}var si=ao((function(e,n){return qo.warn("invalid_option_value",{description:n,location:e})})),di=function(e,n,t){var r=Array.isArray(t)?"array":typeof t;si(e,'Expected type "'+n.toLowerCase()+'" but instead received "'+r+'" ('+JSON.stringify(t)+").")};function fi(e,n){if(!ci("STRING",e))throw di("offer","STRING",e),new Error("offer_validation_error");if(!n.includes(e))throw si("offer","Ensure valid offer type."),new Error("offer_validation_error")}var li,pi,hi,vi={account:function(e){var n=e.props.account;if(ci("STRING",n)){if(13===n.length||10===n.length||kt()(n,"client-id:"))return n;si("account","Ensure the correct Merchant Account ID has been entered.")}else di("account","STRING",n)},merchantId:function(e){var n=e.props.merchantId;if(void 0!==n){if(ci("STRING",n))return n.split(",").some((function(e){return 13!==e.length&&10!==e.length}))&&si("merchantId","Ensure the correct Merchant ID has been entered."),n;di("merchantId","STRING",n)}},customerId:function(e){var n=e.props.customerId;if(void 0!==n)if(ci("STRING",n)){if(13===n.length||10===n.length)return n;si("customerId","Ensure the correct Merchant ID has been entered.")}else di("customerId","STRING",n)},amount:function(e){var n=e.props.amount;if(void 0!==n){var t=Number(n);if(ci("NUMBER",t)){if(!(t<0))return t;si("amount","Ensure value is a positive number.")}else di("amount","NUMBER",n)}},offer:function(e){var n=e.props.offer,t=[].concat(Object.values(vr),["NI"]);if(void 0!==n){var r=n;if("string"==typeof n&&n.includes(",")&&(r=n.split(",").map((function(e){return e.trim()}))),Array.isArray(r)){if(r.length>2)throw si("offer","Ensure valid offer length"),new Error("offer_validation_error: offers cannot exceed 2");var o=r.map((function(e){return fi(e,t),e}));return o[0]===o[1]?o[0]:o.sort().join()}return fi(n,t),n}return n},style:function(e){var n=e.props.style;if(ci("OBJECT",n)){var t=null!=n&&n.layout?n:i({},n,{layout:"text"});if(ci("STRING",t.layout))return t;if(di("style.layout","STRING",t.layout),ci("STRING",t.preset))return i({layout:"text"},t)}else void 0!==n&&di("style","OBJECT",n);return{layout:"text"}},currency:function(e){var n=e.props.currency;if(void 0!==n){if(ci("STRING",n))return n;di("currency","STRING",n)}},pageType:function(e){var n=e.props.pageType;if(void 0!==n){var t=["home","category","product","payment","product-list","product-listing","search-results","product-details","mini-cart","cart","checkout"];if(ci("STRING",n)){if(Hr()(t,n))return n;!function(e,n,t){si("pageType",'Expected one of ["'+n.join('", "').replace(/\|[\w|]+/g,"")+'"] but received "'+t+'".')}(0,t,n)}else di("pageType","STRING",n)}},buyerCountry:function(e){var n=e.props.buyerCountry;if(void 0!==n){if(ci("STRING",n))return n;di("buyerCountry","STRING",n)}},language:function(e){var n=e.props.language;if(void 0!==n){if(ci("STRING",n))return n;di("language","STRING",n)}},ignoreCache:function(e){var n=e.props.ignoreCache;if(void 0!==n){if(ci("BOOLEAN",n))return n;di("ignoreCache","BOOLEAN",n)}},channel:function(e){var n=e.props.channel;if(void 0!==n){if(ci("STRING",n))return/^[A-Z0-9_]+$/.test(n)?n:void 0;di("channel","STRING",n)}},ecToken:function(e){var n=e.props.ecToken;if(void 0!==n){if(ci("STRING",n))return n;di("ecToken","STRING",n)}},buttonSessionId:function(e){var n=e.props.buttonSessionId;if(void 0!==n){if(ci("STRING",n))return n;di("buttonSessionId","STRING",n)}},contextualComponents:function(e){var n=e.props.contextualComponents;if(void 0!==n){var t;if(Array.isArray(n))t=n.map((function(e){return e.toUpperCase()}));else{if("string"!=typeof n)return void di("contextualComponents","STRING or ARRAY",n);t=n.toUpperCase().split(",")}var r=t.every((function(e){return e.endsWith("_BUTTON")})),o=t.every((function(e){return e.endsWith("_MARK")}));if(r||o){if(!(t.filter((function(e){return e.endsWith("_MARK")})).length>1))return t.sort().join(",");si("contextualComponents","Ensure only one type of mark value is provided.")}else si("contextualComponents","Invalid contextualComponents combination. Expected all contextualComponents values to be either of type 'button' or 'mark' but received \""+n+'"')}},cspNonce:function(e){var n=e.props.cspNonce;if(void 0!==n){if(ci("STRING",n))return n;di("cspNonce","STRING",n)}},merchantConfig:function(e){var n=e.props.merchantConfig;if(void 0!==n){if(!ci("STRING",n))return;return n}},features:function(e){var n=e.props.features;if(void 0!==n){if(ci("STRING",n))return n;di("features","STRING",n)}}},yi=Mo(),mi=function(e){var n=e.uid,t=e.frame,r=e.prerenderFrame,o=e.doc,i=e.event,a=e.props,u=e.container;i.on("zoid-rendered",(function(){r.parentNode.removeChild(r)}));var c="\n #"+n+" > iframe {\n width: 100%;\n height: 0;\n }\n\n #"+n+" > iframe:nth-of-type(2) {\n display: none;\n }\n ";i.on("styles",(function(e){var t=e.styles;"string"==typeof t&&(u.querySelector("#"+n+" style").textContent="\n "+c+"\n "+t.replace(/\.pp-flex[^\s:,.#]*/g,"#"+n)+"\n ")}));var s=yi(t.title);return Xr("span",{id:n},Xr("style",{nonce:a.cspNonce},c),Xr("node",{el:t,title:s,onRender:function(e){i.on("zoid-resize",(function(n){var t=n.width,r=n.height;0===t&&0===r||("flex"===a.style.layout?(e.style.setProperty("height",null),e.setAttribute("data-width",0),e.setAttribute("data-height",0)):(e.setAttribute("data-width",t),e.setAttribute("data-height",r),"number"==typeof r&&e.style.setProperty("height",r+"px")),e.__hasResizedBefore__?i.once("styles",(function(){Vo().then((function(n){n.observe(e)}))})):(e.__hasResizedBefore__=!0,Vo().then((function(n){n.observe(e)}))))}))}}),Xr("node",{el:r,title:"Prerender "+s})).render(io({doc:o}))},wi=["styles","warnings"],gi=Fo("__paypal_credit_message__",(function(){var e;return Lt({tag:yr.MESSAGE,url:Lo("MESSAGE"),domain:/\.paypal\.com(:\d+)?$/,containerTemplate:mi,autoResize:{width:!0,height:!0,element:"button"},attributes:{iframe:{title:"PayPal Message",scrolling:"no"}},props:{account:{type:"string",queryParam:!1,required:!0,value:vi.account},merchantId:{type:"string",queryParam:"merchant_id",required:!1,value:vi.merchantId},customerId:{type:"string",queryParam:"customer_id",required:!1,value:vi.customerId},amount:{type:"number",queryParam:!0,required:!1,value:vi.amount},currency:{type:"string",queryParam:!0,required:!1,value:vi.currency},pageType:{type:"string",queryParam:"page_type",required:!1,value:vi.pageType},style:{type:"object",serialization:"json",queryParam:!0,required:!1,value:vi.style},offer:{type:"string",queryParam:"credit_type",required:!1,value:vi.offer},buyerCountry:{type:"string",queryParam:"buyer_country",required:!1,value:vi.buyerCountry},ignoreCache:{type:"boolean",queryParam:"ignore_cache",required:!1,value:vi.ignoreCache},channel:{type:"string",queryParam:"channel",required:!1,default:function(){return"UPSTREAM"},value:vi.channel},ecToken:{type:"string",queryParam:"ec_token",required:!1,value:vi.ecToken},contextualComponents:{type:"string",queryParam:"contextual_components",required:!1,value:vi.contextualComponents},onClick:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onClick;return function(e){var r=e.meta,o=n.modal,i=n.index,a=n.account,u=n.merchantId,c=n.currency,s=n.amount,d=n.buyerCountry,f=n.onApply,l=r.offerType,p=r.offerCountry,h=r.messageRequestId;"PURCHASE_PROTECTION"===l?window.open(r.lander,l,"width=460,height=900"):o.show({account:a,merchantId:u,currency:c,amount:s,buyerCountry:d,onApply:f,offer:l,offerCountry:p,refId:h,refIndex:i,page_view_link_source:"message_click"}),qo.track({index:i,et:"CLICK",event_type:"MORS"}),qo.track({index:i,et:"CLICK",event_type:"message_clicked",page_view_link_name:"Banner Wrapper"}),"function"==typeof t&&t({meta:r})}}},onHover:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.index,r=n.onHover,o=!1;return function(e){var n=e.meta;o||(o=!0,qo.track({index:t,et:"CLIENT_IMPRESSION",event_type:"message_hovered"})),"function"==typeof r&&r({meta:n})}}},onReady:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onReady;return function(e){var r=e.meta,o=e.activeTags,a=e.ts,u=e.requestDuration,c=e.messageRequestId,s=n.account,d=n.merchantId,f=n.index,l=n.modal,p=n.getContainer,h=n.pageType,v=r.trackingDetails,y=r.offerType,m=r.ppDebugId,w=d&&s.slice(10);v.PAGE_TYPE=h,vo("Message Correlation ID: "+m);var g=void 0!==a?a:ho();Ir({ts:g}),qo.addMetaBuilder((function(e){var n;delete e[f];var t=e.global,r=void 0===t?{}:t;return delete e.global,(n={global:i({},r,{ts:g,deviceID:Or(),sessionID:Rr()})})[f]={type:"message",messageRequestId:c,account:d||s,partnerClientId:w,trackingDetails:v},n})),function(e){var n=e.container,t=e.activeTags,r=e.index,o=e.requestDuration,a=Io().messagesMap.get(n).state,u=Math.round(fo()-a.renderStart).toString(),c=ni("firstRenderDelay");Ao(n)||Yo().then((function(e){return e.observe(n)})),function(e){var n=e.container,t=e.activeTags,r=e.index,o=e.requestDuration,i=e.renderDuration,a=n.getBoundingClientRect(),u=bo(),c={},s=function(e){return e.split("::").map((function(e){return e.split(":")[1]}))}(t),d=s[0],f=s[1],l=s[2];return oi().then((function(e){return{index:r,ad_blocker:e.toString(),blocked:Po(n).toString(),bn_code:c["data-partner-attribution-id"],position_in_page_x:Math.round(a.left).toString(),position_in_page_y:Math.round(a.top).toString(),browser_width:String(null==u?void 0:u.innerWidth),browser_height:String(null==u?void 0:u.innerHeight),in_viewport:Ao(n).toString(),headline:d,sub_headline:f,disclaimer:l,request_duration:ii(o),render_duration:i}}))}({container:n,activeTags:t,index:r,requestDuration:o,renderDuration:u}).then((function(e){!function(e,n){qo.addMetaBuilder((function(t){var r,o=i({},t[e],n);return delete t[e],(r={})[e]=o,r}))}(r,{type:"message",stats:e}),qo.track({index:r,et:"CLIENT_IMPRESSION",event_type:"message_rendered",first_render_delay:Math.round(c).toString()})}))}({container:p(),activeTags:o,index:f,requestDuration:u}),l.updateProps({refIndex:f,offer:y}),qo.track({index:f,et:"CLIENT_IMPRESSION",event_type:"MORS"}),"function"==typeof t&&t({meta:r})}}},onMarkup:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=e.event,r=n.onMarkup;return function(e){var o=e.styles,a=e.warnings,u=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n.indexOf(t=i[r])>=0||(o[t]=e[t]);return o}(e,wi),c=n.getContainer;return void 0!==o&&t.trigger("styles",{styles:o}),a&&a.forEach((function(e){qo.warn("render_warning",{description:e,container:c()})})),r&&r(i({styles:o,warnings:a},u))}}},onDestroy:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onDestroy;return function(){var e=n.getContainer,r=Io().messagesMap,o=e();h.delay(0).then((function(){if(o&&o.ownerDocument.body.contains(o)){var e=r.get(o).clone(),n=e.render,t=e.state,i=e.updateProps,a=e.clone;t.renderStart=fo(),r.set(o,{render:n,updateProps:i,state:t,clone:a}),n(o)}})),"function"==typeof t&&t()}}},payerId:{type:"string",queryParam:"payer_id",decorate:function(e){var n=e.props;return kt()(n.account,"client-id:")?null:n.account},default:function(){return""},required:!1},clientId:{type:"string",queryParam:"client_id",decorate:function(e){var n=e.props;return kt()(n.account,"client-id:")?n.account.slice(10):null},default:function(){return""},required:!1},merchantConfigHash:{type:"string",queryParam:"merchant_config",required:!1,value:gr,debug:vo("Merchant Config Hash: "+void 0)},treatmentsHash:{type:"string",queryParam:"treatments",required:!1,value:Xo,debug:vo("Treatments Hash: "+Xo())},sdkMeta:{type:"string",queryParam:!0,sendToChild:!1,required:!1,value:Sr,debug:vo("SDK Meta: "+void 0)},env:{type:"string",queryParam:!0,value:wr,debug:vo("Environment: production")},version:{type:"string",queryParam:!0,value:Ar,debug:vo("Library Version: 1.68.1")},integrationType:{type:"string",queryParam:!0,value:function(){return"STANDALONE"},debug:vo("Library Integration: STANDALONE")},deviceID:{type:"string",queryParam:!0,value:Or,debug:vo("Device ID: "+Or())},sessionID:{type:"string",queryParam:!0,value:Rr,debug:vo("Session ID: "+Rr())},scriptUID:{type:"string",queryParam:!0,value:un,debug:vo("ScriptUID: "+un())},messageRequestId:{type:"string",queryParam:"message_request_id",value:function(e){var n=e.state;return n.messageRequestId||(n.messageRequestId=oe()),vo("Message Request ID: "+n.messageRequestId),n.messageRequestId}},debug:{type:"boolean",queryParam:"pp_debug",required:!1,value:function(){return!!/(\?|&)pp_debug=true(&|$)/.test(window.location.search)||void 0}},messageLocation:{type:"string",queryParam:!1,value:function(){return window.location.href},debug:vo("Message Location: "+window.location.href)},stageTag:{type:"string",queryParam:!0,required:!1,value:Cr},partnerAttributionId:{type:"string",queryParam:!0,required:!1,value:function(){var e,n;return null!=(e=(null!=(n={})?n:{})["data-partner-attribution-id"])?e:null},debug:vo("Partner Attribution ID: "+(null!=(e={})?e:{})["data-partner-attribution-id"])},devTouchpoint:{type:"boolean",queryParam:!0,required:!1,value:Dr},cspNonce:{type:"string",required:!1,default:Er,value:vi.cspNonce},disableSetCookie:{type:"boolean",queryParam:!0,required:!1,value:mr},features:{type:"string",queryParam:"features",required:!1,value:function(e){return Mr(vi.features({props:e.props}))}}}})})),Ei=t(98),_i=Mo(),bi=function(e){var n=e.uid,t=e.frame,r=e.prerenderFrame,o=e.doc,i=e.event,a=e.state,u=e.props,c=u.cspNonce,s=u.features;if("popup"!==e.context){var d=null!=s&&s.includes("new-checkout-design")?100:300,f=null!=s&&s.includes("new-checkout-design")?0:5,l=lo(),p=l[0],v=l[1],y={HIDDEN:n+"-hide",MODAL_SHOW:n+"-show",TRANSITION:n+"-transition"},m=_i(t.title);return Xr("div",{id:n,class:y.HIDDEN,onRender:function(e){var n=e.querySelector("div"),o=function(){a.open=!0,a.previousFocus=document.activeElement,e.classList.remove(y.HIDDEN),p(),requestAnimationFrame((function(){requestAnimationFrame((function(){n.classList.add(y.MODAL_SHOW),a.renderedModal&&window.document.activeElement!==t?t.focus():window.document.activeElement!==r&&r.focus()}))}))},u=function(){a.open=!1,n.classList.remove(y.MODAL_SHOW),v(),setTimeout((function(){e.classList.add(y.HIDDEN),a.previousFocus.focus()}),d)};a.open&&o(),i.on("modal-show",o),i.on("modal-hide",u),i.on("zoid-rendered",(function(){a.renderedModal=!0,h.delay(d).then((function(){return n.classList.add(y.TRANSITION)})).then((function(){return h.delay(d)})).then((function(){return $e(r)})).then((function(){a.open&&document.activeElement!==t&&t.focus()}))})),window.addEventListener("keyup",(function(e){!a.open||"Escape"!==e.key&&"Esc"!==e.key&&27!==e.charCode||u()}))}},Xr("style",{nonce:c},"\n #"+n+"."+y.HIDDEN+" {\n visibility: hidden;\n }\n\n #"+n+" > div > iframe {\n position: absolute !important;\n top: 0 !important;\n left: 0 !important;\n width: 100% !important;\n height: 100% !important;\n border: none !important;\n }\n\n @supports (hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none) {\n #"+n+"."+y.HIDDEN+" > div > iframe {\n opacity: 0;\n }\n }\n\n #"+n+" > div {\n background: rgba(108, 115, 120, 0);\n transition: background "+d+"ms linear;\n position: fixed !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; z-index: 2147483647 !important; border: none !important;\n }\n\n "+("new-checkout-design"!==s?"#"+n+" > div."+y.MODAL_SHOW+" {\n background: rgba(108, 115, 120, 0.85);\n }":"")+"\n\n #"+n+" > div > iframe {\n transition: all "+d+"ms;\n transform: translateY("+f+"%);\n opacity: 0;\n }\n\n #"+n+" > div."+y.MODAL_SHOW+" > iframe {\n transform: translateY(0);\n opacity: 1;\n }\n\n #"+n+" > div > iframe:first-of-type {\n opacity: 0;\n }\n\n #"+n+" > div."+y.MODAL_SHOW+"."+y.TRANSITION+" > iframe:first-of-type {\n opacity: 1;\n z-index: 2;\n }\n\n #"+n+" > div."+y.TRANSITION+" > iframe:last-of-type {\n opacity: 0;\n }\n "),Xr("div",null,Xr("node",{el:t,title:m}),Xr("node",{el:r,title:"Prerender "+m}))).render(io({doc:o}))}},Si=t(99),Ni=function(e){var n,t=e.doc,r=e.props,o=r.cspNonce,i=r.features,a=r.onError,u=r.onClose,c=e.event,s=e.state,d=null!=i&&i.includes("new-checkout-design")?"true":"false",f="\n @font-face {\n font-family: 'PayPalOpen';\n src: url(https://www.paypalobjects.com/paypal-ui/fonts/PayPalOpen-Regular.woff2) format('woff');\n font-weight: normal;\n font-style: normal;\n }\n html {\n color: #2d2d2d;\n font-family: PayPalOpen, Helvetica, Arial, sans-serif;\n font-size: 14px;\n font-weight: 400;\n }\n .modal{\n overflow-y: scroll;\n }\n "+("true"===d?" @media screen and (min-width: 640px) {\n .overlay {\n background-color: #f1f2f3; \n position: fixed;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 424px;\n height: 90vh;\n border-radius: 32px;\n border: 1px solid #cdd0d4;\n }\n }\n @media screen and (max-width: 639px) {\n .overlay {\n background-color: #f1f2f3;\n position: fixed;\n left: 0;\n top: 0;\n width: 100%; \n height: 100%;\n }\n }\n ":".overlay {\n position: fixed;\n left: 0;\n top: 0;\n width: 100%; \n height: 100%;\n }")+"\n .modal-content {\n position: relative;\n margin: auto;\n height: 100%;\n border-top-right-radius: 10px;\n border-top-left-radius: 10px;\n }\n "+("true"===d&&"\n @media screen and (min-width: 640px) {\n #prerender-close-btn {\n position: relative;\n }\n .close-button {\n position: absolute;\n width: 424px;\n transform: translate(-50%, -50%);\n top: 85px;\n left: 50%;\n padding-left: 25px;\n z-index: 50;\n }\n }\n @media screen and (max-width: 639px) {\n #prerender-close-btn {\n left: 0;\n }\n }\n\n .spinnerImage{\n display: none;\n }\n .loader {\n width: 44px !important;\n height: 44px !important;\n margin: 0 0 0 -22px !important;\n background-color: transparent !important;\n animation: rotation 1.3s infinite linear !important;\n border-left: 3px solid #0544b5 !important;\n border-right: 3px solid #0544b5 !important;\n border-bottom: 3px solid transparent !important;\n border-top: 3px solid #0544b5 !important;\n border-radius: 100% !important;\n top: 20;\n }\n ")+"\n .spinner{\n position: relative !important;\n }\n\n .close-button > button {\n background-color: transparent;\n width: 48px;\n height: 48px;\n display: block;\n padding: 0;\n border: none;\n cursor: pointer;\n position: absolute;\n z-index: 50;\n right: 0;\n margin-right: 2px;\n margin-top: 2px;\n }\n\n .close-button > button > svg {\n width: 48px;\n height: 48px;\n }\n\n #modal-status {\n color: white;\n position: absolute;\n top: 67%;\n left: calc( 50% - 10px );\n margin-left: -60px;\n display: none;\n padding: 10px;\n }\n \n "+("true"===d&&"\n .close-button > button {\n background-color: transparent;\n width: 44px;\n height: 44px;\n }\n\n .close-button > button > svg {\n margin-top: -20px;\n margin-left: -20px;\n width: 24px;\n height: 24px;\n }\n\n @media screen and (max-width: 639px) {\n .close-button > button > svg {\n margin-top: auto;\n margin-left: auto;\n }\n }\n\n #modal-status {\n color: #545D68;\n position: absolute;\n top: 52%;\n margin-left: -60px;\n display: none;\n padding: 10px;\n }\n ")+"\n\n @media screen and (max-width: 639px), (max-height: 539px){\n .modal{\n overflow-y: hidden;\n }\n .modal-content {\n height: calc(100% - 84px);\n \n }\n }\n \n ",l=function(){u({linkName:"Pre-render Close"}),c.trigger("modal-hide")};return c.on("modal-show",(function(){s.renderedModal||window.requestAnimationFrame((function(){window.requestAnimationFrame((function(){var e;null==(e=n)||e.focus()}))}))})),Xr("html",{lang:"en"},Xr("head",null,Xr("meta",{httpEquiv:"X-UA-Compatible",content:"IE=edge"}),Xr("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})),Xr("style",{nonce:o},f),Xr("body",{onRender:function(e){n=e.querySelector("#prerender-close-btn"),window.requestAnimationFrame((function(){var e;null==(e=n)||e.focus()})),h.delay(15e3).then((function(){return function(e){h.delay(15e3).then((function(){var n=e.querySelector("#modal-status");n&&!s.renderedModal&&(n.style.display="block",n.textContent="Error loading Modal",a&&a({message:n.textContent}))}))}(e)}))},onKeyUp:function(e){s.renderedModal||!s.open||"Escape"!==e.key&&"Esc"!==e.key&&27!==e.charCode||l()}},Xr("div",{class:"modal","aria-errormessage":"modal-status"},Xr("div",{class:"overlay",onClick:l,"aria-keyshortcuts":"escape"}),Xr("div",{class:"top-overlay"}),Xr("div",{class:"modal-content"},Xr("div",{class:"close-button"},Xr("button",{id:"prerender-close-btn",onClick:l,type:"button","aria-label":"Close",tabindex:"0"},"true"===d?Xr("svg",{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Xr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.203 4.793a1 1 0 0 1 0 1.414L9.91 12.5l6.293 6.293a1 1 0 0 1-1.414 1.414l-6.993-6.993a1.01 1.01 0 0 1 0-1.428l6.993-6.993a1 1 0 0 1 1.414 0Z",fill:"#545D68"})):Xr("svg",{"aria-hidden":"true",width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Xr("path",{d:"M12 0L0 12",transform:"translate(12 12)",stroke:"white","stroke-width":"2","stroke-linecap":"round"}),Xr("path",{d:"M0 0L12 12",transform:"translate(12 12)",stroke:"white","stroke-width":"2","stroke-linecap":"round"})))),Xr("span",{id:"modal-status","aria-label":"modal-status","aria-live":"polite"},"Loading Modal"),Xr(Si.Spinner,{nonce:o}))))).render(io({doc:t}))},Ti=Fo("__paypal_credit_modal__",(function(){return Lt({tag:yr.MODAL,url:Lo("MODAL"),domain:/\.paypal\.com(:\d+)?$/,containerTemplate:bi,prerenderTemplate:Ni,dimensions:{width:"460px",height:"900px"},attributes:{iframe:{title:"PayPal Modal",scrolling:"no"}},props:{account:{type:"string",queryParam:!1,required:!0,value:vi.account},merchantId:{type:"string",queryParam:"merchant_id",required:!1,value:vi.merchantId},integrationIdentifier:{type:"string",queryParam:!0,value:function(e){return e.props.refIndex?void 0:"messagesModal"},required:!1},customerId:{type:"string",queryParam:"customer_id",required:!1,value:vi.customerId},currency:{type:"string",queryParam:!0,required:!1,value:vi.currency},amount:{type:"number",queryParam:!0,required:!1,value:vi.amount},buyerCountry:{type:"string",queryParam:"buyer_country",required:!1,value:vi.buyerCountry},language:{type:"string",queryParam:!0,required:!1,value:vi.language},offer:{type:"string",queryParam:"credit_type",required:!1,decorate:function(e){return po(e.value)}},refId:{type:"string",queryParam:!1,required:!1},refIndex:{type:"string",queryParam:!1,required:!1},ignoreCache:{type:"boolean",queryParam:"ignore_cache",required:!1,value:vi.ignoreCache},channel:{type:"string",queryParam:"channel",required:!1,default:function(){return"UPSTREAM"},value:vi.channel},ecToken:{type:"string",queryParam:"ec_token",required:!1,value:vi.ecToken},buttonSessionId:{type:"string",queryParam:"button_session_id",required:!1,value:vi.buttonSessionId},pageType:{type:"string",queryParam:"page_type",required:!1,value:vi.pageType},contextualComponents:{type:"string",queryParam:"contextual_components",required:!1,value:vi.contextualComponents},onClick:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onClick,r=n.onApply;return function(e){var o=e.linkName,i=e.src;qo.track({index:n.index,refIndex:n.refIndex,et:"CLICK",event_type:"modal_rendered",page_view_link_name:o,page_view_link_source:null!=i?i:o}),"function"==typeof t&&t({linkName:o}),"function"==typeof r&&Br()(o,"Apply Now")&&r()}}},onCalculate:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onCalculate;return function(e){var r=e.value;qo.track({index:n.index,refIndex:n.refIndex,et:"CLICK",event_type:"modal_rendered",page_view_link_name:"Calculator",page_view_link_source:"Calculator",calculator_input:r}),"function"==typeof t&&t({value:r})}}},onError:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onError;return function(e){var r=e.message;qo.track({index:n.index,refIndex:n.refIndex,et:"ERROR",event_type:"error",message:r}),"function"==typeof t&&t({message:r})}}},onShow:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onShow;return function(){var e=n.src;qo.track({index:n.index,refIndex:n.refIndex,et:"CLIENT_IMPRESSION",event_type:"modal_viewed",src:void 0===e?"show":e}),"function"==typeof t&&t()}}},onClose:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=e.event,r=n.onClose;return function(e){var o=(void 0===e?{}:e).linkName;if(void 0!==o){var i=n.index,a=n.refIndex;t.trigger("modal-hide"),qo.track({index:i,refIndex:a,et:"CLICK",event_type:"modal_close",page_view_link_name:o}),"function"==typeof r&&r({linkName:o})}}}},onReady:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=e.state,r=e.event,o=n.onReady,a=n.buttonSessionId;return function(e){var u=e.products,c=e.meta,s=e.ts,d=n.index,f=n.offer,l=n.merchantId,p=n.account,h=n.refIndex,v=n.messageRequestId,y=t.renderStart,m=t.show,w=t.hide,g=c.trackingDetails,E=c.ppDebugId,_=l&&p.slice(10);vo("Modal Correlation ID: "+E),qo.addMetaBuilder((function(e){var n;delete e[d];var t=e.global,r=void 0===t?{}:t;return delete e.global,(n={global:i({},r,{ts:void 0!==s?s:ho(),deviceID:Or(),sessionID:Rr()})})[d]={type:"modal",messageRequestId:v,buttonSessionId:a,account:l||p,partnerClientId:_,trackingDetails:g},n}));var b=ni("firstModalRenderDelay");qo.info("modal_render",{index:d,refIndex:h,duration:fo()-y}),qo.track({index:d,refIndex:h,et:"CLIENT_IMPRESSION",event_type:"modal_rendered",modal:u.join("_").toLowerCase()+":"+(f?f.toLowerCase():u[0]),bn_code:{}[Ei.SDK_SETTINGS.PARTNER_ATTRIBUTION_ID],first_modal_render_delay:Math.round(b).toString(),render_duration:Math.round(fo()-y).toString()}),"function"!=typeof o||t.products&&JSON.stringify(u)===JSON.stringify(t.products)||o({products:u,show:m,hide:w}),t.products=Array.isArray(u)&&u.map(po),r.trigger("ready")}}},index:{type:"string",queryParam:!1,value:function(e){var n=e.state;return n.index||(n.index=Do().toString()),n.index}},payerId:{type:"string",queryParam:"payer_id",decorate:function(e){var n=e.props;return kt()(n.account,"client-id:")?null:n.account},default:function(){return""},required:!1},clientId:{type:"string",queryParam:"client_id",decorate:function(e){var n=e.props;return kt()(n.account,"client-id:")?n.account.slice(10):null},default:function(){return""},required:!1},sdkMeta:{type:"string",queryParam:!0,sendToChild:!1,required:!1,value:Sr},env:{type:"string",queryParam:!0,value:wr},version:{type:"string",queryParam:!0,value:Ar},deviceID:{type:"string",queryParam:!0,value:Or},sessionID:{type:"string",queryParam:!0,value:Rr},scriptUID:{type:"string",queryParam:!0,value:un},messageRequestId:{type:"string",queryParam:"message_request_id",value:oe,decorate:function(e){var n=e.props;return vo("Modal Message Request ID: "+n.messageRequestId),n.messageRequestId}},debug:{type:"boolean",queryParam:"pp_debug",required:!1,value:function(){return!!/(\?|&)pp_debug=true(&|$)/.test(window.location.search)||void 0}},stageTag:{type:"string",queryParam:!0,required:!1,value:Cr},devTouchpoint:{type:"boolean",queryParam:!0,required:!1,value:Dr},integrationType:{type:"string",queryParam:!0,required:!1,value:function(){return"STANDALONE"}},cspNonce:{type:"string",required:!1,default:Er,value:vi.cspNonce},disableSetCookie:{type:"boolean",queryParam:!0,required:!1,value:mr},features:{type:"string",queryParam:"features",required:!1,value:function(e){return Mr(vi.features({props:e.props}))}}}})})),Ai=(li=function(e){var n=e.account,t=e.merchantId,r=e.customerId,o=e.currency,i=e.amount,a=e.buyerCountry,u=e.language,c=e.ignoreCache,s=e.offer,d=e.onReady,f=e.onCalculate,l=e.onError,p=e.onApply,v=e.onShow,y=e.onClose,m=e.channel,w=e.ecToken,g=e.contextualComponents,E=e.cspNonce,_=e.integrationIdentifier,b=e.features,S=e.buttonSessionId;ri("firstModalRenderDelay");var N,T=Ti()({account:n,merchantId:t,customerId:r,currency:o,amount:i,buyerCountry:a,language:u,ignoreCache:c,offer:s,onReady:d,onCalculate:f,onError:l,onApply:p,onShow:v,onClose:y,channel:m,ecToken:w,contextualComponents:g,cspNonce:E,integrationIdentifier:_,features:b,buttonSessionId:S}),A=function(e,n,t){void 0===e&&(e="body"),void 0===t&&(t={intent:"render"});var r=bo()===window||null!=b&&b.includes("new-checkout-design")?"iframe":"popup";if(N&&"popup"!==r)return N.then((function(){return n&&T.updateProps(n)}));N&&"popup"===r&&Object.assign(T,T.clone());var o=new h((function(e){return T.event.once("ready",e)}));T.state.renderStart=fo();var i="show"===t.intent?h.resolve():Uo.then((function(){return h.delay(0)}));return N=i.then((function(){return h.all([n&&T.updateProps(n),T.render(e,r),o])})).then((function(){return ko.trigger("modal-render")}))},P=function(e){var n;void 0===e&&(e={});var t,r,o,i,a=So(e)?No(e):e;So(e)&&(a.src=null!=(t=null!=(r=null!=(o=e.id)?o:[].concat(e.classList).filter(Boolean).reduce((function(e,n){return(null!=e?e:"")+"."+n}),null))?r:null==(i=e.constructor)?void 0:i.name)?t:"element"),N=A("body",a,{intent:"show"});var u=po(e.offer),c="DE"===(null==(n=e)?void 0:n.offerCountry)?["PAY_LATER_LONG_TERM","PAY_LATER_PAY_IN_1","PAY_LATER_SHORT_TERM"]:T.state.products;return void 0!==u&&"NONE"!==u&&Array.isArray(T.state.products)&&!Fr()(c,(function(e){return e===u}))?(qo.warn("invalid_option_value",{location:"offer",description:'Expected one of ["'+T.state.products.join('", "')+'"] but received "'+e.offer+'".'}),h.resolve()):(T.state.open=!0,T.event.trigger("modal-show"),N)},x=function(){return N=A("body"),T.event.trigger("modal-hide"),N};return T.state.show=P,T.state.hide=x,{render:A,show:P,hide:x,updateProps:function(e){T.updateProps(e)}}},pi=["account","merchantId","buyerCountry"],hi=new Map,function(e,n){void 0===n&&(n=!1);var t=JSON.stringify(pi.map((function(n){return e[n]})));return hi.has(t)&&!n||hi.set(t,li(e)),hi.get(t)}),Pi=function(e){return Ai(go(Io().config,e))},xi=function(e){return void 0===e&&(e={}),{render:function(n){void 0===n&&(n="[data-pp-message]"),ri("firstRenderDelay");var t=fo(),r=Io().messagesMap,o=xo(n);if(0===o.length)return e._auto||qo.warn("invalid_selector",{description:'No elements were found with the following selector: "'+n+'"',selector:n}),h.resolve();var a=o.filter((function(n){return n.ownerDocument.body.contains(n)?!e._auto||!n.hasAttribute("data-pp-id"):(qo.warn("not_in_document",{description:"Container must be in the document.",container:n}),!1)}));return jo.then((function(){return h.all(a.map((function(n,o){return new h((function(a,u){var c=function(){try{var o=function(e,n){var t=Io().config,r=No(n),o=i({},t,e,r,{pageType:r.pageType||e.pageType||r.placement||e.placement});return delete o.placement,o}(e,n);n.hasAttribute("data-pp-id")||n.setAttribute("data-pp-id",Do());var c=n.getAttribute("data-pp-id"),s=o.account,d=o.merchantId,f=o.customerId,l=o.currency,p=o.amount,h=o.pageType,v=o.style,y=o.offer,m=o.buyerCountry,w=o.ignoreCache,g=o.onClick,E=o.onRender,_=o.onApply,b=o.channel,S=o.ecToken,N=o.contextualComponents,T={account:s,merchantId:d,customerId:f,currency:l,amount:p,buyerCountry:m,ignoreCache:w,channel:b,ecToken:S,contextualComponents:N,cspNonce:o.cspNonce,features:o.features},A=i({},T,{onApply:_}),P=i({},T,{index:c,pageType:h,style:v,offer:y,onClick:g,onApply:_,onReady:function(){"function"==typeof E&&E.apply(void 0,arguments)},getContainer:function(){return n}});if(s&&(P.modal=Pi(A)),!r.has(n)){var x=gi()(P),R=x.render,O=x.state,I=x.updateProps,C=x.clone;return O.renderStart=t,O.style=P.style,r.set(n,{render:R,updateProps:I,state:O,clone:C}),zo().observe(n,{attributes:!0}),vo("{\n clientID: "+s+",\n merchantID: "+d+",\n customerID: "+f+",\n offer: "+y+",\n currency: "+l+",\n ignoreCache: "+w+",\n channel: "+b+",\n ecToken: "+S+",\n contextualComponents: "+N+',\n \n index: data-pp-id="'+c+'",\n style: '+JSON.stringify(v)+",\n amount: "+p+",\n buyerCountry: "+m+",\n pageType: "+h+",\n \n renderStart: "+new Date(t).toLocaleString()+",\n renderMessageTime: "+(new Date).toLocaleString()+"\n }"),R(n).then((function(){return ko.trigger("render")})).then(a)}var D=r.get(n),M=D.updateProps,L=D.state;if(L.renderComplete&&(L.renderStart=t),L.style&&P.style){var F=go(L.style,P.style);L.style=F,P.style=F}return M(Wr()(P).reduce((function(e,n){var t,r=n[1];return void 0===r?e:Object.assign(e,((t={})[n[0]]=r,t))}),{})).then((function(){return ko.trigger("render")})).then(a)}catch(e){return"offer_validation_error"===e.message?a():u(e)}};0!==o?window.requestIdleCallback?window.requestIdleCallback(c):setTimeout(c,20*o):c()}))})))}))}}};Gt()(xi,{render:function(e,n){return xi(e).render(n)},setGlobalConfig:function(e){return void 0===e&&(e={}),Co({config:i({},Io().config,e)})}});var Ri=xi;ri("scriptLoadDelay"),function(){Jo(),gi(),Vo(),Ho();var e,n=Tr();if(window[n]=null!=(e=window[n])?e:{},window[n].Messages=Ri,window[n].Message=Ri,!Pr()){var t=function(){!Xo()&&Ue()?Qo():ko.trigger("treatments"),Io().config.account&&Ri.render({_auto:!0}),Zo().observe(document.body,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-pp-message"]}),vo("DOMContentLoaded at "+(new Date).toLocaleString())};"loading"===document.readyState?window.addEventListener("DOMContentLoaded",t):t()}}(),function(){Ti(),Ho();var e,n=Tr();window[n]=null!=(e=window[n])?e:{},window[n].MessagesModal=Pi,Pr()||Wo.then((function(){if(Io().config.account){var e=xo("[data-pp-messagesmodal]");if(e.length>0){var n=go(Io().config,No(e[0])),t=Pi(n);e.forEach((function(e){e.setAttribute("tabindex",0),e.addEventListener("click",(function(){return t.show(e)}))}))}}}))}()}]);
|
1
|
+
/* version: 1.68.2 */
|
2
|
+
!function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return{}.hasOwnProperty.call(e,n)},t.p="",t(t.s=171)}([function(e,n){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,n,t){var r=t(34),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);e.exports=r?a:function(e){return function(){return i.apply(e,arguments)}}},function(e,n,t){var r=t(65),o=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},function(e,n,t){var r=t(7),o=t(72),i=t(12),a=t(49),u=t(71),c=t(70),s=r.Symbol,d=o("wks"),f=c?s.for||s:s&&s.withoutSetter||a;e.exports=function(e){return i(d,e)||(d[e]=u&&i(s,e)?s[e]:f("Symbol."+e)),d[e]}},function(e,n,t){var r=t(156);e.exports=r},function(e,n,t){var r=t(0);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,n,t){"use strict";var r=t(7),o=t(111),i=t(52),a=t(2),u=t(73).f,c=t(112),s=t(16),d=t(25),f=t(20),l=t(12),p=function(e){var n=function(t,r,i){if(this instanceof n){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,i)}return o(e,this,arguments)};return n.prototype=e.prototype,n};e.exports=function(e,n){var t,o,h,v,y,m,w,g,E,_=e.target,b=e.global,S=e.stat,N=e.proto,T=b?r:S?r[_]:(r[_]||{}).prototype,A=b?s:s[_]||f(s,_,{})[_],P=A.prototype;for(v in n)o=!(t=c(b?v:_+(S?".":"#")+v,e.forced))&&T&&l(T,v),m=A[v],o&&(w=e.dontCallGetSet?(E=u(T,v))&&E.value:T[v]),y=o&&w?w:n[v],o&&typeof m==typeof y||(g=e.bind&&o?d(y,r):e.wrap&&o?p(y):N&&a(y)?i(y):y,(e.sham||y&&y.sham||m&&m.sham)&&f(g,"sham",!0),f(A,v,g),N&&(l(s,h=_+"Prototype")||f(s,h,{}),f(s[h],v,y),e.real&&P&&(t||!P[v])&&f(P,v,y)))}},function(e,n){var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof window&&window)||function(){return this}()||this||Function("return this")()},function(e,n,t){var r=t(146);e.exports=r},,function(e,n,t){var r=t(2),o=t(65),i=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===i}:function(e){return"object"==typeof e?null!==e:r(e)}},function(e,n,t){var r=t(34),o=function(){}.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},function(e,n,t){var r=t(1),o=t(21),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,n){return i(o(e),n)}},function(e,n,t){var r=t(151);e.exports=r},function(e,n,t){var r=t(5),o=t(66),i=t(68),a=t(15),u=t(44),c=TypeError,s=Object.defineProperty,d=Object.getOwnPropertyDescriptor;n.f=r?i?function(e,n,t){if(a(e),n=u(n),a(t),"function"==typeof e&&"prototype"===n&&"value"in t&&"writable"in t&&!t.writable){var r=d(e,n);r&&r.writable&&(e[n]=t.value,t={configurable:"configurable"in t?t.configurable:r.configurable,enumerable:"enumerable"in t?t.enumerable:r.enumerable,writable:!1})}return s(e,n,t)}:s:function(e,n,t){if(a(e),n=u(n),a(t),o)try{return s(e,n,t)}catch(e){}if("get"in t||"set"in t)throw c("Accessors not supported");return"value"in t&&(e[n]=t.value),e}},function(e,n,t){var r=t(10),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not an object")}},function(e,n){e.exports={}},function(e,n,t){var r=t(144);e.exports=r},function(e,n,t){var r=t(43),o=t(27);e.exports=function(e){return r(o(e))}},function(e,n,t){var r=t(1),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},function(e,n,t){var r=t(5),o=t(14),i=t(38);e.exports=r?function(e,n,t){return o.f(e,n,i(1,t))}:function(e,n,t){return e[n]=t,e}},function(e,n,t){var r=t(27),o=Object;e.exports=function(e){return o(r(e))}},function(e,n,t){var r=t(78);e.exports=function(e){return r(e.length)}},function(e,n,t){var r=t(158);e.exports=r},function(e,n){e.exports={}},function(e,n,t){var r=t(52),o=t(29),i=t(34),a=r(r.bind);e.exports=function(e,n){return o(e),void 0===n?e:i?a(e,n):function(){return e.apply(n,arguments)}}},function(e,n,t){var r=t(140);e.exports=r},function(e,n,t){var r=t(35),o=TypeError;e.exports=function(e){if(r(e))throw o("Can't call method on "+e);return e}},function(e,n,t){var r=t(16),o=t(7),i=t(2),a=function(e){return i(e)?e:void 0};e.exports=function(e,n){return arguments.length<2?a(r[e])||a(o[e]):r[e]&&r[e][n]||o[e]&&o[e][n]}},function(e,n,t){var r=t(2),o=t(47),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a function")}},function(e,n){e.exports=!0},function(e,n,t){var r=t(60),o=t(2),i=t(19),a=t(3)("toStringTag"),u=Object,c="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var n,t,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,n){try{return e[n]}catch(e){}}(n=u(e),a))?t:c?i(n):"Object"==(r=i(n))&&o(n.callee)?"Arguments":r}},function(e,n,t){var r=t(28);e.exports=r},function(e,n,t){var r=t(148);e.exports=r},function(e,n,t){var r=t(0);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},function(e,n){e.exports=function(e){return null==e}},function(e,n){e.exports=function(){}},function(e,n,t){var r,o,i,a=t(105),u=t(7),c=t(10),s=t(20),d=t(12),f=t(48),l=t(50),p=t(39),h=u.TypeError;if(a||f.state){var v=f.state||(f.state=new(0,u.WeakMap));v.get=v.get,v.has=v.has,v.set=v.set,r=function(e,n){if(v.has(e))throw h("Object already initialized");return n.facade=e,v.set(e,n),n},o=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var y=l("state");p[y]=!0,r=function(e,n){if(d(e,y))throw h("Object already initialized");return n.facade=e,s(e,y,n),n},o=function(e){return d(e,y)?e[y]:{}},i=function(e){return d(e,y)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(n){var t;if(!c(n)||(t=o(n)).type!==e)throw h("Incompatible receiver, "+e+" required");return t}}}},function(e,n){e.exports=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}}},function(e,n){e.exports={}},function(e,n,t){var r=t(75),o=t(56);e.exports=Object.keys||function(e){return r(e,o)}},function(e,n,t){var r=t(31),o=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},function(e,n,t){var r=t(154);e.exports=r},function(e,n,t){var r=t(1),o=t(0),i=t(19),a=Object,u=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?u(e,""):a(e)}:a},function(e,n,t){var r=t(106),o=t(69);e.exports=function(e){var n=r(e,"string");return o(n)?n:n+""}},function(e,n,t){var r=t(1);e.exports=r({}.isPrototypeOf)},function(e,n,t){var r=t(29),o=t(35);e.exports=function(e,n){var t=e[n];return o(t)?void 0:r(t)}},function(e,n){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},function(e,n,t){var r=t(7),o=t(110),i=r["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,n,t){var r=t(1),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},function(e,n,t){var r=t(72),o=t(49),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,n,t){"use strict";var r=t(6),o=t(11),i=t(30),a=t(113),u=t(2),c=t(114),s=t(57),d=t(120),f=t(59),l=t(20),p=t(58),h=t(3),v=t(24),y=t(74),m=a.PROPER,w=a.CONFIGURABLE,g=y.IteratorPrototype,E=y.BUGGY_SAFARI_ITERATORS,_=h("iterator"),b=function(){return this};e.exports=function(e,n,t,a,h,y,S){c(t,n,a);var N,T,A,P=function(e){if(e===h&&C)return C;if(!E&&e in O)return O[e];switch(e){case"keys":case"values":case"entries":return function(){return new t(this,e)}}return function(){return new t(this)}},x=n+" Iterator",R=!1,O=e.prototype,I=O[_]||O["@@iterator"]||h&&O[h],C=!E&&I||P(h),D="Array"==n&&O.entries||I;if(D&&(N=s(D.call(new e)))!==Object.prototype&&N.next&&(i||s(N)===g||(d?d(N,g):u(N[_])||p(N,_,b)),f(N,x,!0,!0),i&&(v[x]=b)),m&&"values"==h&&I&&"values"!==I.name&&(!i&&w?l(O,"name","values"):(R=!0,C=function(){return o(I,this)})),h)if(T={values:P("values"),keys:y?C:P("keys"),entries:P("entries")},S)for(A in T)(E||R||!(A in O))&&p(O,A,T[A]);else r({target:n,proto:!0,forced:E||R},T);return i&&!S||O[_]===C||p(O,_,C,{name:h}),v[n]=C,T}},function(e,n,t){var r=t(19),o=t(1);e.exports=function(e){if("Function"===r(e))return o(e)}},function(e,n,t){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);n.f=i?function(e){var n=o(this,e);return!!n&&n.enumerable}:r},function(e,n,t){var r,o=t(15),i=t(115),a=t(56),u=t(39),c=t(117),s=t(67),d=t(50)("IE_PROTO"),f=function(){},l=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(l("")),e.close();var n=e.parentWindow.Object;return e=null,n},h=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,n;h="undefined"!=typeof document?document.domain&&r?p(r):((n=s("iframe")).style.display="none",c.appendChild(n),n.src=String("javascript:"),(e=n.contentWindow.document).open(),e.write(l("document.F=Object")),e.close(),e.F):p(r);for(var t=a.length;t--;)delete h.prototype[a[t]];return h()};u[d]=!0,e.exports=Object.create||function(e,n){var t;return null!==e?(f.prototype=o(e),t=new f,f.prototype=null,t[d]=e):t=h(),void 0===n?t:i.f(t,n)}},function(e,n,t){var r=t(116);e.exports=function(e){var n=+e;return n!=n||0===n?0:r(n)}},function(e,n){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,n,t){var r=t(12),o=t(2),i=t(21),a=t(50),u=t(118),c=a("IE_PROTO"),s=Object,d=s.prototype;e.exports=u?s.getPrototypeOf:function(e){var n=i(e);if(r(n,c))return n[c];var t=n.constructor;return o(t)&&n instanceof t?t.prototype:n instanceof s?d:null}},function(e,n,t){var r=t(20);e.exports=function(e,n,t,o){return o&&o.enumerable?e[n]=t:r(e,n,t),e}},function(e,n,t){var r=t(60),o=t(14).f,i=t(20),a=t(12),u=t(119),c=t(3)("toStringTag");e.exports=function(e,n,t,s){if(e){var d=t?e:e.prototype;a(d,c)||o(d,c,{configurable:!0,value:n}),s&&!r&&i(d,"toString",u)}}},function(e,n,t){var r={};r[t(3)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,n){e.exports=function(e,n){return{value:e,done:n}}},function(e,n,t){var r=t(31),o=t(46),i=t(35),a=t(24),u=t(3)("iterator");e.exports=function(e){if(!i(e))return o(e,u)||o(e,"@@iterator")||a[r(e)]}},,function(e,n,t){"use strict";var r=t(18),o=t(36),i=t(24),a=t(37),u=t(14).f,c=t(51),s=t(61),d=t(30),f=t(5),l=a.set,p=a.getterFor("Array Iterator");e.exports=c(Array,"Array",(function(e,n){l(this,{type:"Array Iterator",target:r(e),index:0,kind:n})}),(function(){var e=p(this),n=e.target,t=e.kind,r=e.index++;return!n||r>=n.length?(e.target=void 0,s(void 0,!0)):s("keys"==t?r:"values"==t?n[r]:[r,n[r]],!1)}),"values");var h=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!d&&f&&"values"!==h.name)try{u(h,"name",{value:"values"})}catch(e){}},function(e,n){var t="object"==typeof document&&document.all;e.exports={all:t,IS_HTMLDDA:void 0===t&&void 0!==t}},function(e,n,t){var r=t(5),o=t(0),i=t(67);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,n,t){var r=t(7),o=t(10),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,n,t){var r=t(5),o=t(0);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(e,n,t){var r=t(28),o=t(2),i=t(45),a=t(70),u=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var n=r("Symbol");return o(n)&&i(n.prototype,u(e))}},function(e,n,t){var r=t(71);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,n,t){var r=t(107),o=t(0),i=t(7).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(e,n,t){var r=t(30),o=t(48);(e.exports=function(e,n){return o[e]||(o[e]=void 0!==n?n:{})})("versions",[]).push({version:"3.31.1",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(e,n,t){var r=t(5),o=t(11),i=t(53),a=t(38),u=t(18),c=t(44),s=t(12),d=t(66),f=Object.getOwnPropertyDescriptor;n.f=r?f:function(e,n){if(e=u(e),n=c(n),d)try{return f(e,n)}catch(e){}if(s(e,n))return a(!o(i.f,e,n),e[n])}},function(e,n,t){"use strict";var r,o,i,a=t(0),u=t(2),c=t(10),s=t(54),d=t(57),f=t(58),l=t(3),p=t(30),h=l("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=d(d(i)))!==Object.prototype&&(r=o):v=!0),!c(r)||a((function(){var e={};return r[h].call(e)!==e}))?r={}:p&&(r=s(r)),u(r[h])||f(r,h,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},function(e,n,t){var r=t(1),o=t(12),i=t(18),a=t(76).indexOf,u=t(39),c=r([].push);e.exports=function(e,n){var t,r=i(e),s=0,d=[];for(t in r)!o(u,t)&&o(r,t)&&c(d,t);for(;n.length>s;)o(r,t=n[s++])&&(~a(d,t)||c(d,t));return d}},function(e,n,t){var r=t(18),o=t(77),i=t(22),a=function(e){return function(n,t,a){var u,c=r(n),s=i(c),d=o(a,s);if(e&&t!=t){for(;s>d;)if((u=c[d++])!=u)return!0}else for(;s>d;d++)if((e||d in c)&&c[d]===t)return e||d||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,n,t){var r=t(55),o=Math.max,i=Math.min;e.exports=function(e,n){var t=r(e);return t<0?o(t+n,0):i(t,n)}},function(e,n,t){var r=t(55),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,n,t){var r=t(6),o=t(1),i=t(39),a=t(10),u=t(12),c=t(14).f,s=t(80),d=t(126),f=t(128),l=t(49),p=t(130),h=!1,v=l("meta"),y=0,m=function(e){c(e,v,{value:{objectID:"O"+y++,weakData:{}}})},w=e.exports={enable:function(){w.enable=function(){},h=!0;var e=s.f,n=o([].splice),t={};t[v]=1,e(t).length&&(s.f=function(t){for(var r=e(t),o=0,i=r.length;o<i;o++)if(r[o]===v){n(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:d.f}))},fastKey:function(e,n){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!u(e,v)){if(!f(e))return"F";if(!n)return"E";m(e)}return e[v].objectID},getWeakData:function(e,n){if(!u(e,v)){if(!f(e))return!0;if(!n)return!1;m(e)}return e[v].weakData},onFreeze:function(e){return p&&h&&f(e)&&!u(e,v)&&m(e),e}};i[v]=!0},function(e,n,t){var r=t(75),o=t(56).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,n,t){"use strict";var r=t(44),o=t(14),i=t(38);e.exports=function(e,n,t){var a=r(n);a in e?o.f(e,a,i(0,t)):e[a]=t}},function(e,n,t){var r=t(25),o=t(11),i=t(15),a=t(47),u=t(83),c=t(22),s=t(45),d=t(84),f=t(62),l=t(85),p=TypeError,h=function(e,n){this.stopped=e,this.result=n},v=h.prototype;e.exports=function(e,n,t){var y,m,w,g,E,_,b,S=!(!t||!t.AS_ENTRIES),N=!(!t||!t.IS_RECORD),T=!(!t||!t.IS_ITERATOR),A=!(!t||!t.INTERRUPTED),P=r(n,t&&t.that),x=function(e){return y&&l(y,"normal",e),new h(!0,e)},R=function(e){return S?(i(e),A?P(e[0],e[1],x):P(e[0],e[1])):A?P(e,x):P(e)};if(N)y=e.iterator;else if(T)y=e;else{if(!(m=f(e)))throw p(a(e)+" is not iterable");if(u(m)){for(w=0,g=c(e);g>w;w++)if((E=R(e[w]))&&s(v,E))return E;return new h(!1)}y=d(e,m)}for(_=N?e.next:y.next;!(b=o(_,y)).done;){try{E=R(b.value)}catch(e){l(y,"throw",e)}if("object"==typeof E&&E&&s(v,E))return E}return new h(!1)}},function(e,n,t){var r=t(3),o=t(24),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},function(e,n,t){var r=t(11),o=t(29),i=t(15),a=t(47),u=t(62),c=TypeError;e.exports=function(e,n){var t=arguments.length<2?u(e):n;if(o(t))return i(r(t,e));throw c(a(e)+" is not iterable")}},function(e,n,t){var r=t(11),o=t(15),i=t(46);e.exports=function(e,n,t){var a,u;o(e);try{if(!(a=i(e,"return"))){if("throw"===n)throw t;return t}a=r(a,e)}catch(e){u=!0,a=e}if("throw"===n)throw t;if(u)throw a;return o(a),t}},function(e,n,t){var r=t(45),o=TypeError;e.exports=function(e,n){if(r(n,e))return e;throw o("Incorrect invocation")}},function(e,n,t){var r=t(25),o=t(1),i=t(43),a=t(21),u=t(22),c=t(88),s=o([].push),d=function(e){var n=1==e,t=2==e,o=3==e,d=4==e,f=6==e,l=7==e,p=5==e||f;return function(h,v,y,m){for(var w,g,E=a(h),_=i(E),b=r(v,y),S=u(_),N=0,T=m||c,A=n?T(h,S):t||l?T(h,0):void 0;S>N;N++)if((p||N in _)&&(g=b(w=_[N],N,E),e))if(n)A[N]=g;else if(g)switch(e){case 3:return!0;case 5:return w;case 6:return N;case 2:s(A,w)}else switch(e){case 4:return!1;case 7:s(A,w)}return f?-1:o||d?d:A}};e.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6),filterReject:d(7)}},function(e,n,t){var r=t(131);e.exports=function(e,n){return new(r(e))(0===n?0:n)}},function(e,n,t){var r=t(19);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,n,t){var r=t(1),o=t(0),i=t(2),a=t(31),u=t(28),c=t(132),s=function(){},d=[],f=u("Reflect","construct"),l=/^\s*(?:class|function)\b/,p=r(l.exec),h=!l.exec(s),v=function(e){if(!i(e))return!1;try{return f(s,d,e),!0}catch(e){return!1}},y=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(l,c(e))}catch(e){return!0}};y.sham=!0,e.exports=!f||o((function(){var e;return v(v.call)||!v(Object)||!v((function(){e=!0}))||e}))?y:v},function(e,n,t){var r=t(14);e.exports=function(e,n,t){return r.f(e,n,t)}},function(e,n,t){"use strict";var r=t(137).charAt,o=t(41),i=t(37),a=t(51),u=t(61),c=i.set,s=i.getterFor("String Iterator");a(String,"String",(function(e){c(this,{type:"String Iterator",string:o(e),index:0})}),(function(){var e,n=s(this),t=n.string,o=n.index;return o>=t.length?u(void 0,!0):(e=r(t,o),n.index+=e.length,u(e,!1))}))},function(e,n,t){var r=t(150),o=TypeError;e.exports=function(e){if(r(e))throw o("The method doesn't accept regular expressions");return e}},function(e,n,t){var r=t(3)("match");e.exports=function(e){var n=/./;try{"/./"[e](n)}catch(t){try{return n[r]=!1,"/./"[e](n)}catch(e){}}return!1}},function(e,n,t){var r=t(104);t(138),e.exports=r},function(e,n,t){var r=t(163);e.exports=r},function(e,n,t){var r=t(168);e.exports=r},function(e,n,t){e.exports=t(170)},function(e,n){e.exports=function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return{}.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}([function(e,n,t){"use strict";function r(e,n){for(var t=[],r=0;r<e.length;r++){var o=e[r].render(n);if(o)if(Array.isArray(o))for(var i=0;i<o.length;i++){var a=o[i];a&&t.push(a)}else t.push(o)}return t}t.r(n),t.d(n,"Spinner",(function(){return E})),t.d(n,"SpinnerPage",(function(){return _})),t.d(n,"VenmoSpinner",(function(){return b})),t.d(n,"VenmoSpinnerPage",(function(){return S}));var o=function(){function e(e,n,t){this.type="element",this.name=void 0,this.props=void 0,this.children=void 0,this.onRender=void 0,this.name=e,this.props=n||{},this.children=t;var r=this.props.onRender;"function"==typeof r&&(this.onRender=r,delete n.onRender)}var n=e.prototype;return n.render=function(e){var n=e(this);return this.onRender&&this.onRender(n),n},n.renderChildren=function(e){return r(this.children,e)},e}(),i=function(){function e(e){this.type="fragment",this.children=void 0,this.children=e}return e.prototype.render=function(e){return r(this.children,e)},e}(),a=function(){function e(e){this.type="text",this.text=void 0,this.text=e}return e.prototype.render=function(e){return e(this)},e}(),u=function(){function e(e,n,t){this.type="component",this.component=void 0,this.props=void 0,this.children=void 0,this.component=e,this.props=n||{},this.children=t,this.props.children=t}var n=e.prototype;return n.renderComponent=function(e){var n=function(e){var n=c(Array.isArray(e)?e:[e]);return 1===n.length?n[0]:n.length>1?new i(n):void 0}(this.component(this.props,this.children));if(n)return n.render(e)},n.render=function(e){return e(this)},n.renderChildren=function(e){return r(this.children,e)},e}();function c(e){for(var n=[],t=0;t<e.length;t++){var r=e[t];if(r)if("string"==typeof r||"number"==typeof r)n.push(new a(r.toString()));else{if("boolean"==typeof r)continue;if(Array.isArray(r))for(var o=0,i=c(r);o<i.length;o++)n.push(i[o]);else{if(!r||"element"!==r.type&&"text"!==r.type&&"component"!==r.type)throw new TypeError("Unrecognized node type: "+typeof r);n.push(r)}}}return n}var s,d,f,l=function(e,n){for(var t=arguments.length,r=new Array(t>2?t-2:0),i=2;i<t;i++)r[i-2]=arguments[i];if(r=c(r),"string"==typeof e)return new o(e,n,r);if("function"==typeof e)return new u(e,n,r);throw new TypeError("Expected jsx element to be a string or a function")},p=function(e,n){return n},h=((s={}).svg="http://www.w3.org/2000/svg",s),v=((d={})["xlink:href"]="http://www.w3.org/1999/xlink",d);function y(e,n){return e.createTextNode(n.text)}function m(e,n){for(var t=n.props,r=0,o=Object.keys(t);r<o.length;r++){var i=o[r],a=t[i];if(null!=a&&"el"!==i&&"innerHTML"!==i)if(i.match(/^on[A-Z][a-z]/)&&"function"==typeof a)e.addEventListener(i.slice(2).toLowerCase(),a);else if("string"==typeof a||"number"==typeof a){var u=v[i];u?e.setAttributeNS(u,i,a.toString()):e.setAttribute(i,a.toString())}else"boolean"==typeof a&&!0===a&&e.setAttribute(i,"")}"iframe"!==e.tagName.toLowerCase()||t.id||e.setAttribute("id","jsx-iframe-"+"xxxxxxxxxx".replace(/./g,(function(){return"0123456789abcdef".charAt(Math.floor(Math.random()*"0123456789abcdef".length))})))}var w=((f={}).iframe=function(e,n){var t=n.children[0];if(1!==n.children.length||!t||"element"!==t.type||"html"!==t.name)throw new Error("Expected only single html element node as child of iframe element");e.addEventListener("load",(function(){var n=e.contentWindow;if(!n)throw new Error("Expected frame to have contentWindow");for(var r=n.document,o=r.documentElement;o.children&&o.children.length;)o.removeChild(o.children[0]);for(var i=t.render(function(e){void 0===e&&(e={});var n=e.doc,t=void 0===n?document:n,r=function(e,n){if("component"===e.type)return e.renderComponent((function(e){return r(e,n)}));if("text"===e.type)return y(t,e);if("element"===e.type){var o=function(e,n,t){return e.createElementNS(t,n.name)}(t,e,n);return m(o,e),g(o,e,t,(function(e){return r(e,n)})),o}throw new TypeError("Unhandleable node")},o=function(e){if("component"===e.type)return e.renderComponent(o);if("text"===e.type)return y(t,e);if("element"===e.type){var n=h[e.name.toLowerCase()];if(n)return r(e,n);var i=function(e,n){return n.props.el?n.props.el:e.createElement(n.name)}(t,e);return m(i,e),g(i,e,t,o),i}throw new TypeError("Unhandleable node")};return o}({doc:r}));i.children.length;)o.appendChild(i.children[0])}))},f.script=function(e,n){var t=n.children[0];if(1!==n.children.length||!t||"text"!==t.type)throw new Error("Expected only single text node as child of script element");e.text=t.text},f.default=function(e,n,t){for(var r=0,o=n.renderChildren(t);r<o.length;r++)e.appendChild(o[r])},f);function g(e,n,t,r){if(n.props.hasOwnProperty("innerHTML")){if(n.children.length)throw new Error("Expected no children to be passed when innerHTML prop is set");var o=n.props.innerHTML;if("string"!=typeof o)throw new TypeError("innerHTML prop must be string");"script"===n.name?e.text=o:(e.innerHTML=o,function(e,n){void 0===n&&(n=window.document);for(var t=0,r=e.querySelectorAll("script");t<r.length;t++){var o=r[t],i=o.parentNode;if(i){var a=n.createElement("script");a.text=o.textContent,i.replaceChild(a,o)}}}(e,t))}else(w[n.name]||w.default)(e,n,r)}function E(e){return l("div",{class:"preloader spinner"},l("style",{nonce:e.nonce,innerHTML:"\n\n body {\n width: 100%;\n height: 100%;\n overflow: hidden;\n position: fixed;\n top: 0;\n left: 0;\n margin: 0;\n }\n\n .spinner {\n height: 100%;\n width: 100%;\n position: absolute;\n z-index: 10\n }\n\n .spinner .spinWrap {\n width: 200px;\n height: 100px;\n position: absolute;\n top: 50%;\n left: 50%;\n margin-left: -100px;\n margin-top: -50px\n }\n\n .spinner .loader,\n .spinner .spinnerImage {\n height: 100px;\n width: 100px;\n position: absolute;\n top: 0;\n left: 50%;\n opacity: 1;\n filter: alpha(opacity=100)\n }\n\n .spinner .spinnerImage {\n margin: 28px 0 0 -25px;\n background: url(https://www.paypalobjects.com/images/checkout/hermes/icon_ot_spin_lock_skinny.png) no-repeat\n }\n\n .spinner .loader {\n margin: 0 0 0 -55px;\n background-color: transparent;\n animation: rotation .7s infinite linear;\n border-left: 5px solid #cbcbca;\n border-right: 5px solid #cbcbca;\n border-bottom: 5px solid #cbcbca;\n border-top: 5px solid #2380be;\n border-radius: 100%\n }\n\n @keyframes rotation {\n from {\n transform: rotate(0deg)\n }\n to {\n transform: rotate(359deg)\n }\n }\n"}),l("div",{class:"spinWrap"},l("p",{class:"spinnerImage"}),l("p",{class:"loader"})))}function _(e,n){var t=e.nonce;return l("html",null,l("head",null,l("title",null,"PayPal"),l("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})),l("body",null,l(E,{nonce:t}),n))}function b(e){return l(p,null,l("style",{nonce:e.nonce,innerHTML:'\n body {\n width: 100%;\n height: 100%;\n overflow: hidden;\n position: fixed;\n top: 0;\n left: 0;\n margin: 0;\n }\n .spinner {\n color: official;\n display: inline-block;\n width: 80px;\n height: 80px;\n position: absolute;\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n }\n .spinner div {\n transform-origin: 40px 40px;\n animation: spinner 1.2s linear infinite;\n }\n .spinner div:after {\n content: " ";\n display: block;\n position: absolute;\n top: 20px;\n left: 37px;\n width: 3px;\n height: 10px;\n border-radius: 30%;\n background: #808080;\n }\n .spinner div:nth-child(1) {\n transform: rotate(0deg);\n animation-delay: -1.1s;\n }\n .spinner div:nth-child(2) {\n transform: rotate(30deg);\n animation-delay: -1s;\n }\n .spinner div:nth-child(3) {\n transform: rotate(60deg);\n animation-delay: -0.9s;\n }\n .spinner div:nth-child(4) {\n transform: rotate(90deg);\n animation-delay: -0.8s;\n }\n .spinner div:nth-child(5) {\n transform: rotate(120deg);\n animation-delay: -0.7s;\n }\n .spinner div:nth-child(6) {\n transform: rotate(150deg);\n animation-delay: -0.6s;\n }\n .spinner div:nth-child(7) {\n transform: rotate(180deg);\n animation-delay: -0.5s;\n }\n .spinner div:nth-child(8) {\n transform: rotate(210deg);\n animation-delay: -0.4s;\n }\n .spinner div:nth-child(9) {\n transform: rotate(240deg);\n animation-delay: -0.3s;\n }\n .spinner div:nth-child(10) {\n transform: rotate(270deg);\n animation-delay: -0.2s;\n }\n .spinner div:nth-child(11) {\n transform: rotate(300deg);\n animation-delay: -0.1s;\n }\n .spinner div:nth-child(12) {\n transform: rotate(330deg);\n animation-delay: 0s;\n }\n @keyframes spinner {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n'}),l("div",{class:"spinner"},l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null)))}function S(e,n){var t=e.nonce;return l("html",null,l("head",null,l("title",null,"Venmo"),l("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})),l("body",null,l(b,{nonce:t}),n))}}])},,,,,function(e,n,t){t(64),t(123),t(136),t(92);var r=t(16);e.exports=r.Map},function(e,n,t){var r=t(7),o=t(2),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},function(e,n,t){var r=t(11),o=t(10),i=t(69),a=t(46),u=t(109),c=t(3),s=TypeError,d=c("toPrimitive");e.exports=function(e,n){if(!o(e)||i(e))return e;var t,c=a(e,d);if(c){if(void 0===n&&(n="default"),t=r(c,e,n),!o(t)||i(t))return t;throw s("Can't convert object to primitive value")}return void 0===n&&(n="number"),u(e,n)}},function(e,n,t){var r,o,i=t(7),a=t(108),u=i.process,c=i.Deno,s=u&&u.versions||c&&c.version,d=s&&s.v8;d&&(o=(r=d.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},function(e,n){e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(e,n,t){var r=t(11),o=t(2),i=t(10),a=TypeError;e.exports=function(e,n){var t,u;if("string"===n&&o(t=e.toString)&&!i(u=r(t,e)))return u;if(o(t=e.valueOf)&&!i(u=r(t,e)))return u;if("string"!==n&&o(t=e.toString)&&!i(u=r(t,e)))return u;throw a("Can't convert object to primitive value")}},function(e,n,t){var r=t(7),o=Object.defineProperty;e.exports=function(e,n){try{o(r,e,{value:n,configurable:!0,writable:!0})}catch(t){r[e]=n}return n}},function(e,n,t){var r=t(34),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},function(e,n,t){var r=t(0),o=t(2),i=/#|\.prototype\./,a=function(e,n){var t=c[u(e)];return t==d||t!=s&&(o(n)?r(n):!!n)},u=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},s=a.NATIVE="N",d=a.POLYFILL="P";e.exports=a},function(e,n,t){var r=t(5),o=t(12),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,u=o(i,"name"),c=u&&"something"===function(){}.name,s=u&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:u,PROPER:c,CONFIGURABLE:s}},function(e,n,t){"use strict";var r=t(74).IteratorPrototype,o=t(54),i=t(38),a=t(59),u=t(24),c=function(){return this};e.exports=function(e,n,t,s){var d=n+" Iterator";return e.prototype=o(r,{next:i(+!s,t)}),a(e,d,!1,!0),u[d]=c,e}},function(e,n,t){var r=t(5),o=t(68),i=t(14),a=t(15),u=t(18),c=t(40);n.f=r&&!o?Object.defineProperties:function(e,n){a(e);for(var t,r=u(n),o=c(n),s=o.length,d=0;s>d;)i.f(e,t=o[d++],r[t]);return e}},function(e,n){var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},function(e,n,t){var r=t(28);e.exports=r("document","documentElement")},function(e,n,t){var r=t(0);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,n,t){"use strict";var r=t(60),o=t(31);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,n,t){var r=t(121),o=t(15),i=t(122);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,n=!1,t={};try{(e=r(Object.prototype,"__proto__","set"))(t,[]),n=t instanceof Array}catch(e){}return function(t,r){return o(t),i(r),n?e(t,r):t.__proto__=r,t}}():void 0)},function(e,n,t){var r=t(1),o=t(29);e.exports=function(e,n,t){try{return r(o(Object.getOwnPropertyDescriptor(e,n)[t]))}catch(e){}}},function(e,n,t){var r=t(2),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},function(e,n,t){t(124)},function(e,n,t){"use strict";t(125)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),t(133))},function(e,n,t){"use strict";var r=t(6),o=t(7),i=t(79),a=t(0),u=t(20),c=t(82),s=t(86),d=t(2),f=t(10),l=t(59),p=t(14).f,h=t(87).forEach,v=t(5),y=t(37),m=y.set,w=y.getterFor;e.exports=function(e,n,t){var y,g=-1!==e.indexOf("Map"),E=-1!==e.indexOf("Weak"),_=g?"set":"add",b=o[e],S=b&&b.prototype,N={};if(v&&d(b)&&(E||S.forEach&&!a((function(){(new b).entries().next()})))){var T=(y=n((function(n,t){m(s(n,T),{type:e,collection:new b}),null!=t&&c(t,n[_],{that:n,AS_ENTRIES:g})}))).prototype,A=w(e);h(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var n="add"==e||"set"==e;!(e in S)||E&&"clear"==e||u(T,e,(function(t,r){var o=A(this).collection;if(!n&&E&&!f(t))return"get"==e&&void 0;var i=o[e](0===t?0:t,r);return n?this:i}))})),E||p(T,"size",{configurable:!0,get:function(){return A(this).collection.size}})}else y=t.getConstructor(n,e,g,_),i.enable();return l(y,e,!1,!0),N[e]=y,r({global:!0,forced:!0},N),E||t.setStrong(y,e,g),y}},function(e,n,t){var r=t(19),o=t(18),i=t(80).f,a=t(127),u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return u&&"Window"==r(e)?function(e){try{return i(e)}catch(e){return a(u)}}(e):i(o(e))}},function(e,n,t){var r=t(77),o=t(22),i=t(81),a=Array,u=Math.max;e.exports=function(e,n,t){for(var c=o(e),s=r(n,c),d=r(void 0===t?c:t,c),f=a(u(d-s,0)),l=0;s<d;s++,l++)i(f,l,e[s]);return f.length=l,f}},function(e,n,t){var r=t(0),o=t(10),i=t(19),a=t(129),u=Object.isExtensible,c=r((function(){u(1)}));e.exports=c||a?function(e){return!!o(e)&&(!a||"ArrayBuffer"!=i(e))&&(!u||u(e))}:u},function(e,n,t){var r=t(0);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},function(e,n,t){var r=t(0);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,n,t){var r=t(89),o=t(90),i=t(10),a=t(3)("species"),u=Array;e.exports=function(e){var n;return r(e)&&(o(n=e.constructor)&&(n===u||r(n.prototype))||i(n)&&null===(n=n[a]))&&(n=void 0),void 0===n?u:n}},function(e,n,t){var r=t(1),o=t(2),i=t(48),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},function(e,n,t){"use strict";var r=t(54),o=t(91),i=t(134),a=t(25),u=t(86),c=t(35),s=t(82),d=t(51),f=t(61),l=t(135),p=t(5),h=t(79).fastKey,v=t(37),y=v.set,m=v.getterFor;e.exports={getConstructor:function(e,n,t,d){var f=e((function(e,o){u(e,l),y(e,{type:n,index:r(null),first:void 0,last:void 0,size:0}),p||(e.size=0),c(o)||s(o,e[d],{that:e,AS_ENTRIES:t})})),l=f.prototype,v=m(n),w=function(e,n,t){var r,o,i=v(e),a=g(e,n);return a?a.value=t:(i.last=a={index:o=h(n,!0),key:n,value:t,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),p?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},g=function(e,n){var t,r=v(e),o=h(n);if("F"!==o)return r.index[o];for(t=r.first;t;t=t.next)if(t.key==n)return t};return i(l,{clear:function(){for(var e=v(this),n=e.index,t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),delete n[t.index],t=t.next;e.first=e.last=void 0,p?e.size=0:this.size=0},delete:function(e){var n=v(this),t=g(this,e);if(t){var r=t.next,o=t.previous;delete n.index[t.index],t.removed=!0,o&&(o.next=r),r&&(r.previous=o),n.first==t&&(n.first=r),n.last==t&&(n.last=o),p?n.size--:this.size--}return!!t},forEach:function(e){for(var n,t=v(this),r=a(e,arguments.length>1?arguments[1]:void 0);n=n?n.next:t.first;)for(r(n.value,n.key,this);n&&n.removed;)n=n.previous},has:function(e){return!!g(this,e)}}),i(l,t?{get:function(e){var n=g(this,e);return n&&n.value},set:function(e,n){return w(this,0===e?0:e,n)}}:{add:function(e){return w(this,e=0===e?0:e,e)}}),p&&o(l,"size",{configurable:!0,get:function(){return v(this).size}}),f},setStrong:function(e,n,t){var r=n+" Iterator",o=m(n),i=m(r);d(e,n,(function(e,n){y(this,{type:r,target:e,state:o(e),kind:n,last:void 0})}),(function(){for(var e=i(this),n=e.kind,t=e.last;t&&t.removed;)t=t.previous;return e.target&&(e.last=t=t?t.next:e.state.first)?f("keys"==n?t.key:"values"==n?t.value:[t.key,t.value],!1):(e.target=void 0,f(void 0,!0))}),t?"entries":"values",!t,!0),l(n)}}},function(e,n,t){var r=t(58);e.exports=function(e,n,t){for(var o in n)t&&t.unsafe&&e[o]?e[o]=n[o]:r(e,o,n[o],t);return e}},function(e,n,t){"use strict";var r=t(28),o=t(91),i=t(3),a=t(5),u=i("species");e.exports=function(e){var n=r(e);a&&n&&!n[u]&&o(n,u,{configurable:!0,get:function(){return this}})}},function(e,n){},function(e,n,t){var r=t(1),o=t(55),i=t(41),a=t(27),u=r("".charAt),c=r("".charCodeAt),s=r("".slice),d=function(e){return function(n,t){var r,d,f=i(a(n)),l=o(t),p=f.length;return l<0||l>=p?e?"":void 0:(r=c(f,l))<55296||r>56319||l+1===p||(d=c(f,l+1))<56320||d>57343?e?u(f,l):r:e?s(f,l,l+2):d-56320+(r-55296<<10)+65536}};e.exports={codeAt:d(!1),charAt:d(!0)}},function(e,n,t){t(64);var r=t(139),o=t(7),i=t(31),a=t(20),u=t(24),c=t(3)("toStringTag");for(var s in r){var d=o[s],f=d&&d.prototype;f&&i(f)!==c&&a(f,c,s),u[s]=u.Array}},function(e,n){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,n,t){t(141);var r=t(16);e.exports=r.Object.assign},function(e,n,t){var r=t(6),o=t(142);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},function(e,n,t){"use strict";var r=t(5),o=t(1),i=t(11),a=t(0),u=t(40),c=t(143),s=t(53),d=t(21),f=t(43),l=Object.assign,p=Object.defineProperty,h=o([].concat);e.exports=!l||a((function(){if(r&&1!==l({b:1},l(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},n={},t=Symbol();return e[t]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),7!=l({},e)[t]||"abcdefghijklmnopqrst"!=u(l({},n)).join("")}))?function(e,n){for(var t=d(e),o=arguments.length,a=1,l=c.f,p=s.f;o>a;)for(var v,y=f(arguments[a++]),m=l?h(u(y),l(y)):u(y),w=m.length,g=0;w>g;)v=m[g++],r&&!i(p,y,v)||(t[v]=y[v]);return t}:l},function(e,n){n.f=Object.getOwnPropertySymbols},function(e,n,t){t(145);var r=t(32);e.exports=r("Array","find")},function(e,n,t){"use strict";var r=t(6),o=t(87).find,i=t(36),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},function(e,n,t){t(147);var r=t(32);e.exports=r("Array","includes")},function(e,n,t){"use strict";var r=t(6),o=t(76).includes,i=t(0),a=t(36);r({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},function(e,n,t){t(149);var r=t(32);e.exports=r("String","includes")},function(e,n,t){"use strict";var r=t(6),o=t(1),i=t(93),a=t(27),u=t(41),c=t(94),s=o("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~s(u(a(this)),u(i(e)),arguments.length>1?arguments[1]:void 0)}})},function(e,n,t){var r=t(10),o=t(19),i=t(3)("match");e.exports=function(e){var n;return r(e)&&(void 0!==(n=e[i])?!!n:"RegExp"==o(e))}},function(e,n,t){t(152);var r=t(16);e.exports=r.Object.entries},function(e,n,t){var r=t(6),o=t(153).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},function(e,n,t){var r=t(5),o=t(0),i=t(1),a=t(57),u=t(40),c=t(18),s=i(t(53).f),d=i([].push),f=r&&o((function(){var e=Object.create(null);return e[2]=2,!s(e,2)})),l=function(e){return function(n){for(var t,o=c(n),i=u(o),l=f&&null===a(o),p=i.length,h=0,v=[];p>h;)t=i[h++],r&&!(l?t in o:s(o,t))||d(v,e?[t,o[t]]:o[t]);return v}};e.exports={entries:l(!0),values:l(!1)}},function(e,n,t){t(155);var r=t(16);e.exports=r.Object.keys},function(e,n,t){var r=t(6),o=t(21),i=t(40);r({target:"Object",stat:!0,forced:t(0)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},function(e,n,t){t(157);var r=t(32);e.exports=r("String","startsWith")},function(e,n,t){"use strict";var r,o=t(6),i=t(52),a=t(73).f,u=t(78),c=t(41),s=t(93),d=t(27),f=t(94),l=t(30),p=i("".startsWith),h=i("".slice),v=Math.min,y=f("startsWith");o({target:"String",proto:!0,forced:!(!l&&!y&&(r=a(String.prototype,"startsWith"),r&&!r.writable)||y)},{startsWith:function(e){var n=c(d(this));s(e);var t=u(v(arguments.length>1?arguments[1]:void 0,n.length)),r=c(e);return p?p(n,r,t):h(n,t,t+r.length)===r}})},function(e,n,t){t(92),t(159);var r=t(16);e.exports=r.Array.from},function(e,n,t){var r=t(6),o=t(160);r({target:"Array",stat:!0,forced:!t(162)((function(e){Array.from(e)}))},{from:o})},function(e,n,t){"use strict";var r=t(25),o=t(11),i=t(21),a=t(161),u=t(83),c=t(90),s=t(22),d=t(81),f=t(84),l=t(62),p=Array;e.exports=function(e){var n=i(e),t=c(this),h=arguments.length,v=h>1?arguments[1]:void 0,y=void 0!==v;y&&(v=r(v,h>2?arguments[2]:void 0));var m,w,g,E,_,b,S=l(n),N=0;if(!S||this===p&&u(S))for(m=s(n),w=t?new this(m):p(m);m>N;N++)b=y?v(n[N],N):n[N],d(w,N,b);else for(_=(E=f(n,S)).next,w=t?new this:[];!(g=o(_,E)).done;N++)b=y?a(E,v,[g.value,N],!0):g.value,d(w,N,b);return w.length=N,w}},function(e,n,t){var r=t(15),o=t(85);e.exports=function(e,n,t,i){try{return i?n(r(t)[0],t[1]):n(t)}catch(n){o(e,"throw",n)}}},function(e,n,t){var r=t(3)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,n){if(!n&&!o)return!1;var t=!1;try{var i={};i[r]=function(){return{next:function(){return{done:t=!0}}}},e(i)}catch(e){}return t}},function(e,n,t){t(164),t(167);var r=t(32);e.exports=r("Array","flatMap")},function(e,n,t){"use strict";var r=t(6),o=t(165),i=t(29),a=t(21),u=t(22),c=t(88);r({target:"Array",proto:!0},{flatMap:function(e){var n,t=a(this),r=u(t);return i(e),(n=c(t,0)).length=o(n,t,t,r,0,1,e,arguments.length>1?arguments[1]:void 0),n}})},function(e,n,t){"use strict";var r=t(89),o=t(22),i=t(166),a=t(25),u=function(e,n,t,c,s,d,f,l){for(var p,h,v=s,y=0,m=!!f&&a(f,l);y<c;)y in t&&(p=m?m(t[y],y,n):t[y],d>0&&r(p)?(h=o(p),v=u(e,n,p,h,v,d-1)-1):(i(v+1),e[v]=p),v++),y++;return v};e.exports=u},function(e,n){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},function(e,n,t){t(36)("flatMap")},function(e,n,t){t(169);var r=t(16);e.exports=r.Number.isNaN},function(e,n,t){t(6)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,n,t){"undefined"!=typeof self&&self,e.exports=function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return{}.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}([function(e,n,t){"use strict";t.r(n),t.d(n,"APM_LIST",(function(){return c})),t.d(n,"DEFAULT_COUNTRY",(function(){return R})),t.d(n,"DEFAULT_CURRENCY",(function(){return O})),t.d(n,"DEFAULT_INTENT",(function(){return I})),t.d(n,"DEFAULT_COMMIT",(function(){return C})),t.d(n,"DEFAULT_SALE_COMMIT",(function(){return D})),t.d(n,"DEFAULT_NONSALE_COMMIT",(function(){return M})),t.d(n,"DEFAULT_VAULT",(function(){return L})),t.d(n,"DEFAULT_COMPONENTS",(function(){return F})),t.d(n,"DEFAULT_DEBUG",(function(){return k})),t.d(n,"ENV",(function(){return H})),t.d(n,"MOBILE_ENV",(function(){return j})),t.d(n,"ERROR_CODE",(function(){return B})),t.d(n,"FPTI_KEY",(function(){return U})),t.d(n,"FPTI_USER_ACTION",(function(){return W})),t.d(n,"FPTI_DATA_SOURCE",(function(){return G})),t.d(n,"FPTI_FEED",(function(){return q})),t.d(n,"FPTI_SDK_NAME",(function(){return Z})),t.d(n,"FUNDING",(function(){return r})),t.d(n,"FUNDING_BRAND_LABEL",(function(){return o})),t.d(n,"CARD",(function(){return i})),t.d(n,"WALLET_INSTRUMENT",(function(){return a})),t.d(n,"FUNDING_PRODUCTS",(function(){return u})),t.d(n,"COUNTRY",(function(){return s})),t.d(n,"LANG",(function(){return d})),t.d(n,"COUNTRY_LANGS",(function(){return f})),t.d(n,"BASE_SDK_METRIC_NAMESPACE",(function(){return z})),t.d(n,"payPalWebV5Dimensions",(function(){return K})),t.d(n,"INTENT",(function(){return l})),t.d(n,"COMMIT",(function(){return p})),t.d(n,"VAULT",(function(){return h})),t.d(n,"CURRENCY",(function(){return v})),t.d(n,"SDK_PATH",(function(){return y})),t.d(n,"WEB_SDK_BRIDGE_PATH",(function(){return m})),t.d(n,"SDK_SETTINGS",(function(){return w})),t.d(n,"SDK_DATA_ATTRIBUTES",(function(){return g})),t.d(n,"SDK_QUERY_KEYS",(function(){return E})),t.d(n,"COMPONENTS",(function(){return _})),t.d(n,"DEBUG",(function(){return b})),t.d(n,"QUERY_BOOL",(function(){return S})),t.d(n,"UNKNOWN",(function(){return N})),t.d(n,"PROTOCOL",(function(){return T})),t.d(n,"PAGE_TYPES",(function(){return A})),t.d(n,"MERCHANT_ID_MAX",(function(){return P})),t.d(n,"DISPLAY_ONLY_VALUES",(function(){return x})),t.d(n,"PLATFORM",(function(){return Y})),t.d(n,"TYPES",(function(){return V}));var r={PAYPAL:"paypal",VENMO:"venmo",APPLEPAY:"applepay",ITAU:"itau",CREDIT:"credit",PAYLATER:"paylater",CARD:"card",IDEAL:"ideal",SEPA:"sepa",BANCONTACT:"bancontact",GIROPAY:"giropay",SOFORT:"sofort",EPS:"eps",MYBANK:"mybank",P24:"p24",PAYU:"payu",BLIK:"blik",TRUSTLY:"trustly",OXXO:"oxxo",BOLETO:"boleto",BOLETOBANCARIO:"boletobancario",WECHATPAY:"wechatpay",MERCADOPAGO:"mercadopago",MULTIBANCO:"multibanco",SATISPAY:"satispay",PAIDY:"paidy",ZIMPLER:"zimpler",MAXIMA:"maxima"},o={PAYPAL:"PayPal",CREDIT:"PayPal Credit"},i={VISA:"visa",MASTERCARD:"mastercard",AMEX:"amex",DISCOVER:"discover",HIPER:"hiper",ELO:"elo",JCB:"jcb",CUP:"cup",DINERS:"diners",MAESTRO:"maestro",EFTPOS:"eftpos",CB_NATIONALE:"cb_nationale"},a={BALANCE:"balance",CARD:"card",BANK:"bank",CREDIT:"credit"},u={PAY_IN_3:"payIn3",PAY_IN_4:"payIn4",PAYLATER:"paylater",CREDIT:"credit"},c=[r.IDEAL,r.BANCONTACT,r.GIROPAY,r.SOFORT,r.EPS,r.MYBANK,r.P24,r.PAYU,r.BLIK,r.TRUSTLY,r.OXXO,r.BOLETO,r.BOLETOBANCARIO,r.WECHATPAY,r.MERCADOPAGO,r.MULTIBANCO,r.SATISPAY,r.PAIDY,r.MAXIMA,r.ZIMPLER],s={AD:"AD",AE:"AE",AG:"AG",AI:"AI",AL:"AL",AM:"AM",AN:"AN",AO:"AO",AR:"AR",AT:"AT",AU:"AU",AW:"AW",AZ:"AZ",BA:"BA",BB:"BB",BE:"BE",BF:"BF",BG:"BG",BH:"BH",BI:"BI",BJ:"BJ",BM:"BM",BN:"BN",BO:"BO",BR:"BR",BS:"BS",BT:"BT",BW:"BW",BY:"BY",BZ:"BZ",CA:"CA",CD:"CD",CG:"CG",CH:"CH",CI:"CI",CK:"CK",CL:"CL",CM:"CM",CN:"CN",CO:"CO",CR:"CR",CV:"CV",CY:"CY",CZ:"CZ",DE:"DE",DJ:"DJ",DK:"DK",DM:"DM",DO:"DO",DZ:"DZ",EC:"EC",EE:"EE",EG:"EG",ER:"ER",ES:"ES",ET:"ET",FI:"FI",FJ:"FJ",FK:"FK",FM:"FM",FO:"FO",FR:"FR",GA:"GA",GB:"GB",GD:"GD",GE:"GE",GF:"GF",GI:"GI",GL:"GL",GM:"GM",GN:"GN",GP:"GP",GR:"GR",GT:"GT",GW:"GW",GY:"GY",HK:"HK",HN:"HN",HR:"HR",HU:"HU",ID:"ID",IE:"IE",IL:"IL",IN:"IN",IS:"IS",IT:"IT",JM:"JM",JO:"JO",JP:"JP",KE:"KE",KG:"KG",KH:"KH",KI:"KI",KM:"KM",KN:"KN",KR:"KR",KW:"KW",KY:"KY",KZ:"KZ",LA:"LA",LC:"LC",LI:"LI",LK:"LK",LS:"LS",LT:"LT",LU:"LU",LV:"LV",MA:"MA",MC:"MC",MD:"MD",ME:"ME",MG:"MG",MH:"MH",MK:"MK",ML:"ML",MN:"MN",MQ:"MQ",MR:"MR",MS:"MS",MT:"MT",MU:"MU",MV:"MV",MW:"MW",MX:"MX",MY:"MY",MZ:"MZ",NA:"NA",NC:"NC",NE:"NE",NF:"NF",NG:"NG",NI:"NI",NL:"NL",NO:"NO",NP:"NP",NR:"NR",NU:"NU",NZ:"NZ",OM:"OM",PA:"PA",PE:"PE",PF:"PF",PG:"PG",PH:"PH",PL:"PL",PM:"PM",PN:"PN",PT:"PT",PW:"PW",PY:"PY",QA:"QA",RE:"RE",RO:"RO",RS:"RS",RU:"RU",RW:"RW",SA:"SA",SB:"SB",SC:"SC",SE:"SE",SG:"SG",SH:"SH",SI:"SI",SJ:"SJ",SK:"SK",SL:"SL",SM:"SM",SN:"SN",SO:"SO",SR:"SR",ST:"ST",SV:"SV",SZ:"SZ",TC:"TC",TD:"TD",TG:"TG",TH:"TH",TJ:"TJ",TM:"TM",TN:"TN",TO:"TO",TR:"TR",TT:"TT",TV:"TV",TW:"TW",TZ:"TZ",UA:"UA",UG:"UG",US:"US",UY:"UY",VA:"VA",VC:"VC",VE:"VE",VG:"VG",VN:"VN",VU:"VU",WF:"WF",WS:"WS",YE:"YE",YT:"YT",ZA:"ZA",ZM:"ZM",ZW:"ZW"},d={AR:"ar",BG:"bg",CS:"cs",DA:"da",DE:"de",EL:"el",EN:"en",ES:"es",ET:"et",FI:"fi",FR:"fr",HE:"he",HU:"hu",ID:"id",IT:"it",JA:"ja",KO:"ko",LT:"lt",LV:"lv",MS:"ms",NL:"nl",NO:"no",PL:"pl",PT:"pt",RO:"ro",RU:"ru",SI:"si",SK:"sk",SL:"sl",SQ:"sq",SV:"sv",TH:"th",TL:"tl",TR:"tr",VI:"vi",ZH:"zh",ZH_HANT:"zh_Hant"},f={AD:[d.EN,d.FR,d.ES,d.ZH],AE:[d.EN,d.FR,d.ES,d.ZH,d.AR],AG:[d.EN,d.FR,d.ES,d.ZH],AI:[d.EN,d.FR,d.ES,d.ZH],AL:[d.SQ,d.EN],AM:[d.EN,d.FR,d.ES,d.ZH],AN:[d.EN,d.FR,d.ES,d.ZH],AO:[d.EN,d.FR,d.ES,d.ZH],AR:[d.ES,d.EN],AT:[d.DE,d.EN],AU:[d.EN],AW:[d.EN,d.FR,d.ES,d.ZH],AZ:[d.EN,d.FR,d.ES,d.ZH],BA:[d.EN],BB:[d.EN,d.FR,d.ES,d.ZH],BE:[d.EN,d.NL,d.FR],BF:[d.FR,d.EN,d.ES,d.ZH],BG:[d.BG,d.EN],BH:[d.AR,d.EN,d.FR,d.ES,d.ZH],BI:[d.FR,d.EN,d.ES,d.ZH],BJ:[d.FR,d.EN,d.ES,d.ZH],BM:[d.EN,d.FR,d.ES,d.ZH],BN:[d.MS,d.EN],BO:[d.ES,d.EN,d.FR,d.ZH],BR:[d.PT,d.EN],BS:[d.EN,d.FR,d.ES,d.ZH],BT:[d.EN],BW:[d.EN,d.FR,d.ES,d.ZH],BY:[d.EN],BZ:[d.EN,d.ES,d.FR,d.ZH],CA:[d.EN,d.FR],CD:[d.FR,d.EN,d.ES,d.ZH],CG:[d.EN,d.FR,d.ES,d.ZH],CH:[d.DE,d.FR,d.EN],CI:[d.FR,d.EN],CK:[d.EN,d.FR,d.ES,d.ZH],CL:[d.ES,d.EN,d.FR,d.ZH],CM:[d.FR,d.EN],CN:[d.ZH],CO:[d.ES,d.EN,d.FR,d.ZH],CR:[d.ES,d.EN,d.FR,d.ZH],CV:[d.EN,d.FR,d.ES,d.ZH],CY:[d.EN],CZ:[d.CS,d.EN],DE:[d.DE,d.EN],DJ:[d.FR,d.EN,d.ES,d.ZH],DK:[d.DA,d.EN],DM:[d.EN,d.FR,d.ES,d.ZH],DO:[d.ES,d.EN,d.FR,d.ZH],DZ:[d.AR,d.EN,d.FR,d.ES,d.ZH],EC:[d.ES,d.EN,d.FR,d.ZH],EE:[d.ET,d.EN,d.RU],EG:[d.AR,d.EN,d.FR,d.ES,d.ZH],ER:[d.EN,d.FR,d.ES,d.ZH],ES:[d.ES,d.EN],ET:[d.EN,d.FR,d.ES,d.ZH],FI:[d.FI,d.EN],FJ:[d.EN,d.FR,d.ES,d.ZH],FK:[d.EN,d.FR,d.ES,d.ZH],FM:[d.EN],FO:[d.DA,d.EN,d.FR,d.ES,d.ZH],FR:[d.FR,d.EN],GA:[d.FR,d.EN,d.ES,d.ZH],GB:[d.EN],GD:[d.EN,d.FR,d.ES,d.ZH],GE:[d.EN,d.FR,d.ES,d.ZH],GF:[d.EN,d.FR,d.ES,d.ZH],GI:[d.EN,d.FR,d.ES,d.ZH],GL:[d.DA,d.EN,d.FR,d.ES,d.ZH],GM:[d.EN,d.FR,d.ES,d.ZH],GN:[d.FR,d.EN,d.ES,d.ZH],GP:[d.EN,d.FR,d.ES,d.ZH],GR:[d.EL,d.EN],GT:[d.ES,d.EN,d.FR,d.ZH],GW:[d.EN,d.FR,d.ES,d.ZH],GY:[d.EN,d.FR,d.ES,d.ZH],HK:[d.EN,d.ZH_HANT,d.ZH],HN:[d.ES,d.EN,d.FR,d.ZH],HR:[d.EN],HU:[d.HU,d.EN],ID:[d.ID,d.EN],IE:[d.EN,d.FR,d.ES,d.ZH],IL:[d.HE,d.EN],IN:[d.EN],IS:[d.EN],IT:[d.IT,d.EN],JM:[d.EN,d.ES,d.FR,d.ZH],JO:[d.AR,d.EN,d.FR,d.ES,d.ZH],JP:[d.JA,d.EN],KE:[d.EN,d.FR,d.ES,d.ZH],KG:[d.EN,d.FR,d.ES,d.ZH],KH:[d.EN],KI:[d.EN,d.FR,d.ES,d.ZH],KM:[d.FR,d.EN,d.ES,d.ZH],KN:[d.EN,d.FR,d.ES,d.ZH],KR:[d.KO,d.EN],KW:[d.AR,d.EN,d.FR,d.ES,d.ZH],KY:[d.EN,d.FR,d.ES,d.ZH],KZ:[d.EN,d.FR,d.ES,d.ZH],LA:[d.EN],LC:[d.EN,d.FR,d.ES,d.ZH],LI:[d.EN,d.FR,d.ES,d.ZH],LK:[d.SI,d.EN],LS:[d.EN,d.FR,d.ES,d.ZH],LT:[d.LT,d.EN,d.RU,d.ZH],LU:[d.EN,d.DE,d.FR,d.ES,d.ZH],LV:[d.LV,d.EN,d.RU],MA:[d.AR,d.EN,d.FR,d.ES,d.ZH],MC:[d.FR,d.EN],MD:[d.EN],ME:[d.EN],MG:[d.EN,d.FR,d.ES,d.ZH],MH:[d.EN,d.FR,d.ES,d.ZH],MK:[d.EN],ML:[d.FR,d.EN,d.ES,d.ZH],MN:[d.EN],MQ:[d.EN,d.FR,d.ES,d.ZH],MR:[d.EN,d.FR,d.ES,d.ZH],MS:[d.EN,d.FR,d.ES,d.ZH],MT:[d.EN],MU:[d.EN,d.FR,d.ES,d.ZH],MV:[d.EN],MW:[d.EN,d.FR,d.ES,d.ZH],MX:[d.ES,d.EN],MY:[d.MS,d.EN],MZ:[d.EN,d.FR,d.ES,d.ZH],NA:[d.EN,d.FR,d.ES,d.ZH],NC:[d.EN,d.FR,d.ES,d.ZH],NE:[d.FR,d.EN,d.ES,d.ZH],NF:[d.EN,d.FR,d.ES,d.ZH],NG:[d.EN],NI:[d.ES,d.EN,d.FR,d.ZH],NL:[d.NL,d.EN],NO:[d.NO,d.EN],NP:[d.EN],NR:[d.EN,d.FR,d.ES,d.ZH],NU:[d.EN,d.FR,d.ES,d.ZH],NZ:[d.EN,d.FR,d.ES,d.ZH],OM:[d.AR,d.EN,d.FR,d.ES,d.ZH],PA:[d.ES,d.EN,d.FR,d.ZH],PE:[d.ES,d.EN,d.FR,d.ZH],PF:[d.EN,d.FR,d.ES,d.ZH],PG:[d.EN,d.FR,d.ES,d.ZH],PH:[d.TL,d.EN],PL:[d.PL,d.EN],PM:[d.EN,d.FR,d.ES,d.ZH],PN:[d.EN,d.FR,d.ES,d.ZH],PT:[d.PT,d.EN],PW:[d.EN,d.FR,d.ES,d.ZH],PY:[d.ES,d.EN],QA:[d.EN,d.FR,d.ES,d.ZH,d.AR],RE:[d.EN,d.FR,d.ES,d.ZH],RO:[d.RO,d.EN],RS:[d.EN,d.FR,d.ES,d.ZH],RU:[d.RU,d.EN],RW:[d.FR,d.EN,d.ES,d.ZH],SA:[d.AR,d.EN,d.FR,d.ES,d.ZH],SB:[d.EN,d.FR,d.ES,d.ZH],SC:[d.FR,d.EN,d.ES,d.ZH],SE:[d.SV,d.EN],SG:[d.EN],SH:[d.EN,d.FR,d.ES,d.ZH],SI:[d.SL,d.EN],SJ:[d.EN,d.FR,d.ES,d.ZH],SK:[d.SK,d.EN],SL:[d.EN,d.FR,d.ES,d.ZH],SM:[d.EN,d.FR,d.ES,d.ZH],SN:[d.FR,d.EN,d.ES,d.ZH],SO:[d.EN,d.FR,d.ES,d.ZH],SR:[d.EN,d.FR,d.ES,d.ZH],ST:[d.EN,d.FR,d.ES,d.ZH],SV:[d.ES,d.EN,d.FR,d.ZH],SZ:[d.EN,d.FR,d.ES,d.ZH],TC:[d.EN,d.FR,d.ES,d.ZH],TD:[d.FR,d.EN,d.ES,d.ZH],TG:[d.FR,d.EN,d.ES,d.ZH],TH:[d.TH,d.EN],TJ:[d.EN,d.FR,d.ES,d.ZH],TM:[d.EN,d.FR,d.ES,d.ZH],TN:[d.AR,d.EN,d.FR,d.ES,d.ZH],TO:[d.EN],TR:[d.TR,d.EN],TT:[d.EN,d.FR,d.ES,d.ZH],TV:[d.EN,d.FR,d.ES,d.ZH],TW:[d.ZH_HANT,d.ZH,d.EN],TZ:[d.EN,d.FR,d.ES,d.ZH],UA:[d.EN,d.RU,d.FR,d.ES,d.ZH],UG:[d.EN,d.FR,d.ES,d.ZH],US:[d.EN,d.FR,d.ES,d.ZH],UY:[d.ES,d.EN,d.FR,d.ZH],VA:[d.EN,d.FR,d.ES,d.ZH],VC:[d.EN,d.FR,d.ES,d.ZH],VE:[d.ES,d.EN,d.FR,d.ZH],VG:[d.EN,d.FR,d.ES,d.ZH],VN:[d.VI,d.EN],VU:[d.EN,d.FR,d.ES,d.ZH],WF:[d.EN,d.FR,d.ES,d.ZH],WS:[d.EN],YE:[d.AR,d.EN,d.FR,d.ES,d.ZH],YT:[d.EN,d.FR,d.ES,d.ZH],ZA:[d.EN,d.FR,d.ES,d.ZH],ZM:[d.EN,d.FR,d.ES,d.ZH],ZW:[d.EN]},l={CAPTURE:"capture",AUTHORIZE:"authorize",ORDER:"order",TOKENIZE:"tokenize",SUBSCRIPTION:"subscription"},p={TRUE:!0,FALSE:!1},h={TRUE:!0,FALSE:!1},v={AED:"AED",AFN:"AFN",ALL:"ALL",AMD:"AMD",ANG:"ANG",ARS:"ARS",AOA:"AOA",AUD:"AUD",AWG:"AWG",AZN:"AZN",BAM:"BAM",BBD:"BBD",BDT:"BDT",BGN:"BGN",BHD:"BHD",BIF:"BIF",BMD:"BMD",BND:"BND",BOB:"BOB",BRL:"BRL",BSD:"BSD",BTN:"BTN",BWP:"BWP",BZD:"BZD",CAD:"CAD",CDF:"CDF",CHF:"CHF",CLP:"CLP",COP:"COP",CRC:"CRC",CVE:"CVE",CZK:"CZK",DJF:"DJF",DKK:"DKK",DOP:"DOP",DZD:"DZD",EGP:"EGP",ETB:"ETB",ERN:"ERN",EUR:"EUR",FJD:"FJD",FKP:"FKP",GBP:"GBP",GEL:"GEL",GHS:"GHS",GIP:"GIP",GMD:"GMD",GNF:"GNF",GTQ:"GTQ",GYD:"GYD",HKD:"HKD",HNL:"HNL",HRK:"HRK",HTG:"HTG",HUF:"HUF",IDR:"IDR",ILS:"ILS",INR:"INR",ISK:"ISK",JMD:"JMD",JOD:"JOD",JPY:"JPY",KGS:"KGS",KES:"KES",KHR:"KHR",KMF:"KMF",KRW:"KRW",KWD:"KWD",KYD:"KYD",KZT:"KZT",LAK:"LAK",LKR:"LKR",LRD:"LRD",LSL:"LSL",MAD:"MAD",MDL:"MDL",MGA:"MGA",MKD:"MKD",MNT:"MNT",MOP:"MOP",MRO:"MRO",MRU:"MRU",MUR:"MUR",MVR:"MVR",MWK:"MWK",MXN:"MXN",MYR:"MYR",MZN:"MZN",NAD:"NAD",NGN:"NGN",NIO:"NIO",NOK:"NOK",NPR:"NPR",NZD:"NZD",OMR:"OMR",PAB:"PAB",PEN:"PEN",PGK:"PGK",PHP:"PHP",PKR:"PKR",PLN:"PLN",PYG:"PYG",QAR:"QAR",RON:"RON",RSD:"RSD",RUB:"RUB",RWF:"RWF",SAR:"SAR",SBD:"SBD",SCR:"SCR",SEK:"SEK",SGD:"SGD",SHP:"SHP",SLE:"SLE",SLL:"SLL",SOS:"SOS",SRD:"SRD",STN:"STN",SVC:"SVC",SZL:"SZL",THB:"THB",TMT:"TMT",TJS:"TJS",TND:"TND",TOP:"TOP",TTD:"TTD",TWD:"TWD",TZS:"TZS",UAH:"UAH",UGX:"UGX",USD:"USD",UYU:"UYU",UZS:"UZS",VES:"VES",VND:"VND",VUV:"VUV",WST:"WST",XAF:"XAF",XCD:"XCD",XOF:"XOF",XPF:"XPF",YER:"YER",ZAR:"ZAR",ZMW:"ZMW"},y="/sdk/js",m="/web-sdk/v6/bridge",w={AMOUNT:"data-amount",API_STAGE_HOST:"data-api-stage-host",CLIENT_METADATA_ID:"data-client-metadata-id",CLIENT_TOKEN:"data-client-token",CSP_NONCE:"data-csp-nonce",ENABLE_3DS:"data-enable-3ds",JS_SDK_LIBRARY:"data-js-sdk-library",MERCHANT_ID:"data-merchant-id",NAMESPACE:"data-namespace",PAGE_TYPE:"data-page-type",PARTNER_ATTRIBUTION_ID:"data-partner-attribution-id",POPUPS_DISABLED:"data-popups-disabled",SDK_INTEGRATION_SOURCE:"data-sdk-integration-source",SDK_TOKEN:"data-sdk-client-token",SHOPPER_SESSION_ID:"data-shopper-session-id",STAGE_HOST:"data-stage-host",USER_EXPERIENCE_FLOW:"data-user-experience-flow",USER_ID_TOKEN:"data-user-id-token"},g=w,E={COMPONENTS:"components",ENV:"env",DEBUG:"debug",CACHEBUST:"cachebust",CLIENT_ID:"client-id",MERCHANT_ID:"merchant-id",LOCALE:"locale",CURRENCY:"currency",INTENT:"intent",COMMIT:"commit",VAULT:"vault",BUYER_COUNTRY:"buyer-country",ENABLE_FUNDING:"enable-funding",DISABLE_FUNDING:"disable-funding",DISABLE_CARD:"disable-card",INTEGRATION_DATE:"integration-date",STAGE_HOST:"stage-host",STAGE_ALIAS:"stage-alias",CDN_REGISTRY:"cdn-registry",VERSION:"version"},_={BUTTONS:"buttons",CARD_FIELDS:"card-fields",HOSTED_BUTTONS:"hosted-buttons",HOSTED_FIELDS:"hosted-fields"},b={TRUE:!0,FALSE:!1},S={TRUE:"true",FALSE:"false"},N="unknown",T={HTTP:"http",HTTPS:"https"},A={HOME:"home",PRODUCT:"product",CART:"cart",CHECKOUT:"checkout",PRODUCT_LISTING:"product-listing",SEARCH_RESULTS:"search-results",PRODUCT_DETAILS:"product-details",MINI_CART:"mini-cart"},P=10,x={VAULTABLE:"vaultable"},R=s.US,O=v.USD,I=l.CAPTURE,C=p.TRUE,D=p.TRUE,M=p.TRUE,L=h.FALSE,F=_.BUTTONS,k=b.FALSE,H={LOCAL:"local",STAGE:"stage",SANDBOX:"sandbox",PRODUCTION:"production",TEST:"test"},j={ANDROID:"android",IOS:"iOS"},B={VALIDATION_ERROR:"validation_error"},U={BUTTON_LAYOUT:"button_layout",BUTTON_MESSAGE_AMOUNT:"button_message_amount",BUTTON_MESSAGE_CREDIT_PRODUCT_IDENTIFIER:"button_message_credit_product_identifier",BUTTON_MESSAGE_COLOR:"button_message_color",BUTTON_MESSAGE_CURRENCY:"button_message_currency",BUTTON_MESSAGE_ALIGN:"button_message_align",BUTTON_MESSAGE_POSITION:"button_message_position",BUTTON_MESSAGE_OFFER_COUNTRY:"button_message_offer_country",BUTTON_MESSAGE_OFFER_TYPE:"button_message_offer_type",BUTTON_MESSAGE_TYPE:"button_message_type",BUTTON_SESSION_UID:"button_session_id",BUTTON_SOURCE:"button_source",BUTTON_TYPE:"button_type",BUTTON_VERSION:"button_version",BUYER_COUNTRY:"buyer_cntry",CHECKOUT_APP:"checkout_app",CHOSEN_FI_TYPE:"chosen_fi_type",CHOSEN_FUNDING:"selected_payment_method",CLIENT_ID:"client_id",CONTEXT_CORRID:"context_correlation_id",CONTEXT_ID:"context_id",CONTEXT_TYPE:"context_type",CPL_CHUNK_METRICS:"cpl_chunk_metrics",CPL_COMP_METRICS:"cpl_comp_metrics",CPL_QUERY_METRICS:"cpl_query_metrics",DATA_SOURCE:"serverside_data_source",DISABLE_CARD:"disable_card",DISABLE_FUNDING:"disable_funding",ERROR_CODE:"ext_error_code",ERROR_DESC:"ext_error_desc",EVENT_NAME:"event_name",EXPERIMENT_EXPERIENCE:"experimentation_experience",EXPERIMENT_NAME:"pxp_exp_id",EXPERIMENT_TREATMENT:"experimentation_treatment",FEED:"feed_name",FI_ID:"fi_id",FI_LIST:"fi_list",FIELDS_COMPONENT_SESSION_ID:"fields_component_session_id",FUNDING_COUNT:"eligible_payment_count",FUNDING_LIST:"eligible_payment_methods",HOSTED_BUTTON_ID:"hosted_button_id",INTEGRATION_IDENTIFIER:"integration_identifier",IS_VAULT:"is_vault",JS_SDK_LIBRARY:"js_sdk_library",LOCALE:"locale",MERCHANT_DOMAIN:"merchant_domain",MOBILE_APP_VERSION:"mobile_app_version",MOBILE_BUNDLE_IDENTIFIER:"mapv",OPTION_SELECTED:"optsel",PAGE:"page_name",PAGE_LOAD_TIME:"page_load_time",PAGE_TYPE:"pp_placement",PARTNER_ATTRIBUTION_ID:"bn_code",PAY_ID:"pay_id",PAY_NOW:"pay_now",PAYMENT_FLOW:"payment_flow",POTENTIAL_PAYMENT_METHODS:"potential_payment_methods",PRODUCT:"product",RECOMMENDED_PAYMENT:"recommended_payment",REFERER:"referer_url",REFERRER_DOMAIN:"referrer_domain",RESPONSE_DURATION:"response_duration",SDK_CACHE:"sdk_cache",SDK_ENVIRONMENT:"sdk_environment",SDK_INTEGRATION_SOURCE:"sdk_integration_source",SDK_LOAD_TIME:"sdk_load_time",SDK_NAME:"sdk_name",SDK_VERSION:"sdk_version",SELECTED_FI:"merchant_selected_funding_source",SELLER_ID:"seller_id",SESSION_UID:"page_session_id",STATE:"state_name",STICKINESS_ID:"stickiness_id",TIMESTAMP:"t",TOKEN:"token",TRANSITION:"transition_name",TRANSITION_TIME:"transition_time",TREATMENT_NAME:"pxp_trtmnt_id",USER_ACTION:"user_action",USER_AGENT:"user_agent",USER_IDENTITY_METHOD:"user_identity_method",VERSION:"checkoutjs_version",AVAILABLE_PAYMENT_NETWORKS:"available_payment_networks",SELECTED_CARD_TYPE:"selected_card_type",CURRENCY:"currency",AMOUNT:"amount"},W={COMMIT:"commit",CONTINUE:"continue"},G={PAYMENTS_SDK:"checkout"},q={PAYMENTS_SDK:"payments_sdk"},Z={PAYMENTS_SDK:"payments_sdk"},z="pp.sdks.ppcp",K={sdk_platform:"web",major_version:"5"},Y={DESKTOP:"desktop",MOBILE:"mobile"},V=!0}])},function(e,n,t){"use strict";function r(e,n){return(r=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function o(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,r(e,n)}function i(){return(i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function a(e){try{if(!e)return!1;if("undefined"!=typeof Promise&&e instanceof Promise)return!0;if("undefined"!=typeof window&&"function"==typeof window.Window&&e instanceof window.Window)return!1;if("undefined"!=typeof window&&"function"==typeof window.constructor&&e instanceof window.constructor)return!1;var n={}.toString;if(n){var t=n.call(e);if("[object Window]"===t||"[object global]"===t||"[object DOMWindow]"===t)return!1}if("function"==typeof e.then)return!0}catch(e){return!1}return!1}t.r(n);var u,c=[],s=[],d=0;function f(){if(!d&&u){var e=u;u=null,e.resolve()}}function l(){d+=1}function p(){d-=1,f()}var h=function(){function e(e){var n=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],e){var t,r,o=!1,i=!1,a=!1;l();try{e((function(e){a?n.resolve(e):(o=!0,t=e)}),(function(e){a?n.reject(e):(i=!0,r=e)}))}catch(e){return p(),void this.reject(e)}p(),a=!0,o?this.resolve(t):i&&this.reject(r)}}var n=e.prototype;return n.resolve=function(e){if(this.resolved||this.rejected)return this;if(a(e))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=e,this.dispatch(),this},n.reject=function(e){var n=this;if(this.resolved||this.rejected)return this;if(a(e))throw new Error("Can not reject promise with another promise");if(!e){var t=e&&"function"==typeof e.toString?e.toString():{}.toString.call(e);e=new Error("Expected reject to be called with Error, got "+t)}return this.rejected=!0,this.error=e,this.errorHandled||setTimeout((function(){n.errorHandled||function(e,n){if(-1===c.indexOf(e)){c.push(e),setTimeout((function(){throw e}),1);for(var t=0;t<s.length;t++)s[t](e,n)}}(e,n)}),1),this.dispatch(),this},n.asyncReject=function(e){return this.errorHandled=!0,this.reject(e),this},n.dispatch=function(){var n=this.resolved,t=this.rejected,r=this.handlers;if(!this.dispatching&&(n||t)){this.dispatching=!0,l();for(var o=function(e,n){return e.then((function(e){n.resolve(e)}),(function(e){n.reject(e)}))},i=0;i<r.length;i++){var u=r[i],c=u.onSuccess,s=u.onError,d=u.promise,f=void 0;if(n)try{f=c?c(this.value):this.value}catch(e){d.reject(e);continue}else if(t){if(!s){d.reject(this.error);continue}try{f=s(this.error)}catch(e){d.reject(e);continue}}if(f instanceof e&&(f.resolved||f.rejected)){var h=f;h.resolved?d.resolve(h.value):d.reject(h.error),h.errorHandled=!0}else a(f)?f instanceof e&&(f.resolved||f.rejected)?f.resolved?d.resolve(f.value):d.reject(f.error):o(f,d):d.resolve(f)}r.length=0,this.dispatching=!1,p()}},n.then=function(n,t){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.then expected a function for success handler");if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.then expected a function for error handler");var r=new e;return this.handlers.push({promise:r,onSuccess:n,onError:t}),this.errorHandled=!0,this.dispatch(),r},n.catch=function(e){return this.then(void 0,e)},n.finally=function(n){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.finally expected a function");return this.then((function(t){return e.try(n).then((function(){return t}))}),(function(t){return e.try(n).then((function(){throw t}))}))},n.timeout=function(e,n){var t=this;if(this.resolved||this.rejected)return this;var r=setTimeout((function(){t.resolved||t.rejected||t.reject(n||new Error("Promise timed out after "+e+"ms"))}),e);return this.then((function(e){return clearTimeout(r),e}))},n.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},n.lazy=function(){return this.errorHandled=!0,this},e.resolve=function(n){return n instanceof e?n:a(n)?new e((function(e,t){return n.then(e,t)})):(new e).resolve(n)},e.reject=function(n){return(new e).reject(n)},e.asyncReject=function(n){return(new e).asyncReject(n)},e.all=function(n){var t=new e,r=n.length,o=[].slice();if(!r)return t.resolve(o),t;for(var i=function(e,n,i){return n.then((function(n){o[e]=n,0==(r-=1)&&t.resolve(o)}),(function(e){i.reject(e)}))},u=0;u<n.length;u++){var c=n[u];if(c instanceof e){if(c.resolved){o[u]=c.value,r-=1;continue}}else if(!a(c)){o[u]=c,r-=1;continue}i(u,e.resolve(c),t)}return 0===r&&t.resolve(o),t},e.hash=function(n){var t={},r=[],o=function(e){if(n.hasOwnProperty(e)){var o=n[e];a(o)?r.push(o.then((function(n){t[e]=n}))):t[e]=o}};for(var i in n)o(i);return e.all(r).then((function(){return t}))},e.map=function(n,t){return e.all(n.map(t))},e.onPossiblyUnhandledException=function(e){return function(e){return s.push(e),{cancel:function(){s.splice(s.indexOf(e),1)}}}(e)},e.try=function(n,t,r){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.try expected a function");var o;l();try{o=n.apply(t,r||[])}catch(n){return p(),e.reject(n)}return p(),e.resolve(o)},e.delay=function(n){return new e((function(e){setTimeout(e,n)}))},e.isPromise=function(n){return!!(n&&n instanceof e)||a(n)},e.flush=function(){return n=u=u||new e,f(),n;var n},e}();function v(e){return"[object RegExp]"==={}.toString.call(e)}var y={IFRAME:"iframe",POPUP:"popup"},m="Call was rejected by callee.\r\n";function w(e){return void 0===e&&(e=window),e.location.protocol}function g(e){if(void 0===e&&(e=window),e.mockDomain){var n=e.mockDomain.split("//")[0];if(n)return n}return w(e)}function E(e){return void 0===e&&(e=window),"about:"===g(e)}function _(e){if(void 0===e&&(e=window),e)try{if(e.parent&&e.parent!==e)return e.parent}catch(e){}}function b(e){if(void 0===e&&(e=window),e&&!_(e))try{return e.opener}catch(e){}}function S(e){try{return!0}catch(e){}return!1}function N(e){void 0===e&&(e=window);var n=e.location;if(!n)throw new Error("Can not read window location");var t=w(e);if(!t)throw new Error("Can not read window protocol");if("file:"===t)return"file://";if("about:"===t){var r=_(e);return r&&S()?N(r):"about://"}var o=n.host;if(!o)throw new Error("Can not read window host");return t+"//"+o}function T(e){void 0===e&&(e=window);var n=N(e);return n&&e.mockDomain&&0===e.mockDomain.indexOf("mock:")?e.mockDomain:n}function A(e){if(!function(e){try{if(e===window)return!0}catch(e){}try{var n=Object.getOwnPropertyDescriptor(e,"location");if(n&&!1===n.enumerable)return!1}catch(e){}try{if(E(e)&&S())return!0}catch(e){}try{if(function(e){return void 0===e&&(e=window),"mock:"===g(e)}(e)&&S())return!0}catch(e){}try{if(N(e)===N(window))return!0}catch(e){}return!1}(e))return!1;try{if(e===window)return!0;if(E(e)&&S())return!0;if(T(window)===T(e))return!0}catch(e){}return!1}function P(e){if(!A(e))throw new Error("Expected window to be same domain");return e}function x(e,n){if(!e||!n)return!1;var t=_(n);return t?t===e:-1!==function(e){var n=[];try{for(;e.parent!==e;)n.push(e.parent),e=e.parent}catch(e){}return n}(n).indexOf(e)}function R(e){var n,t,r=[];try{n=e.frames}catch(t){n=e}try{t=n.length}catch(e){}if(0===t)return r;if(t){for(var o=0;o<t;o++){var i=void 0;try{i=n[o]}catch(e){continue}r.push(i)}return r}for(var a=0;a<100;a++){var u=void 0;try{u=n[a]}catch(e){return r}if(!u)return r;r.push(u)}return r}function O(e){for(var n=[],t=0,r=R(e);t<r.length;t++){var o=r[t];n.push(o);for(var i=0,a=O(o);i<a.length;i++)n.push(a[i])}return n}function I(e){void 0===e&&(e=window);try{if(e.top)return e.top}catch(e){}if(_(e)===e)return e;try{if(x(window,e)&&window.top)return window.top}catch(e){}try{if(x(e,window)&&window.top)return window.top}catch(e){}for(var n=0,t=O(e);n<t.length;n++){var r=t[n];try{if(r.top)return r.top}catch(e){}if(_(r)===r)return r}}function C(e){var n=I(e);if(!n)throw new Error("Can not determine top window");var t=[].concat(O(n),[n]);return-1===t.indexOf(e)&&(t=[].concat(t,[e],O(e))),t}var D=[],M=[];function L(e,n){void 0===n&&(n=!0);try{if(e===window)return!1}catch(e){return!0}try{if(!e)return!0}catch(e){return!0}try{if(e.closed)return!0}catch(e){return!e||e.message!==m}if(n&&A(e))try{if(e.mockclosed)return!0}catch(e){}try{if(!e.parent||!e.top)return!0}catch(e){}var t=function(e,n){for(var t=0;t<e.length;t++)try{if(e[t]===n)return t}catch(e){}return-1}(D,e);if(-1!==t){var r=M[t];if(r&&function(e){if(!e.contentWindow)return!0;if(!e.parentNode)return!0;var n=e.ownerDocument;if(n&&n.documentElement&&!n.documentElement.contains(e)){for(var t=e;t.parentNode&&t.parentNode!==t;)t=t.parentNode;if(!t.host||!n.documentElement.contains(t.host))return!0}return!1}(r))return!0}return!1}function F(e,n){for(var t=R(e),r=0;r<t.length;r++){var o=t[r];try{if(A(o)&&o.name===n&&-1!==t.indexOf(o))return o}catch(e){}}try{if(-1!==t.indexOf(e.frames[n]))return e.frames[n]}catch(e){}try{if(-1!==t.indexOf(e[n]))return e[n]}catch(e){}}function k(e){return void 0===e&&(e=window),b(e=e||window)||_(e)||void 0}function H(e,n){for(var t=0;t<e.length;t++)for(var r=e[t],o=0;o<n.length;o++)if(r===n[o])return!0;return!1}function j(e){void 0===e&&(e=window);for(var n=0,t=e;t;)(t=_(t))&&(n+=1);return n}function B(e,n){var t=I(e)||e,r=I(n)||n;try{if(t&&r)return t===r}catch(e){}var o=C(e),i=C(n);if(H(o,i))return!0;var a=b(t),u=b(r);return a&&H(C(a),i)||u&&H(C(u),o),!1}function U(e,n){if("string"==typeof e){if("string"==typeof n)return"*"===e||n===e;if(v(n))return!1;if(Array.isArray(n))return!1}return v(e)?v(n)?e.toString()===n.toString():!Array.isArray(n)&&Boolean(n.match(e)):!!Array.isArray(e)&&(Array.isArray(n)?JSON.stringify(e)===JSON.stringify(n):!v(n)&&e.some((function(e){return U(e,n)})))}function W(e){return e.match(/^(https?|mock|file):\/\//)?e.split("/").slice(0,3).join("/"):T()}function G(e,n,t,r){var o;void 0===t&&(t=1e3),void 0===r&&(r=1/0);var i=function(){if(L(e))return o&&clearTimeout(o),n();r<=0?clearTimeout(o):(r-=t,o=setTimeout(i,t))};return i(),{cancel:function(){o&&clearTimeout(o)}}}function q(e){try{if(e===window)return!0}catch(e){if(e&&e.message===m)return!0}try{if("[object Window]"==={}.toString.call(e))return!0}catch(e){if(e&&e.message===m)return!0}try{if(window.Window&&e instanceof window.Window)return!0}catch(e){if(e&&e.message===m)return!0}try{if(e&&e.self===e)return!0}catch(e){if(e&&e.message===m)return!0}try{if(e&&e.parent===e)return!0}catch(e){if(e&&e.message===m)return!0}try{if(e&&e.top===e)return!0}catch(e){if(e&&e.message===m)return!0}try{if(e&&"__unlikely_value__"===e.__cross_domain_utils_window_check__)return!1}catch(e){return!0}try{if("postMessage"in e&&"self"in e&&"location"in e)return!0}catch(e){}return!1}function Z(e){if(A(e))return P(e).frameElement;for(var n=0,t=document.querySelectorAll("iframe");n<t.length;n++){var r=t[n];if(r&&r.contentWindow&&r.contentWindow===e)return r}}function z(e){if(function(e){return void 0===e&&(e=window),Boolean(_(e))}(e)){var n=Z(e);if(n&&n.parentElement)return void n.parentElement.removeChild(n)}try{e.close()}catch(e){}}function K(e,n){for(var t=0;t<e.length;t++)try{if(e[t]===n)return t}catch(e){}return-1}var Y,V=function(){function e(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>0)+"__",function(){if("undefined"==typeof WeakMap)return!1;if(void 0===Object.freeze)return!1;try{var e=new WeakMap,n={};return Object.freeze(n),e.set(n,"__testvalue__"),"__testvalue__"===e.get(n)}catch(e){return!1}}())try{this.weakmap=new WeakMap}catch(e){}this.keys=[],this.values=[]}var n=e.prototype;return n._cleanupClosedWindows=function(){for(var e=this.weakmap,n=this.keys,t=0;t<n.length;t++){var r=n[t];if(q(r)&&L(r)){if(e)try{e.delete(r)}catch(e){}n.splice(t,1),this.values.splice(t,1),t-=1}}},n.isSafeToReadWrite=function(e){return!q(e)},n.set=function(e,n){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{t.set(e,n)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=this.name,o=e[r];return void(o&&o[0]===e?o[1]=n:Object.defineProperty(e,r,{value:[e,n],writable:!0}))}catch(e){}this._cleanupClosedWindows();var i=this.keys,a=this.values,u=K(i,e);-1===u?(i.push(e),a.push(n)):a[u]=n},n.get=function(e){if(!e)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{if(n.has(e))return n.get(e)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var t=e[this.name];return t&&t[0]===e?t[1]:void 0}catch(e){}this._cleanupClosedWindows();var r=K(this.keys,e);if(-1!==r)return this.values[r]},n.delete=function(e){if(!e)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{n.delete(e)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var t=e[this.name];t&&t[0]===e&&(t[0]=t[1]=void 0)}catch(e){}this._cleanupClosedWindows();var r=this.keys,o=K(r,e);-1!==o&&(r.splice(o,1),this.values.splice(o,1))},n.has=function(e){if(!e)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{if(n.has(e))return!0}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var t=e[this.name];return!(!t||t[0]!==e)}catch(e){}return this._cleanupClosedWindows(),-1!==K(this.keys,e)},n.getOrSet=function(e,n){if(this.has(e))return this.get(e);var t=n();return this.set(e,t),t},e}();function J(e){return(J=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Q(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function X(e,n,t){return(X=Q()?Reflect.construct:function(e,n,t){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return t&&r(i,t.prototype),i}).apply(null,arguments)}function $(e){var n="function"==typeof Map?new Map:void 0;return($=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return X(e,arguments,J(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r(t,e)})(e)}function ee(e){var n=!1;try{(e instanceof window.Element||null!==e&&"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument)&&(n=!0)}catch(e){}return n}function ne(e){return e.name||e.__name__||e.displayName||"anonymous"}function te(e,n){try{delete e.name,e.name=n}catch(e){}return e.__name__=e.displayName=n,e}function re(e){if("function"==typeof btoa)return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,n){return String.fromCharCode(parseInt(n,16))}))).replace(/[=]/g,"");if("undefined"!=typeof Buffer)return Buffer.from(e,"utf8").toString("base64").replace(/[=]/g,"");throw new Error("Can not find window.btoa or Buffer")}function oe(){var e="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,(function(){return e.charAt(Math.floor(Math.random()*e.length))}))+"_"+re((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function ie(){if("undefined"!=typeof window)return window;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("No global found")}function ae(e){try{return JSON.stringify([].slice.call(e),(function(e,n){return"function"==typeof n?"memoize["+function(e){if(Y=Y||new V,null==e||"object"!=typeof e&&"function"!=typeof e)throw new Error("Invalid object");var n=Y.get(e);return n||(n=typeof e+":"+oe(),Y.set(e,n)),n}(n)+"]":ee(n)?{}:n}))}catch(e){throw new Error("Arguments not serializable -- can not be used to memoize")}}function ue(){return{}}var ce=0,se=0;function de(e,n){void 0===n&&(n={});var t,r,o=n.thisNamespace,i=void 0!==o&&o,a=n.time,u=ce;ce+=1;var c=function(){for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];var s,d;u<se&&(t=null,r=null,u=ce,ce+=1),s=i?(r=r||new V).getOrSet(this,ue):t=t||{};try{d=ae(o)}catch(n){return e.apply(this,arguments)}var f=s[d];if(f&&a&&Date.now()-f.time<a&&(delete s[d],f=null),f)return f.value;var l=Date.now(),p=e.apply(this,arguments);return s[d]={time:l,value:p},p};return c.reset=function(){t=null,r=null},te(c,(n.name||ne(e))+"::memoized")}function fe(e){var n={};function t(){for(var t=arguments,r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var u=ae(i);return n.hasOwnProperty(u)||(n[u]=h.try((function(){return e.apply(r,t)})).finally((function(){delete n[u]}))),n[u]}return t.reset=function(){n={}},te(t,ne(e)+"::promiseMemoized")}function le(e,n,t){void 0===t&&(t=[]);var r=e.__inline_memoize_cache__=e.__inline_memoize_cache__||{},o=ae(t);return r.hasOwnProperty(o)?r[o]:r[o]=n.apply(void 0,t)}function pe(){}function he(e){var n=!1;return te((function(){if(!n)return n=!0,e.apply(this,arguments)}),ne(e)+"::once")}function ve(e,n){if(void 0===n&&(n=1),n>=3)return"stringifyError stack overflow";try{if(!e)return"<unknown error: "+{}.toString.call(e)+">";if("string"==typeof e)return e;if(e instanceof Error){var t=e&&e.stack,r=e&&e.message;if(t&&r)return-1!==t.indexOf(r)?t:r+"\n"+t;if(t)return t;if(r)return r}return e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}catch(e){return"Error while stringifying error: "+ve(e,n+1)}}function ye(e){return"string"==typeof e?e:e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}function me(e,n){if(!n)return e;if(Object.assign)return Object.assign(e,n);for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}function we(e,n){void 0===n&&(n=Boolean);var t={};for(var r in e)e.hasOwnProperty(r)&&n(e[r],r)&&(t[r]=e[r]);return t}function ge(e){return e}function Ee(e,n){var t;return function r(){t=setTimeout((function(){e(),r()}),n)}(),{cancel:function(){clearTimeout(t)}}}function _e(){var e={},n={},t={on:function(e,t){var r=n[e]=n[e]||[];r.push(t);var o=!1;return{cancel:function(){o||(o=!0,r.splice(r.indexOf(t),1))}}},once:function(e,n){var r=t.on(e,(function(){r.cancel(),n()}));return r},trigger:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];var i=n[e],a=[];if(i)for(var u=function(){var e=i[c];a.push(h.try((function(){return e.apply(void 0,r)})))},c=0;c<i.length;c++)u();return h.all(a).then(pe)},triggerOnce:function(n){if(e[n])return h.resolve();e[n]=!0;for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.trigger.apply(t,[n].concat(o))},reset:function(){n={}}};return t}function be(e){return e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))}function Se(e,n,t){if(Array.isArray(e)){if("number"!=typeof n)throw new TypeError("Array key must be number")}else if("object"==typeof e&&null!==e&&"string"!=typeof n)throw new TypeError("Object key must be string");Object.defineProperty(e,n,{configurable:!0,enumerable:!0,get:function(){delete e[n];var r=t();return e[n]=r,r},set:function(t){delete e[n],e[n]=t}})}function Ne(e){return[].slice.call(e)}function Te(e){return"object"==typeof(n=e)&&null!==n&&"[object Object]"==={}.toString.call(e);var n}function Ae(e){if(!Te(e))return!1;var n=e.constructor;if("function"!=typeof n)return!1;var t=n.prototype;return!!Te(t)&&!!t.hasOwnProperty("isPrototypeOf")}function Pe(e,n,t){if(void 0===t&&(t=""),Array.isArray(e)){for(var r=e.length,o=[],i=function(r){Se(o,r,(function(){var o=t?t+"."+r:""+r,i=n(e[r],r,o);return(Ae(i)||Array.isArray(i))&&(i=Pe(i,n,o)),i}))},a=0;a<r;a++)i(a);return o}if(Ae(e)){var u={},c=function(r){if(!e.hasOwnProperty(r))return 1;Se(u,r,(function(){var o=t?t+"."+r:""+r,i=n(e[r],r,o);return(Ae(i)||Array.isArray(i))&&(i=Pe(i,n,o)),i}))};for(var s in e)c(s);return u}throw new Error("Pass an object or array")}function xe(e){return null!=e}function Re(e){return"[object RegExp]"==={}.toString.call(e)}function Oe(e,n,t){if(e.hasOwnProperty(n))return e[n];var r=t();return e[n]=r,r}function Ie(e){var n,t=[],r=!1,o={set:function(n,t){return r||(e[n]=t,o.register((function(){delete e[n]}))),t},register:function(e){var o=he((function(){return e(n)}));return r?e(n):t.push(o),{cancel:function(){var e=t.indexOf(o);-1!==e&&t.splice(e,1)}}},all:function(e){n=e;var o=[];for(r=!0;t.length;){var i=t.shift();o.push(i())}return h.all(o).then(pe)}};return o}function Ce(e,n){if(null==n)throw new Error("Expected "+e+" to be present");return n}de.clear=function(){se=ce},de((function(e){if(Object.values)return Object.values(e);var n=[];for(var t in e)e.hasOwnProperty(t)&&n.push(e[t]);return n}));var De=function(e){function n(n){var t;return(t=e.call(this,n)||this).name=t.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(t,t.constructor):t.stack=new Error(n).stack,t}return o(n,e),n}($(Error));function Me(){var e=document.body;if(!e)throw new Error("Body element not found");return e}function Le(){return Boolean(document.body)&&"complete"===document.readyState}function Fe(){return Boolean(document.body)&&"interactive"===document.readyState}function ke(e){return encodeURIComponent(e)}function He(e){return le(He,(function(){var n={};if(!e)return n;if(-1===e.indexOf("="))return n;for(var t=0,r=e.split("&");t<r.length;t++){var o=r[t];(o=o.split("="))[0]&&o[1]&&(n[decodeURIComponent(o[0])]=decodeURIComponent(o[1]))}return n}),[e])}function je(e,n){return void 0===n&&(n={}),n&&Object.keys(n).length?(void 0===(t=i({},He(e),n))&&(t={}),Object.keys(t).filter((function(e){return"string"==typeof t[e]||"boolean"==typeof t[e]})).map((function(e){var n=t[e];if("string"!=typeof n&&"boolean"!=typeof n)throw new TypeError("Invalid type for query");return ke(e)+"="+ke(n.toString())})).join("&")):e;var t}function Be(){return"undefined"!=typeof window&&void 0!==window.location}function Ue(){return le(Ue,(function(){try{if("undefined"==typeof window)return!1;if(window.localStorage){var e=Math.random().toString();window.localStorage.setItem("__test__localStorage__",e);var n=window.localStorage.getItem("__test__localStorage__");if(window.localStorage.removeItem("__test__localStorage__"),e===n)return!0}}catch(e){}return!1}))}function We(e,n){e.appendChild(n)}function Ge(e,n){return void 0===n&&(n=document),ee(e)?e:"string"==typeof e?n.querySelector(e):void 0}function qe(e){return new h((function(n,t){var r=ye(e),o=Ge(e);if(o)return n(o);if(Le())return t(new Error("Document is ready and element "+r+" does not exist"));var i=setInterval((function(){return(o=Ge(e))?(n(o),void clearInterval(i)):Le()?(clearInterval(i),t(new Error("Document is ready and element "+r+" does not exist"))):void 0}),10)}))}de((function(){return new h((function(e){if(Le()||Fe())return e();var n=setInterval((function(){if(Le()||Fe())return clearInterval(n),e()}),10)}))}));var Ze,ze=function(e){function n(){return e.apply(this,arguments)||this}return o(n,e),n}(De);function Ke(e){if((Ze=Ze||new V).has(e)){var n=Ze.get(e);if(n)return n}var t=new h((function(n,t){e.addEventListener("load",(function(){(function(e){if(function(){for(var e=0;e<D.length;e++){var n=!1;try{n=D[e].closed}catch(e){}n&&(M.splice(e,1),D.splice(e,1))}}(),e&&e.contentWindow)try{D.push(e.contentWindow),M.push(e)}catch(e){}})(e),n(e)})),e.addEventListener("error",(function(r){e.contentWindow?n(e):t(r)}))}));return Ze.set(e,t),t}function Ye(e){return Ke(e).then((function(e){if(!e.contentWindow)throw new Error("Could not find window in iframe");return e.contentWindow}))}function Ve(e,n){void 0===e&&(e={});var t=e.style||{},r=function(e,n,t){void 0===e&&(e="div"),void 0===n&&(n={}),e=e.toLowerCase();var r,o,i,a=document.createElement(e);if(n.style&&me(a.style,n.style),n.class&&(a.className=n.class.join(" ")),n.id&&a.setAttribute("id",n.id),n.attributes)for(var u=0,c=Object.keys(n.attributes);u<c.length;u++){var s=c[u];a.setAttribute(s,n.attributes[s])}if(n.styleSheet&&(r=a,o=n.styleSheet,void 0===i&&(i=window.document),r.styleSheet?r.styleSheet.cssText=o:r.appendChild(i.createTextNode(o))),n.html){if("iframe"===e)throw new Error("Iframe html can not be written unless container provided and iframe in DOM");a.innerHTML=n.html}return a}("iframe",{attributes:i({allowTransparency:"true"},e.attributes||{}),style:i({backgroundColor:"transparent",border:"none"},t),html:e.html,class:e.class}),o=window.navigator.userAgent.match(/MSIE|Edge/i);return r.hasAttribute("id")||r.setAttribute("id",oe()),Ke(r),n&&function(e,n){void 0===n&&(n=document);var t=Ge(e,n);if(t)return t;throw new Error("Can not find element: "+ye(e))}(n).appendChild(r),(e.url||o)&&r.setAttribute("src",e.url||"about:blank"),r}function Je(e,n,t){return e.addEventListener(n,t),{cancel:function(){e.removeEventListener(n,t)}}}function Qe(e){e.style.setProperty("display","")}function Xe(e){e.style.setProperty("display","none","important")}function $e(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function en(e){return!(e&&e.parentNode&&e.ownerDocument&&e.ownerDocument.documentElement&&e.ownerDocument.documentElement.contains(e))}function nn(e,n,t){var r=void 0===t?{}:t,o=r.width,i=void 0===o||o,a=r.height,u=void 0===a||a,c=r.interval,s=void 0===c?100:c,d=r.win,f=void 0===d?window:d,l=e.offsetWidth,p=e.offsetHeight,h=!1;n({width:l,height:p});var v,y,m=function(){if(!h&&function(e){return Boolean(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}(e)){var t=e.offsetWidth,r=e.offsetHeight;(i&&t!==l||u&&r!==p)&&n({width:t,height:r}),l=t,p=r}};return f.addEventListener("resize",m),void 0!==f.ResizeObserver?((v=new f.ResizeObserver(m)).observe(e),y=Ee(m,10*s)):void 0!==f.MutationObserver?((v=new f.MutationObserver(m)).observe(e,{attributes:!0,childList:!0,subtree:!0,characterData:!1}),y=Ee(m,10*s)):y=Ee(m,s),{cancel:function(){h=!0,v.disconnect(),window.removeEventListener("resize",m),y.cancel()}}}function tn(e){for(;e.parentNode;)e=e.parentNode;return"[object ShadowRoot]"===e.toString()}var rn="undefined"!=typeof document?document.currentScript:null,on=de((function(){if(rn)return rn;if(rn=function(){try{var e=function(){try{throw new Error("_")}catch(e){return e.stack||""}}(),n=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e),t=n&&n[1];if(!t)return;for(var r=0,o=[].slice.call(document.getElementsByTagName("script")).reverse();r<o.length;r++){var i=o[r];if(i.src&&i.src===t)return i}}catch(e){}}())return rn;throw new Error("Can not determine current script")})),an=oe(),un=de((function(){var e;try{e=on()}catch(e){return an}var n=e.getAttribute("data-uid");if(n&&"string"==typeof n)return n;if((n=e.getAttribute("data-uid-auto"))&&"string"==typeof n)return n;if(e.src){var t=function(e){for(var n="",t=0;t<e.length;t++){var r=e[t].charCodeAt(0)*t;e[t+1]&&(r+=e[t+1].charCodeAt(0)*(t-1)),n+=String.fromCharCode(97+Math.abs(r)%26)}return n}(JSON.stringify({src:e.src,dataset:e.dataset}));n="uid_"+t.slice(t.length-30)}else n=oe();return e.setAttribute("data-uid-auto",n),n}));function cn(e){var n=e.name,t=e.lifetime,r=void 0===t?12e5:t,o=e.stickySessionId;return le(cn,(function(){var e,t="__"+n+"_storage__",i=oe();function a(n){var r,o=Ue();if(e&&(r=e),!r&&o){var a=window.localStorage.getItem(t);a&&(r=JSON.parse(a))}r||(r=ie()[t]),r||(r={id:i}),r.id||(r.id=i),e=r;var u=n(r);return o?window.localStorage.setItem(t,JSON.stringify(r)):ie()[t]=r,e=null,u}function u(){return a((function(e){return e.id}))}function c(e){return a((function(n){var t=n.__session__,i=Date.now();return t&&i-t.created>r&&(t=null),t||(t={guid:o||oe(),created:i}),n.__session__=t,e(t)}))}return{getState:a,getID:u,isStateFresh:function(){return u()===i},getSessionState:function(e){return c((function(n){return n.state=n.state||{},e(n.state)}))},getSessionID:function(){return c((function(e){return e.guid}))}}}),[{name:n,lifetime:r}])}var sn=[];function dn(e){var n=e.url,t=e.method,r=void 0===t?"get":t,o=e.headers,i=void 0===o?{}:o,a=e.json,u=e.data,c=e.body,s=e.win,d=void 0===s?window:s,f=e.timeout,l=void 0===f?0:f;return new h((function(e,t){if(a&&u||a&&c||u&&a)throw new Error("Only options.json or options.data or options.body should be passed");for(var o={},s=0,f=Object.keys(i);s<f.length;s++){var p=f[s];o[p.toLowerCase()]=i[p]}a?o["content-type"]=o["content-type"]||"application/json":(u||c)&&(o["content-type"]=o["content-type"]||"application/x-www-form-urlencoded; charset=utf-8"),o.accept=o.accept||"application/json";for(var h=0;h<sn.length;h++)for(var v=(0,sn[h])(),y=0,m=Object.keys(v);y<m.length;y++){var w=m[y];o[w.toLowerCase()]=v[w]}var g=new d.XMLHttpRequest;for(var E in g.addEventListener("load",(function(){var o=function(e){void 0===e&&(e="");for(var n={},t=0,r=e.trim().split("\n");t<r.length;t++){var o=r[t].split(":"),i=o[0],a=o.slice(1);n[i.toLowerCase()]=a.join(":").trim()}return n}(this.getAllResponseHeaders());if(!this.status)return t(new Error("Request to "+r.toLowerCase()+" "+n+" failed: no response status code."));var i=o["content-type"],a=i&&(0===i.indexOf("application/json")||0===i.indexOf("text/json")),u=this.responseText;try{u=JSON.parse(u)}catch(e){if(a)return t(new Error("Invalid json: "+this.responseText+"."))}return e({status:this.status,headers:o,body:u})}),!1),g.addEventListener("error",(function(e){t(new Error("Request to "+r.toLowerCase()+" "+n+" failed: "+e.toString()+"."))}),!1),g.open(r,n,!0),o)o.hasOwnProperty(E)&&g.setRequestHeader(E,o[E]);a?c=JSON.stringify(a):u&&(c=Object.keys(u).map((function(e){return encodeURIComponent(e)+"="+(u?encodeURIComponent(u[e]):"")})).join("&")),g.timeout=l,g.ontimeout=function(){t(new Error("Request to "+r.toLowerCase()+" "+n+" has timed out"))},g.send(c)}))}function fn(e){return"string"==typeof e&&/^[0-9]+%$/.test(e)}function ln(e){if("number"==typeof e)return e;var n=e.match(/^([0-9]+)(px|%)$/);if(!n)throw new Error("Could not match css value from "+e);return parseInt(n[1],10)}function pn(e){return ln(e)+"px"}function hn(e){return"number"==typeof e?pn(e):fn(e)?e:pn(e)}function vn(e,n){if("number"==typeof e)return e;if(fn(e))return parseInt(n*ln(e)/100,10);var t;if("string"==typeof(t=e)&&/^[0-9]+px$/.test(t))return ln(e);throw new Error("Can not normalize dimension: "+e)}function yn(){return"__post_robot_11_0_0___"+un()}function mn(e){void 0===e&&(e=window);var n=yn();return e!==window?e[n]:e[n]=e[n]||{}}var wn=function(){return{}};function gn(e,n){return void 0===e&&(e="store"),void 0===n&&(n=wn),Oe(mn(),e,(function(){var e=n();return{has:function(n){return e.hasOwnProperty(n)},get:function(n,t){return e.hasOwnProperty(n)?e[n]:t},set:function(n,t){return e[n]=t,t},del:function(n){delete e[n]},getOrSet:function(n,t){return Oe(e,n,t)},reset:function(){e=n()},keys:function(){return Object.keys(e)}}}))}var En,_n=function(){};function bn(){var e=mn();return e.WINDOW_WILDCARD=e.WINDOW_WILDCARD||new _n,e.WINDOW_WILDCARD}function Sn(e,n){return void 0===e&&(e="store"),void 0===n&&(n=wn),gn("windowStore").getOrSet(e,(function(){var t=new V,r=function(e){return t.getOrSet(e,n)};return{has:function(n){return r(n).hasOwnProperty(e)},get:function(n,t){var o=r(n);return o.hasOwnProperty(e)?o[e]:t},set:function(n,t){return r(n)[e]=t,t},del:function(n){delete r(n)[e]},getOrSet:function(n,t){return Oe(r(n),e,t)}}}))}function Nn(){return gn("instance").getOrSet("instanceID",oe)}function Tn(e,n){var t=n.domain,r=Sn("helloPromises"),o=r.get(e);o&&o.resolve({domain:t});var i=h.resolve({domain:t});return r.set(e,i),i}function An(e,n){return(0,n.send)(e,"postrobot_hello",{instanceID:Nn()},{domain:"*",timeout:-1}).then((function(n){var t=n.origin,r=n.data.instanceID;return Tn(e,{domain:t}),{win:e,domain:t,instanceID:r}}))}function Pn(e,n){var t=n.send;return Sn("windowInstanceIDPromises").getOrSet(e,(function(){return An(e,{send:t}).then((function(e){return e.instanceID}))}))}function xn(e){Sn("knownWindows").set(e,!0)}function Rn(e){return"object"==typeof e&&null!==e&&"string"==typeof e.__type__}function On(e){return void 0===e?"undefined":null===e?"null":Array.isArray(e)?"array":"function"==typeof e?"function":"object"==typeof e?e instanceof Error?"error":"function"==typeof e.then?"promise":"[object RegExp]"==={}.toString.call(e)?"regex":"[object Date]"==={}.toString.call(e)?"date":"object":"string"==typeof e?"string":"number"==typeof e?"number":"boolean"==typeof e?"boolean":void 0}function In(e,n){return{__type__:e,__val__:n}}var Cn,Dn=((En={}).function=function(){},En.error=function(e){return In("error",{message:e.message,stack:e.stack,code:e.code,data:e.data})},En.promise=function(){},En.regex=function(e){return In("regex",e.source)},En.date=function(e){return In("date",e.toJSON())},En.array=function(e){return e},En.object=function(e){return e},En.string=function(e){return e},En.number=function(e){return e},En.boolean=function(e){return e},En.null=function(e){return e},En[void 0]=function(e){return In("undefined",e)},En),Mn={},Ln=((Cn={}).function=function(){throw new Error("Function serialization is not implemented; nothing to deserialize")},Cn.error=function(e){var n=e.stack,t=e.code,r=e.data,o=new Error(e.message);return o.code=t,r&&(o.data=r),o.stack=n+"\n\n"+o.stack,o},Cn.promise=function(){throw new Error("Promise serialization is not implemented; nothing to deserialize")},Cn.regex=function(e){return new RegExp(e)},Cn.date=function(e){return new Date(e)},Cn.array=function(e){return e},Cn.object=function(e){return e},Cn.string=function(e){return e},Cn.number=function(e){return e},Cn.boolean=function(e){return e},Cn.null=function(e){return e},Cn[void 0]=function(){},Cn),Fn={};function kn(){for(var e=gn("idToProxyWindow"),n=0,t=e.keys();n<t.length;n++){var r=t[n];e.get(r).shouldClean()&&e.del(r)}}function Hn(e,n){var t=n.send,r=n.id,o=void 0===r?oe():r,i=e.then((function(e){if(A(e))return P(e).name})),a=e.then((function(e){if(L(e))throw new Error("Window is closed, can not determine type");return b(e)?y.POPUP:y.IFRAME}));i.catch(pe),a.catch(pe);var u=function(){return e.then((function(e){if(!L(e))return A(e)?P(e).name:i}))};return{id:o,getType:function(){return a},getInstanceID:fe((function(){return e.then((function(e){return Pn(e,{send:t})}))})),close:function(){return e.then(z)},getName:u,focus:function(){return e.then((function(e){e.focus()}))},isClosed:function(){return e.then((function(e){return L(e)}))},setLocation:function(n,t){return void 0===t&&(t={}),e.then((function(e){var r=window.location.protocol+"//"+window.location.host,o=t.method,i=void 0===o?"get":o,a=t.body;if(0===n.indexOf("/"))n=""+r+n;else if(!n.match(/^https?:\/\//)&&0!==n.indexOf(r))throw new Error("Expected url to be http or https url, or absolute path, got "+JSON.stringify(n));if("post"===i)return u().then((function(e){if(!e)throw new Error("Can not post to window without target name");!function(e){var n=e.url,t=e.target,r=e.body,o=e.method,i=void 0===o?"post":o,a=document.createElement("form");if(a.setAttribute("target",t),a.setAttribute("method",i),a.setAttribute("action",n),a.style.display="none",r)for(var u=0,c=Object.keys(r);u<c.length;u++){var s,d=c[u],f=document.createElement("input");f.setAttribute("name",d),f.setAttribute("value",null==(s=r[d])?void 0:s.toString()),a.appendChild(f)}Me().appendChild(a),a.submit(),Me().removeChild(a)}({url:n,target:e,method:i,body:a})}));if("get"!==i)throw new Error("Unsupported method: "+i);if(A(e))try{if(e.location&&"function"==typeof e.location.replace)return void e.location.replace(n)}catch(e){}e.location=n}))},setName:function(n){return e.then((function(e){var t=A(e),r=Z(e);if(!t)throw new Error("Can not set name for cross-domain window: "+n);P(e).name=n,r&&r.setAttribute("name",n),i=h.resolve(n)}))}}}new h((function(e){if(window.document&&window.document.body)return e(window.document.body);var n=setInterval((function(){if(window.document&&window.document.body)return clearInterval(n),e(window.document.body)}),10)}));var jn=function(){function e(e){var n=e.send,t=e.win,r=e.serializedWindow;this.id=void 0,this.isProxyWindow=!0,this.serializedWindow=void 0,this.actualWindow=void 0,this.actualWindowPromise=void 0,this.send=void 0,this.name=void 0,this.actualWindowPromise=new h,this.serializedWindow=r||Hn(this.actualWindowPromise,{send:n}),gn("idToProxyWindow").set(this.getID(),this),t&&this.setWindow(t,{send:n})}var n=e.prototype;return n.getID=function(){return this.serializedWindow.id},n.getType=function(){return this.serializedWindow.getType()},n.isPopup=function(){return this.getType().then((function(e){return e===y.POPUP}))},n.setLocation=function(e,n){var t=this;return this.serializedWindow.setLocation(e,n).then((function(){return t}))},n.getName=function(){return this.serializedWindow.getName()},n.setName=function(e){var n=this;return this.serializedWindow.setName(e).then((function(){return n}))},n.close=function(){var e=this;return this.serializedWindow.close().then((function(){return e}))},n.focus=function(){var e=this,n=this.isPopup(),t=this.getName(),r=h.hash({isPopup:n,name:t}).then((function(e){var n=e.name;e.isPopup&&n&&window.open("",n,"noopener")})),o=this.serializedWindow.focus();return h.all([r,o]).then((function(){return e}))},n.isClosed=function(){return this.serializedWindow.isClosed()},n.getWindow=function(){return this.actualWindow},n.setWindow=function(e,n){var t=n.send;this.actualWindow=e,this.actualWindowPromise.resolve(this.actualWindow),this.serializedWindow=Hn(this.actualWindowPromise,{send:t,id:this.getID()}),Sn("winToProxyWindow").set(e,this)},n.awaitWindow=function(){return this.actualWindowPromise},n.matchWindow=function(e,n){var t=this,r=n.send;return h.try((function(){return t.actualWindow?e===t.actualWindow:h.hash({proxyInstanceID:t.getInstanceID(),knownWindowInstanceID:Pn(e,{send:r})}).then((function(n){var o=n.proxyInstanceID===n.knownWindowInstanceID;return o&&t.setWindow(e,{send:r}),o}))}))},n.unwrap=function(){return this.actualWindow||this},n.getInstanceID=function(){return this.serializedWindow.getInstanceID()},n.shouldClean=function(){return Boolean(this.actualWindow&&L(this.actualWindow))},n.serialize=function(){return this.serializedWindow},e.unwrap=function(n){return e.isProxyWindow(n)?n.unwrap():n},e.serialize=function(n,t){var r=t.send;return kn(),e.toProxyWindow(n,{send:r}).serialize()},e.deserialize=function(n,t){var r=t.send;return kn(),gn("idToProxyWindow").get(n.id)||new e({serializedWindow:n,send:r})},e.isProxyWindow=function(e){return Boolean(e&&!q(e)&&e.isProxyWindow)},e.toProxyWindow=function(n,t){var r=t.send;if(kn(),e.isProxyWindow(n))return n;var o=n;return Sn("winToProxyWindow").get(o)||new e({win:o,send:r})},e}();function Bn(e,n,t,r,o){var i=Sn("methodStore"),a=gn("proxyWindowMethods");jn.isProxyWindow(r)?a.set(e,{val:n,name:t,domain:o,source:r}):(a.del(e),i.getOrSet(r,(function(){return{}}))[e]={domain:o,name:t,val:n,source:r})}function Un(e,n){var t=Sn("methodStore"),r=gn("proxyWindowMethods");return t.getOrSet(e,(function(){return{}}))[n]||r.get(n)}function Wn(e,n,t,r,o){!function(e){var n=e.on,t=e.send;gn("builtinListeners").getOrSet("functionCalls",(function(){return n("postrobot_method",{domain:"*"},(function(e){var n=e.source,r=e.origin,o=e.data,i=o.id,a=o.name,u=Un(n,i);if(!u)throw new Error("Could not find method '"+a+"' with id: "+o.id+" in "+T(window));var c=u.source,s=u.domain,d=u.val;return h.try((function(){if(!U(s,r))throw new Error("Method '"+o.name+"' domain "+JSON.stringify(Re(u.domain)?u.domain.source:u.domain)+" does not match origin "+r+" in "+T(window));if(jn.isProxyWindow(c))return c.matchWindow(n,{send:t}).then((function(e){if(!e)throw new Error("Method call '"+o.name+"' failed - proxy window does not match source in "+T(window))}))})).then((function(){return d.apply({source:n,origin:r},o.args)}),(function(e){return h.try((function(){if(d.onError)return d.onError(e)})).then((function(){var n;throw e.stack&&(e.stack="Remote call to "+a+"("+(void 0===(n=o.args)&&(n=[]),Ne(n).map((function(e){return"string"==typeof e?"'"+e+"'":void 0===e?"undefined":null===e?"null":"boolean"==typeof e?e.toString():Array.isArray(e)?"[ ... ]":"object"==typeof e?"{ ... }":"function"==typeof e?"() => { ... }":"<"+typeof e+">"})).join(", ")+") failed\n\n")+e.stack),e}))})).then((function(e){return{result:e,id:i,name:a}}))}))}))}({on:o.on,send:o.send});var i=t.__id__||oe();e=jn.unwrap(e);var a=t.__name__||t.name||r;return"string"==typeof a&&"function"==typeof a.indexOf&&0===a.indexOf("anonymous::")&&(a=a.replace("anonymous::",r+"::")),jn.isProxyWindow(e)?(Bn(i,t,a,e,n),e.awaitWindow().then((function(e){Bn(i,t,a,e,n)}))):Bn(i,t,a,e,n),In("cross_domain_function",{id:i,name:a})}function Gn(e,n,t,r){var o,i=r.on,a=r.send;return function(e,n){void 0===n&&(n=Mn);var t=JSON.stringify(e,(function(e){var t=this[e];if(Rn(this))return t;var r=On(t);if(!r)return t;var o=n[r]||Dn[r];return o?o(t,e):t}));return void 0===t?"undefined":t}(t,((o={}).promise=function(t,r){return function(e,n,t,r,o){return In("cross_domain_zalgo_promise",{then:Wn(e,n,(function(e,n){return t.then(e,n)}),r,{on:o.on,send:o.send})})}(e,n,t,r,{on:i,send:a})},o.function=function(t,r){return Wn(e,n,t,r,{on:i,send:a})},o.object=function(e){return q(e)||jn.isProxyWindow(e)?In("cross_domain_window",jn.serialize(e,{send:a})):e},o))}function qn(e,n,t,r){var o,i=r.send;return function(e,n){if(void 0===n&&(n=Fn),"undefined"!==e)return JSON.parse(e,(function(e,t){if(Rn(this))return t;var r,o;if(Rn(t)?(r=t.__type__,o=t.__val__):(r=On(t),o=t),!r)return o;var i=n[r]||Ln[r];return i?i(o,e):o}))}(t,((o={}).cross_domain_zalgo_promise=function(e){return function(e,n,t){return new h(t.then)}(0,0,e)},o.cross_domain_function=function(t){return function(e,n,t,r){var o=t.id,i=t.name,a=r.send,u=function(t){function r(){var u=arguments;return jn.toProxyWindow(e,{send:a}).awaitWindow().then((function(e){var c=Un(e,o);if(c&&c.val!==r)return c.val.apply({source:window,origin:T()},u);var s=[].slice.call(u);return t.fireAndForget?a(e,"postrobot_method",{id:o,name:i,args:s},{domain:n,fireAndForget:!0}):a(e,"postrobot_method",{id:o,name:i,args:s},{domain:n,fireAndForget:!1}).then((function(e){return e.data.result}))})).catch((function(e){throw e}))}return void 0===t&&(t={}),r.__name__=i,r.__origin__=n,r.__source__=e,r.__id__=o,r.origin=n,r},c=u();return c.fireAndForget=u({fireAndForget:!0}),c}(e,n,t,{send:i})},o.cross_domain_window=function(e){return jn.deserialize(e,{send:i})},o))}var Zn={};function zn(e,n,t,r){var o=r.on,i=r.send;return h.try((function(){var r=Sn().getOrSet(e,(function(){return{}}));return r.buffer=r.buffer||[],r.buffer.push(t),r.flush=r.flush||h.flush().then((function(){if(L(e))throw new Error("Window is closed");var t,a,u=Gn(e,n,(t=r.buffer||[],(a={})[yn()]=t,a),{on:o,send:i});delete r.buffer;for(var c=Object.keys(Zn),s=[],d=0;d<c.length;d++){var f=c[d];try{Zn[f](e,u,n)}catch(e){s.push(e)}}if(s.length===c.length)throw new Error("All post-robot messaging strategies failed:\n\n"+s.map((function(e,n){return n+". "+ve(e)})).join("\n\n"))})),r.flush.then((function(){delete r.flush}))})).then(pe)}function Kn(e){return gn("responseListeners").get(e)}function Yn(e){gn("responseListeners").del(e)}function Vn(e){return gn("erroredResponseListeners").has(e)}function Jn(e){var n=e.name,t=e.win,r=e.domain,o=Sn("requestListeners");if("*"===t&&(t=null),"*"===r&&(r=null),!n)throw new Error("Name required to get request listener");for(var i=0,a=[t,bn()];i<a.length;i++){var u=a[i];if(u){var c=o.get(u);if(c){var s=c[n];if(s){if(r&&"string"==typeof r){if(s[r])return s[r];if(s.__domain_regex__)for(var d=0,f=s.__domain_regex__;d<f.length;d++){var l=f[d],p=l.listener;if(U(l.regex,r))return p}}if(s["*"])return s["*"]}}}}}function Qn(e,n){var t=n.on,r=n.send,o=gn("receivedMessages");try{if(!window||window.closed||!e.source)return}catch(e){return}var i=e.source,a=e.origin,u=function(e,n,t,r){var o,i=r.on,a=r.send;try{o=qn(n,t,e,{on:i,send:a})}catch(e){return}if(o&&"object"==typeof o&&null!==o){var u=o[yn()];if(Array.isArray(u))return u}}(e.data,i,a,{on:t,send:r});if(u){xn(i);for(var c,s=function(){var e=u[d];if(o.has(e.id))return{v:void 0};if(o.set(e.id,!0),L(i)&&!e.fireAndForget)return{v:void 0};0===e.origin.indexOf("file:")&&(a="file://");try{"postrobot_message_request"===e.type?function(e,n,t,r){var o=r.on,i=r.send,a=Jn({name:t.name,win:e,domain:n}),u="postrobot_method"===t.name&&t.data&&"string"==typeof t.data.name?t.data.name+"()":t.name;function c(r,a,c){return h.flush().then((function(){if(!t.fireAndForget&&!L(e))try{return zn(e,n,{id:oe(),origin:T(window),type:"postrobot_message_response",hash:t.hash,name:t.name,ack:r,data:a,error:c},{on:o,send:i})}catch(e){throw new Error("Send response message failed for "+u+" in "+T()+"\n\n"+ve(e))}}))}h.all([h.flush().then((function(){if(!t.fireAndForget&&!L(e))try{return zn(e,n,{id:oe(),origin:T(window),type:"postrobot_message_ack",hash:t.hash,name:t.name},{on:o,send:i})}catch(e){throw new Error("Send ack message failed for "+u+" in "+T()+"\n\n"+ve(e))}})),h.try((function(){if(!a)throw new Error("No handler found for post message: "+t.name+" from "+n+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);return a.handler({source:e,origin:n,data:t.data})})).then((function(e){return c("success",e)}),(function(e){return c("error",null,e)}))]).then(pe).catch((function(e){if(a&&a.handleError)return a.handleError(e);throw e}))}(i,a,e,{on:t,send:r}):"postrobot_message_response"===e.type?function(e,n,t){if(!Vn(t.hash)){var r,o=Kn(t.hash);if(!o)throw new Error("No handler found for post message response for message: "+t.name+" from "+n+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);if(!U(o.domain,n))throw new Error("Response origin "+n+" does not match domain "+(r=o.domain,Array.isArray(r)?"("+r.join(" | ")+")":v(r)?"RegExp("+r.toString()+")":r.toString()));if(e!==o.win)throw new Error("Response source does not match registered window");Yn(t.hash),"error"===t.ack?o.promise.reject(t.error):"success"===t.ack&&o.promise.resolve({source:e,origin:n,data:t.data})}}(i,a,e):"postrobot_message_ack"===e.type&&function(e,n,t){if(!Vn(t.hash)){var r=Kn(t.hash);if(!r)throw new Error("No handler found for post message ack for message: "+t.name+" from "+n+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);try{if(!U(r.domain,n))throw new Error("Ack origin "+n+" does not match domain "+r.domain.toString());if(e!==r.win)throw new Error("Ack source does not match registered window")}catch(e){r.promise.reject(e)}r.ack=!0}}(i,a,e)}catch(e){setTimeout((function(){throw e}),0)}},d=0;d<u.length;d++)if(c=s())return c.v}}function Xn(e,n,t){if(!e)throw new Error("Expected name");if("function"==typeof(n=n||{})&&(t=n,n={}),!t)throw new Error("Expected handler");var r=function e(n,t){var r=n.name,o=n.win,i=n.domain,a=Sn("requestListeners");if(!r||"string"!=typeof r)throw new Error("Name required to add request listener");if(o&&"*"!==o&&jn.isProxyWindow(o)){var u=o.awaitWindow().then((function(n){return e({name:r,win:n,domain:i},t)}));return{cancel:function(){u.then((function(e){return e.cancel()}),pe)}}}var c=o;if(Array.isArray(c)){for(var s=[],d=0,f=c;d<f.length;d++)s.push(e({name:r,domain:i,win:f[d]},t));return{cancel:function(){for(var e=0;e<s.length;e++)s[e].cancel()}}}if(Array.isArray(i)){for(var l=[],p=0,h=i;p<h.length;p++)l.push(e({name:r,win:c,domain:h[p]},t));return{cancel:function(){for(var e=0;e<l.length;e++)l[e].cancel()}}}var v=Jn({name:r,win:c,domain:i});c&&"*"!==c||(c=bn());var y=(i=i||"*").toString();if(v)throw c&&i?new Error("Request listener already exists for "+r+" on domain "+i.toString()+" for "+(c===bn()?"wildcard":"specified")+" window"):c?new Error("Request listener already exists for "+r+" for "+(c===bn()?"wildcard":"specified")+" window"):i?new Error("Request listener already exists for "+r+" on domain "+i.toString()):new Error("Request listener already exists for "+r);var m,w,g=a.getOrSet(c,(function(){return{}})),E=Oe(g,r,(function(){return{}}));return Re(i)?(m=Oe(E,"__domain_regex__",(function(){return[]}))).push(w={regex:i,listener:t}):E[y]=t,{cancel:function(){delete E[y],w&&(m.splice(m.indexOf(w,1)),m.length||delete E.__domain_regex__),Object.keys(E).length||delete g[r],c&&!Object.keys(g).length&&a.del(c)}}}({name:e,win:n.window,domain:n.domain||"*"},{handler:t||n.handler,handleError:n.errorHandler||function(e){throw e}});return{cancel:function(){r.cancel()}}}Zn.postrobot_post_message=function(e,n,t){0===t.indexOf("file:")&&(t="*"),e.postMessage(n,t)},Zn.postrobot_global=function(e,n){if(!function(e){return(e=e||window).navigator.mockUserAgent||e.navigator.userAgent}(window).match(/MSIE|rv:11|trident|edge\/12|edge\/13/i))throw new Error("Global messaging not needed for browser");if(!A(e))throw new Error("Post message through global disabled between different domain windows");if(!1!==B(window,e))throw new Error("Can only use global to communicate between two different windows, not between frames");var t=mn(e);if(!t)throw new Error("Can not find postRobot global on foreign window");t.receiveMessage({source:window,origin:T(),data:n})};var $n=function(e,n,t,r){var o=(r=r||{}).domain||"*",i=r.timeout||-1,a=r.timeout||5e3,u=r.fireAndForget||!1;return jn.toProxyWindow(e,{send:$n}).awaitWindow().then((function(e){return h.try((function(){if(function(e,n,t){if(!e)throw new Error("Expected name");if(t&&"string"!=typeof t&&!Array.isArray(t)&&!Re(t))throw new TypeError("Can not send "+e+". Expected domain "+JSON.stringify(t)+" to be a string, array, or regex");if(L(n))throw new Error("Can not send "+e+". Target window is closed")}(n,e,o),function(e,n){var t=k(n);if(t)return t===e;if(n===e)return!1;if(I(n)===n)return!1;for(var r=0,o=R(e);r<o.length;r++)if(o[r]===n)return!0;return!1}(window,e))return function(e,n,t){void 0===n&&(n=5e3),void 0===t&&(t="Window");var r=function(e){return Sn("helloPromises").getOrSet(e,(function(){return new h}))}(e);return-1!==n&&(r=r.timeout(n,new Error(t+" did not load after "+n+"ms"))),r}(e,a)})).then((function(n){return function(e,n,t,r){var o=r.send;return h.try((function(){return"string"==typeof n?n:h.try((function(){return t||An(e,{send:o}).then((function(e){return e.domain}))})).then((function(e){if(!U(n,n))throw new Error("Domain "+ye(n)+" does not match "+ye(n));return e}))}))}(e,o,(void 0===n?{}:n).domain,{send:$n})})).then((function(r){var o=r,a="postrobot_method"===n&&t&&"string"==typeof t.name?t.name+"()":n,c=new h,s=n+"_"+oe();if(!u){var d={name:n,win:e,domain:o,promise:c};!function(e,n){gn("responseListeners").set(e,n)}(s,d);var f=Sn("requestPromises").getOrSet(e,(function(){return[]}));f.push(c),c.catch((function(){!function(e){gn("erroredResponseListeners").set(e,!0)}(s),Yn(s)}));var l=function(e){return Sn("knownWindows").get(e,!1)}(e)?1e4:2e3,p=i,v=l,y=p,m=Ee((function(){return L(e)?c.reject(new Error("Window closed for "+n+" before "+(d.ack?"response":"ack"))):d.cancelled?c.reject(new Error("Response listener was cancelled for "+n)):(v=Math.max(v-500,0),-1!==y&&(y=Math.max(y-500,0)),d.ack||0!==v?0===y?c.reject(new Error("No response for postMessage "+a+" in "+T()+" in "+p+"ms")):void 0:c.reject(new Error("No ack for postMessage "+a+" in "+T()+" in "+l+"ms")))}),500);c.finally((function(){m.cancel(),f.splice(f.indexOf(c,1))})).catch(pe)}return zn(e,o,{id:oe(),origin:T(window),type:"postrobot_message_request",hash:s,name:n,data:t,fireAndForget:u},{on:Xn,send:$n}).then((function(){return u?c.resolve():c}),(function(e){throw new Error("Send request message failed for "+a+" in "+T()+"\n\n"+ve(e))}))}))}))};function et(e){return jn.toProxyWindow(e,{send:$n})}function nt(){var e,n,t;mn().initialized||(mn().initialized=!0,function(e){var n=e.on,t=e.send,r=mn();r.receiveMessage=r.receiveMessage||function(e){return Qn(e,{on:n,send:t})}}({on:Xn,send:$n}),function(e){var n=e.on,t=e.send;gn().getOrSet("postMessageListener",(function(){return Je(window,"message",(function(e){!function(e,n){var t=n.on,r=n.send;h.try((function(){var n=e.source||e.sourceElement,o=e.origin||e.originalEvent&&e.originalEvent.origin,i=e.data;if("null"===o&&(o="file://"),n){if(!o)throw new Error("Post message did not have origin domain");Qn({source:n,origin:o,data:i},{on:t,send:r})}}))}(e,{on:n,send:t})}))}))}({on:Xn,send:$n}),n=(e={on:Xn,send:$n}).on,t=e.send,gn("builtinListeners").getOrSet("helloListener",(function(){var e=n("postrobot_hello",{domain:"*"},(function(e){return Tn(e.source,{domain:e.origin}),{instanceID:Nn()}})),r=k();return r&&An(r,{send:t}).catch((function(e){})),e})))}function tt(e){for(var n=0,t=Sn("requestPromises").get(e,[]);n<t.length;n++)t[n].reject(new Error("Window "+(L(e)?"closed":"cleaned up")+" before response")).catch(pe)}function rt(e){var n="__zoid_10_4_0___"+un();if(!A(e))throw new Error("Can not get global for window on different domain");return e[n]||(e[n]={}),e[n]}function ot(e,n){try{return n(rt(e))}catch(e){}}function it(e){return{get:function(){var n=this;return h.try((function(){if(n.source&&n.source!==window)throw new Error("Can not call get on proxy object from a remote window");return e}))}}}function at(e){return re(JSON.stringify(e))}function ut(e){var n=rt(e);return n.references=n.references||{},n.references}function ct(e){var n,t,r=e.data,o=e.metaData,i=e.sender,a=e.receiver,u=e.passByReference,c=void 0!==u&&u,s=e.basic,d=void 0!==s&&s,f=et(a.win),l=d?JSON.stringify(r):Gn(f,a.domain,r,{on:Xn,send:$n}),p=c?(n=l,t=oe(),ut(window)[t]=n,{type:"uid",uid:t}):function(e){return{type:"raw",val:e}}(l);return{serializedData:at({sender:{domain:i.domain},metaData:o,reference:p}),cleanReference:function(){var e,n;e=window,"uid"===(n=p).type&&delete ut(e)[n.uid]}}}function st(e){var n,t,r=e.sender,o=e.basic,i=void 0!==o&&o,a=function(e){return JSON.parse(function(e){if("function"==typeof atob)return decodeURIComponent([].map.call(atob(e),(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));if("undefined"!=typeof Buffer)return Buffer.from(e,"base64").toString("utf8");throw new Error("Can not find window.atob or Buffer")}(e))}(e.data),u=a.reference,c=a.metaData;n="function"==typeof r.win?r.win({metaData:c}):r.win,t="function"==typeof r.domain?r.domain({metaData:c}):"string"==typeof r.domain?r.domain:a.sender.domain;var s=function(e,n){if("raw"===n.type)return n.val;if("uid"===n.type)return ut(e)[n.uid];throw new Error("Unsupported ref type: "+n.type)}(n,u);return{data:i?JSON.parse(s):function(e,n,t){return qn(e,n,t,{on:Xn,send:$n})}(n,t,s),metaData:c,sender:{win:n,domain:t},reference:u}}nt();var dt={NAVIGATED_AWAY:"Window navigated away",COMPONENT_DESTROYED:"Component destroyed",COMPONENT_CLOSED:"Component closed",WINDOW_CLOSED:"Detected component window close",IFRAME_CLOSE:"Detected iframe close"},ft=y;function lt(e){return"__zoid__"+e.name+"__"+e.serializedPayload+"__"}function pt(e){if(!e)throw new Error("No window name");var n=e.split("__"),t=n[1],r=n[2],o=n[3];if("zoid"!==t)throw new Error("Window not rendered by zoid - got "+t);if(!r)throw new Error("Expected component name");if(!o)throw new Error("Expected serialized payload ref");return{name:r,serializedInitialPayload:o}}var ht=de((function(e){var n=st({data:pt(e).serializedInitialPayload,sender:{win:function(e){return function(e){if("opener"===e.type)return Ce("opener",b(window));if("parent"===e.type&&"number"==typeof e.distance)return Ce("parent",function(e,n){return void 0===n&&(n=1),function(e,n){void 0===n&&(n=1);for(var t=e,r=0;r<n;r++){if(!t)return;t=_(t)}return t}(e,j(e)-n)}(window,e.distance));if("global"===e.type&&e.uid&&"string"==typeof e.uid){var n=e.uid,t=k(window);if(!t)throw new Error("Can not find ancestor window");for(var r=0,o=C(t);r<o.length;r++){var i=o[r];if(A(i)){var a=ot(i,(function(e){return e.windows&&e.windows[n]}));if(a)return a}}}else if("name"===e.type){var u=e.name;return Ce("namedWindow",function(e,n){return F(e,n)||function e(n,t){var r=F(n,t);if(r)return r;for(var o=0,i=R(n);o<i.length;o++){var a=e(i[o],t);if(a)return a}}(I(e)||e,n)}(Ce("ancestor",k(window)),u))}throw new Error("Unable to find "+e.type+" parent component window")}(e.metaData.windowRef)}}});return{parent:n.sender,payload:n.data,reference:n.reference}}));function vt(){return ht(window.name)}function yt(e,n){if(void 0===n&&(n=window),e===_(n))return{type:"parent",distance:j(e)};if(e===b(n))return{type:"opener"};if(A(e)&&(r=e)!==I(r)){var t=P(e).name;if(t)return{type:"name",name:t}}var r}function mt(e,n,t,r,o){if(!e.hasOwnProperty(t))return r;var i=e[t];return"function"==typeof i.childDecorate?i.childDecorate({value:r,uid:o.uid,tag:o.tag,close:o.close,focus:o.focus,onError:o.onError,onProps:o.onProps,resize:o.resize,getParent:o.getParent,getParentDomain:o.getParentDomain,show:o.show,hide:o.hide,export:o.export,getSiblings:o.getSiblings}):r}function wt(){return h.try((function(){window.focus()}))}function gt(){return h.try((function(){window.close()}))}var Et=function(){return pe},_t=function(e){return he(e.value)};function bt(e,n,t){for(var r=0,o=Object.keys(i({},e,n));r<o.length;r++){var a=o[r];t(a,n[a],e[a])}}function St(e,n,t){var r={};return h.all(function(e,n,o){var i=[];return bt(e,n,(function(e,n,o){var a=function(e,n,o){return h.resolve().then((function(){var i,a;if(null!=o&&n){var u=(i={},i.get=n.queryParam,i.post=n.bodyParam,i)[t],c=(a={},a.get=n.queryValue,a.post=n.bodyValue,a)[t];if(u)return h.hash({finalParam:h.try((function(){return"function"==typeof u?u({value:o}):"string"==typeof u?u:e})),finalValue:h.try((function(){return"function"==typeof c&&xe(o)?c({value:o}):o}))}).then((function(t){var o,i=t.finalParam,a=t.finalValue;if("boolean"==typeof a)o=a.toString();else if("string"==typeof a)o=a.toString();else if("object"==typeof a&&null!==a){if("json"===n.serialization)o=JSON.stringify(a);else if("base64"===n.serialization)o=re(JSON.stringify(a));else if("dotify"===n.serialization||!n.serialization){o=function e(n,t,r){for(var o in void 0===t&&(t=""),void 0===r&&(r={}),t=t?t+".":t,n)n.hasOwnProperty(o)&&null!=n[o]&&"function"!=typeof n[o]&&(n[o]&&Array.isArray(n[o])&&n[o].length&&n[o].every((function(e){return"object"!=typeof e}))?r[""+t+o+"[]"]=n[o].join(","):n[o]&&"object"==typeof n[o]?r=e(n[o],""+t+o,r):r[""+t+o]=n[o].toString());return r}(a,e);for(var u=0,c=Object.keys(o);u<c.length;u++){var s=c[u];r[s]=o[s]}return}}else"number"==typeof a&&(o=a.toString());r[i]=o}))}}))}(e,n,o);i.push(a)})),i}(n,e)).then((function(){return r}))}function Nt(e){var n,t,r,o,a,u=e.uid,c=e.options,s=e.overrides,d=void 0===s?{}:s,f=e.parentWin,l=void 0===f?window:f,p=c.propsDef,v=c.containerTemplate,y=c.prerenderTemplate,m=c.tag,w=c.name,g=c.attributes,E=c.dimensions,_=c.autoResize,b=c.url,S=c.domain,N=c.exports,x=new h,R=[],O=Ie(),I={},C={},D={visible:!0},M=d.event?d.event:_e(),F=d.props?d.props:{},H=!1,q=d.onError,Z=d.getProxyContainer,K=d.show,Y=d.hide,V=d.close,J=d.renderContainer,Q=d.getProxyWindow,X=d.setProxyWin,$=d.openFrame,ee=d.openPrerenderFrame,ne=d.prerender,te=d.open,re=d.openPrerender,ie=d.watchForUnload,ae=d.getInternalState,ue=d.setInternalState,ce=function(){return"function"==typeof E?E({props:F}):E},se=function(){return h.try((function(){return d.resolveInitPromise?d.resolveInitPromise():x.resolve()}))},fe=function(e){return h.try((function(){return d.rejectInitPromise?d.rejectInitPromise(e):x.reject(e)}))},le=function(e){for(var n={},t=0,r=Object.keys(F);t<r.length;t++){var o=r[t],i=p[o];if(!i||!1!==i.sendToChild){var a=i&&i.trustedDomains&&i.trustedDomains.length>0?i.trustedDomains.reduce((function(n,t){return n||U(t,e)}),!1):U(e,T(window));i&&i.sameDomain&&!a||i&&i.trustedDomains&&!a||(n[o]=F[o])}}return h.hash(n)},we=function(){return h.try((function(){return ae?ae():D}))},ge=function(e){return h.try((function(){return ue?ue(e):D=i({},D,e)}))},be=function(){return Q?Q():h.try((function(){var e=F.window;if(e){var n=et(e);return O.register((function(){return e.close()})),n}return new jn({send:$n})}))},Se=function(e){return X?X(e):h.try((function(){n=e}))},Te=function(){return K?K():h.hash({setState:ge({visible:!0}),showElement:t?t.get().then(Qe):null}).then(pe)},Ae=function(){return Y?Y():h.hash({setState:ge({visible:!1}),showElement:t?t.get().then(Xe):null}).then(pe)},Pe=function(){return"function"==typeof b?b({props:F}):b},Re=function(){return"function"==typeof g?g({props:F}):g},Oe=function(){return W(Pe())},Ce=function(e,n){var t=n.windowName;return $?$(e,{windowName:t}):h.try((function(){if(e===ft.IFRAME)return it(Ve({attributes:i({name:t,title:w},Re().iframe)}))}))},De=function(e){return ee?ee(e):h.try((function(){if(e===ft.IFRAME)return it(Ve({attributes:i({name:"__zoid_prerender_frame__"+w+"_"+oe()+"__",title:"prerender__"+w},Re().iframe)}))}))},Me=function(e,n,t){return re?re(e,n,t):h.try((function(){if(e===ft.IFRAME){if(!t)throw new Error("Expected proxy frame to be passed");return t.get().then((function(e){return O.register((function(){return $e(e)})),Ye(e).then((function(e){return P(e)})).then((function(e){return et(e)}))}))}if(e===ft.POPUP)return n;throw new Error("No render context available for "+e)}))},Le=function(){return h.try((function(){if(n)return h.all([M.trigger("zoid-focus"),n.focus()]).then(pe)}))},Fe=function(){var e=rt(window);return e.windows=e.windows||{},e.windows[u]=window,O.register((function(){delete e.windows[u]})),u},ke=function(e,n,t,r){if(n===T(window))return{type:"global",uid:Fe()};if(e!==window)throw new Error("Can not construct cross-domain window reference for different target window");if(F.window){var o=r.getWindow();if(!o)throw new Error("Can not construct cross-domain window reference for lazy window prop");if(k(o)!==window)throw new Error("Can not construct cross-domain window reference for window prop with different ancestor")}if(t===ft.POPUP)return{type:"opener"};if(t===ft.IFRAME)return{type:"parent",distance:j(window)};throw new Error("Can not construct window reference for child")},He=function(e,t){return h.try((function(){var i;o=e,r=t,null==(i=n)||i.isPopup().then((function(e){var r;""!==(null==t?void 0:t.name)&&e&&(null==(r=n)||r.setName(null==t?void 0:t.name))})).finally((function(){se(),O.register((function(){return t.close.fireAndForget().catch(pe)}))}))}))},Be=function(e){var n=e.width,t=e.height;return h.try((function(){M.trigger("zoid-resize",{width:n,height:t})}))},Ue=function(e){return h.try((function(){return M.trigger("zoid-destroy")})).catch(pe).then((function(){return O.all(e)})).then((function(){var n=e||new Error(dt.COMPONENT_DESTROYED);a&&en(a)||Object.values(dt).includes(n.message)?x.resolve():x.asyncReject(n)}))},Ze=de((function(e){return h.try((function(){if(V){if(L(V.__source__))return;return V()}return h.try((function(){return M.trigger("zoid-close")})).then((function(){return Ue(e||new Error(dt.COMPONENT_CLOSED))}))}))})),Ke=function(e,n){var t=n.proxyWin,r=n.proxyFrame,o=n.windowName;return te?te(e,{proxyWin:t,proxyFrame:r,windowName:o}):h.try((function(){if(e===ft.IFRAME){if(!r)throw new Error("Expected proxy frame to be passed");return r.get().then((function(e){return Ye(e).then((function(n){return O.register((function(){return $e(e)})),O.register((function(){return tt(n)})),n}))}))}if(e===ft.POPUP){var n=ce(),t=n.width,a=void 0===t?"300px":t,u=n.height,c=void 0===u?"150px":u;a=vn(a,window.outerWidth),c=vn(c,window.outerWidth);var s=function(e,n){var t=(n=n||{}).closeOnUnload,r=void 0===t?1:t,o=n.name,a=void 0===o?"":o,u=n.width,c=n.height,s=0,d=0;u&&(window.outerWidth?d=Math.round((window.outerWidth-u)/2)+window.screenX:window.screen.width&&(d=Math.round((window.screen.width-u)/2))),c&&(window.outerHeight?s=Math.round((window.outerHeight-c)/2)+window.screenY:window.screen.height&&(s=Math.round((window.screen.height-c)/2))),delete n.closeOnUnload,delete n.name,u&&c&&(n=i({top:s,left:d,width:u,height:c,status:1,toolbar:0,menubar:0,resizable:1,scrollbars:1},n));var f,l,p=Object.keys(n).map((function(e){if(null!=n[e])return e+"="+ye(n[e])})).filter(Boolean).join(",");try{f=window.open("",a,p)}catch(l){throw new ze("Can not open popup window - "+(l.stack||l.message))}if(L(f))throw new ze("Can not open popup window - blocked");return r&&window.addEventListener("unload",(function(){return f.close()})),f}(0,i({name:o,width:a,height:c},Re().popup));return O.register((function(){return z(s)})),O.register((function(){return tt(s)})),s}throw new Error("No render context available for "+e)})).then((function(e){return t.setWindow(e,{send:$n}),t.setName(o).then((function(){return t}))}))},rn=function(){return h.try((function(){var e=Je(window,"unload",he((function(){Ue(new Error(dt.NAVIGATED_AWAY))}))),n=G(l,Ue,3e3);if(O.register(n.cancel),O.register(e.cancel),ie)return ie()}))},on=function(e,n){var t=!1;return O.register((function(){t=!0})),h.delay(2e3).then((function(){return e.isClosed()})).then((function(r){if(!t){if(n===ft.POPUP&&r)return Ze(new Error("Detected popup close"));var o=Boolean(a&&en(a));return n===ft.IFRAME&&r&&(o||H)?Ze(new Error(dt.IFRAME_CLOSE)):on(e,n)}}))},an=function(e){var n=!1;return e.isClosed().then((function(t){return t?(n=!0,Ze(new Error(dt.WINDOW_CLOSED))):h.delay(200).then((function(){return e.isClosed()})).then((function(e){if(e)return n=!0,Ze(new Error(dt.WINDOW_CLOSED))}))})).then((function(){return n}))},un=function(e){return q?q(e):h.try((function(){if(-1===R.indexOf(e))return R.push(e),x.asyncReject(e),M.trigger("zoid-error",e)}))},cn=new h,sn=function(e){return h.try((function(){cn.resolve(e)}))};He.onError=un;var dn=function(e,n){return e({uid:u,container:n.container,context:n.context,doc:n.doc,frame:n.frame,prerenderFrame:n.prerenderFrame,focus:Le,close:Ze,state:I,props:F,tag:m,dimensions:ce(),event:M})},fn=function(e,n){var t=n.context;return ne?ne(e,{context:t}):h.try((function(){if(y){M.trigger("zoid-prerender");var n=e.getWindow();if(n&&A(n)&&function(e){try{if(!e.location.href)return!0;if("about:blank"===e.location.href)return!0}catch(e){}return!1}(n)){var r=(n=P(n)).document,o=dn(y,{context:t,doc:r});if(o){if(o.ownerDocument!==r)throw new Error("Expected prerender template to have been created with document from child window");!function(e,n){var t=n.tagName.toLowerCase();if("html"!==t)throw new Error("Expected element to be html, got "+t);for(var r=e.document.documentElement,o=0,i=Ne(r.children);o<i.length;o++)r.removeChild(i[o]);for(var a=0,u=Ne(n.children);a<u.length;a++)r.appendChild(u[a])}(n,o);var i=_.width,a=void 0!==i&&i,u=_.height,c=void 0!==u&&u,s=_.element,d=void 0===s?"body":s;if((d=Ge(d,r))&&(a||c)){var f=nn(d,(function(e){Be({width:a?e.width:void 0,height:c?e.height:void 0})}),{width:a,height:c,win:n});M.on("zoid-rendered",f.cancel)}M.trigger("zoid-prerendered")}}}}))},ln=function(e,n){var r=n.proxyFrame,o=n.proxyPrerenderFrame,i=n.context,a=n.rerender;return J?J(e,{proxyFrame:r,proxyPrerenderFrame:o,context:i,rerender:a}):h.hash({container:e.get(),frame:r?r.get():null,prerenderFrame:o?o.get():null,internalState:we()}).then((function(e){var n=e.container,r=e.internalState.visible,o=dn(v,{context:i,container:n,frame:e.frame,prerenderFrame:e.prerenderFrame,doc:document});if(o){r||Xe(o),We(n,o);var u=function(e,n){n=he(n);var t,r,o,i=!1,a=[],u=function(){i=!0;for(var e=0;e<a.length;e++)a[e].disconnect();t&&t.cancel(),o&&o.removeEventListener("unload",c),r&&$e(r)},c=function(){i||(n(),u())};if(en(e))return c(),{cancel:u};if(window.MutationObserver)for(var s=e.parentElement;s;){var d=new window.MutationObserver((function(){en(e)&&c()}));d.observe(s,{childList:!0}),a.push(d),s=s.parentElement}return(r=document.createElement("iframe")).setAttribute("name","__detect_close_"+oe()+"__"),r.style.display="none",Ye(r).then((function(e){(o=P(e)).addEventListener("unload",c)})),e.appendChild(r),t=Ee((function(){en(e)&&c()}),1e3),{cancel:u}}(o,(function(){var e=new Error("Detected container element removed from DOM");return h.delay(1).then((function(){if(!en(o))return O.all(e),a().then(se,fe);Ze(e)}))}));return O.register((function(){return u.cancel()})),O.register((function(){return $e(o)})),t=it(o)}}))},pn=function(){return{state:I,event:M,close:Ze,focus:Le,resize:Be,onError:un,updateProps:yn,show:Te,hide:Ae}},hn=function(e){void 0===e&&(e={});var n=a,t=pn();me(C,e),function(e,n,t,r,o){var i=r.state,a=r.close,u=r.focus,c=r.event,s=r.onError;bt(t,e,(function(e,r,d){var f=!1,l=d;Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){return f?l:(f=!0,function(){if(!r)return l;var f=r.alias;if(f&&!xe(d)&&xe(t[f])&&(l=t[f]),r.value&&(l=r.value({props:n,state:i,close:a,focus:u,event:c,onError:s,container:o})),!r.default||xe(l)||xe(t[e])||(l=r.default({props:n,state:i,close:a,focus:u,event:c,onError:s,container:o})),xe(l)){if("array"===r.type?!Array.isArray(l):typeof l!==r.type)throw new TypeError("Prop is not of type "+r.type+": "+e)}else if(!1!==r.required&&!xe(t[e]))throw new Error('Expected prop "'+e+'" to be defined');return xe(l)&&r.decorate&&(l=r.decorate({value:l,props:n,state:i,close:a,focus:u,event:c,onError:s,container:o})),l}())}})})),bt(n,e,pe)}(p,F,C,t,n)},yn=function(e){return hn(e),x.then((function(){var e=r,t=n;if(e&&t&&o)return le(o).then((function(n){return e.updateProps(n).catch((function(e){return an(t).then((function(n){if(!n)throw e}))}))}))}))},mn=function(e){return Z?Z(e):h.try((function(){return qe(e)})).then((function(e){return tn(e)&&(e=function e(n){var t=function(e){var n=function(e){for(;e.parentNode;)e=e.parentNode;if(tn(e))return e}(e);if(n&&n.host)return n.host}(n);if(!t)throw new Error("Element is not in shadow dom");var r="shadow-slot-"+oe(),o=document.createElement("slot");o.setAttribute("name",r),n.appendChild(o);var i=document.createElement("div");return i.setAttribute("slot",r),t.appendChild(i),tn(t)?e(i):i}(e)),a=e,it(e)}))};return{init:function(){M.on("zoid-render",(function(){return F.onRender()})),M.on("zoid-prerender",(function(){return F.onPrerender()})),M.on("zoid-display",(function(){return F.onDisplay()})),M.on("zoid-rendered",(function(){return F.onRendered()})),M.on("zoid-prerendered",(function(){return F.onPrerendered()})),M.on("zoid-close",(function(){return F.onClose()})),M.on("zoid-destroy",(function(){return F.onDestroy()})),M.on("zoid-resize",(function(){return F.onResize()})),M.on("zoid-focus",(function(){return F.onFocus()})),M.on("zoid-props",(function(e){return F.onProps(e)})),M.on("zoid-error",(function(e){return F&&F.onError?F.onError(e):fe(e).then((function(){setTimeout((function(){throw e}),1)}))})),O.register(M.reset)},render:function(e){var t=e.target,r=e.container,o=e.context,i=e.rerender;return h.try((function(){var e=Oe(),a=S||Oe();!function(e,n,t){if(e!==window){if(!B(window,e))throw new Error("Can only renderTo an adjacent frame");var r=T();if(!U(n,r)&&!A(e))throw new Error("Can not render remotely to "+n.toString()+" - can only render to "+r);if(t&&"string"!=typeof t)throw new Error("Container passed to renderTo must be a string selector, got "+typeof t+" }")}}(t,a,r);var s=h.try((function(){if(t!==window)return function(e,n){for(var t={},r=0,o=Object.keys(F);r<o.length;r++){var i=o[r],a=p[i];a&&a.allowDelegate&&(t[i]=F[i])}var c=$n(n,"zoid_delegate_"+w,{uid:u,overrides:{props:t,event:M,close:Ze,onError:un,getInternalState:we,setInternalState:ge,resolveInitPromise:se,rejectInitPromise:fe}}).then((function(e){var t=e.data.parent;return O.register((function(e){if(!L(n))return t.destroy(e)})),t.getDelegateOverrides()})).catch((function(e){throw new Error("Unable to delegate rendering. Possibly the component is not loaded in the target window.\n\n"+ve(e))}));return Z=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.getProxyContainer.apply(e,n)}))},J=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.renderContainer.apply(e,n)}))},K=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.show.apply(e,n)}))},Y=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.hide.apply(e,n)}))},ie=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.watchForUnload.apply(e,n)}))},e===ft.IFRAME?(Q=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.getProxyWindow.apply(e,n)}))},$=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.openFrame.apply(e,n)}))},ee=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.openPrerenderFrame.apply(e,n)}))},ne=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.prerender.apply(e,n)}))},te=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.open.apply(e,n)}))},re=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.openPrerender.apply(e,n)}))}):e===ft.POPUP&&(X=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.setProxyWin.apply(e,n)}))}),c}(o,t)})),d=F.window,f=rn(),l=St(p,F,"post"),v=M.trigger("zoid-render"),y=mn(r),g=be(),E=y.then((function(){return hn()})),_=E.then((function(){return St(p,F,"get").then((function(e){return function(e,n){var t,r,o=n.query||{},i=n.hash||{},a=e.split("#");r=a[1];var u=(t=a[0]).split("?");t=u[0];var c=je(u[1],o),s=je(r,i);return c&&(t=t+"?"+c),s&&(t=t+"#"+s),t}(function(e){if(0!==W(e).indexOf("mock:"))return e;throw new Error("Mock urls not supported out of test mode")}(Pe()),{query:e})}))})),b=g.then((function(n){return function(e){var n=void 0===e?{}:e,t=n.proxyWin,r=n.initialChildDomain,o=n.childDomainMatch,i=n.target,a=void 0===i?window:i,c=n.context;return function(e){var n=void 0===e?{}:e,t=n.proxyWin,r=n.childDomainMatch,o=n.context;return le(n.initialChildDomain).then((function(e){return{uid:u,context:o,tag:m,childDomainMatch:r,version:"10_4_0",props:e,exports:(n=t,{init:function(e){return He(this.origin,e)},close:Ze,checkClose:function(){return an(n)},resize:Be,onError:un,show:Te,hide:Ae,export:sn})};var n}))}({proxyWin:t,initialChildDomain:r,childDomainMatch:o,context:c}).then((function(e){var n=ct({data:e,metaData:{windowRef:ke(a,r,c,t)},sender:{domain:T(window)},receiver:{win:t,domain:o},passByReference:r===T()}),i=n.serializedData;return O.register(n.cleanReference),i}))}({proxyWin:(r={proxyWin:n,initialChildDomain:e,childDomainMatch:a,target:t,context:o}).proxyWin,initialChildDomain:r.initialChildDomain,childDomainMatch:r.childDomainMatch,target:r.target,context:r.context}).then((function(e){return lt({name:w,serializedPayload:e})}));var r})),N=b.then((function(e){return Ce(o,{windowName:e})})),P=De(o),R=h.hash({proxyContainer:y,proxyFrame:N,proxyPrerenderFrame:P}).then((function(e){return ln(e.proxyContainer,{context:o,proxyFrame:e.proxyFrame,proxyPrerenderFrame:e.proxyPrerenderFrame,rerender:i})})).then((function(e){return e})),I=h.hash({windowName:b,proxyFrame:N,proxyWin:g}).then((function(e){var n=e.proxyWin;return d?n:Ke(o,{windowName:e.windowName,proxyWin:n,proxyFrame:e.proxyFrame})})),C=h.hash({proxyWin:I,proxyPrerenderFrame:P}).then((function(e){return Me(o,e.proxyWin,e.proxyPrerenderFrame)})),D=I.then((function(e){return n=e,Se(e)})),k=h.hash({proxyPrerenderWin:C,state:D}).then((function(e){return fn(e.proxyPrerenderWin,{context:o})})),j=h.hash({proxyWin:I,windowName:b}).then((function(e){if(d)return e.proxyWin.setName(e.windowName)})),G=h.hash({body:l}).then((function(e){return c.method?c.method:Object.keys(e.body).length?"post":"get"})),q=h.hash({proxyWin:I,windowUrl:_,body:l,method:G,windowName:j,prerender:k}).then((function(e){return e.proxyWin.setLocation(e.windowUrl,{method:e.method,body:e.body})})),z=I.then((function(e){on(e,o)})),V=h.hash({container:R,prerender:k}).then((function(){return M.trigger("zoid-display")})),oe=I.then((function(e){})),ae=q.then((function(){return h.try((function(){var e=F.timeout;if(e)return x.timeout(e,new Error("Loading component timed out after "+e+" milliseconds"))}))})),ue=x.then((function(){return H=!0,M.trigger("zoid-rendered")}));return h.hash({initPromise:x,buildUrlPromise:_,onRenderPromise:v,getProxyContainerPromise:y,openFramePromise:N,openPrerenderFramePromise:P,renderContainerPromise:R,openPromise:I,openPrerenderPromise:C,setStatePromise:D,prerenderPromise:k,loadUrlPromise:q,buildWindowNamePromise:b,setWindowNamePromise:j,watchForClosePromise:z,onDisplayPromise:V,openBridgePromise:oe,runTimeoutPromise:ae,onRenderedPromise:ue,delegatePromise:s,watchForUnloadPromise:f,finalSetPropsPromise:E})})).catch((function(e){return h.all([un(e),Ue(e)]).then((function(){throw e}),(function(){throw e}))})).then(pe)},destroy:Ue,getProps:function(){return F},setProps:hn,export:sn,getHelpers:pn,getDelegateOverrides:function(){return h.try((function(){return{getProxyContainer:mn,show:Te,hide:Ae,renderContainer:ln,getProxyWindow:be,watchForUnload:rn,openFrame:Ce,openPrerenderFrame:De,prerender:fn,open:Ke,openPrerender:Me,setProxyWin:Se}}))},getExports:function(){return N({getExports:function(){return cn}})}}}var Tt={register:function(e,n,t,r){var i=r.React,a=r.ReactDOM;return function(e){function n(){return e.apply(this,arguments)||this}o(n,e);var r=n.prototype;return r.render=function(){return i.createElement("div",null)},r.componentDidMount=function(){var e=a.findDOMNode(this),n=t(me({},this.props));n.render(e,ft.IFRAME),this.setState({parent:n})},r.componentDidUpdate=function(){this.state&&this.state.parent&&this.state.parent.updateProps(me({},this.props)).catch(pe)},n}(i.Component)}},At={register:function(e,n,t,r){return r.component(e,{render:function(e){return e("div")},inheritAttrs:!1,mounted:function(){var e,n=this.$el;this.parent=t(i({},(e=this.$attrs,Object.keys(e).reduce((function(n,t){var r=e[t];return"style-object"===t||"styleObject"===t?(n.style=r,n.styleObject=r):t.includes("-")?n[be(t)]=r:n[t]=r,n}),{})))),this.parent.render(n,ft.IFRAME)},watch:{$attrs:{handler:function(){this.parent&&this.$attrs&&this.parent.updateProps(i({},this.$attrs)).catch(pe)},deep:!0}}})}},Pt={register:function(e,n,t){return{template:"<div></div>",inheritAttrs:!1,mounted:function(){var e,n=this.$el;this.parent=t(i({},(e=this.$attrs,Object.keys(e).reduce((function(n,t){var r=e[t];return"style-object"===t||"styleObject"===t?(n.style=r,n.styleObject=r):t.includes("-")?n[be(t)]=r:n[t]=r,n}),{})))),this.parent.render(n,ft.IFRAME)},watch:{$attrs:{handler:function(){this.parent&&this.$attrs&&this.parent.updateProps(i({},this.$attrs)).catch(pe)},deep:!0}}}}},xt={register:function(e,n,t,r){return r.module(e,[]).directive(be(e),(function(){for(var e={},r=0,o=Object.keys(n);r<o.length;r++)e[o[r]]="=";return e.props="=",{scope:e,restrict:"E",controller:["$scope","$element",function(e,n){function r(){if("$apply"!==e.$root.$$phase&&"$digest"!==e.$root.$$phase)try{e.$apply()}catch(e){}}var o=function(){return Pe(e.props,(function(e){return"function"==typeof e?function(){var n=e.apply(this,arguments);return r(),n}:e}))},i=t(o());i.render(n[0],ft.IFRAME),e.$watch((function(){i.updateProps(o()).catch(pe)}))}]}}))}},Rt={register:function(e,n,t,r){var o=r.Component,a=r.NgModule,u=r.ElementRef,c=r.NgZone,s=r.Inject,d=function(){function e(e,n){this.elementRef=void 0,this.internalProps=void 0,this.parent=void 0,this.props=void 0,this.zone=void 0,this._props=void 0,this._props={},this.elementRef=e,this.zone=n}var n=e.prototype;return n.getProps=function(){var e=this;return Pe(i({},this.internalProps,this.props),(function(n){if("function"==typeof n){var t=e.zone;return function(){var e=arguments,r=this;return t.run((function(){return n.apply(r,e)}))}}return n}))},n.ngOnInit=function(){var e=this.elementRef.nativeElement;this.parent=t(this.getProps()),this.parent.render(e,ft.IFRAME)},n.ngDoCheck=function(){this.parent&&!function(e,n){var t={};for(var r in e)if(e.hasOwnProperty(r)&&(t[r]=!0,e[r]!==n[r]))return!1;for(var o in n)if(!t[o])return!1;return!0}(this._props,this.props)&&(this._props=i({},this.props),this.parent.updateProps(this.getProps()))},e}();d.annotations=void 0,d.parameters=void 0,d.parameters=[[new s(u)],[new s(c)]],d.annotations=[new o({selector:e,template:"<div></div>",inputs:["props"]})];var f=function(){};return f.annotations=void 0,f.annotations=[new a({declarations:[d],exports:[d]})],f}};function Ot(e){var n=e.uid,t=e.frame,r=e.prerenderFrame,o=e.doc,i=e.props,a=e.event,u=e.dimensions,c=u.width,s=u.height;if(t&&r){var d=o.createElement("div");d.setAttribute("id",n);var f=o.createElement("style");return i.cspNonce&&f.setAttribute("nonce",i.cspNonce),f.appendChild(o.createTextNode("\n #"+n+" {\n display: inline-block;\n position: relative;\n width: "+c+";\n height: "+s+";\n }\n\n #"+n+" > iframe {\n display: inline-block;\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n transition: opacity .2s ease-in-out;\n }\n\n #"+n+" > iframe.zoid-invisible {\n opacity: 0;\n }\n\n #"+n+" > iframe.zoid-visible {\n opacity: 1;\n }\n ")),d.appendChild(t),d.appendChild(r),d.appendChild(f),r.classList.add("zoid-visible"),t.classList.add("zoid-invisible"),a.on("zoid-rendered",(function(){r.classList.remove("zoid-visible"),r.classList.add("zoid-invisible"),t.classList.remove("zoid-invisible"),t.classList.add("zoid-visible"),setTimeout((function(){$e(r)}),1)})),a.on("zoid-resize",(function(e){var n=e.width,t=e.height;"number"==typeof n&&(d.style.width=hn(n)),"number"==typeof t&&(d.style.height=hn(t))})),d}}function It(e){var n=e.doc,t=e.props,r=n.createElement("html"),o=n.createElement("body"),i=n.createElement("style"),a=n.createElement("div");return a.classList.add("spinner"),t.cspNonce&&i.setAttribute("nonce",t.cspNonce),r.appendChild(o),o.appendChild(a),o.appendChild(i),i.appendChild(n.createTextNode("\n html, body {\n width: 100%;\n height: 100%;\n }\n\n .spinner {\n position: fixed;\n max-height: 60vmin;\n max-width: 60vmin;\n height: 40px;\n width: 40px;\n top: 50%;\n left: 50%;\n box-sizing: border-box;\n border: 3px solid rgba(0, 0, 0, .2);\n border-top-color: rgba(33, 128, 192, 0.8);\n border-radius: 100%;\n animation: rotation .7s infinite linear;\n }\n\n @keyframes rotation {\n from {\n transform: translateX(-50%) translateY(-50%) rotate(0deg);\n }\n to {\n transform: translateX(-50%) translateY(-50%) rotate(359deg);\n }\n }\n ")),r}var Ct=Ie(),Dt=Ie();function Mt(e){var n,t,r=function(e){var n=e.tag,t=e.url,r=e.domain,o=e.bridgeUrl,a=e.props,u=void 0===a?{}:a,c=e.getExtensions,s=void 0===c?function(){return{}}:c,d=e.dimensions,f=void 0===d?{}:d,l=e.autoResize,p=void 0===l?{}:l,h=e.allowedParentDomains,v=void 0===h?"*":h,y=e.attributes,m=void 0===y?{}:y,w=e.defaultContext,g=void 0===w?ft.IFRAME:w,E=e.containerTemplate,_=void 0===E?Ot:E,b=e.prerenderTemplate,S=void 0===b?It:b,N=e.validate,T=e.eligible,P=void 0===T?function(){return{eligible:!0}}:T,x=e.logger,R=void 0===x?{info:pe}:x,O=e.exports,I=void 0===O?pe:O,C=e.method,D=e.children,M=void 0===D?function(){return{}}:D,F=n.replace(/-/g,"_"),k=i({},{window:{type:"object",sendToChild:!1,required:!1,allowDelegate:!0,validate:function(e){var n=e.value;if(!q(n)&&!jn.isProxyWindow(n))throw new Error("Expected Window or ProxyWindow");if(q(n)){if(L(n))throw new Error("Window is closed");if(!A(n))throw new Error("Window is not same domain")}},decorate:function(e){return et(e.value)}},timeout:{type:"number",required:!1,sendToChild:!1},cspNonce:{type:"string",required:!1},onDisplay:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:Et,decorate:_t},onRendered:{type:"function",required:!1,sendToChild:!1,default:Et,decorate:_t},onRender:{type:"function",required:!1,sendToChild:!1,default:Et,decorate:_t},onPrerendered:{type:"function",required:!1,sendToChild:!1,default:Et,decorate:_t},onPrerender:{type:"function",required:!1,sendToChild:!1,default:Et,decorate:_t},onClose:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:Et,decorate:_t},onDestroy:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:Et,decorate:_t},onResize:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:Et},onFocus:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:Et},close:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.close}},focus:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.focus}},resize:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.resize}},uid:{type:"string",required:!1,sendToChild:!1,childDecorate:function(e){return e.uid}},tag:{type:"string",required:!1,sendToChild:!1,childDecorate:function(e){return e.tag}},getParent:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.getParent}},getParentDomain:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.getParentDomain}},show:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.show}},hide:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.hide}},export:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.export}},onError:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.onError}},onProps:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.onProps}},getSiblings:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.getSiblings}}},u);if(!_)throw new Error("Container template required");return{name:F,tag:n,url:t,domain:r,bridgeUrl:o,method:C,propsDef:k,dimensions:f,autoResize:p,allowedParentDomains:v,attributes:m,defaultContext:g,containerTemplate:_,prerenderTemplate:S,validate:N,logger:R,eligible:P,children:M,exports:"function"==typeof I?I:function(e){for(var n=e.getExports,t={},r=function(){var e=i[o],r=I[e].type,a=n().then((function(n){return n[e]}));t[e]="function"===r?function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return a.then((function(e){return e.apply(void 0,n)}))}:a},o=0,i=Object.keys(I);o<i.length;o++)r();return t},getExtensions:s}}(e),o=r.name,a=r.tag,u=r.defaultContext,c=r.propsDef,s=r.eligible,d=r.children,f=r.getExtensions,l=rt(window),p={},v=[],y=function(){if(function(e){try{return pt(window.name).name===e}catch(e){}return!1}(o)){var e=vt().payload;if(e.tag===a&&U(e.childDomainMatch,T()))return!0}return!1},m=de((function(){if(y()){if(window.xprops)throw delete l.components[a],new Error("Can not register "+o+" as child - child already registered");var e=function(e){var n,t=e.tag,r=e.propsDef,o=e.autoResize,i=e.allowedParentDomains,a=[],u=vt(),c=u.parent,s=u.payload,d=c.win,f=c.domain,l=new h,p=s.version,v=s.uid,y=s.exports,m=s.context,w=s.props;if(!function(e,n){if(!/_/.test(e)||!/_/.test("10_4_0"))throw new Error("Versions are in an invalid format ("+e+", 10_4_0)");return e.split("_")[0]==="10_4_0".split("_")[0]}(p))throw new Error("Parent window has zoid version "+p+", child window has version 10_4_0");var g=y.show,E=y.hide,_=y.close,b=y.onError,S=y.checkClose,N=y.export,x=y.resize,R=y.init,O=function(){return d},I=function(){return f},D=function(e){return a.push(e),{cancel:function(){a.splice(a.indexOf(e),1)}}},M=function(e){return x.fireAndForget({width:e.width,height:e.height})},L=function(e){return l.resolve(e),N(e)},F=function(e){var r=(void 0===e?{}:e).anyParent,o=[],i=n.parent;if(void 0===r&&(r=!i),!r&&!i)throw new Error("No parent found for "+t+" child");for(var a=0,u=C(window);a<u.length;a++){var c=u[a];if(A(c)){var s=P(c).xprops;if(s&&O()===s.getParent()){var d=s.parent;if(r||!i||d&&d.uid===i.uid){var f=ot(c,(function(e){return e.exports}));o.push({props:s,exports:f})}}}}return o},k=function(e,o,i){void 0===i&&(i=!1);var u=function(e,n,t,r,o,i){void 0===i&&(i=!1);for(var a={},u=0,c=Object.keys(t);u<c.length;u++){var s=c[u],d=n[s],f=d&&d.trustedDomains&&d.trustedDomains.length>0?d.trustedDomains.reduce((function(e,n){return e||U(n,T(window))}),!1):r===T(window)||A(e);if((!d||!d.sameDomain||f)&&(!d||!d.trustedDomains||f)){var l=mt(n,0,s,t[s],o);a[s]=l,d&&d.alias&&!a[d.alias]&&(a[d.alias]=l)}}if(!i)for(var p=0,h=Object.keys(n);p<h.length;p++){var v=h[p];t.hasOwnProperty(v)||(a[v]=mt(n,0,v,void 0,o))}return a}(d,r,e,o,{tag:t,show:g,hide:E,close:_,focus:wt,onError:b,resize:M,getSiblings:F,onProps:D,getParent:O,getParentDomain:I,uid:v,export:L},i);n?me(n,u):n=u;for(var c=0;c<a.length;c++)(0,a[c])(n)},H=function(e){return h.try((function(){return k(e,f,!0)}))};return{init:function(){return h.try((function(){var n="";return A(d)&&(n=function(e){var n=e.componentName,t=e.parentComponentWindow,r=st({data:pt(window.name).serializedInitialPayload,sender:{win:t},basic:!0}),o=r.sender;if("uid"===r.reference.type||"global"===r.metaData.windowRef.type){var i=lt({name:n,serializedPayload:ct({data:r.data,metaData:{windowRef:yt(t)},sender:{domain:o.domain},receiver:{win:window,domain:T()},basic:!0}).serializedData});return window.name=i,i}}({componentName:e.name,parentComponentWindow:d})||""),rt(window).exports=e.exports({getExports:function(){return l}}),function(e,n){if(!U(e,n))throw new Error("Can not be rendered by domain: "+n)}(i,f),xn(d),window.addEventListener("beforeunload",(function(){S.fireAndForget()})),window.addEventListener("unload",(function(){S.fireAndForget()})),G(d,(function(){gt()})),R({name:n,updateProps:H,close:gt})})).then((function(){return(e=o.width,n=void 0!==e&&e,t=o.height,r=void 0!==t&&t,i=o.element,qe(void 0===i?"body":i).catch(pe).then((function(e){return{width:n,height:r,element:e}}))).then((function(e){var n=e.width,t=e.height,r=e.element;r&&(n||t)&&m!==ft.POPUP&&nn(r,(function(e){M({width:n?e.width:void 0,height:t?e.height:void 0})}),{width:n,height:t})}));var e,n,t,r,i})).catch((function(e){b(e)}))},getProps:function(){return n||(k(w,f),n)}}}(r);return e.init(),e}})),w=function(e){var n,t="zoid-"+a+"-"+oe(),c=e||{},l=s({props:c}),p=l.eligible,y=l.reason,m=c.onDestroy;c.onDestroy=function(){if(n&&p&&v.splice(v.indexOf(n),1),m)return m.apply(void 0,arguments)};var g=Nt({uid:t,options:r});g.init(),p?g.setProps(c):c.onDestroy&&c.onDestroy(),Ct.register((function(e){return g.destroy(e||new Error("zoid destroyed all components"))}));var E=function(e){var n=(void 0===e?{}:e).decorate;return w((void 0===n?ge:n)(c))},_=function(e,t,r){return h.try((function(){if(!p){var n=new Error(y||o+" component is not eligible");return g.destroy(n).then((function(){throw n}))}if(!q(e))throw new Error("Must pass window to renderTo");return function(e,n){return h.try((function(){if(e.window)return et(e.window).getType();if(n){if(n!==ft.IFRAME&&n!==ft.POPUP)throw new Error("Unrecognized context: "+n);return n}return u}))}(c,r)})).then((function(o){if(t=function(e,n){if(n){if("string"!=typeof n&&!ee(n))throw new TypeError("Expected string or element selector to be passed");return n}if(e===ft.POPUP)return"body";throw new Error("Expected element to be passed to render iframe")}(o,t),e!==window&&"string"!=typeof t)throw new Error("Must pass string element when rendering to another window");return g.render({target:e,container:t,context:o,rerender:function(){var o=E();return me(n,o),o.renderTo(e,t,r)}})})).catch((function(e){return g.destroy(e).then((function(){throw e}))}))};return n=i({},f(g),g.getExports(),g.getHelpers(),function(){for(var e=d(),n={},r=function(){var r=a[o],u=e[r];n[r]=function(e){var n=g.getProps(),r=i({},e,{parent:{uid:t,props:n,export:g.export}});return u(r)}},o=0,a=Object.keys(e);o<a.length;o++)r();return n}(),{isEligible:function(){return p},clone:E,render:function(e,n){return _(window,e,n)},renderTo:function(e,n,t){return _(e,n,t)}}),p&&v.push(n),n};if(m(),n=Xn("zoid_allow_delegate_"+o,(function(){return!0})),t=Xn("zoid_delegate_"+o,(function(e){var n=e.data;return{parent:Nt({uid:n.uid,options:r,overrides:n.overrides,parentWin:e.source})}})),Dt.register(n.cancel),Dt.register(t.cancel),l.components=l.components||{},l.components[a])throw new Error("Can not register multiple components with the same tag: "+a);return l.components[a]=!0,{init:w,instances:v,driver:function(e,n){var t={react:Tt,angular:xt,vue:At,vue3:Pt,angular2:Rt};if(!t[e])throw new Error("Could not find driver for framework: "+e);return p[e]||(p[e]=t[e].register(a,c,w,n)),p[e]},isChild:y,canRenderTo:function(e){return $n(e,"zoid_allow_delegate_"+o).then((function(e){return e.data})).catch((function(){return!1}))},registerChild:m}}var Lt=function(e){nt();var n=Mt(e),t=function(e){return n.init(e)};t.driver=function(e,t){return n.driver(e,t)},t.isChild=function(){return n.isChild()},t.canRenderTo=function(e){return n.canRenderTo(e)},t.instances=n.instances;var r=n.registerChild();return r&&(window.xprops=t.xprops=r.getProps()),t},Ft=t(4),kt=t.n(Ft),Ht=t(23),jt=t.n(Ht),Bt=t(42),Ut=t.n(Bt),Wt=t(26),Gt=t.n(Wt),qt=t(95),Zt=t.n(qt),zt=de((function(){try{return on()}catch(e){throw function(e,n,t){var r=t?ve(t):"";return new Error('PayPal Payments SDK script not found on page! Expected to find <script src="https://'+e+n+'">\n\n'+r)}(__SDK_HOST__,__PATH__,e)}}));de((function(){for(var e={},n=0,t=zt().attributes;n<t.length;n++){var r=t[n];0===r.name.indexOf("data-")&&(e[r.name]=r.value)}return e["data-uid"]=un(),e})),de((function(e){try{if(e&&"function"==typeof atob){var n=JSON.parse(window.atob(e.split(".")[1])).options;return(void 0===n?{}:n).customer_id||""}return""}catch(e){throw new Error("Error decoding SDK token")}}));var Kt=["warn","error"],Yt=["error","warn","info","debug"],Vt=function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};function Jt(e){var n=e.url,t=e.prefix,r=e.metricNamespacePrefix,o=e.logLevel,a=void 0===o?"warn":o,u=e.transport,c=void 0===u?function(e){var n=e.url,t=e.method,r=e.headers,o=e.json,i=e.enableSendBeacon,a=void 0!==i&&i;return h.try((function(){var e=window,i=A(e)?P(e):window,u=!1;return function(e){var n=e.headers,t=e.enableSendBeacon,r=n&&Object.keys(n).length;return!!(window&&window.navigator.sendBeacon&&!r&&t&&window.Blob)}({headers:r,enableSendBeacon:a})&&(u=function(e){var n=e.win,t=void 0===n?window:n,r=e.url,o=e.data,i=e.useBlob,a=void 0===i||i;try{var u=JSON.stringify(o);if(!t.navigator.sendBeacon)throw new Error("No sendBeacon available");if(a){var c=new Blob([u],{type:"application/json"});return t.navigator.sendBeacon(r,c)}return t.navigator.sendBeacon(r,u)}catch(e){return!1}}({win:i,url:n,data:o,useBlob:!0})),u||dn({win:i,url:n,method:t,headers:r,json:o})})).then(pe)}:u,s=e.flushInterval,d=void 0===s?6e4:s,f=e.enableSendBeacon,l=void 0!==f&&f,p=[],v=[],y=[],m=[],w=[],g=[],E=[],_=[];function b(e,n,t){if(Be()&&window.console&&window.console.log&&!(Yt.indexOf(e)>Yt.indexOf(a))){var r=[n];r.push(t),(t.error||t.warning)&&r.push("\n\n",t.error||t.warning);try{window.console[e]&&window.console[e].apply?window.console[e].apply(window.console,r):window.console.log&&window.console.log.apply&&window.console.log.apply(window.console,r)}catch(e){}}}function S(){return h.try((function(){if(Be()&&"file:"!==window.location.protocol&&(p.length||v.length||y.length)){for(var e={},t=0;t<w.length;t++)Vt(e,(0,w[t])(e));for(var r,o={},i=0;i<_.length;i++)Vt(o,(0,_[i])(o));return n&&(r=c({method:"POST",url:n,headers:o,json:{events:p,meta:e,tracking:v,metrics:y},enableSendBeacon:l}).catch(pe)),p=[],v=[],y=[],h.resolve(r).then(pe)}}))}var N,T,x,R,O=(void 0===T&&(T=50),te((function(){R&&clearTimeout(R);var e=x=x||new h;return R=setTimeout((function(){x=null,R=null,h.try(N).then((function(n){e.resolve(n)}),(function(n){e.reject(n)}))}),T),e}),ne(N=S)+"::promiseDebounced"));function I(e,n,r){if(void 0===r&&(r={}),!Be())return M;t&&(n=t+"_"+n);for(var o=i({},we(r),{timestamp:Date.now().toString()}),a=0;a<m.length;a++)Vt(o,(0,m[a])(o));return function(e,n,t){p.push({level:e,event:n,payload:t}),-1!==Kt.indexOf(e)&&O()}(e,n,o),b(e,n,o),M}function C(e,n){return e.push(n),M}function D(e){if(!Be())return M;r&&(e.metricNamespace=r+"."+e.metricNamespace),E.length>0&&!e.dimensions&&(e.dimensions={});for(var n=0;n<E.length;n++)Vt(e.dimensions||{},(0,E[n])(e.dimensions||{}));return b("debug","metric."+e.metricNamespace,e.dimensions||{}),y.push(e),M}Be()&&Ee(O,d),"object"==typeof window&&(window.addEventListener("beforeunload",(function(){S()})),window.addEventListener("unload",(function(){S()})),window.addEventListener("pagehide",(function(){S()})));var M={debug:function(e,n){return I("debug",e,n)},info:function(e,n){return I("info",e,n)},warn:function(e,n){return I("warn",e,n)},error:function(e,n){return I("error",e,n)},track:function(e){if(void 0===e&&(e={}),!Be())return M;for(var n=we(e),t=0;t<g.length;t++)Vt(n,(0,g[t])(n));return b("debug","track",n),v.push(n),M},metric:D,metricCounter:function(e){var n;return D({metricNamespace:e.namespace,metricEventName:e.event,metricValue:null!=(n=e.value)?n:1,metricType:"counter",dimensions:e.dimensions})},metricGauge:function(e){return D({metricNamespace:e.namespace,metricEventName:e.event,metricValue:e.value,metricType:"gauge",dimensions:e.dimensions})},metricHistogram:function(e){return D({metricNamespace:e.namespace,metricEventName:e.event,metricValue:e.value,metricType:"histogram",dimensions:e.dimensions})},flush:O,immediateFlush:S,addPayloadBuilder:function(e){return C(m,e)},addMetaBuilder:function(e){return C(w,e)},addMetricDimensionBuilder:function(e){return C(E,e)},addTrackingBuilder:function(e){return C(g,e)},addHeaderBuilder:function(e){return C(_,e)},setTransport:function(e){return c=e,M},configure:function(e){return e.url&&(n=e.url),e.prefix&&(t=e.prefix),e.logLevel&&(a=e.logLevel),e.transport&&(c=e.transport),e.flushInterval&&(d=e.flushInterval),e.enableSendBeacon&&(l=e.enableSendBeacon),M},__buffer__:{get events(){return p},get tracking(){return v},get metrics(){return y}}};return Object.defineProperty(M,"__buffer__",{writable:!1}),M}var Qt,Xt=de((function(){return Jt({url:(void 0===(e="/xoplatform/logger/api/logger")&&(e=""),"https://www.paypal.com"+e),metricNamespacePrefix:"pp.sdks.ppcp"});var e}));function $t(e,n,t,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void t(e)}u.done?n(c):Promise.resolve(c).then(r,o)}function er(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){$t(i,r,o,a,u,"next",e)}function u(e){$t(i,r,o,a,u,"throw",e)}a(void 0)}))}}var nr=((Qt={}).local="https://cdn-latest.static.engineering.dev.paypalinc.com/qaRdaAssets/fraudnet/async/fb-raw.js",Qt.stage="https://cdn-latest.static.engineering.dev.paypalinc.com/qaRdaAssets/fraudnet/async/fb-raw.js",Qt.sandbox="https://c.paypal.com/da/r/fb.js",Qt.production="https://c.paypal.com/da/r/fb.js",Qt.test="https://c.paypal.com/da/r/fb.js",Qt);de((function(e){var n=e.env,t=e.cspNonce,r=e.queryStringParams,o=void 0===r?{}:r;!function(e){var n=e.env,t=e.cspNonce,r=void 0===t?"":t,o=e.clientMetadataID,i=e.appName;new h((function(e){var t,a={f:o,s:i,io:!0,cb1:"fnCallback"};"sandbox"===n&&(a.sandbox=!0);var u=document.createElement("script");u.setAttribute("nonce",r),u.setAttribute("type","application/json"),u.setAttribute("id","fconfig"),u.setAttribute("fncls","fnparams-dede7cc5-15fd-4c75-a9f4-36c430ee3a99"),u.text=JSON.stringify(a),null==(t=document.body)||t.appendChild(u),e()}))}({env:n,cspNonce:t,clientMetadataID:e.clientMetadataID,appName:e.appName});var i,a=function(e){var n=e.cspNonce,t=e.env,r=e.queryStringParams,o=void 0===r?{}:r;return new h((function(e,r){var i,a=document.createElement("script"),u=Object.keys(o).map((function(e){return e+"="+encodeURIComponent(String(o[e]))})).join("&"),c=u.length?nr[t]+"?"+u:nr[t];a.setAttribute("nonce",n||""),a.setAttribute("src",c),window.fnCallback=e,null==(i=document.body)||i.appendChild(a),a.addEventListener("load",(function(){e()})),a.addEventListener("error",(function(){r(new Error("Fraudnet failed to load."))})),a.addEventListener("abort",(function(){r(new Error("Fraudnet load was aborted."))}))}))}({cspNonce:t,env:n,queryStringParams:o}).catch((function(){Xt().warn("ppcp_axo_init_fraudnet_failed")}));return{collect:(i=er((function*(){try{yield a,yield window.PAYPAL.asyncData.collect()}catch(e){Xt().warn("ppcp_axo_collect_fraudnet_failed")}})),function(){return i.apply(this,arguments)})}})),de((function(e){Xt().info("rest_api_create_access_token");var n,t=re(e+":");return dn({method:"post",url:(n="/v1/oauth2/token",void 0===n&&(n=""),""+("undefined"!=typeof window&&void 0!==window.location&&"https://www.paypal.com"===T()?"https://www.paypal.com":__PAYPAL_API_DOMAIN__)+n),headers:{Authorization:"Basic "+t},data:{grant_type:"client_credentials"}}).then((function(n){var t=n.body;if(t&&"invalid_client"===t.error)throw new Error("Auth Api invalid client id: "+e+":\n\n"+JSON.stringify(t,null,4));if(!t||!t.access_token)throw new Error("Auth Api response error:\n\n"+JSON.stringify(t,null,4));return t.access_token}))})),de(_e);var tr,rr,or,ir,ar,ur={alg:"RS256",create:{hash:"SHA-256",modulusLength:4096,name:"RSASSA-PKCS1-v1_5",publicExponent:new Uint8Array([1,0,1])},extractable:!1,sign:{hash:"SHA-256",name:"RSASSA-PKCS1-v1_5"},usages:["sign","verify"]},cr=(rr=er((function*(){if(!tr){var e=ur.create,n=ur.extractable,t=ur.usages,r=yield window.crypto.subtle.generateKey(e,n,t);tr=tr||{publicKey:r.publicKey,privateKey:r.privateKey}}return tr})),function(){return rr.apply(this,arguments)}),sr=function(e){return new Uint8Array(e.split("").map((function(e){return e.charCodeAt(0)})))},dr=function(e){return String.fromCharCode.apply(String,e)},fr=function(e){return btoa(e).replace(/[=]+/g,"").replace(/\+/g,"-").replace(/\//g,"_")},lr=(or=er((function*(e){var n=sr(e),t=yield window.crypto.subtle.digest("sha-256",n),r=dr(new Uint8Array(t));return fr(r)})),function(e){return or.apply(this,arguments)}),pr=(ir=er((function*(e){var n=e.crv,t=e.e,r=e.kty,o=e.n,i=e.x,a=e.y;return yield lr(JSON.stringify({crv:n,e:t,kty:r,n:o,x:i,y:a}))})),function(e){return ir.apply(this,arguments)}),hr=(ar=er((function*(e){var n=e.accessToken,t=e.method,r=e.nonce,o=e.publicKey,i=e.privateKey,a=e.uri,u=yield window.crypto.subtle.exportKey("jwk",o),c=fr(JSON.stringify({alg:ur.alg,typ:"dpop+jwt",jwk:u})),s={ath:n?yield lr(n):void 0,cnf:{jkt:yield pr(u)},htm:t,htu:a,iat:Math.floor(new Date/1e3),jti:window.crypto.randomUUID(),nonce:r},d=fr(JSON.stringify(s)),f=yield window.crypto.subtle.sign(ur.sign,i,sr(c+"."+d));return c+"."+d+"."+fr(dr(new Uint8Array(f)))})),function(e){return ar.apply(this,arguments)}),vr=(er((function*(e){var n=e.accessToken,t=e.method,r=e.uri,o=e.nonce,a=yield cr(),u=a.privateKey,c=a.publicKey;return i({},n&&{Authorization:"DPoP "+n},{DPoP:yield hr({accessToken:n,method:t,uri:r,nonce:o,publicKey:c,privateKey:u})})})),{PAY_LATER_LONG_TERM:"PAY_LATER_LONG_TERM",PAY_LATER_SHORT_TERM:"PAY_LATER_SHORT_TERM",PAY_LATER_PAY_IN_1:"PAY_LATER_PAY_IN_1",PAYPAL_CREDIT_NO_INTEREST:"PAYPAL_CREDIT_NO_INTEREST",PAY_LATER:"PAY_LATER",REWARDS:"REWARDS"}),yr={MESSAGE:"paypal-message",MODAL:"paypal-credit-modal",TREATEMENTS:"paypal-credit-treatments"};function mr(){return!1}function wr(){return"production"}function gr(){}function Er(){}var _r=("undefined"!=typeof document?document:{}).currentScript;function br(){return _r||document.querySelector('script[src$="messaging.js"]')||document.querySelector('script[src$="merchant.js"]')}function Sr(){}function Nr(){return"paypal"}function Tr(){var e;return(null==(e=br())?void 0:e.getAttribute("data-pp-namespace"))||"paypal"}function Ar(){return"1.68.2"}function Pr(){return Object.values(yr).some((function(e){return window.name.startsWith("__zoid__"+e.replace(/-/g,"_"))}))}function xr(){return cn({name:Tr()})}function Rr(){return xr().getSessionID()}function Or(){return xr().getID()}function Ir(e){return xr().getState((function(n){return Object.assign(n,e)}))}function Cr(){}function Dr(){window}function Mr(e){var n=[];n.push("native-modal");var t=e||"";return n.length>0&&(t+=t?","+n.join(","):n.join(",")),void 0===e&&""===t?void 0:t}var Lr=t(17),Fr=t.n(Lr),kr=t(8),Hr=t.n(kr),jr=t(33),Br=t.n(jr),Ur=t(13),Wr=t.n(Ur);function Gr(e,n){for(var t=[],r=0;r<e.length;r++){var o=e[r].render(n);if(o)if(Array.isArray(o))for(var i=0;i<o.length;i++){var a=o[i];a&&t.push(a)}else t.push(o)}return t}var qr=function(){function e(e,n,t){this.type="element",this.name=void 0,this.props=void 0,this.children=void 0,this.onRender=void 0,this.name=e,this.props=n||{},this.children=t;var r=this.props.onRender;"function"==typeof r&&(this.onRender=r,delete n.onRender)}var n=e.prototype;return n.render=function(e){var n=e(this);return this.onRender&&this.onRender(n),n},n.renderChildren=function(e){return Gr(this.children,e)},e}(),Zr=function(){function e(e){this.type="fragment",this.children=void 0,this.children=e}return e.prototype.render=function(e){return Gr(this.children,e)},e}(),zr=function(){function e(e){this.type="text",this.text=void 0,this.text=e}return e.prototype.render=function(e){return e(this)},e}(),Kr=function(){function e(e,n,t){this.type="component",this.component=void 0,this.props=void 0,this.children=void 0,this.component=e,this.props=n||{},this.children=t,this.props.children=t}var n=e.prototype;return n.renderComponent=function(e){var n=function(e){var n=Yr(Array.isArray(e)?e:[e]);return 1===n.length?n[0]:n.length>1?new Zr(n):void 0}(this.component(this.props,this.children));if(n)return n.render(e)},n.render=function(e){return e(this)},n.renderChildren=function(e){return Gr(this.children,e)},e}();function Yr(e){for(var n=[],t=0;t<e.length;t++){var r=e[t];if(r)if("string"==typeof r||"number"==typeof r)n.push(new zr(r.toString()));else{if("boolean"==typeof r)continue;if(Array.isArray(r))for(var o=0,i=Yr(r);o<i.length;o++)n.push(i[o]);else{if(!r||"element"!==r.type&&"text"!==r.type&&"component"!==r.type)throw new TypeError("Unrecognized node type: "+typeof r);n.push(r)}}}return n}var Vr,Jr,Qr,Xr=function(e,n){for(var t=arguments.length,r=new Array(t>2?t-2:0),o=2;o<t;o++)r[o-2]=arguments[o];if(r=Yr(r),"string"==typeof e)return new qr(e,n,r);if("function"==typeof e)return new Kr(e,n,r);throw new TypeError("Expected jsx element to be a string or a function")},$r=((Vr={}).svg="http://www.w3.org/2000/svg",Vr),eo=((Jr={})["xlink:href"]="http://www.w3.org/1999/xlink",Jr);function no(e,n){return e.createTextNode(n.text)}function to(e,n){for(var t=n.props,r=0,o=Object.keys(t);r<o.length;r++){var i=o[r],a=t[i];if(null!=a&&"el"!==i&&"innerHTML"!==i)if(i.match(/^on[A-Z][a-z]/)&&"function"==typeof a)e.addEventListener(i.slice(2).toLowerCase(),a);else if("string"==typeof a||"number"==typeof a){var u=eo[i];u?e.setAttributeNS(u,i,a.toString()):e.setAttribute(i,a.toString())}else"boolean"==typeof a&&!0===a&&e.setAttribute(i,"")}"iframe"!==e.tagName.toLowerCase()||t.id||e.setAttribute("id","jsx-iframe-"+"xxxxxxxxxx".replace(/./g,(function(){return"0123456789abcdef".charAt(Math.floor(Math.random()*"0123456789abcdef".length))})))}var ro=((Qr={}).iframe=function(e,n){var t=n.children[0];if(1!==n.children.length||!t||"element"!==t.type||"html"!==t.name)throw new Error("Expected only single html element node as child of iframe element");e.addEventListener("load",(function(){var n=e.contentWindow;if(!n)throw new Error("Expected frame to have contentWindow");for(var r=n.document,o=r.documentElement;o.children&&o.children.length;)o.removeChild(o.children[0]);for(var i=t.render(io({doc:r}));i.children.length;)o.appendChild(i.children[0])}))},Qr.script=function(e,n){var t=n.children[0];if(1!==n.children.length||!t||"text"!==t.type)throw new Error("Expected only single text node as child of script element");e.text=t.text},Qr.default=function(e,n,t){for(var r=0,o=n.renderChildren(t);r<o.length;r++)e.appendChild(o[r])},Qr);function oo(e,n,t,r){if(n.props.hasOwnProperty("innerHTML")){if(n.children.length)throw new Error("Expected no children to be passed when innerHTML prop is set");var o=n.props.innerHTML;if("string"!=typeof o)throw new TypeError("innerHTML prop must be string");"script"===n.name?e.text=o:(e.innerHTML=o,function(e,n){void 0===n&&(n=window.document);for(var t=0,r=e.querySelectorAll("script");t<r.length;t++){var o=r[t],i=o.parentNode;if(i){var a=n.createElement("script");a.text=o.textContent,i.replaceChild(a,o)}}}(e,t))}else(ro[n.name]||ro.default)(e,n,r)}function io(e){void 0===e&&(e={});var n=e.doc,t=void 0===n?document:n,r=function(e,n){if("component"===e.type)return e.renderComponent((function(e){return r(e,n)}));if("text"===e.type)return no(t,e);if("element"===e.type){var o=function(e,n,t){return e.createElementNS(t,n.name)}(t,e,n);return to(o,e),oo(o,e,t,(function(e){return r(e,n)})),o}throw new TypeError("Unhandleable node")},o=function(e){if("component"===e.type)return e.renderComponent(o);if("text"===e.type)return no(t,e);if("element"===e.type){var n=$r[e.name.toLowerCase()];if(n)return r(e,n);var i=function(e,n){return n.props.el?n.props.el:e.createElement(n.name)}(t,e);return to(i,e),oo(i,e,t,o),i}throw new TypeError("Unhandleable node")};return o}function ao(e){var n=new Map;return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var i=JSON.stringify(r);return n.has(i)||n.set(i,e.apply(void 0,r)),n.get(i)}}function uo(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.apply(void 0,t.concat(r))}}function co(e,n){return void 0===n&&(n=e.length),function t(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return o.length<n?function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.apply(void 0,o.concat(n))}:e.apply(void 0,o)}}co((function(e,n){return n[e]})),co((function(e,n){var t;return(t={})[e]=n,t}));var so=ao((function(e){return new h((function(n){var t=document.createElement("script");t.src=e,t.addEventListener("load",(function(){document.body.removeChild(t),n()})),"loading"===document.readyState?window.addEventListener("DOMContentLoaded",(function(){return document.body.appendChild(t)})):document.body.appendChild(t)}))})),fo=function(){return(new Date).getTime()},lo=ao((function(){var e=document.querySelector('meta[name="viewport"]')||Xr("meta",{name:"viewport",content:""}).render(io({doc:document}));return e.parentNode||document.head.appendChild(e),[function(){var n,t,r;e.__pp_prev_content__||(e.__pp_prev_content__=null!=(n=e.getAttribute("content"))?n:"",e.setAttribute("content","width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui, shrink-to-fit=no"),document.body.__pp_prev_overflow__=null!=(t=document.body.style.overflow)?t:"",document.body.__pp_prev_msOverflowStyle__=null!=(r=document.body.style.msOverflowStyle)?r:"",document.body.style.setProperty("overflow","hidden"),document.body.style.setProperty("-ms-overflow-style","scrollbar"))},function(){e.__pp_prev_content__&&e.setAttribute("content",e.__pp_prev_content__),delete e.__pp_prev_content__,document.body.style.setProperty("overflow",document.body.__pp_prev_overflow__),document.body.style.setProperty("-ms-overflow-style",document.body.__pp_prev_msOverflowStyle__),delete document.body.__pp_prev_overflow__,delete document.body.__pp_prev_msOverflowStyle__}]}));function po(e){if(void 0===e)return"NONE";switch(e.toUpperCase()){case"LT_NQEZ":case"LT_NQGZ":case"LT_MQEZ":case"LT_MQEZ_RB":case"LT_MQGZ":case"LT_SQEZ":case"LT_SQEZ_RB":case"LT_SQGZ":case"GPL:EQZ":case"GPL:GTZ":case"GPLQ:EQZ":case"GPLQ:GTZ":case"GPL:EQZ:NON-DE":case"GPL:GTZ:NON-DE":case"GPLQ:EQZ:NON-DE":case"GPLQ:GTZ:NON-DE":case"PLLT_NQ_EZ_XB":case"PLLT_NQ_GZ_XB":case"PLLT_MQ_EZ_XB":case"PLLT_MQ_GZ_XB":case"PLLT_NQ_EZ":case"PLLT_NQ_GZ":case"PLLT_MQ_EZ":case"PLLT_MQ_GZ":case"PLLT_SQ_EZ":case"PLLT_SQ_GZ":case vr.PAY_LATER_LONG_TERM:return vr.PAY_LATER_LONG_TERM;case"GPL":case"GPLQ":case"GPLNQ":case"GPLNQ_RANGE":case"PL":case"PLQ":case"ST_SQ":case"ST_NQ":case"SHORT_TERM:Q":case"SHORT_TERM:NQ":case"SHORT_TERM:NO_AMOUNT":case"PLST_NQ":case"PLST_SQ":case vr.PAY_LATER_SHORT_TERM:return vr.PAY_LATER_SHORT_TERM;case"PI30":case"PI30Q":case"PI30NQ":case"PI30:NON-DE":case"PI30Q:NON-DE":case"PI30NQ:NON-DE":case"PLP1_NA_XB":case"PLP1_NA":case"PLP1_NQ_XB":case"PLP1_NQ":case"PLP1_SQ_XB":case"PLP1_SQ":case vr.PAY_LATER_PAY_IN_1:return vr.PAY_LATER_PAY_IN_1;case"NI":case"NI:NON-US":case"NIQ":case"NIQ:NON-US":case"PPCNI_NQ":case"PPCNI_NQ_XB":case"PPCNI_SQ":case"PPCNI_SQ_XB":case vr.PAYPAL_CREDIT_NO_INTEREST:return vr.PAYPAL_CREDIT_NO_INTEREST;case vr.PAY_LATER:return vr.PAY_LATER;case vr.REWARDS:return vr.REWARDS;default:return}}function ho(){var e,n,t,r;return null!=(e=xr().getState((function(e){return null==e?void 0:e.ts})))?e:(r=decodeURIComponent(null!=(n=null==(t=document.cookie.split("; ").find((function(e){return e.startsWith("ts_c=")})))?void 0:t.slice(5))?n:""),0===Object.keys(r).length?null:Object.fromEntries(new URLSearchParams(r).entries()))}function vo(e,n){var t=void 0===n?{}:n,r=t.inZoid,o=t.debugObj;/(\?|&)pp_debug=true(&|$)/.test(window.location.search)&&!!r===Pr()&&console.warn("PayPal Messages Debug:",e,null!=o?o:"")}var yo=t(96),mo=t.n(yo);function wo(e){return Wr()(e).reduce((function(e,n){var t,r,o,a=n[0],u=n[1];return Array.isArray(u)?i({},e,((r={})[a]=[].concat(u),r)):i({},e,"object"==typeof u?((o={})[a]=wo(u),o):((t={})[a]=u,t))}),{})}function go(e,n){return function e(n,t){return Wr()(t).reduce((function(t,r){var o,a,u,c,s=r[0],d=r[1];return Array.isArray(d)?i({},t,((a={})[s]=[].concat(d),a)):"object"!=typeof d||null===d||n[s]&&"object"==typeof n[s]&&!Array.isArray(n[s])?i({},t,"object"==typeof d&&null!==d?((c={})[s]=e(n[s],d),c):((o={})[s]=d,o)):i({},t,((u={})[s]=wo(d),u))}),n)}(wo(e),n)}function Eo(e,n,t){var r;void 0===t&&(t="-");var o,i=e.indexOf(t);if(-1===i)return(o={})[e]=n,o;var a=e.slice(0,i),u=e.slice(i+1);return(r={})[a]=Eo(u,n,t),r}var _o=function(e){var n;return null==e||null==(n=e.ownerDocument)?void 0:n.defaultView},bo=function(){try{return window.top.document.body&&window.top}catch(e){return}};function So(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}function No(e){var n={buyercountry:"buyerCountry",merchantid:"merchantId",cspnonce:"cspNonce",ectoken:"ecToken",contextualcomponents:"contextualComponents",customerid:"customerId",fontfamily:"fontFamily",fontsource:"fontSource",onclick:"onClick",onapply:"onApply",onrender:"onRender",pagetype:"pageType","style-text-fontfamily":"style-text-fontFamily","style-text-fontsource":"style-text-fontSource"},t=["onclick","onapply","onrender"],r=jt()(e.attributes).filter((function(e){var n=e.nodeName;return kt()(n,"data-pp-")})).reduce((function(e,r){var o=r.nodeValue;if(o){var i,a=r.nodeName.replace("data-pp-",""),u=Hr()(t,a)?new Function(o):o;return go(e,function(e,n){if(kt()(n,"["))try{return Eo(e,JSON.parse(n.replace(/'/g,'"')))}catch(e){}return Eo(e,n)}(null!=(i=n[a])?i:a,u))}return e}),{});if(!e.firstElementChild||"SCRIPT"!==e.firstElementChild.tagName||"text/template"!==e.firstElementChild.getAttribute("type"))return r;var o=e.firstElementChild.textContent.trim();return e.removeChild(e.firstElementChild),go(r,{style:{markup:o}})}co((function(e,n,t){return n.getElementsByClassName(e+"__"+t)[0]})),co((function(e,n){var t=document.createElement("style");t.textContent=n,e.insertBefore(t,e.firstChild)})),co((function(e,n){if(Array.isArray(n))n.forEach((function(n){return e.appendChild(n)}));else if(n instanceof HTMLElement)e.appendChild(n);else if("string"==typeof n){var t=document.createElement("span");t.innerHTML=n,e.appendChild(t)}else!1===n&&e.parentNode.removeChild(e)})),co((function(e,n){if(Array.isArray(n))[].concat(n).reverse().forEach((function(n){return e.insertBefore(n,e.firstChild)}));else if(n instanceof HTMLElement)e.insertBefore(n,e.firstChild);else if("string"==typeof n){var t=document.createElement("span");t.innerHTML=n,e.insertBefore(t,e.firstChild)}else!1===n&&e.parentNode.removeChild(e)}));var To=co((function(e,n,t,r){if(void 0===t&&(t="PayPal Credit"),void 0===r&&(r=""),Array.isArray(n))n.forEach((function(n){return To(e,n,t)}));else if("string"==typeof n){var o=new Image;o.alt=t,o.className="message__logo",o.src=n,r&&(o.srcset=r),e.appendChild(o)}else if("object"==typeof n){var i=n.src,a=n.dimensions,u=a[0],c=a[1],s=new Image;s.src=i,s.alt=t;var d=document.createElement("div");d.className="message__logo message__logo--svg";var f=document.createElement("canvas");f.height=c,f.width=u,d.appendChild(s),d.appendChild(f),e.appendChild(d)}else e.parentNode.removeChild(e)}),2);function Ao(e){var n=e.getBoundingClientRect(),t=_o(e),r=(n.top+n.bottom)/2,o=(n.left+n.right)/2;return!(r>t.innerHeight||r<0||o>t.innerWidth||o<0)}function Po(e){var n=_o(e);if("function"==typeof n.getComputedStyle){var t=n.getComputedStyle(e);if("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility")||"auto"!==t.getPropertyValue("clip"))return!0}var r=e.getBoundingClientRect();return r.left>n.document.body.scrollWidth||r.right<0||r.top>n.document.body.scrollHeight||r.bottom<0||0===e.offsetWidth||0===e.offsetHeight}function xo(e){return"string"==typeof e?jt()(document.querySelectorAll(e)):So(e)?[e]:Array.isArray(e)&&e.every(So)?mo()(e,xo):[]}var Ro=function(e,n){if((null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE&&!(e instanceof Window)||(null==n?void 0:n.nodeType)!==Node.ELEMENT_NODE)return!1;var t=e instanceof Window?{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}:e.getBoundingClientRect(),r=n.getBoundingClientRect();return t.top<=r.top&&t.bottom>=r.bottom&&t.left<=r.left&&t.right>=r.right},Oo="__paypal_messages_"+"1.68.2".replace(/[.-]/g,"_")+"__",Io=function(){var e,n,t;return null!=(e=window[Oo])?e:(n=function(e){void 0===e&&(e={});var n=i({},e);return[n,uo(Gt.a,n)]}(window[Oo]||{index:1,config:{},messagesMap:new Zt.a}),(t=n[0]).setGlobalState=n[1],Object.defineProperty(window,Oo,{value:t,enumerable:!1,configurable:!0,writable:!1}),window[Oo])},Co=function(e){return Io().setGlobalState(e)},Do=function(){var e=Io().index;return Co({index:e+1}),e},Mo=function(){var e=0;return function(n){return n+" "+(e+=1)}};function Lo(e){return""+function(){var e=Object({__LOCAL__:"https://localhost.paypal.com:8080",__SANDBOX__:"https://www.sandbox.paypal.com",__PRODUCTION__:"https://www.paypal.com"})["__"+"production".toUpperCase()+"__"];if(e)return e;throw new Error("Missing PayPal Domain")}()+Object({__MESSAGE__:"/credit-presentment/smart/message",__TREATMENTS__:"/credit-presentment/experiments/local",__MODAL__:"/credit-presentment/smart/modal",__LOGGER__:"/credit-presentment/glog",__CREDIT_APPLY__:"/ppcreditapply/da/us"})["__"+e.toUpperCase()+"__"]}var Fo=function(e,n){return function(){var t;return Io()[e]||Co(((t={})[e]=n(),t)),Io()[e]}},ko=_e(),Ho=function(){var e=br();if(e&&!e[Oo]){vo("Script:",{debugObj:e});var n=No(e);Co({config:i({},Io().config,{account:void 0,merchantId:void 0,currency:void 0,pageType:void 0},n)}),e[Oo]=!0}},jo=new h((function(e){return ko.once("treatments",e)})),Bo=new h((function(e){return ko.once("render",e)})),Uo=(new h((function(e){return ko.once("modal-render",e)})),new h((function(e){return"undefined"!=typeof document&&"complete"!==document.readyState?window.addEventListener("load",e):e()}))),Wo=new h((function(e){return"undefined"!=typeof document&&"loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e()}));function Go(e,n){var t,r,o,a,u,c,s,d,f=n.meta,l=n.events,p=n.tracking,h=null!=(t=f.global)?t:{},v=h.deviceID,y=h.sessionID,m=h.integration_type,w=h.messaging_version;e.startsWith("client-id:")&&(r=e.slice(10));var g=Object.entries(f).filter((function(n){return n[1].account===e})).map((function(e){var n,t=e[0],r=e[1],f=r.type,h=r.partnerClientId,v=r.buttonSessionId,y=r.messageRequestId,m=r.stats,w=void 0===m?{}:m,g=r.trackingDetails,E=g.clickUrl;delete g.clickUrl,d=null!=d?d:h,o=null!=o?o:g.MERCHANT_PROFILE_HASH,a=null!=a?a:g.MERCHANT_PROFILE_VALID,u=null!=u?u:g.BUYER_PROFILE_HASH,c=null!=c?c:g.BUYER_PROFILE_VALID,s=null!=s?s:w.bn_code;var _=p.filter((function(e){return e.index===t}));s=null!=s?s:null==(n=_.find((function(e){return void 0!==e.bn_code})))?void 0:n.bn_code;var b=w.render_duration,S=w.request_duration;return delete w.render_duration,delete w.request_duration,i({component_type:f,instance_id:y,button_session_id:v,fdata:new URLSearchParams(E).get("fdata"),merchant_events:l.filter((function(e){var n;return(null==(n=e.payload)?void 0:n.index)===t}))},g,w,{component_events:_.filter((function(e){return"MORS"!==e.event_type})).map((function(e){return i({render_duration:b,request_duration:S},e)}))})}));return{specversion:"1.0",type:"com.paypal.credit.upstream-presentment.v1",source:"urn:paypal:event-src:js-sdk:messages",datacontenttype:"application/json",dataschema:"ppaas:events.credit.FinancingPresentmentAsyncAPISpecification/v1/schema/json/credit_upstream_presentment_event.json",data:{client_id:r,merchant_id:e,partner_client_id:d,partner_attribution_id:s,merchant_profile_hash:o,merchant_profile_valid:a,buyer_profile_hash:u,buyer_profile_valid:c,device_id:v,session_id:y,integration_type:m,integration_version:w,components:g}}}var qo=Jt({url:Lo("LOGGER"),prefix:"paypal_messages",logLevel:"warn",flushInterval:1e4,transport:function(e){var n=e.url,t=e.method,r=e.json,o=e.headers,a=r.events.reduce((function(e,n){var t=n.payload;return[].concat(e,[t.index,t.refIndex])}),[]),u=r.tracking.reduce((function(e,n){return[].concat(e,[n.index,n.refIndex])}),[]),c=a.concat(u),s=Ut()(r.meta).filter((function(e){return Hr()(c,e)||"global"===e})).reduce((function(e,n){var t;return i({},e,((t={})[n]=r.meta[n],t))}),{}),d=r;d.meta=s;var f,l,p,v,y=n;return h.all((f=d,l=f.meta,p=f.events,v=f.tracking,Array.from(new Set(Object.values(l).map((function(e){return e.account})).filter(Boolean))).reduce((function(e,n){return[].concat(e,[Go(n,{meta:l,events:p,tracking:v})])}),[])).map((function(e){return function(e,n,t){var r=void 0===t?{}:t,o=r.data,a=r.headers,u=r.withCredentials;return new h((function(t,r){var c=new XMLHttpRequest;u&&(c.withCredentials=!0),c.onreadystatechange=function(){if(4===c.readyState){var e=c.getAllResponseHeaders().trim().split("\n").reduce((function(e,n){var t,r=n.trim().split(": "),o=r[1];return i({},e,((t={})[r[0].toLowerCase()]=o,t))}),{});switch(c.status){case 200:t({headers:e,data:e["content-type"]&&Br()(e["content-type"],"application/json")?JSON.parse(c.responseText):c.responseText});break;case 204:t({headers:e});break;default:r(new Error("Request failed"))}}},c.open(e,n,!0),a&&Wr()(a).forEach((function(e){c.setRequestHeader(e[0],e[1])})),c.send("object"==typeof o?JSON.stringify(o):o)}))}(t,y,{headers:i({"content-type":"application/json"},o),data:e,withCredentials:!0})})))}});qo.addMetaBuilder((function(){return{global:{integration_type:"STANDALONE",messaging_version:"1.68.2"}}})),qo.addPayloadBuilder((function(e){return delete e.container,delete e.selector,{}})),qo.addTrackingBuilder((function(){return{timestamp:(new Date).getTime()}}));var Zo=Fo("__insertion_observer__",(function(){return new MutationObserver((function(e){var n=[];e.forEach((function(e){"attributes"===e.type&&"data-pp-message"===e.attributeName?n.push(e.target):jt()(e.addedNodes).forEach((function(e){So(e)&&(e.hasAttribute("data-pp-message")?n.push(e):jt()(e.querySelectorAll("[data-pp-message]")).forEach((function(e){return n.push(e)})))}))})),n.length>0&&n.forEach((function(e){var n;return null==(n=window[Tr()])?void 0:n.Messages({_auto:!0}).render(e)}))}))})),zo=Fo("__attribute_observer__",(function(){return new MutationObserver((function(e){var n=Io().messagesMap,t=e.reduce((function(e,t){return n.has(t.target)&&kt()(t.attributeName,"data-pp-")?(e.push(t.target),e):e}),[]);t.length>0&&t.forEach((function(e){var n;return null==(n=window[Tr()])?void 0:n.Messages().render(e)}))}))})),Ko=function(){return h.resolve(void 0===window.IntersectionObserver?so("https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=IntersectionObserver"):void 0)},Yo=Fo("__viewport_intersection_observer__",(function(){return Ko().then((function(){return new IntersectionObserver((function(e,n){e.forEach((function(e){var t=e.target.getAttribute("data-pp-id");e.isIntersecting&&(qo.track({index:t,et:"CLIENT_IMPRESSION",event_type:"scroll",visible:"true"}),n.unobserve(e.target))}))}),{threshold:.5})}))})),Vo=Fo("__intersection_observer__",(function(){return Ko().then((function(){return h.all([Uo,Bo])})).then((function(){var e=function(e){for(var n=_o(e),t=[],r=e;(null==(o=r)?void 0:o.parentNode.nodeType)===Node.ELEMENT_NODE;){var o;0!==r.parentNode.offsetHeight&&t.push(r.parentNode),r=r.parentNode}t.reverse();var i=t[0],a=Fr()(t,(function(e,t,r){var o,a=e.offsetHeight,u=r[t+1];if(u&&a<=u.offsetHeight)return i=u,!1;if(a>n.innerHeight&&a>=i.offsetHeight)return!0;var c=null!=(o=r[t-1])?o:e.parentNode;return!!(u&&u.offsetHeight<a&&Ro(c,e))})),u=Ro(n,a)?void 0:a;return vo("Root:",{debugObj:u||"undefined. Viewport is used as the root."}),u}(Io().messagesMap.keys().next().value);return new IntersectionObserver((function(n,t){var r=Io().messagesMap;n.forEach((function(n){var o,i=n.target,a=i.parentNode.parentNode;vo("Message Container:",{debugObj:a}),vo("Messages Container Parent:",{debugObj:a.parentNode});var u=(r.get(a)||{}).state;if(null!=u&&u.renderStart){var c,s=a.getAttribute("data-pp-id"),d=Number(i.getAttribute("data-width")),f=Number(i.getAttribute("data-height")),l=fo()-u.renderStart;0===(null==(o=n.rootBounds)?void 0:o.width)&&0===n.rootBounds.height&&(c=Ro(e,i)),(n.intersectionRatio<.9&&n.intersectionRatio>0&&!function(e,n){if((null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE&&!(e instanceof Window)||(null==n?void 0:n.nodeType)!==Node.ELEMENT_NODE)return!1;var t=e instanceof Window?{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}:e.getBoundingClientRect(),r=n.getBoundingClientRect();return r.left>=t.right||r.right<=t.left||r.bottom<=t.top||r.top>=t.bottom}(null!=e?e:window,i)||Math.ceil(i.getBoundingClientRect().width+1)<d)&&!c?(qo.warn(u.renderComplete?"update_hidden":"hidden",{description:"PayPal Message has been hidden. Message must be visible and requires minimum dimensions of "+d+"px x "+f+"px. Current container is "+n.intersectionRect.width+"px x "+n.intersectionRect.height+"px.",container:a,index:s,duration:l}),qo.track({index:s,et:"CLIENT_IMPRESSION",event_type:"message_hidden"}),vo("Message Hidden: true"),u.renderComplete=!0,delete u.renderStart,i.style.setProperty("opacity","0","important"),i.style.setProperty("pointer-events","none","important"),t.unobserve(i)):(i.style.setProperty("opacity",1),i.style.setProperty("pointer-events",null),qo.info(u.renderComplete?"update_visible":"visible",{index:s,duration:l}),u.renderComplete=!0,delete u.renderStart,t.unobserve(i))}else t.unobserve(i)}))}),{root:e})}))})),Jo=Fo("__paypal_credit_treatments__",(function(){return Lt({tag:yr.TREATEMENTS,url:Lo("TREATMENTS"),domain:/\.paypal\.com(:\d+)?$/,containerTemplate:function(e){var n=e.uid,t=e.prerenderFrame,r=e.frame,o=e.doc;return Xr("span",{id:n},Xr("style",null,"\n #"+n+" {\n position: absolute!important;\n left: -99999px;\n top: -99999px;\n width: 1px;\n height: 1px;\n }\n "),Xr("node",{el:r}),Xr("node",{el:t})).render(io({doc:o}))},props:{disableSetCookie:{type:"boolean",queryParam:!0,required:!1,value:mr},features:{type:"string",queryParam:"features",required:!1,value:Mr},namespace:{type:"string",queryParam:!1,value:Nr},onReady:{type:"function",queryParam:!1,value:function(){return function(e){var n=e.deviceID;Ir({experiments:{treatmentsHash:e.treatmentsHash,expiration:Date.now()+9e5},id:n}),ko.trigger("treatments")}}},sdkMeta:{type:"string",queryParam:!0,sendToChild:!1,required:!1,value:Sr,debug:vo("SDK Meta: "+void 0)},uid:{type:"string",queryParam:!0,value:un,debug:vo("ScriptUID: "+un())},stageTag:{type:"string",queryParam:!0,required:!1,value:Cr},env:{type:"string",queryParam:!0,value:wr,debug:vo("Environment: production")},scriptUID:{type:"string",queryParam:!0,value:un,debug:vo("ScriptUID: "+un())},version:{type:"string",queryParam:!0,value:Ar,debug:vo("Library Version: 1.68.2")},integrationType:{type:"string",queryParam:!0,value:function(){return"STANDALONE"},debug:vo("Library Integration: STANDALONE")}}})})),Qo=ao((function(){Jo()().render(document.body)}));function Xo(){if(Pr()||!Ue())return null;var e=xr().getState((function(e){return e.experiments}));return e?(e.expiration<Date.now()&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",(function(){return Qo()})):Qo()),e.treatmentsHash):null}var $o=function(e){return"__paypal_messaging_performance__"+e},ei=function e(){return le(e,(function(){var e=window.performance;if(e&&e.now&&e.timing&&e.timing.connectEnd&&e.timing.navigationStart&&Math.abs(e.now()-Date.now())>1e3&&e.now()-(e.timing.connectEnd-e.timing.navigationStart)>0)return e}))}();function ni(e){var n,t;return null!=(n=null==ei||null==(t=ei.getEntriesByName($o(e))[0])?void 0:t.duration)?n:-1}function ti(e){var n,t=null==ei?void 0:ei.getEntriesByType("navigation")[0];return null!=(n=null==t?void 0:t[e])?n:-1}function ri(e,n){var t=void 0===n?{}:n,r=t.startMark,o=t.endMark,i=t.repeat;if(ei){if(-1!==ni(e)){if(!i)return;ei.clearMeasures($o(e)),ei.clearMarks($o(e))}window.document.documentMode||Boolean(window.navigator&&window.navigator.userAgent&&/Edge|MSIE|rv:11/i.test(window.navigator.userAgent))?ei.measure($o(e)):ei.measure($o(e),r?$o(r):void 0,o?$o(o):void 0),ei.mark($o(e))}}var oi=ao((function(){var e=window.document.body.appendChild(window.document.createElement("div"));e.setAttribute("class","pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads text-ad-links"),e.style.setProperty("width","1px","important"),e.style.setProperty("height","1px","important"),e.style.setProperty("position","absolute","important"),e.style.setProperty("left","-10000px","important"),e.style.setProperty("top","-1000px","important");var n=void 0!==window.getComputedStyle?window.getComputedStyle(e):void 0;return new h((function(t){!function r(o){return o<=0?(window.document.body.removeChild(e),t(!1)):null!==window.document.body.getAttribute("abp")||n&&("none"===n.getPropertyValue("display")||"hidden"===n.getPropertyValue("visibility"))||null===e.offsetParent||0===e.offsetHeight||0===e.offsetLeft||0===e.offsetTop||0===e.offsetWidth||0===e.clientHeight||0===e.clientWidth?(window.document.body.removeChild(e),t(!0)):setTimeout((function(){r(o-1)}),50)}(5)}))})),ii=function(e){return Math.round(e).toString()};Pr()||Uo.then((function(){var e={et:"CLIENT_IMPRESSION",event_type:"page_loaded",script_load_delay:ii(ni("scriptLoadDelay")),dom_load_delay:ii(ti("domContentLoadedEventStart")),page_load_delay:ii(ti("loadEventStart"))};qo.track(e)}));var ai=t(97),ui=t.n(ai);function ci(e,n){switch(e){case"STRING":return"string"==typeof n;case"BOOLEAN":return"boolean"==typeof n;case"NUMBER":return"number"==typeof n&&!ui()(n);case"FUNCTION":return"function"==typeof n;case"ARRAY":return Array.isArray(n);case"OBJECT":return!Array.isArray(n)&&"object"==typeof n&&null!==n;case"ANY":return!0;default:return!1}}var si=ao((function(e,n){return qo.warn("invalid_option_value",{description:n,location:e})})),di=function(e,n,t){var r=Array.isArray(t)?"array":typeof t;si(e,'Expected type "'+n.toLowerCase()+'" but instead received "'+r+'" ('+JSON.stringify(t)+").")};function fi(e,n){if(!ci("STRING",e))throw di("offer","STRING",e),new Error("offer_validation_error");if(!n.includes(e))throw si("offer","Ensure valid offer type."),new Error("offer_validation_error")}var li,pi,hi,vi={account:function(e){var n=e.props.account;if(ci("STRING",n)){if(13===n.length||10===n.length||kt()(n,"client-id:"))return n;si("account","Ensure the correct Merchant Account ID has been entered.")}else di("account","STRING",n)},merchantId:function(e){var n=e.props.merchantId;if(void 0!==n){if(ci("STRING",n))return n.split(",").some((function(e){return 13!==e.length&&10!==e.length}))&&si("merchantId","Ensure the correct Merchant ID has been entered."),n;di("merchantId","STRING",n)}},customerId:function(e){var n=e.props.customerId;if(void 0!==n)if(ci("STRING",n)){if(13===n.length||10===n.length)return n;si("customerId","Ensure the correct Merchant ID has been entered.")}else di("customerId","STRING",n)},amount:function(e){var n=e.props.amount;if(void 0!==n){var t=Number(n);if(ci("NUMBER",t)){if(!(t<0))return t;si("amount","Ensure value is a positive number.")}else di("amount","NUMBER",n)}},offer:function(e){var n=e.props.offer,t=[].concat(Object.values(vr),["NI"]);if(void 0!==n){var r=n;if("string"==typeof n&&n.includes(",")&&(r=n.split(",").map((function(e){return e.trim()}))),Array.isArray(r)){if(r.length>2)throw si("offer","Ensure valid offer length"),new Error("offer_validation_error: offers cannot exceed 2");var o=r.map((function(e){return fi(e,t),e}));return o[0]===o[1]?o[0]:o.sort().join()}return fi(n,t),n}return n},style:function(e){var n=e.props.style;if(ci("OBJECT",n)){var t=null!=n&&n.layout?n:i({},n,{layout:"text"});if(ci("STRING",t.layout))return t;if(di("style.layout","STRING",t.layout),ci("STRING",t.preset))return i({layout:"text"},t)}else void 0!==n&&di("style","OBJECT",n);return{layout:"text"}},currency:function(e){var n=e.props.currency;if(void 0!==n){if(ci("STRING",n))return n;di("currency","STRING",n)}},pageType:function(e){var n=e.props.pageType;if(void 0!==n){var t=["home","category","product","payment","product-list","product-listing","search-results","product-details","mini-cart","cart","checkout"];if(ci("STRING",n)){if(Hr()(t,n))return n;!function(e,n,t){si("pageType",'Expected one of ["'+n.join('", "').replace(/\|[\w|]+/g,"")+'"] but received "'+t+'".')}(0,t,n)}else di("pageType","STRING",n)}},buyerCountry:function(e){var n=e.props.buyerCountry;if(void 0!==n){if(ci("STRING",n))return n;di("buyerCountry","STRING",n)}},language:function(e){var n=e.props.language;if(void 0!==n){if(ci("STRING",n))return n;di("language","STRING",n)}},ignoreCache:function(e){var n=e.props.ignoreCache;if(void 0!==n){if(ci("BOOLEAN",n))return n;di("ignoreCache","BOOLEAN",n)}},channel:function(e){var n=e.props.channel;if(void 0!==n){if(ci("STRING",n))return/^[A-Z0-9_]+$/.test(n)?n:void 0;di("channel","STRING",n)}},ecToken:function(e){var n=e.props.ecToken;if(void 0!==n){if(ci("STRING",n))return n;di("ecToken","STRING",n)}},buttonSessionId:function(e){var n=e.props.buttonSessionId;if(void 0!==n){if(ci("STRING",n))return n;di("buttonSessionId","STRING",n)}},contextualComponents:function(e){var n=e.props.contextualComponents;if(void 0!==n){var t;if(Array.isArray(n))t=n.map((function(e){return e.toUpperCase()}));else{if("string"!=typeof n)return void di("contextualComponents","STRING or ARRAY",n);t=n.toUpperCase().split(",")}var r=t.every((function(e){return e.endsWith("_BUTTON")})),o=t.every((function(e){return e.endsWith("_MARK")}));if(r||o){if(!(t.filter((function(e){return e.endsWith("_MARK")})).length>1))return t.sort().join(",");si("contextualComponents","Ensure only one type of mark value is provided.")}else si("contextualComponents","Invalid contextualComponents combination. Expected all contextualComponents values to be either of type 'button' or 'mark' but received \""+n+'"')}},cspNonce:function(e){var n=e.props.cspNonce;if(void 0!==n){if(ci("STRING",n))return n;di("cspNonce","STRING",n)}},merchantConfig:function(e){var n=e.props.merchantConfig;if(void 0!==n){if(!ci("STRING",n))return;return n}},features:function(e){var n=e.props.features;if(void 0!==n){if(ci("STRING",n))return n;di("features","STRING",n)}}},yi=Mo(),mi=function(e){var n=e.uid,t=e.frame,r=e.prerenderFrame,o=e.doc,i=e.event,a=e.props,u=e.container;i.on("zoid-rendered",(function(){r.parentNode.removeChild(r)}));var c="\n #"+n+" > iframe {\n width: 100%;\n height: 0;\n }\n\n #"+n+" > iframe:nth-of-type(2) {\n display: none;\n }\n ";i.on("styles",(function(e){var t=e.styles;"string"==typeof t&&(u.querySelector("#"+n+" style").textContent="\n "+c+"\n "+t.replace(/\.pp-flex[^\s:,.#]*/g,"#"+n)+"\n ")}));var s=yi(t.title);return Xr("span",{id:n},Xr("style",{nonce:a.cspNonce},c),Xr("node",{el:t,title:s,onRender:function(e){i.on("zoid-resize",(function(n){var t=n.width,r=n.height;0===t&&0===r||("flex"===a.style.layout?(e.style.setProperty("height",null),e.setAttribute("data-width",0),e.setAttribute("data-height",0)):(e.setAttribute("data-width",t),e.setAttribute("data-height",r),"number"==typeof r&&e.style.setProperty("height",r+"px")),e.__hasResizedBefore__?i.once("styles",(function(){Vo().then((function(n){n.observe(e)}))})):(e.__hasResizedBefore__=!0,Vo().then((function(n){n.observe(e)}))))}))}}),Xr("node",{el:r,title:"Prerender "+s})).render(io({doc:o}))},wi=["styles","warnings"],gi=Fo("__paypal_credit_message__",(function(){var e;return Lt({tag:yr.MESSAGE,url:Lo("MESSAGE"),domain:/\.paypal\.com(:\d+)?$/,containerTemplate:mi,autoResize:{width:!0,height:!0,element:"button"},attributes:{iframe:{title:"PayPal Message",scrolling:"no"}},props:{account:{type:"string",queryParam:!1,required:!0,value:vi.account},merchantId:{type:"string",queryParam:"merchant_id",required:!1,value:vi.merchantId},customerId:{type:"string",queryParam:"customer_id",required:!1,value:vi.customerId},amount:{type:"number",queryParam:!0,required:!1,value:vi.amount},currency:{type:"string",queryParam:!0,required:!1,value:vi.currency},pageType:{type:"string",queryParam:"page_type",required:!1,value:vi.pageType},style:{type:"object",serialization:"json",queryParam:!0,required:!1,value:vi.style},offer:{type:"string",queryParam:"credit_type",required:!1,value:vi.offer},buyerCountry:{type:"string",queryParam:"buyer_country",required:!1,value:vi.buyerCountry},ignoreCache:{type:"boolean",queryParam:"ignore_cache",required:!1,value:vi.ignoreCache},channel:{type:"string",queryParam:"channel",required:!1,default:function(){return"UPSTREAM"},value:vi.channel},ecToken:{type:"string",queryParam:"ec_token",required:!1,value:vi.ecToken},contextualComponents:{type:"string",queryParam:"contextual_components",required:!1,value:vi.contextualComponents},onClick:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onClick;return function(e){var r=e.meta,o=n.modal,i=n.index,a=n.account,u=n.merchantId,c=n.currency,s=n.amount,d=n.buyerCountry,f=n.onApply,l=r.offerType,p=r.offerCountry,h=r.messageRequestId;"PURCHASE_PROTECTION"===l?window.open(r.lander,l,"width=460,height=900"):o.show({account:a,merchantId:u,currency:c,amount:s,buyerCountry:d,onApply:f,offer:l,offerCountry:p,refId:h,refIndex:i,page_view_link_source:"message_click"}),qo.track({index:i,et:"CLICK",event_type:"MORS"}),qo.track({index:i,et:"CLICK",event_type:"message_clicked",page_view_link_name:"Banner Wrapper"}),"function"==typeof t&&t({meta:r})}}},onHover:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.index,r=n.onHover,o=!1;return function(e){var n=e.meta;o||(o=!0,qo.track({index:t,et:"CLIENT_IMPRESSION",event_type:"message_hovered"})),"function"==typeof r&&r({meta:n})}}},onReady:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onReady;return function(e){var r=e.meta,o=e.activeTags,a=e.ts,u=e.requestDuration,c=e.messageRequestId,s=n.account,d=n.merchantId,f=n.index,l=n.modal,p=n.getContainer,h=n.pageType,v=r.trackingDetails,y=r.offerType,m=r.ppDebugId,w=d&&s.slice(10);v.PAGE_TYPE=h,vo("Message Correlation ID: "+m);var g=void 0!==a?a:ho();Ir({ts:g}),qo.addMetaBuilder((function(e){var n;delete e[f];var t=e.global,r=void 0===t?{}:t;return delete e.global,(n={global:i({},r,{ts:g,deviceID:Or(),sessionID:Rr()})})[f]={type:"message",messageRequestId:c,account:d||s,partnerClientId:w,trackingDetails:v},n})),function(e){var n=e.container,t=e.activeTags,r=e.index,o=e.requestDuration,a=Io().messagesMap.get(n).state,u=Math.round(fo()-a.renderStart).toString(),c=ni("firstRenderDelay");Ao(n)||Yo().then((function(e){return e.observe(n)})),function(e){var n=e.container,t=e.activeTags,r=e.index,o=e.requestDuration,i=e.renderDuration,a=n.getBoundingClientRect(),u=bo(),c={},s=function(e){return e.split("::").map((function(e){return e.split(":")[1]}))}(t),d=s[0],f=s[1],l=s[2];return oi().then((function(e){return{index:r,ad_blocker:e.toString(),blocked:Po(n).toString(),bn_code:c["data-partner-attribution-id"],position_in_page_x:Math.round(a.left).toString(),position_in_page_y:Math.round(a.top).toString(),browser_width:String(null==u?void 0:u.innerWidth),browser_height:String(null==u?void 0:u.innerHeight),in_viewport:Ao(n).toString(),headline:d,sub_headline:f,disclaimer:l,request_duration:ii(o),render_duration:i}}))}({container:n,activeTags:t,index:r,requestDuration:o,renderDuration:u}).then((function(e){!function(e,n){qo.addMetaBuilder((function(t){var r,o=i({},t[e],n);return delete t[e],(r={})[e]=o,r}))}(r,{type:"message",stats:e}),qo.track({index:r,et:"CLIENT_IMPRESSION",event_type:"message_rendered",first_render_delay:Math.round(c).toString()})}))}({container:p(),activeTags:o,index:f,requestDuration:u}),l.updateProps({refIndex:f,offer:y}),qo.track({index:f,et:"CLIENT_IMPRESSION",event_type:"MORS"}),"function"==typeof t&&t({meta:r})}}},onMarkup:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=e.event,r=n.onMarkup;return function(e){var o=e.styles,a=e.warnings,u=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n.indexOf(t=i[r])>=0||(o[t]=e[t]);return o}(e,wi),c=n.getContainer;return void 0!==o&&t.trigger("styles",{styles:o}),a&&a.forEach((function(e){qo.warn("render_warning",{description:e,container:c()})})),r&&r(i({styles:o,warnings:a},u))}}},onDestroy:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onDestroy;return function(){var e=n.getContainer,r=Io().messagesMap,o=e();h.delay(0).then((function(){if(o&&o.ownerDocument.body.contains(o)){var e=r.get(o).clone(),n=e.render,t=e.state,i=e.updateProps,a=e.clone;t.renderStart=fo(),r.set(o,{render:n,updateProps:i,state:t,clone:a}),n(o)}})),"function"==typeof t&&t()}}},payerId:{type:"string",queryParam:"payer_id",decorate:function(e){var n=e.props;return kt()(n.account,"client-id:")?null:n.account},default:function(){return""},required:!1},clientId:{type:"string",queryParam:"client_id",decorate:function(e){var n=e.props;return kt()(n.account,"client-id:")?n.account.slice(10):null},default:function(){return""},required:!1},merchantConfigHash:{type:"string",queryParam:"merchant_config",required:!1,value:gr,debug:vo("Merchant Config Hash: "+void 0)},treatmentsHash:{type:"string",queryParam:"treatments",required:!1,value:Xo,debug:vo("Treatments Hash: "+Xo())},sdkMeta:{type:"string",queryParam:!0,sendToChild:!1,required:!1,value:Sr,debug:vo("SDK Meta: "+void 0)},env:{type:"string",queryParam:!0,value:wr,debug:vo("Environment: production")},version:{type:"string",queryParam:!0,value:Ar,debug:vo("Library Version: 1.68.2")},integrationType:{type:"string",queryParam:!0,value:function(){return"STANDALONE"},debug:vo("Library Integration: STANDALONE")},deviceID:{type:"string",queryParam:!0,value:Or,debug:vo("Device ID: "+Or())},sessionID:{type:"string",queryParam:!0,value:Rr,debug:vo("Session ID: "+Rr())},scriptUID:{type:"string",queryParam:!0,value:un,debug:vo("ScriptUID: "+un())},messageRequestId:{type:"string",queryParam:"message_request_id",value:function(e){var n=e.state;return n.messageRequestId||(n.messageRequestId=oe()),vo("Message Request ID: "+n.messageRequestId),n.messageRequestId}},debug:{type:"boolean",queryParam:"pp_debug",required:!1,value:function(){return!!/(\?|&)pp_debug=true(&|$)/.test(window.location.search)||void 0}},messageLocation:{type:"string",queryParam:!1,value:function(){return window.location.href},debug:vo("Message Location: "+window.location.href)},stageTag:{type:"string",queryParam:!0,required:!1,value:Cr},partnerAttributionId:{type:"string",queryParam:!0,required:!1,value:function(){var e,n;return null!=(e=(null!=(n={})?n:{})["data-partner-attribution-id"])?e:null},debug:vo("Partner Attribution ID: "+(null!=(e={})?e:{})["data-partner-attribution-id"])},devTouchpoint:{type:"boolean",queryParam:!0,required:!1,value:Dr},cspNonce:{type:"string",required:!1,default:Er,value:vi.cspNonce},disableSetCookie:{type:"boolean",queryParam:!0,required:!1,value:mr},features:{type:"string",queryParam:"features",required:!1,value:function(e){return Mr(vi.features({props:e.props}))}}}})})),Ei=t(98),_i=Mo(),bi=function(e){var n=e.uid,t=e.frame,r=e.prerenderFrame,o=e.doc,i=e.event,a=e.state,u=e.props,c=u.cspNonce,s=u.features;if("popup"!==e.context){var d=null!=s&&s.includes("new-checkout-design")?100:300,f=null!=s&&s.includes("new-checkout-design")?0:5,l=lo(),p=l[0],v=l[1],y={HIDDEN:n+"-hide",MODAL_SHOW:n+"-show",TRANSITION:n+"-transition"},m=_i(t.title);return Xr("div",{id:n,class:y.HIDDEN,onRender:function(e){var n=e.querySelector("div"),o=function(){a.open=!0,a.previousFocus=document.activeElement,e.classList.remove(y.HIDDEN),p(),requestAnimationFrame((function(){requestAnimationFrame((function(){n.classList.add(y.MODAL_SHOW),a.renderedModal&&window.document.activeElement!==t?t.focus():window.document.activeElement!==r&&r.focus()}))}))},u=function(){a.open=!1,n.classList.remove(y.MODAL_SHOW),v(),setTimeout((function(){e.classList.add(y.HIDDEN),a.previousFocus.focus()}),d)};a.open&&o(),i.on("modal-show",o),i.on("modal-hide",u),i.on("zoid-rendered",(function(){a.renderedModal=!0,h.delay(d).then((function(){return n.classList.add(y.TRANSITION)})).then((function(){return h.delay(d)})).then((function(){return $e(r)})).then((function(){a.open&&document.activeElement!==t&&t.focus()}))})),window.addEventListener("keyup",(function(e){!a.open||"Escape"!==e.key&&"Esc"!==e.key&&27!==e.charCode||u()}))}},Xr("style",{nonce:c},"\n #"+n+"."+y.HIDDEN+" {\n visibility: hidden;\n }\n\n #"+n+" > div > iframe {\n position: absolute !important;\n top: 0 !important;\n left: 0 !important;\n width: 100% !important;\n height: 100% !important;\n border: none !important;\n }\n\n @supports (hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none) {\n #"+n+"."+y.HIDDEN+" > div > iframe {\n opacity: 0;\n }\n }\n\n #"+n+" > div {\n background: rgba(108, 115, 120, 0);\n transition: background "+d+"ms linear;\n position: fixed !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; z-index: 2147483647 !important; border: none !important;\n }\n\n "+("new-checkout-design"!==s?"#"+n+" > div."+y.MODAL_SHOW+" {\n background: rgba(108, 115, 120, 0.85);\n }":"")+"\n\n #"+n+" > div > iframe {\n transition: all "+d+"ms;\n transform: translateY("+f+"%);\n opacity: 0;\n }\n\n #"+n+" > div."+y.MODAL_SHOW+" > iframe {\n transform: translateY(0);\n opacity: 1;\n }\n\n #"+n+" > div > iframe:first-of-type {\n opacity: 0;\n }\n\n #"+n+" > div."+y.MODAL_SHOW+"."+y.TRANSITION+" > iframe:first-of-type {\n opacity: 1;\n z-index: 2;\n }\n\n #"+n+" > div."+y.TRANSITION+" > iframe:last-of-type {\n opacity: 0;\n }\n "),Xr("div",null,Xr("node",{el:t,title:m}),Xr("node",{el:r,title:"Prerender "+m}))).render(io({doc:o}))}},Si=t(99),Ni=function(e){var n,t=e.doc,r=e.props,o=r.cspNonce,i=r.features,a=r.onError,u=r.onClose,c=e.event,s=e.state,d=null!=i&&i.includes("new-checkout-design")?"true":"false",f="\n @font-face {\n font-family: 'PayPalOpen';\n src: url(https://www.paypalobjects.com/paypal-ui/fonts/PayPalOpen-Regular.woff2) format('woff');\n font-weight: normal;\n font-style: normal;\n }\n html {\n color: #2d2d2d;\n font-family: PayPalOpen, Helvetica, Arial, sans-serif;\n font-size: 14px;\n font-weight: 400;\n }\n .modal{\n overflow-y: scroll;\n }\n "+("true"===d?" @media screen and (min-width: 640px) {\n .overlay {\n background-color: #f1f2f3; \n position: fixed;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 424px;\n height: 90vh;\n border-radius: 32px;\n border: 1px solid #cdd0d4;\n }\n }\n @media screen and (max-width: 639px) {\n .overlay {\n background-color: #f1f2f3;\n position: fixed;\n left: 0;\n top: 0;\n width: 100%; \n height: 100%;\n }\n }\n ":".overlay {\n position: fixed;\n left: 0;\n top: 0;\n width: 100%; \n height: 100%;\n }")+"\n .modal-content {\n position: relative;\n margin: auto;\n height: 100%;\n border-top-right-radius: 10px;\n border-top-left-radius: 10px;\n }\n "+("true"===d&&"\n @media screen and (min-width: 640px) {\n #prerender-close-btn {\n position: relative;\n }\n .close-button {\n position: absolute;\n width: 424px;\n transform: translate(-50%, -50%);\n top: 85px;\n left: 50%;\n padding-left: 25px;\n z-index: 50;\n }\n }\n @media screen and (max-width: 639px) {\n #prerender-close-btn {\n left: 0;\n }\n }\n\n .spinnerImage{\n display: none;\n }\n .loader {\n width: 44px !important;\n height: 44px !important;\n margin: 0 0 0 -22px !important;\n background-color: transparent !important;\n animation: rotation 1.3s infinite linear !important;\n border-left: 3px solid #0544b5 !important;\n border-right: 3px solid #0544b5 !important;\n border-bottom: 3px solid transparent !important;\n border-top: 3px solid #0544b5 !important;\n border-radius: 100% !important;\n top: 20;\n }\n ")+"\n .spinner{\n position: relative !important;\n }\n\n .close-button > button {\n background-color: transparent;\n width: 48px;\n height: 48px;\n display: block;\n padding: 0;\n border: none;\n cursor: pointer;\n position: absolute;\n z-index: 50;\n right: 0;\n margin-right: 2px;\n margin-top: 2px;\n }\n\n .close-button > button > svg {\n width: 48px;\n height: 48px;\n }\n\n #modal-status {\n color: white;\n position: absolute;\n top: 67%;\n left: calc( 50% - 10px );\n margin-left: -60px;\n display: none;\n padding: 10px;\n }\n \n "+("true"===d&&"\n .close-button > button {\n background-color: transparent;\n width: 44px;\n height: 44px;\n }\n\n .close-button > button > svg {\n margin-top: -20px;\n margin-left: -20px;\n width: 24px;\n height: 24px;\n }\n\n @media screen and (max-width: 639px) {\n .close-button > button > svg {\n margin-top: auto;\n margin-left: auto;\n }\n }\n\n #modal-status {\n color: #545D68;\n position: absolute;\n top: 52%;\n margin-left: -60px;\n display: none;\n padding: 10px;\n }\n ")+"\n\n @media screen and (max-width: 639px), (max-height: 539px){\n .modal{\n overflow-y: hidden;\n }\n .modal-content {\n height: calc(100% - 84px);\n \n }\n }\n \n ",l=function(){u({linkName:"Pre-render Close"}),c.trigger("modal-hide")};return c.on("modal-show",(function(){s.renderedModal||window.requestAnimationFrame((function(){window.requestAnimationFrame((function(){var e;null==(e=n)||e.focus()}))}))})),Xr("html",{lang:"en"},Xr("head",null,Xr("meta",{httpEquiv:"X-UA-Compatible",content:"IE=edge"}),Xr("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})),Xr("style",{nonce:o},f),Xr("body",{onRender:function(e){n=e.querySelector("#prerender-close-btn"),window.requestAnimationFrame((function(){var e;null==(e=n)||e.focus()})),h.delay(15e3).then((function(){return function(e){h.delay(15e3).then((function(){var n=e.querySelector("#modal-status");n&&!s.renderedModal&&(n.style.display="block",n.textContent="Error loading Modal",a&&a({message:n.textContent}))}))}(e)}))},onKeyUp:function(e){s.renderedModal||!s.open||"Escape"!==e.key&&"Esc"!==e.key&&27!==e.charCode||l()}},Xr("div",{class:"modal","aria-errormessage":"modal-status"},Xr("div",{class:"overlay",onClick:l,"aria-keyshortcuts":"escape"}),Xr("div",{class:"top-overlay"}),Xr("div",{class:"modal-content"},Xr("div",{class:"close-button"},Xr("button",{id:"prerender-close-btn",onClick:l,type:"button","aria-label":"Close",tabindex:"0"},"true"===d?Xr("svg",{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Xr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.203 4.793a1 1 0 0 1 0 1.414L9.91 12.5l6.293 6.293a1 1 0 0 1-1.414 1.414l-6.993-6.993a1.01 1.01 0 0 1 0-1.428l6.993-6.993a1 1 0 0 1 1.414 0Z",fill:"#545D68"})):Xr("svg",{"aria-hidden":"true",width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Xr("path",{d:"M12 0L0 12",transform:"translate(12 12)",stroke:"white","stroke-width":"2","stroke-linecap":"round"}),Xr("path",{d:"M0 0L12 12",transform:"translate(12 12)",stroke:"white","stroke-width":"2","stroke-linecap":"round"})))),Xr("span",{id:"modal-status","aria-label":"modal-status","aria-live":"polite"},"Loading Modal"),Xr(Si.Spinner,{nonce:o}))))).render(io({doc:t}))},Ti=Fo("__paypal_credit_modal__",(function(){return Lt({tag:yr.MODAL,url:Lo("MODAL"),domain:/\.paypal\.com(:\d+)?$/,containerTemplate:bi,prerenderTemplate:Ni,dimensions:{width:"460px",height:"900px"},attributes:{iframe:{title:"PayPal Modal",scrolling:"no"}},props:{account:{type:"string",queryParam:!1,required:!0,value:vi.account},merchantId:{type:"string",queryParam:"merchant_id",required:!1,value:vi.merchantId},integrationIdentifier:{type:"string",queryParam:!0,value:function(e){return e.props.refIndex?void 0:"messagesModal"},required:!1},customerId:{type:"string",queryParam:"customer_id",required:!1,value:vi.customerId},currency:{type:"string",queryParam:!0,required:!1,value:vi.currency},amount:{type:"number",queryParam:!0,required:!1,value:vi.amount},buyerCountry:{type:"string",queryParam:"buyer_country",required:!1,value:vi.buyerCountry},language:{type:"string",queryParam:!0,required:!1,value:vi.language},offer:{type:"string",queryParam:"credit_type",required:!1,decorate:function(e){return po(e.value)}},refId:{type:"string",queryParam:!1,required:!1},refIndex:{type:"string",queryParam:!1,required:!1},ignoreCache:{type:"boolean",queryParam:"ignore_cache",required:!1,value:vi.ignoreCache},channel:{type:"string",queryParam:"channel",required:!1,default:function(){return"UPSTREAM"},value:vi.channel},ecToken:{type:"string",queryParam:"ec_token",required:!1,value:vi.ecToken},buttonSessionId:{type:"string",queryParam:"button_session_id",required:!1,value:vi.buttonSessionId},pageType:{type:"string",queryParam:"page_type",required:!1,value:vi.pageType},contextualComponents:{type:"string",queryParam:"contextual_components",required:!1,value:vi.contextualComponents},onClick:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onClick,r=n.onApply;return function(e){var o=e.linkName,i=e.src;qo.track({index:n.index,refIndex:n.refIndex,et:"CLICK",event_type:"modal_rendered",page_view_link_name:o,page_view_link_source:null!=i?i:o}),"function"==typeof t&&t({linkName:o}),"function"==typeof r&&Br()(o,"Apply Now")&&r()}}},onCalculate:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onCalculate;return function(e){var r=e.value;qo.track({index:n.index,refIndex:n.refIndex,et:"CLICK",event_type:"modal_rendered",page_view_link_name:"Calculator",page_view_link_source:"Calculator",calculator_input:r}),"function"==typeof t&&t({value:r})}}},onError:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onError;return function(e){var r=e.message;qo.track({index:n.index,refIndex:n.refIndex,et:"ERROR",event_type:"error",message:r}),"function"==typeof t&&t({message:r})}}},onShow:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onShow;return function(){var e=n.src;qo.track({index:n.index,refIndex:n.refIndex,et:"CLIENT_IMPRESSION",event_type:"modal_viewed",src:void 0===e?"show":e}),"function"==typeof t&&t()}}},onClose:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=e.event,r=n.onClose;return function(e){var o=(void 0===e?{}:e).linkName;if(void 0!==o){var i=n.index,a=n.refIndex;t.trigger("modal-hide"),qo.track({index:i,refIndex:a,et:"CLICK",event_type:"modal_close",page_view_link_name:o}),"function"==typeof r&&r({linkName:o})}}}},onReady:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=e.state,r=e.event,o=n.onReady,a=n.buttonSessionId;return function(e){var u=e.products,c=e.meta,s=e.ts,d=n.index,f=n.offer,l=n.merchantId,p=n.account,h=n.refIndex,v=n.messageRequestId,y=t.renderStart,m=t.show,w=t.hide,g=c.trackingDetails,E=c.ppDebugId,_=l&&p.slice(10);vo("Modal Correlation ID: "+E),qo.addMetaBuilder((function(e){var n;delete e[d];var t=e.global,r=void 0===t?{}:t;return delete e.global,(n={global:i({},r,{ts:void 0!==s?s:ho(),deviceID:Or(),sessionID:Rr()})})[d]={type:"modal",messageRequestId:v,buttonSessionId:a,account:l||p,partnerClientId:_,trackingDetails:g},n}));var b=ni("firstModalRenderDelay");qo.info("modal_render",{index:d,refIndex:h,duration:fo()-y}),qo.track({index:d,refIndex:h,et:"CLIENT_IMPRESSION",event_type:"modal_rendered",modal:u.join("_").toLowerCase()+":"+(f?f.toLowerCase():u[0]),bn_code:{}[Ei.SDK_SETTINGS.PARTNER_ATTRIBUTION_ID],first_modal_render_delay:Math.round(b).toString(),render_duration:Math.round(fo()-y).toString()}),"function"!=typeof o||t.products&&JSON.stringify(u)===JSON.stringify(t.products)||o({products:u,show:m,hide:w}),t.products=Array.isArray(u)&&u.map(po),r.trigger("ready")}}},index:{type:"string",queryParam:!1,value:function(e){var n=e.state;return n.index||(n.index=Do().toString()),n.index}},payerId:{type:"string",queryParam:"payer_id",decorate:function(e){var n=e.props;return kt()(n.account,"client-id:")?null:n.account},default:function(){return""},required:!1},clientId:{type:"string",queryParam:"client_id",decorate:function(e){var n=e.props;return kt()(n.account,"client-id:")?n.account.slice(10):null},default:function(){return""},required:!1},sdkMeta:{type:"string",queryParam:!0,sendToChild:!1,required:!1,value:Sr},env:{type:"string",queryParam:!0,value:wr},version:{type:"string",queryParam:!0,value:Ar},deviceID:{type:"string",queryParam:!0,value:Or},sessionID:{type:"string",queryParam:!0,value:Rr},scriptUID:{type:"string",queryParam:!0,value:un},messageRequestId:{type:"string",queryParam:"message_request_id",value:oe,decorate:function(e){var n=e.props;return vo("Modal Message Request ID: "+n.messageRequestId),n.messageRequestId}},debug:{type:"boolean",queryParam:"pp_debug",required:!1,value:function(){return!!/(\?|&)pp_debug=true(&|$)/.test(window.location.search)||void 0}},stageTag:{type:"string",queryParam:!0,required:!1,value:Cr},devTouchpoint:{type:"boolean",queryParam:!0,required:!1,value:Dr},integrationType:{type:"string",queryParam:!0,required:!1,value:function(){return"STANDALONE"}},cspNonce:{type:"string",required:!1,default:Er,value:vi.cspNonce},disableSetCookie:{type:"boolean",queryParam:!0,required:!1,value:mr},features:{type:"string",queryParam:"features",required:!1,value:function(e){return Mr(vi.features({props:e.props}))}}}})})),Ai=(li=function(e){var n=e.account,t=e.merchantId,r=e.customerId,o=e.currency,i=e.amount,a=e.buyerCountry,u=e.language,c=e.ignoreCache,s=e.offer,d=e.onReady,f=e.onCalculate,l=e.onError,p=e.onApply,v=e.onShow,y=e.onClose,m=e.channel,w=e.ecToken,g=e.contextualComponents,E=e.cspNonce,_=e.integrationIdentifier,b=e.features,S=e.buttonSessionId;ri("firstModalRenderDelay");var N,T=Ti()({account:n,merchantId:t,customerId:r,currency:o,amount:i,buyerCountry:a,language:u,ignoreCache:c,offer:s,onReady:d,onCalculate:f,onError:l,onApply:p,onShow:v,onClose:y,channel:m,ecToken:w,contextualComponents:g,cspNonce:E,integrationIdentifier:_,features:b,buttonSessionId:S}),A=function(e,n,t){void 0===e&&(e="body"),void 0===t&&(t={intent:"render"});var r=bo()===window||null!=b&&b.includes("new-checkout-design")?"iframe":"popup";if(N&&"popup"!==r)return N.then((function(){return n&&T.updateProps(n)}));N&&"popup"===r&&Object.assign(T,T.clone());var o=new h((function(e){return T.event.once("ready",e)}));T.state.renderStart=fo();var i="show"===t.intent?h.resolve():Uo.then((function(){return h.delay(0)}));return N=i.then((function(){return h.all([n&&T.updateProps(n),T.render(e,r),o])})).then((function(){return ko.trigger("modal-render")}))},P=function(e){var n;void 0===e&&(e={});var t,r,o,i,a=So(e)?No(e):e;So(e)&&(a.src=null!=(t=null!=(r=null!=(o=e.id)?o:[].concat(e.classList).filter(Boolean).reduce((function(e,n){return(null!=e?e:"")+"."+n}),null))?r:null==(i=e.constructor)?void 0:i.name)?t:"element"),N=A("body",a,{intent:"show"});var u=po(e.offer),c="DE"===(null==(n=e)?void 0:n.offerCountry)?["PAY_LATER_LONG_TERM","PAY_LATER_PAY_IN_1","PAY_LATER_SHORT_TERM"]:T.state.products;return void 0!==u&&"NONE"!==u&&Array.isArray(T.state.products)&&!Fr()(c,(function(e){return e===u}))?(qo.warn("invalid_option_value",{location:"offer",description:'Expected one of ["'+T.state.products.join('", "')+'"] but received "'+e.offer+'".'}),h.resolve()):(T.state.open=!0,T.event.trigger("modal-show"),N)},x=function(){return N=A("body"),T.event.trigger("modal-hide"),N};return T.state.show=P,T.state.hide=x,{render:A,show:P,hide:x,updateProps:function(e){T.updateProps(e)}}},pi=["account","merchantId","buyerCountry"],hi=new Map,function(e,n){void 0===n&&(n=!1);var t=JSON.stringify(pi.map((function(n){return e[n]})));return hi.has(t)&&!n||hi.set(t,li(e)),hi.get(t)}),Pi=function(e){return Ai(go(Io().config,e))},xi=function(e){return void 0===e&&(e={}),{render:function(n){void 0===n&&(n="[data-pp-message]"),ri("firstRenderDelay");var t=fo(),r=Io().messagesMap,o=xo(n);if(0===o.length)return e._auto||qo.warn("invalid_selector",{description:'No elements were found with the following selector: "'+n+'"',selector:n}),h.resolve();var a=o.filter((function(n){return n.ownerDocument.body.contains(n)?!e._auto||!n.hasAttribute("data-pp-id"):(qo.warn("not_in_document",{description:"Container must be in the document.",container:n}),!1)}));return jo.then((function(){return h.all(a.map((function(n,o){return new h((function(a,u){var c=function(){try{var o=function(e,n){var t=Io().config,r=No(n),o=i({},t,e,r,{pageType:r.pageType||e.pageType||r.placement||e.placement});return delete o.placement,o}(e,n);n.hasAttribute("data-pp-id")||n.setAttribute("data-pp-id",Do());var c=n.getAttribute("data-pp-id"),s=o.account,d=o.merchantId,f=o.customerId,l=o.currency,p=o.amount,h=o.pageType,v=o.style,y=o.offer,m=o.buyerCountry,w=o.ignoreCache,g=o.onClick,E=o.onRender,_=o.onApply,b=o.channel,S=o.ecToken,N=o.contextualComponents,T={account:s,merchantId:d,customerId:f,currency:l,amount:p,buyerCountry:m,ignoreCache:w,channel:b,ecToken:S,contextualComponents:N,cspNonce:o.cspNonce,features:o.features},A=i({},T,{onApply:_}),P=i({},T,{index:c,pageType:h,style:v,offer:y,onClick:g,onApply:_,onReady:function(){"function"==typeof E&&E.apply(void 0,arguments)},getContainer:function(){return n}});if(s&&(P.modal=Pi(A)),!r.has(n)){var x=gi()(P),R=x.render,O=x.state,I=x.updateProps,C=x.clone;return O.renderStart=t,O.style=P.style,r.set(n,{render:R,updateProps:I,state:O,clone:C}),zo().observe(n,{attributes:!0}),vo("{\n clientID: "+s+",\n merchantID: "+d+",\n customerID: "+f+",\n offer: "+y+",\n currency: "+l+",\n ignoreCache: "+w+",\n channel: "+b+",\n ecToken: "+S+",\n contextualComponents: "+N+',\n \n index: data-pp-id="'+c+'",\n style: '+JSON.stringify(v)+",\n amount: "+p+",\n buyerCountry: "+m+",\n pageType: "+h+",\n \n renderStart: "+new Date(t).toLocaleString()+",\n renderMessageTime: "+(new Date).toLocaleString()+"\n }"),R(n).then((function(){return ko.trigger("render")})).then(a)}var D=r.get(n),M=D.updateProps,L=D.state;if(L.renderComplete&&(L.renderStart=t),L.style&&P.style){var F=go(L.style,P.style);L.style=F,P.style=F}return M(Wr()(P).reduce((function(e,n){var t,r=n[1];return void 0===r?e:Object.assign(e,((t={})[n[0]]=r,t))}),{})).then((function(){return ko.trigger("render")})).then(a)}catch(e){return"offer_validation_error"===e.message?a():u(e)}};0!==o?window.requestIdleCallback?window.requestIdleCallback(c):setTimeout(c,20*o):c()}))})))}))}}};Gt()(xi,{render:function(e,n){return xi(e).render(n)},setGlobalConfig:function(e){return void 0===e&&(e={}),Co({config:i({},Io().config,e)})}});var Ri=xi;ri("scriptLoadDelay"),function(){Jo(),gi(),Vo(),Ho();var e,n=Tr();if(window[n]=null!=(e=window[n])?e:{},window[n].Messages=Ri,window[n].Message=Ri,!Pr()){var t=function(){!Xo()&&Ue()?Qo():ko.trigger("treatments"),Io().config.account&&Ri.render({_auto:!0}),Zo().observe(document.body,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-pp-message"]}),vo("DOMContentLoaded at "+(new Date).toLocaleString())};"loading"===document.readyState?window.addEventListener("DOMContentLoaded",t):t()}}(),function(){Ti(),Ho();var e,n=Tr();window[n]=null!=(e=window[n])?e:{},window[n].MessagesModal=Pi,Pr()||Wo.then((function(){if(Io().config.account){var e=xo("[data-pp-messagesmodal]");if(e.length>0){var n=go(Io().config,No(e[0])),t=Pi(n);e.forEach((function(e){e.setAttribute("tabindex",0),e.addEventListener("click",(function(){return t.show(e)}))}))}}}))}()}]);
|
3
3
|
//# sourceMappingURL=messaging.js.map
|