@paypal/messaging-components 1.85.0 → 1.86.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/renderV2Message.js +3 -0
- package/dist/bizcomponents/js/renderV2Message.js.map +1 -0
- 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.85.0.js → messaging@1.86.0.js} +3 -3
- package/dist/bizcomponents/js/versioned/{modal@1.85.0.js → modal@1.86.0.js} +3 -3
- package/dist/bizcomponents/{stage/versioned/renderMessage@1.85.0.js → js/versioned/renderMessage@1.86.0.js} +3 -3
- package/dist/bizcomponents/js/versioned/renderV2Message@1.86.0.js +3 -0
- package/dist/bizcomponents/js/versioned/renderV2Message@1.86.0.js.map +1 -0
- package/dist/bizcomponents/js/versioned/{smart-credit-message@1.85.0.js → smart-credit-message@1.86.0.js} +3 -3
- package/dist/bizcomponents/js/versioned/{smart-credit-modal-v2-lander@1.85.0.js → smart-credit-modal-v2-lander@1.86.0.js} +3 -3
- package/dist/bizcomponents/js/versioned/{smart-credit-modal-v2@1.85.0.js → smart-credit-modal-v2@1.86.0.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/renderV2Message.js +3 -0
- package/dist/bizcomponents/sandbox/renderV2Message.js.map +1 -0
- 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.85.0.js → messaging@1.86.0.js} +3 -3
- package/dist/bizcomponents/sandbox/versioned/{modal@1.85.0.js → modal@1.86.0.js} +3 -3
- package/dist/bizcomponents/{js/versioned/renderMessage@1.85.0.js → sandbox/versioned/renderMessage@1.86.0.js} +3 -3
- package/dist/bizcomponents/sandbox/versioned/renderV2Message@1.86.0.js +3 -0
- package/dist/bizcomponents/sandbox/versioned/renderV2Message@1.86.0.js.map +1 -0
- package/dist/bizcomponents/sandbox/versioned/{smart-credit-message@1.85.0.js → smart-credit-message@1.86.0.js} +3 -3
- package/dist/bizcomponents/sandbox/versioned/{smart-credit-modal-v2-lander@1.85.0.js → smart-credit-modal-v2-lander@1.86.0.js} +3 -3
- package/dist/bizcomponents/sandbox/versioned/{smart-credit-modal-v2@1.85.0.js → smart-credit-modal-v2@1.86.0.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/renderV2Message.js +3 -0
- package/dist/bizcomponents/stage/renderV2Message.js.map +1 -0
- 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.85.0.js → messaging@1.86.0.js} +3 -3
- package/dist/bizcomponents/stage/versioned/{modal@1.85.0.js → modal@1.86.0.js} +3 -3
- package/dist/bizcomponents/{sandbox/versioned/renderMessage@1.85.0.js → stage/versioned/renderMessage@1.86.0.js} +3 -3
- package/dist/bizcomponents/stage/versioned/renderV2Message@1.86.0.js +3 -0
- package/dist/bizcomponents/stage/versioned/renderV2Message@1.86.0.js.map +1 -0
- package/dist/bizcomponents/stage/versioned/{smart-credit-message@1.85.0.js → smart-credit-message@1.86.0.js} +3 -3
- package/dist/bizcomponents/stage/versioned/{smart-credit-modal-v2-lander@1.85.0.js → smart-credit-modal-v2-lander@1.86.0.js} +3 -3
- package/dist/bizcomponents/stage/versioned/{smart-credit-modal-v2@1.85.0.js → smart-credit-modal-v2@1.86.0.js} +3 -3
- package/package.json +1 -1
- /package/dist/bizcomponents/js/versioned/{messaging@1.85.0.js.map → messaging@1.86.0.js.map} +0 -0
- /package/dist/bizcomponents/js/versioned/{modal@1.85.0.js.map → modal@1.86.0.js.map} +0 -0
- /package/dist/bizcomponents/js/versioned/{renderMessage@1.85.0.js.map → renderMessage@1.86.0.js.map} +0 -0
- /package/dist/bizcomponents/js/versioned/{smart-credit-message@1.85.0.js.map → smart-credit-message@1.86.0.js.map} +0 -0
- /package/dist/bizcomponents/js/versioned/{smart-credit-modal-v2-lander@1.85.0.js.map → smart-credit-modal-v2-lander@1.86.0.js.map} +0 -0
- /package/dist/bizcomponents/js/versioned/{smart-credit-modal-v2@1.85.0.js.map → smart-credit-modal-v2@1.86.0.js.map} +0 -0
- /package/dist/bizcomponents/sandbox/versioned/{messaging@1.85.0.js.map → messaging@1.86.0.js.map} +0 -0
- /package/dist/bizcomponents/sandbox/versioned/{modal@1.85.0.js.map → modal@1.86.0.js.map} +0 -0
- /package/dist/bizcomponents/sandbox/versioned/{renderMessage@1.85.0.js.map → renderMessage@1.86.0.js.map} +0 -0
- /package/dist/bizcomponents/sandbox/versioned/{smart-credit-message@1.85.0.js.map → smart-credit-message@1.86.0.js.map} +0 -0
- /package/dist/bizcomponents/sandbox/versioned/{smart-credit-modal-v2-lander@1.85.0.js.map → smart-credit-modal-v2-lander@1.86.0.js.map} +0 -0
- /package/dist/bizcomponents/sandbox/versioned/{smart-credit-modal-v2@1.85.0.js.map → smart-credit-modal-v2@1.86.0.js.map} +0 -0
- /package/dist/bizcomponents/stage/versioned/{messaging@1.85.0.js.map → messaging@1.86.0.js.map} +0 -0
- /package/dist/bizcomponents/stage/versioned/{modal@1.85.0.js.map → modal@1.86.0.js.map} +0 -0
- /package/dist/bizcomponents/stage/versioned/{renderMessage@1.85.0.js.map → renderMessage@1.86.0.js.map} +0 -0
- /package/dist/bizcomponents/stage/versioned/{smart-credit-message@1.85.0.js.map → smart-credit-message@1.86.0.js.map} +0 -0
- /package/dist/bizcomponents/stage/versioned/{smart-credit-modal-v2-lander@1.85.0.js.map → smart-credit-modal-v2-lander@1.86.0.js.map} +0 -0
- /package/dist/bizcomponents/stage/versioned/{smart-credit-modal-v2@1.85.0.js.map → smart-credit-modal-v2@1.86.0.js.map} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/* version: 1.
|
|
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=5)}([,function(e,n,t){e.exports=t(4)},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 g})),t.d(n,"SpinnerPage",(function(){return _})),t.d(n,"VenmoSpinner",(function(){return N})),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),m=((d={})["xlink:href"]="http://www.w3.org/1999/xlink",d);function v(e,n){return e.createTextNode(n.text)}function w(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=m[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 y=((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 v(t,e);if("element"===e.type){var o=function(e,n,t){return e.createElementNS(t,n.name)}(t,e,n);return w(o,e),E(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 v(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 w(i,e),E(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 E(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(y[n.name]||y.default)(e,n,r)}function g(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(g,{nonce:t}),n))}function N(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(N,{nonce:t}),n))}}])},,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 O})),t.d(n,"DEFAULT_CURRENCY",(function(){return C})),t.d(n,"DEFAULT_INTENT",(function(){return I})),t.d(n,"DEFAULT_COMMIT",(function(){return x})),t.d(n,"DEFAULT_SALE_COMMIT",(function(){return D})),t.d(n,"DEFAULT_NONSALE_COMMIT",(function(){return L})),t.d(n,"DEFAULT_VAULT",(function(){return M})),t.d(n,"DEFAULT_COMPONENTS",(function(){return F})),t.d(n,"DEFAULT_DEBUG",(function(){return H})),t.d(n,"ENV",(function(){return k})),t.d(n,"MOBILE_ENV",(function(){return U})),t.d(n,"ERROR_CODE",(function(){return B})),t.d(n,"FPTI_KEY",(function(){return G})),t.d(n,"FPTI_USER_ACTION",(function(){return W})),t.d(n,"FPTI_DATA_SOURCE",(function(){return j})),t.d(n,"FPTI_FEED",(function(){return Z})),t.d(n,"FPTI_SDK_NAME",(function(){return q})),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 K})),t.d(n,"payPalWebV5Dimensions",(function(){return Y})),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 m})),t.d(n,"SDK_PATH",(function(){return v})),t.d(n,"WEB_SDK_BRIDGE_PATH",(function(){return w})),t.d(n,"SDK_SETTINGS",(function(){return y})),t.d(n,"SDK_DATA_ATTRIBUTES",(function(){return E})),t.d(n,"SDK_QUERY_KEYS",(function(){return g})),t.d(n,"COMPONENTS",(function(){return _})),t.d(n,"DEBUG",(function(){return N})),t.d(n,"QUERY_BOOL",(function(){return S})),t.d(n,"UNKNOWN",(function(){return T})),t.d(n,"PROTOCOL",(function(){return A})),t.d(n,"PAGE_TYPES",(function(){return b})),t.d(n,"MERCHANT_ID_MAX",(function(){return R})),t.d(n,"DISPLAY_ONLY_VALUES",(function(){return P})),t.d(n,"PLATFORM",(function(){return z})),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},m={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"},v="/sdk/js",w="/web-sdk/v6/bridge",y={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"},E=y,g={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"},N={TRUE:!0,FALSE:!1},S={TRUE:"true",FALSE:"false"},T="unknown",A={HTTP:"http",HTTPS:"https"},b={HOME:"home",PRODUCT:"product",CART:"cart",CHECKOUT:"checkout",PRODUCT_LISTING:"product-listing",SEARCH_RESULTS:"search-results",PRODUCT_DETAILS:"product-details",MINI_CART:"mini-cart"},R=10,P={VAULTABLE:"vaultable"},O=s.US,C=m.USD,I=l.CAPTURE,x=p.TRUE,D=p.TRUE,L=p.TRUE,M=h.FALSE,F=_.BUTTONS,H=N.FALSE,k={LOCAL:"local",STAGE:"stage",SANDBOX:"sandbox",PRODUCTION:"production",TEST:"test"},U={ANDROID:"android",IOS:"iOS"},B={VALIDATION_ERROR:"validation_error"},G={BRAND_VERSION:"brand_version",BUTTON_COLOR:"button_color",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_FI_ID:"chosen_fi_id",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",FLOW:"flow",FUNDING_COUNT:"eligible_payment_count",FUNDING_LIST:"eligible_payment_methods",GLOBAL_SESSION_UID:"global_session_id",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",SHOPPER_SESSION_ID:"data_shopper_session_id",SMART_WALLET_INSTRUMENT_TYPES:"smart_wallet_instrument_types",SPACE_KEY:"space_key",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",USER_ACTIVATION_IS_ACTIVE:"usr_activation_is_active"},W={COMMIT:"commit",CONTINUE:"continue"},j={PAYMENTS_SDK:"checkout"},Z={PAYMENTS_SDK:"payments_sdk"},q={PAYMENTS_SDK:"payments_sdk"},K="pp.sdks.ppcp",Y={sdk_platform:"web",major_version:"5"},z={DESKTOP:"desktop",MOBILE:"mobile"},V=!0}])},function(e,n,t){"use strict";function r(){return(r=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 o(e,n){return(o=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function i(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,o(e,n)}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 m(e){return"[object RegExp]"==={}.toString.call(e)}var v={IFRAME:"iframe",POPUP:"popup"},w="Call was rejected by callee.\r\n";function y(e){return void 0===e&&(e=window),e.location.protocol}function E(e){if(void 0===e&&(e=window),e.mockDomain){var n=e.mockDomain.split("//")[0];if(n)return n}return y(e)}function g(e){return void 0===e&&(e=window),"about:"===E(e)}function _(e){if(void 0===e&&(e=window),e)try{if(e.parent&&e.parent!==e)return e.parent}catch(e){}}function N(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 T(e){void 0===e&&(e=window);var n=e.location;if(!n)throw new Error("Can not read window location");var t=y(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()?T(r):"about://"}var o=n.host;if(!o)throw new Error("Can not read window host");return t+"//"+o}function A(e){void 0===e&&(e=window);var n=T(e);return n&&e.mockDomain&&0===e.mockDomain.indexOf("mock:")?e.mockDomain:n}function b(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(g(e)&&S())return!0}catch(e){}try{if(function(e){return void 0===e&&(e=window),"mock:"===E(e)}(e)&&S())return!0}catch(e){}try{if(T(e)===T(window))return!0}catch(e){}return!1}(e))return!1;try{if(e===window)return!0;if(g(e)&&S())return!0;if(A(window)===A(e))return!0}catch(e){}return!1}function R(e){if(!b(e))throw new Error("Expected window to be same domain");return e}function P(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 O(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 C(e){for(var n=[],t=0,r=O(e);t<r.length;t++){var o=r[t];n.push(o);for(var i=0,a=C(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(P(window,e)&&window.top)return window.top}catch(e){}try{if(P(e,window)&&window.top)return window.top}catch(e){}for(var n=0,t=C(e);n<t.length;n++){var r=t[n];try{if(r.top)return r.top}catch(e){}if(_(r)===r)return r}}function x(e){var n=I(e);if(!n)throw new Error("Can not determine top window");var t=[].concat(C(n),[n]);return-1===t.indexOf(e)&&(t=[].concat(t,[e],C(e))),t}var D=[],L=[];function M(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!==w}if(n&&b(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=L[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=O(e),r=0;r<t.length;r++){var o=t[r];try{if(b(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 H(e){return void 0===e&&(e=window),N(e=e||window)||_(e)||void 0}function k(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 U(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=x(e),i=x(n);if(k(o,i))return!0;var a=N(t),u=N(r);return a&&k(x(a),i)||u&&k(x(u),o),!1}function G(e,n){if("string"==typeof e){if("string"==typeof n)return"*"===e||n===e;if(m(n))return!1;if(Array.isArray(n))return!1}return m(e)?m(n)?e.toString()===n.toString():!Array.isArray(n)&&Boolean(n.match(e)):!!Array.isArray(e)&&(Array.isArray(n)?JSON.stringify(e)===JSON.stringify(n):!m(n)&&e.some((function(e){return G(e,n)})))}function W(e){return e.match(/^(https?|mock|file):\/\//)?e.split("/").slice(0,3).join("/"):A()}function j(e,n,t,r){var o;void 0===t&&(t=1e3),void 0===r&&(r=1/0);var i=function(){if(M(e))return o&&clearTimeout(o),n();r<=0?clearTimeout(o):(r-=t,o=setTimeout(i,t))};return i(),{cancel:function(){o&&clearTimeout(o)}}}function Z(e){try{if(e===window)return!0}catch(e){if(e&&e.message===w)return!0}try{if("[object Window]"==={}.toString.call(e))return!0}catch(e){if(e&&e.message===w)return!0}try{if(window.Window&&e instanceof window.Window)return!0}catch(e){if(e&&e.message===w)return!0}try{if(e&&e.self===e)return!0}catch(e){if(e&&e.message===w)return!0}try{if(e&&e.parent===e)return!0}catch(e){if(e&&e.message===w)return!0}try{if(e&&e.top===e)return!0}catch(e){if(e&&e.message===w)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 q(e){if(b(e))return R(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 K(e){if(function(e){return void 0===e&&(e=window),Boolean(_(e))}(e)){var n=q(e);if(n&&n.parentElement)return void n.parentElement.removeChild(n)}try{e.close()}catch(e){}}function Y(e,n){for(var t=0;t<e.length;t++)try{if(e[t]===n)return t}catch(e){}return-1}var z,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(Z(r)&&M(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!Z(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=Y(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=Y(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=Y(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!==Y(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 Q(e){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function J(){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=J()?Reflect.construct:function(e,n,t){var r=[null];r.push.apply(r,n);var i=new(Function.bind.apply(e,r));return t&&o(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,Q(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(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(z=z||new V,null==e||"object"!=typeof e&&"function"!=typeof e)throw new Error("Invalid object");var n=z.get(e);return n||(n=typeof e+":"+oe(),z.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 me(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: "+me(e,n+1)}}function ve(e){return"string"==typeof e?e:e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}function we(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 ye(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 Ee(e){return e}function ge(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 Ne(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 Te(e){return[].slice.call(e)}function Ae(e){return"object"==typeof(n=e)&&null!==n&&"[object Object]"==={}.toString.call(e);var n}function be(e){if(!Ae(e))return!1;var n=e.constructor;if("function"!=typeof n)return!1;var t=n.prototype;return!!Ae(t)&&!!t.hasOwnProperty("isPrototypeOf")}function Re(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(be(i)||Array.isArray(i))&&(i=Re(i,n,o)),i}))},a=0;a<r;a++)i(a);return o}if(be(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(be(i)||Array.isArray(i))&&(i=Re(i,n,o)),i}))};for(var s in e)c(s);return u}throw new Error("Pass an object or array")}function Pe(e){return null!=e}function Oe(e){return"[object RegExp]"==={}.toString.call(e)}function Ce(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 xe(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 i(n,e),n}($(Error));function Le(){var e=document.body;if(!e)throw new Error("Body element not found");return e}function Me(){return Boolean(document.body)&&"complete"===document.readyState}function Fe(){return Boolean(document.body)&&"interactive"===document.readyState}function He(e){return encodeURIComponent(e)}function ke(e){return le(ke,(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 Ue(e,n){return void 0===n&&(n={}),n&&Object.keys(n).length?(void 0===(t=r({},ke(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 He(e)+"="+He(n.toString())})).join("&")):e;var t}function Be(){return"undefined"!=typeof window&&void 0!==window.location}function Ge(){return le(Ge,(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 je(e,n){return void 0===n&&(n=document),ee(e)?e:"string"==typeof e?n.querySelector(e):void 0}function Ze(e){return new h((function(n,t){var r=ve(e),o=je(e);if(o)return n(o);if(Me())return t(new Error("Document is ready and element "+r+" does not exist"));var i=setInterval((function(){return(o=je(e))?(n(o),void clearInterval(i)):Me()?(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(Me()||Fe())return e();var n=setInterval((function(){if(Me()||Fe())return clearInterval(n),e()}),10)}))}));var qe,Ke=function(e){function n(){return e.apply(this,arguments)||this}return i(n,e),n}(De);function Ye(e){if((qe=qe||new V).has(e)){var n=qe.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&&(L.splice(e,1),D.splice(e,1))}}(),e&&e.contentWindow)try{D.push(e.contentWindow),L.push(e)}catch(e){}})(e),n(e)})),e.addEventListener("error",(function(r){e.contentWindow?n(e):t(r)}))}));return qe.set(e,t),t}function ze(e){return Ye(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||{},o=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&&we(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:r({allowTransparency:"true"},e.attributes||{}),style:r({backgroundColor:"transparent",border:"none"},t),html:e.html,class:e.class}),i=window.navigator.userAgent.match(/MSIE|Edge/i);return o.hasAttribute("id")||o.setAttribute("id",oe()),Ye(o),n&&function(e,n){void 0===n&&(n=document);var t=je(e,n);if(t)return t;throw new Error("Can not find element: "+ve(e))}(n).appendChild(o),(e.url||i)&&o.setAttribute("src",e.url||"about:blank"),o}function Qe(e,n,t){return e.addEventListener(n,t),{cancel:function(){e.removeEventListener(n,t)}}}function Je(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 m,v,w=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",w),void 0!==f.ResizeObserver?((m=new f.ResizeObserver(w)).observe(e),v=ge(w,10*s)):void 0!==f.MutationObserver?((m=new f.MutationObserver(w)).observe(e,{attributes:!0,childList:!0,subtree:!0,characterData:!1}),v=ge(w,10*s)):v=ge(w,s),{cancel:function(){h=!0,m.disconnect(),window.removeEventListener("resize",w),v.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=Ge();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}])}function sn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var dn=[];function fn(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<dn.length;h++)for(var m=(0,dn[h])(),v=0,w=Object.keys(m);v<w.length;v++){var y=w[v];o[y.toLowerCase()]=m[y]}var E=new d.XMLHttpRequest;for(var g in E.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=sn(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),E.addEventListener("error",(function(e){t(new Error("Request to "+r.toLowerCase()+" "+n+" failed: "+e.toString()+"."))}),!1),E.open(r,n,!0),o)o.hasOwnProperty(g)&&E.setRequestHeader(g,o[g]);a?c=JSON.stringify(a):u&&(c=Object.keys(u).map((function(e){return encodeURIComponent(e)+"="+(u?encodeURIComponent(u[e]):"")})).join("&")),E.timeout=l,E.ontimeout=function(){t(new Error("Request to "+r.toLowerCase()+" "+n+" has timed out"))},E.send(c)}))}function ln(e){return"string"==typeof e&&/^[0-9]+%$/.test(e)}function pn(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 hn(e){return pn(e)+"px"}function mn(e){return"number"==typeof e?hn(e):ln(e)?e:hn(e)}function vn(e,n){if("number"==typeof e)return e;if(ln(e))return parseInt(n*pn(e)/100,10);var t;if("string"==typeof(t=e)&&/^[0-9]+px$/.test(t))return pn(e);throw new Error("Can not normalize dimension: "+e)}var wn=de((function(){try{return on()}catch(e){throw function(e,n,t){var r=t?me(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=wn().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 yn=["warn","error"],En=["error","warn","info","debug"],gn=function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};function _n(e){var n=e.url,t=e.prefix,o=e.metricNamespacePrefix,i=e.logLevel,a=void 0===i?"warn":i,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=b(e)?R(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||fn({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=[],m=[],v=[],w=[],y=[],E=[],g=[],_=[];function N(e,n,t){if(Be()&&window.console&&window.console.log&&!(En.indexOf(e)>En.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||m.length||v.length)){for(var e={},t=0;t<y.length;t++)gn(e,(0,y[t])(e));for(var r,o={},i=0;i<_.length;i++)gn(o,(0,_[i])(o));return n&&(r=c({method:"POST",url:n,headers:o,json:{events:p,meta:e,tracking:m,metrics:v},enableSendBeacon:l}).catch(pe)),p=[],m=[],v=[],h.resolve(r).then(pe)}}))}var T,A,P,O,C=(void 0===A&&(A=50),te((function(){O&&clearTimeout(O);var e=P=P||new h;return O=setTimeout((function(){P=null,O=null,h.try(T).then((function(n){e.resolve(n)}),(function(n){e.reject(n)}))}),A),e}),ne(T=S)+"::promiseDebounced"));function I(e,n,o){if(void 0===o&&(o={}),!Be())return L;t&&(n=t+"_"+n);for(var i=r({},ye(o),{timestamp:Date.now().toString()}),a=0;a<w.length;a++)gn(i,(0,w[a])(i));return function(e,n,t){p.push({level:e,event:n,payload:t}),-1!==yn.indexOf(e)&&C()}(e,n,i),N(e,n,i),L}function x(e,n){return e.push(n),L}function D(e){if(!Be())return L;o&&(e.metricNamespace=o+"."+e.metricNamespace),g.length>0&&!e.dimensions&&(e.dimensions={});for(var n=0;n<g.length;n++)gn(e.dimensions||{},(0,g[n])(e.dimensions||{}));return N("debug","metric."+e.metricNamespace,e.dimensions||{}),v.push(e),L}Be()&&ge(C,d),"object"==typeof window&&(window.addEventListener("beforeunload",(function(){S()})),"onpagehide"in window?window.addEventListener("pagehide",(function(){S()})):window.addEventListener("unload",(function(){S()})));var L={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 L;for(var n=ye(e),t=0;t<E.length;t++)gn(n,(0,E[t])(n));return N("debug","track",n),m.push(n),L},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:C,immediateFlush:S,addPayloadBuilder:function(e){return x(w,e)},addMetaBuilder:function(e){return x(y,e)},addMetricDimensionBuilder:function(e){return x(g,e)},addTrackingBuilder:function(e){return x(E,e)},addHeaderBuilder:function(e){return x(_,e)},setTransport:function(e){return c=e,L},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),L},__buffer__:{get events(){return p},get tracking(){return m},get metrics(){return v}}};return Object.defineProperty(L,"__buffer__",{writable:!1}),L}var Nn,Sn=de((function(){return _n({url:(void 0===(e="/xoplatform/logger/api/logger")&&(e=""),"https://www.paypal.com"+e),metricNamespacePrefix:"pp.sdks.ppcp"});var e}));function Tn(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 An(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){Tn(i,r,o,a,u,"next",e)}function u(e){Tn(i,r,o,a,u,"throw",e)}a(void 0)}))}}var bn=((Nn={}).local="https://cdn-latest.static.engineering.dev.paypalinc.com/qaRdaAssets/fraudnet/async/fb-raw.js",Nn.stage="https://cdn-latest.static.engineering.dev.paypalinc.com/qaRdaAssets/fraudnet/async/fb-raw.js",Nn.sandbox="https://c.paypal.com/da/r/fb.js",Nn.production="https://c.paypal.com/da/r/fb.js",Nn.test="https://c.paypal.com/da/r/fb.js",Nn);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?bn[t]+"?"+u:bn[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(){Sn().warn("ppcp_axo_init_fraudnet_failed")}));return{collect:(i=An((function*(){try{yield a,yield window.PAYPAL.asyncData.collect()}catch(e){Sn().warn("ppcp_axo_collect_fraudnet_failed")}})),function(){return i.apply(this,arguments)})}})),de((function(e){Sn().info("rest_api_create_access_token");var n,t=re(e+":");return fn({method:"post",url:(n="/v1/oauth2/token",void 0===n&&(n=""),""+("undefined"!=typeof window&&void 0!==window.location&&"https://www.paypal.com"===A()?"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 Rn,Pn,On,Cn,In,xn={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"]},Dn=(Pn=An((function*(){if(!Rn){var e=xn.create,n=xn.extractable,t=xn.usages,r=yield window.crypto.subtle.generateKey(e,n,t);Rn=Rn||{publicKey:r.publicKey,privateKey:r.privateKey}}return Rn})),function(){return Pn.apply(this,arguments)}),Ln=function(e){return new Uint8Array(e.split("").map((function(e){return e.charCodeAt(0)})))},Mn=function(e){return String.fromCharCode.apply(String,e)},Fn=function(e){return btoa(e).replace(/[=]+/g,"").replace(/\+/g,"-").replace(/\//g,"_")},Hn=(On=An((function*(e){var n=Ln(e),t=yield window.crypto.subtle.digest("sha-256",n),r=Mn(new Uint8Array(t));return Fn(r)})),function(e){return On.apply(this,arguments)}),kn=(Cn=An((function*(e){var n=e.crv,t=e.e,r=e.kty,o=e.n,i=e.x,a=e.y;return yield Hn(JSON.stringify({crv:n,e:t,kty:r,n:o,x:i,y:a}))})),function(e){return Cn.apply(this,arguments)}),Un=(In=An((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=Fn(JSON.stringify({alg:xn.alg,typ:"dpop+jwt",jwk:u})),s={ath:n?yield Hn(n):void 0,cnf:{jkt:yield kn(u)},htm:t,htu:a,iat:Math.floor(new Date/1e3),jti:window.crypto.randomUUID(),nonce:r},d=Fn(JSON.stringify(s)),f=yield window.crypto.subtle.sign(xn.sign,i,Ln(c+"."+d));return c+"."+d+"."+Fn(Mn(new Uint8Array(f)))})),function(e){return In.apply(this,arguments)}),Bn=(An((function*(e){var n=e.accessToken,t=e.method,o=e.uri,i=e.nonce,a=yield Dn(),u=a.privateKey,c=a.publicKey;return r({},n&&{Authorization:"DPoP "+n},{DPoP:yield Un({accessToken:n,method:t,uri:o,nonce:i,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"}),Gn={MESSAGE:"paypal-message",MODAL:"paypal-credit-modal",TREATEMENTS:"paypal-credit-treatments",BUTTONS:"paypal-buttons"};function Wn(){return!0}function jn(){return"sandbox"}function Zn(){}var qn=("undefined"!=typeof document?document:{}).currentScript;function Kn(){return qn||document.querySelector('script[src$="messaging.js"]')||document.querySelector('script[src$="merchant.js"]')}function Yn(){}function zn(){var e;return(null==(e=Kn())?void 0:e.getAttribute("data-pp-namespace"))||"paypal"}function Vn(){return"1.85.0"}function Qn(){return Object.values(Gn).some((function(e){return window.name.startsWith("__zoid__"+e.replace(/-/g,"_"))}))}function Jn(){return cn({name:zn()})}function Xn(){return Jn().getSessionID()}function $n(){return Jn().getID()}function et(){}function nt(){window}function tt(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 rt=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 tt(this.children,e)},e}(),ot=function(){function e(e){this.type="fragment",this.children=void 0,this.children=e}return e.prototype.render=function(e){return tt(this.children,e)},e}(),it=function(){function e(e){this.type="text",this.text=void 0,this.text=e}return e.prototype.render=function(e){return e(this)},e}(),at=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=ut(Array.isArray(e)?e:[e]);return 1===n.length?n[0]:n.length>1?new ot(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 tt(this.children,e)},e}();function ut(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 it(r.toString()));else{if("boolean"==typeof r)continue;if(Array.isArray(r))for(var o=0,i=ut(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 ct,st,dt,ft=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=ut(r),"string"==typeof e)return new rt(e,n,r);if("function"==typeof e)return new at(e,n,r);throw new TypeError("Expected jsx element to be a string or a function")},lt=((ct={}).svg="http://www.w3.org/2000/svg",ct),pt=((st={})["xlink:href"]="http://www.w3.org/1999/xlink",st);function ht(e,n){return e.createTextNode(n.text)}function mt(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=pt[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 vt=((dt={}).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(yt({doc:r}));i.children.length;)o.appendChild(i.children[0])}))},dt.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},dt.default=function(e,n,t){for(var r=0,o=n.renderChildren(t);r<o.length;r++)e.appendChild(o[r])},dt);function wt(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(vt[n.name]||vt.default)(e,n,r)}function yt(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 ht(t,e);if("element"===e.type){var o=function(e,n,t){return e.createElementNS(t,n.name)}(t,e,n);return mt(o,e),wt(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 ht(t,e);if("element"===e.type){var n=lt[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 mt(i,e),wt(i,e,t,o),i}throw new TypeError("Unhandleable node")};return o}function Et(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 gt(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 _t(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)}}_t((function(e,n){return n[e]})),_t((function(e,n){var t;return(t={})[e]=n,t})),Et((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)}))}));var Nt=function(){return(new Date).getTime()},St=Et((function(){var e=document.querySelector('meta[name="viewport"]')||ft("meta",{name:"viewport",content:""}).render(yt({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 Tt(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_MQGZ:3MEZ":case"PLLT_MQ_GZ:PLLT_SQ_EZ":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"GPL:EQZ:NON-AT":case"GPL:GTZ:NON-AT":case"GPLQ:EQZ:NON-AT":case"GPLQ:GTZ:NON-AT":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_MQ_GZ:3MEZ":case"PLLT_SQ_EZ":case"PLLT_SQ_GZ":case"PLLT_MQ_EZ_RB":case"PLLT_SQ_EZ_RB":case Bn.PAY_LATER_LONG_TERM:return Bn.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 Bn.PAY_LATER_SHORT_TERM:return Bn.PAY_LATER_SHORT_TERM;case"PI30":case"PI30Q":case"PI30NQ":case"PI30:NON-DE":case"PI30Q:NON-DE":case"PI30NQ:NON-DE":case"PI30:NON-AT":case"PI30Q:NON-AT":case"PI30NQ:NON-AT":case"PLP1_NA_XB":case"PLP1_NA":case"PLP1_NQ_XB":case"PLP1_NQ":case"PLP1_SQ_XB":case"PLP1_SQ":case Bn.PAY_LATER_PAY_IN_1:return Bn.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 Bn.PAYPAL_CREDIT_NO_INTEREST:return Bn.PAYPAL_CREDIT_NO_INTEREST;case Bn.PAY_LATER:return Bn.PAY_LATER;case Bn.REWARDS:return Bn.REWARDS;default:return}}function At(e,n){var t=void 0===n?{}:n,r=t.inZoid,o=t.debugObj;/(\?|&)pp_debug=true(&|$)/.test(window.location.search)&&!!r===Qn()&&console.warn("PayPal Messages Debug:",e,null!=o?o:"")}function bt(e){return Object.entries(e).reduce((function(e,n){var t,o,i,a=n[0],u=n[1];return Array.isArray(u)?r({},e,((o={})[a]=[].concat(u),o)):r({},e,"object"==typeof u?((i={})[a]=bt(u),i):((t={})[a]=u,t))}),{})}function Rt(e,n){return function e(n,t){return Object.entries(t).reduce((function(t,o){var i,a,u,c,s=o[0],d=o[1];return Array.isArray(d)?r({},t,((a={})[s]=[].concat(d),a)):"object"!=typeof d||null===d||n[s]&&"object"==typeof n[s]&&!Array.isArray(n[s])?r({},t,"object"==typeof d&&null!==d?((c={})[s]=e(n[s],d),c):((i={})[s]=d,i)):r({},t,((u={})[s]=bt(d),u))}),n)}(bt(e),n)}function Pt(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]=Pt(u,n,t),r}function Ot(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}function Ct(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=Array.from(e.attributes).filter((function(e){return e.nodeName.startsWith("data-pp-")})).reduce((function(e,r){var o=r.nodeValue;if(o){var i,a=r.nodeName.replace("data-pp-",""),u=t.includes(a)?new Function(o):o;return Rt(e,function(e,n){if("string"==typeof n&&n.startsWith("["))try{return Pt(e,JSON.parse(n.replace(/'/g,'"')))}catch(e){}return Pt(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),Rt(r,{style:{markup:o}})}_t((function(e,n,t){return n.getElementsByClassName(e+"__"+t)[0]})),_t((function(e,n){var t=document.createElement("style");t.textContent=n,e.insertBefore(t,e.firstChild)})),_t((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)})),_t((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 It=_t((function(e,n,t,r){if(void 0===t&&(t="PayPal Credit"),void 0===r&&(r=""),Array.isArray(n))n.forEach((function(n){return It(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 xt(e){return"string"==typeof e?Array.from(document.querySelectorAll(e)):Ot(e)?[e]:Array.isArray(e)&&e.every(Ot)?e.flatMap(xt):[]}var Dt="__paypal_messages_"+"1.85.0".replace(/[.-]/g,"_")+"__",Lt=function(){var e,n,t;return null!=(e=window[Dt])?e:(n=function(e){void 0===e&&(e={});var n=r({},e);return[n,gt(Object.assign,n)]}(window[Dt]||{index:1,config:{},messagesMap:new Map}),(t=n[0]).setGlobalState=n[1],Object.defineProperty(window,Dt,{value:t,enumerable:!1,configurable:!0,writable:!1}),window[Dt])},Mt=function(e){return Lt().setGlobalState(e)};function Ft(e){return""+function(){var e=Object({__LOCAL__:"https://localhost.paypal.com:8080",__SANDBOX__:"https://www.sandbox.paypal.com",__PRODUCTION__:"https://www.paypal.com"})["__"+"sandbox".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__:"/credit-application/paypal-credit-card/da/us/billing",__PREQUALIFICATION__:"/paylateracq/prequalify"})["__"+e.toUpperCase()+"__"]}var Ht=_e(),kt=(new h((function(e){return Ht.once("treatments",e)})),new h((function(e){return Ht.once("render",e)})),new h((function(e){return Ht.once("modal-render",e)})),new h((function(e){return"undefined"!=typeof document&&"complete"!==document.readyState?window.addEventListener("load",e):e()}))),Ut=new h((function(e){return"undefined"!=typeof document&&"loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e()})),Bt=function(e){return"__paypal_messaging_performance__"+e},Gt=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 Wt(e){var n,t;return null!=(n=null==Gt||null==(t=Gt.getEntriesByName(Bt(e))[0])?void 0:t.duration)?n:-1}function jt(e,n){var t=void 0===n?{}:n,r=t.startMark,o=t.endMark,i=t.repeat;if(Gt){if(-1!==Wt(e)){if(!i)return;Gt.clearMeasures(Bt(e)),Gt.clearMarks(Bt(e))}window.document.documentMode||Boolean(window.navigator&&window.navigator.userAgent&&/Edge|MSIE|rv:11/i.test(window.navigator.userAgent))?Gt.measure(Bt(e)):Gt.measure(Bt(e),r?Bt(r):void 0,o?Bt(o):void 0),Gt.mark(Bt(e))}}function Zt(e,n){var t,o,i,a,u,c,s,d,f=n.meta,l=n.events,p=n.tracking,h=null!=(t=f.global)?t:{},m=h.deviceID,v=h.sessionID,w=h.integration_type,y=h.integration_version,E=h.globalSessionID;e.startsWith("client-id:")&&(o=e.slice(10));var g=Object.entries(f).filter((function(n){return n[1].account===e})).map((function(e){var n,t=e[0],o=e[1],f=o.type,h=o.partnerClientId,m=o.buttonSessionId,v=o.messageRequestId,w=o.stats,y=void 0===w?{}:w,E=o.trackingDetails,g=o.language_requested,_=o.language_rendered,N=E.clickUrl;delete E.clickUrl,d=null!=d?d:h,i=null!=i?i:E.MERCHANT_PROFILE_HASH,a=null!=a?a:E.MERCHANT_PROFILE_VALID,u=null!=u?u:E.BUYER_PROFILE_HASH,c=null!=c?c:E.BUYER_PROFILE_VALID,s=null!=s?s:y.partner_attribution_id;var S=p.filter((function(e){return e.index===t}));s=null!=s?s:null==(n=S.find((function(e){return void 0!==e.partner_attribution_id})))?void 0:n.partner_attribution_id;var T=y.render_duration,A=y.request_duration;return delete y.render_duration,delete y.request_duration,r({component_type:f,instance_id:v,button_session_id:m,fdata:new URLSearchParams(N).get("fdata"),language_requested:null!=g?g:"undefined",language_rendered:null!=_?_:"undefined",merchant_events:l.filter((function(e){var n;return(null==(n=e.payload)?void 0:n.index)===t}))},E,y,{component_events:S.filter((function(e){return"MORS"!==e.event_type})).map((function(e){return r({render_duration:T,request_duration:A},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:o,merchant_id:e,partner_client_id:d,partner_attribution_id:s,merchant_profile_hash:i,merchant_profile_valid:a,buyer_profile_hash:u,buyer_profile_valid:c,device_id:m,global_session_id:E,session_id:v,integration_type:w,integration_version:y,components:g}}}var qt=_n({url:Ft("LOGGER"),prefix:"paypal_messages",logLevel:"warn",flushInterval:1e4,transport:function(e){var n=e.url,t=e.method,o=e.json,i=e.headers,a=o.events.reduce((function(e,n){var t=n.payload;return[].concat(e,[t.index,t.refIndex])}),[]),u=o.tracking.reduce((function(e,n){return[].concat(e,[n.index,n.refIndex])}),[]),c=a.concat(u),s=Object.keys(o.meta).filter((function(e){return c.includes(e)||"global"===e})).reduce((function(e,n){var t;return r({},e,((t={})[n]=o.meta[n],t))}),{}),d=o;d.meta=s;var f,l,p,m,v,w=n+"?disableSetCookie=true&features=disable-set-cookie",y=null==(f=Object.entries(s).find((function(e){var n=e[1];return"global"!==e[0]&&(null==n?void 0:n.account)})))?void 0:f[1];if(null!=y&&y.account){var E=btoa(y.account);i.Authorization="Basic "+E}return h.all((l=d,p=l.meta,m=l.events,v=l.tracking,Array.from(new Set(Object.values(p).map((function(e){return e.account})).filter(Boolean))).reduce((function(e,n){return[].concat(e,[Zt(n,{meta:p,events:m,tracking:v})])}),[])).map((function(e){return function(e,n,t){var o=void 0===t?{}:t,i=o.data,a=o.headers,u=o.withCredentials;return new h((function(t,o){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,o=n.trim().split(": "),i=o[1];return r({},e,((t={})[o[0].toLowerCase()]=i,t))}),{});switch(c.status){case 200:t({headers:e,data:"string"==typeof e["content-type"]&&e["content-type"].includes("application/json")?JSON.parse(c.responseText):c.responseText});break;case 204:t({headers:e});break;default:o(new Error("Request failed"))}}},c.open(e,n,!0),a&&Object.entries(a).forEach((function(e){c.setRequestHeader(e[0],e[1])})),c.send("object"==typeof i?JSON.stringify(i):i)}))}(t,w,{headers:r({"content-type":"application/json"},i),data:e,withCredentials:!0})})))}});qt.addMetaBuilder((function(){return{global:{integration_type:"STANDALONE_MODAL",integration_version:"1.85.0"}}})),qt.addPayloadBuilder((function(e){return delete e.container,delete e.selector,{}})),qt.addTrackingBuilder((function(){return{timestamp:(new Date).getTime()}}));var Kt={RENDERING:"/integrate/#enable-pay-later-messaging-on-your-website",GENERAL:"/integrate/reference/"};function Yt(e){var n,t,r;return""+(null!=(n=null==(t=Object({__VERSION__:"1.85.0",__FEATURES__:"no-common",__DEMO__:!1,__NATIVE_MODAL__:!0,__TARGET__:"STANDALONE_MODAL",__STAGE_TAG__:void 0,__TEST_ENV__:void 0,__DEV_TOUCHPOINT__:void 0,__DOMAIN__:Object({__LOCAL__:"https://localhost.paypal.com:8080",__SANDBOX__:"https://www.sandbox.paypal.com",__PRODUCTION__:"https://www.paypal.com"}),__URI__:Object({__MESSAGE__:"/credit-presentment/smart/message",__TREATMENTS__:"/credit-presentment/experiments/local",__MODAL__:"/credit-presentment/smart/modal",__LOGGER__:"/credit-presentment/glog",__CREDIT_APPLY__:"/credit-application/paypal-credit-card/da/us/billing",__PREQUALIFICATION__:"/paylateracq/prequalify"}),__FAQ__:Object({__BASE_URL__:"https://developer.paypal.com/docs/checkout/pay-later/us"})}))||null==(t=t.__FAQ__)?void 0:t.__BASE_URL__)?n:"https://developer.paypal.com/docs/checkout/pay-later/us").replace(/\/$/,"")+(null!=(r=Kt[e])?r:Kt.GENERAL)}var zt=t(1);function Vt(){return"__post_robot_11_0_0___"+un()}function Qt(e){void 0===e&&(e=window);var n=Vt();return e!==window?e[n]:e[n]=e[n]||{}}var Jt=function(){return{}};function Xt(e,n){return void 0===e&&(e="store"),void 0===n&&(n=Jt),Ce(Qt(),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 Ce(e,n,t)},reset:function(){e=n()},keys:function(){return Object.keys(e)}}}))}var $t,er=function(){};function nr(){var e=Qt();return e.WINDOW_WILDCARD=e.WINDOW_WILDCARD||new er,e.WINDOW_WILDCARD}function tr(e,n){return void 0===e&&(e="store"),void 0===n&&(n=Jt),Xt("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 Ce(r(n),e,t)}}}))}function rr(){return Xt("instance").getOrSet("instanceID",oe)}function or(e,n){var t=n.domain,r=tr("helloPromises"),o=r.get(e);o&&o.resolve({domain:t});var i=h.resolve({domain:t});return r.set(e,i),i}function ir(e,n){return(0,n.send)(e,"postrobot_hello",{instanceID:rr()},{domain:"*",timeout:-1}).then((function(n){var t=n.origin,r=n.data.instanceID;return or(e,{domain:t}),{win:e,domain:t,instanceID:r}}))}function ar(e,n){var t=n.send;return tr("windowInstanceIDPromises").getOrSet(e,(function(){return ir(e,{send:t}).then((function(e){return e.instanceID}))}))}function ur(e){tr("knownWindows").set(e,!0)}function cr(e){return"object"==typeof e&&null!==e&&"string"==typeof e.__type__}function sr(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 dr(e,n){return{__type__:e,__val__:n}}var fr,lr=(($t={}).function=function(){},$t.error=function(e){return dr("error",{message:e.message,stack:e.stack,code:e.code,data:e.data})},$t.promise=function(){},$t.regex=function(e){return dr("regex",e.source)},$t.date=function(e){return dr("date",e.toJSON())},$t.array=function(e){return e},$t.object=function(e){return e},$t.string=function(e){return e},$t.number=function(e){return e},$t.boolean=function(e){return e},$t.null=function(e){return e},$t[void 0]=function(e){return dr("undefined",e)},$t),pr={},hr=((fr={}).function=function(){throw new Error("Function serialization is not implemented; nothing to deserialize")},fr.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},fr.promise=function(){throw new Error("Promise serialization is not implemented; nothing to deserialize")},fr.regex=function(e){return new RegExp(e)},fr.date=function(e){return new Date(e)},fr.array=function(e){return e},fr.object=function(e){return e},fr.string=function(e){return e},fr.number=function(e){return e},fr.boolean=function(e){return e},fr.null=function(e){return e},fr[void 0]=function(){},fr),mr={};function vr(){for(var e=Xt("idToProxyWindow"),n=0,t=e.keys();n<t.length;n++){var r=t[n];e.get(r).shouldClean()&&e.del(r)}}function wr(e,n){var t=n.send,r=n.id,o=void 0===r?oe():r,i=e.then((function(e){if(b(e))return R(e).name})),a=e.then((function(e){if(M(e))throw new Error("Window is closed, can not determine type");return N(e)?v.POPUP:v.IFRAME}));i.catch(pe),a.catch(pe);var u=function(){return e.then((function(e){if(!M(e))return b(e)?R(e).name:i}))};return{id:o,getType:function(){return a},getInstanceID:fe((function(){return e.then((function(e){return ar(e,{send:t})}))})),close:function(){return e.then(K)},getName:u,focus:function(){return e.then((function(e){e.focus()}))},isClosed:function(){return e.then((function(e){return M(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)}Le().appendChild(a),a.submit(),Le().removeChild(a)}({url:n,target:e,method:i,body:a})}));if("get"!==i)throw new Error("Unsupported method: "+i);if(b(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=b(e),r=q(e);if(!t)throw new Error("Can not set name for cross-domain window: "+n);R(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 yr=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||wr(this.actualWindowPromise,{send:n}),Xt("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===v.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=wr(this.actualWindowPromise,{send:t,id:this.getID()}),tr("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:ar(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&&M(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 vr(),e.toProxyWindow(n,{send:r}).serialize()},e.deserialize=function(n,t){var r=t.send;return vr(),Xt("idToProxyWindow").get(n.id)||new e({serializedWindow:n,send:r})},e.isProxyWindow=function(e){return Boolean(e&&!Z(e)&&e.isProxyWindow)},e.toProxyWindow=function(n,t){var r=t.send;if(vr(),e.isProxyWindow(n))return n;var o=n;return tr("winToProxyWindow").get(o)||new e({win:o,send:r})},e}();function Er(e,n,t,r,o){var i=tr("methodStore"),a=Xt("proxyWindowMethods");yr.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 gr(e,n){var t=tr("methodStore"),r=Xt("proxyWindowMethods");return t.getOrSet(e,(function(){return{}}))[n]||r.get(n)}function _r(e,n,t,r,o){!function(e){var n=e.on,t=e.send;Xt("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=gr(n,i);if(!u)throw new Error("Could not find method '"+a+"' with id: "+o.id+" in "+A(window));var c=u.source,s=u.domain,d=u.val;return h.try((function(){if(!G(s,r))throw new Error("Method '"+o.name+"' domain "+JSON.stringify(Oe(u.domain)?u.domain.source:u.domain)+" does not match origin "+r+" in "+A(window));if(yr.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 "+A(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=[]),Te(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=yr.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+"::")),yr.isProxyWindow(e)?(Er(i,t,a,e,n),e.awaitWindow().then((function(e){Er(i,t,a,e,n)}))):Er(i,t,a,e,n),dr("cross_domain_function",{id:i,name:a})}function Nr(e,n,t,r){var o,i=r.on,a=r.send;return function(e,n){void 0===n&&(n=pr);var t=JSON.stringify(e,(function(e){var t=this[e];if(cr(this))return t;var r=sr(t);if(!r)return t;var o=n[r]||lr[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 dr("cross_domain_zalgo_promise",{then:_r(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 _r(e,n,t,r,{on:i,send:a})},o.object=function(e){return Z(e)||yr.isProxyWindow(e)?dr("cross_domain_window",yr.serialize(e,{send:a})):e},o))}function Sr(e,n,t,r){var o,i=r.send;return function(e,n){if(void 0===n&&(n=mr),"undefined"!==e)return JSON.parse(e,(function(e,t){if(cr(this))return t;var r,o;if(cr(t)?(r=t.__type__,o=t.__val__):(r=sr(t),o=t),!r)return o;var i=n[r]||hr[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 yr.toProxyWindow(e,{send:a}).awaitWindow().then((function(e){var c=gr(e,o);if(c&&c.val!==r)return c.val.apply({source:window,origin:A()},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 yr.deserialize(e,{send:i})},o))}var Tr={};function Ar(e,n,t,r){var o=r.on,i=r.send;return h.try((function(){var r=tr().getOrSet(e,(function(){return{}}));return r.buffer=r.buffer||[],r.buffer.push(t),r.flush=r.flush||h.flush().then((function(){if(M(e))throw new Error("Window is closed");var t=Nr(e,n,function(e){var n;return(n={})[Vt()]=e,n}(r.buffer||[]),{on:o,send:i});delete r.buffer;for(var a=Object.keys(Tr),u=[],c=0;c<a.length;c++){var s=a[c];try{Tr[s](e,t,n)}catch(e){u.push(e)}}if(u.length===a.length)throw new Error("All post-robot messaging strategies failed:\n\n"+u.map((function(e,n){return n+". "+me(e)})).join("\n\n"))})),r.flush.then((function(){delete r.flush}))})).then(pe)}function br(e){return Xt("responseListeners").get(e)}function Rr(e){Xt("responseListeners").del(e)}function Pr(e){return Xt("erroredResponseListeners").has(e)}function Or(e){var n=e.name,t=e.win,r=e.domain,o=tr("requestListeners");if("*"===t&&(t=null),"*"===r&&(r=null),!n)throw new Error("Name required to get request listener");for(var i=0,a=[t,nr()];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(G(l.regex,r))return p}}if(s["*"])return s["*"]}}}}}function Cr(e,n){var t=n.on,r=n.send,o=Xt("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=Sr(n,t,e,{on:i,send:a})}catch(e){return}if(o&&"object"==typeof o&&null!==o){var u=o[Vt()];if(Array.isArray(u))return u}}(e.data,i,a,{on:t,send:r});if(u){ur(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),M(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=Or({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&&!M(e))try{return Ar(e,n,{id:oe(),origin:A(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 "+A()+"\n\n"+me(e))}}))}h.all([h.flush().then((function(){if(!t.fireAndForget&&!M(e))try{return Ar(e,n,{id:oe(),origin:A(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 "+A()+"\n\n"+me(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(!Pr(t.hash)){var r,o=br(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(!G(o.domain,n))throw new Error("Response origin "+n+" does not match domain "+(r=o.domain,Array.isArray(r)?"("+r.join(" | ")+")":m(r)?"RegExp("+r.toString()+")":r.toString()));if(e!==o.win)throw new Error("Response source does not match registered window");Rr(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(!Pr(t.hash)){var r=br(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(!G(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 Ir(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=tr("requestListeners");if(!r||"string"!=typeof r)throw new Error("Name required to add request listener");if(o&&"*"!==o&&yr.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 m=Or({name:r,win:c,domain:i});c&&"*"!==c||(c=nr());var v=(i=i||"*").toString();if(m)throw c&&i?new Error("Request listener already exists for "+r+" on domain "+i.toString()+" for "+(c===nr()?"wildcard":"specified")+" window"):c?new Error("Request listener already exists for "+r+" for "+(c===nr()?"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 w,y,E=a.getOrSet(c,(function(){return{}})),g=Ce(E,r,(function(){return{}}));return Oe(i)?(w=Ce(g,"__domain_regex__",(function(){return[]}))).push(y={regex:i,listener:t}):g[v]=t,{cancel:function(){delete g[v],y&&(w.splice(w.indexOf(y,1)),w.length||delete g.__domain_regex__),Object.keys(g).length||delete E[r],c&&!Object.keys(E).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()}}}Tr.postrobot_post_message=function(e,n,t){0===t.indexOf("file:")&&(t="*"),e.postMessage(n,t)},Tr.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(!b(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=Qt(e);if(!t)throw new Error("Can not find postRobot global on foreign window");t.receiveMessage({source:window,origin:A(),data:n})};var xr=function(e,n,t,r){var o=(r=r||{}).domain||"*",i=r.timeout||-1,a=r.timeout||5e3,u=r.fireAndForget||!1;return yr.toProxyWindow(e,{send:xr}).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)&&!Oe(t))throw new TypeError("Can not send "+e+". Expected domain "+JSON.stringify(t)+" to be a string, array, or regex");if(M(n))throw new Error("Can not send "+e+". Target window is closed")}(n,e,o),function(e,n){var t=H(n);if(t)return t===e;if(n===e)return!1;if(I(n)===n)return!1;for(var r=0,o=O(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 tr("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||ir(e,{send:o}).then((function(e){return e.domain}))})).then((function(e){if(!G(n,n))throw new Error("Domain "+ve(n)+" does not match "+ve(n));return e}))}))}(e,o,(void 0===n?{}:n).domain,{send:xr})})).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){Xt("responseListeners").set(e,n)}(s,d);var f=tr("requestPromises").getOrSet(e,(function(){return[]}));f.push(c),c.catch((function(){!function(e){Xt("erroredResponseListeners").set(e,!0)}(s),Rr(s)}));var l=function(e){return tr("knownWindows").get(e,!1)}(e)?1e4:2e3,p=i,m=l,v=p,w=ge((function(){return M(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)):(m=Math.max(m-500,0),-1!==v&&(v=Math.max(v-500,0)),d.ack||0!==m?0===v?c.reject(new Error("No response for postMessage "+a+" in "+A()+" in "+p+"ms")):void 0:c.reject(new Error("No ack for postMessage "+a+" in "+A()+" in "+l+"ms")))}),500);c.finally((function(){w.cancel(),f.splice(f.indexOf(c,1))})).catch(pe)}return Ar(e,o,{id:oe(),origin:A(window),type:"postrobot_message_request",hash:s,name:n,data:t,fireAndForget:u},{on:Ir,send:xr}).then((function(){return u?c.resolve():c}),(function(e){throw new Error("Send request message failed for "+a+" in "+A()+"\n\n"+me(e))}))}))}))};function Dr(e){return yr.toProxyWindow(e,{send:xr})}function Lr(){var e,n,t;Qt().initialized||(Qt().initialized=!0,function(e){var n=e.on,t=e.send,r=Qt();r.receiveMessage=r.receiveMessage||function(e){return Cr(e,{on:n,send:t})}}({on:Ir,send:xr}),function(e){var n=e.on,t=e.send;Xt().getOrSet("postMessageListener",(function(){return Qe(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");Cr({source:n,origin:o,data:i},{on:t,send:r})}}))}(e,{on:n,send:t})}))}))}({on:Ir,send:xr}),n=(e={on:Ir,send:xr}).on,t=e.send,Xt("builtinListeners").getOrSet("helloListener",(function(){var e=function(e){return(0,e.on)("postrobot_hello",{domain:"*"},(function(e){return or(e.source,{domain:e.origin}),{instanceID:rr()}}))}({on:n}),r=H();return r&&ir(r,{send:t}).catch((function(e){})),e})))}function Mr(e){for(var n=0,t=tr("requestPromises").get(e,[]);n<t.length;n++)t[n].reject(new Error("Window "+(M(e)?"closed":"cleaned up")+" before response")).catch(pe)}function Fr(e){var n="__zoid_10_5_2___"+un();if(!b(e))throw new Error("Can not get global for window on different domain");return e[n]||(e[n]={}),e[n]}function Hr(e,n){try{return n(Fr(e))}catch(e){}}function kr(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 Ur(e){return re(JSON.stringify(e))}function Br(e){var n=Fr(e);return n.references=n.references||{},n.references}function Gr(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=Dr(a.win),l=d?JSON.stringify(r):Nr(f,a.domain,r,{on:Ir,send:xr}),p=c?(n=l,t=oe(),Br(window)[t]=n,{type:"uid",uid:t}):function(e){return{type:"raw",val:e}}(l);return{serializedData:Ur({sender:{domain:i.domain},metaData:o,reference:p}),cleanReference:function(){var e,n;e=window,"uid"===(n=p).type&&delete Br(e)[n.uid]}}}function Wr(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 Br(e)[n.uid];throw new Error("Unsupported ref type: "+n.type)}(n,u);return{data:i?JSON.parse(s):function(e,n,t){return Sr(e,n,t,{on:Ir,send:xr})}(n,t,s),metaData:c,sender:{win:n,domain:t},reference:u}}Lr();var jr={NAVIGATED_AWAY:"Window navigated away",COMPONENT_DESTROYED:"Component destroyed",COMPONENT_CLOSED:"Component closed",WINDOW_CLOSED:"Detected component window close",IFRAME_CLOSE:"Detected iframe close"},Zr=v;function qr(e){return"__zoid__"+e.name+"__"+e.serializedPayload+"__"}function Kr(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 Yr=de((function(e){var n=Wr({data:Kr(e).serializedInitialPayload,sender:{win:function(e){return function(e){if("opener"===e.type)return xe("opener",N(window));if("parent"===e.type&&"number"==typeof e.distance)return xe("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,U(e)-n)}(window,e.distance));if("global"===e.type&&e.uid&&"string"==typeof e.uid){var n=e.uid,t=H(window);if(!t)throw new Error("Can not find ancestor window");for(var r=0,o=x(t);r<o.length;r++){var i=o[r];if(b(i)){var a=Hr(i,(function(e){return e.windows&&e.windows[n]}));if(a)return a}}}else if("name"===e.type){var u=e.name;return xe("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=O(n);o<i.length;o++){var a=e(i[o],t);if(a)return a}}(I(e)||e,n)}(xe("ancestor",H(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 zr(){return Yr(window.name)}function Vr(e,n){if(void 0===n&&(n=window),e===_(n))return{type:"parent",distance:U(e)};if(e===N(n))return{type:"opener"};if(b(e)&&(r=e)!==I(r)){var t=R(e).name;if(t)return{type:"name",name:t}}var r}function Qr(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 Jr(){return h.try((function(){window.focus()}))}function Xr(){return h.try((function(){window.close()}))}var $r=function(){return pe},eo=function(e){return he(e.value)};function no(e,n,t){for(var o=0,i=Object.keys(r({},e,n));o<i.length;o++){var a=i[o];t(a,n[a],e[a])}}function to(e,n,t){var r={};return h.all(function(e,n,o){var i=[];return no(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&&Pe(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 ro(e){var n,t,o,i,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,m=c.containerTemplate,v=c.prerenderTemplate,w=c.tag,y=c.name,E=c.attributes,g=c.dimensions,_=c.autoResize,N=c.url,S=c.domain,T=c.exports,P=new h,O=[],C=Ie(),I={},x={},D={visible:!0},L=d.event?d.event:_e(),F=d.props?d.props:{},k=!1,Z=d.onError,q=d.getProxyContainer,Y=d.show,z=d.hide,V=d.close,Q=d.renderContainer,J=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 g?g({props:F}):g},se=function(){return h.try((function(){return d.resolveInitPromise?d.resolveInitPromise():P.resolve()}))},fe=function(e){return h.try((function(){return d.rejectInitPromise?d.rejectInitPromise(e):P.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||G(t,e)}),!1):G(e,A(window));i&&i.sameDomain&&!a||i&&i.trustedDomains&&!a||(n[o]=F[o])}}return h.hash(n)},ye=function(){return h.try((function(){return ae?ae():D}))},Ee=function(e){return h.try((function(){return ue?ue(e):D=r({},D,e)}))},Ne=function(){return J?J():h.try((function(){var e=F.window;if(e){var n=Dr(e);return C.register((function(){return e.close()})),n}return new yr({send:xr})}))},Se=function(e){return X?X(e):h.try((function(){n=e}))},Ae=function(){return Y?Y():h.hash({setState:Ee({visible:!0}),showElement:t?t.get().then(Je):null}).then(pe)},be=function(){return z?z():h.hash({setState:Ee({visible:!1}),showElement:t?t.get().then(Xe):null}).then(pe)},Re=function(){return"function"==typeof N?N({props:F}):N},Oe=function(){return"function"==typeof E?E({props:F}):E},Ce=function(){return W(Re())},xe=function(e,n){var t=n.windowName;return $?$(e,{windowName:t}):h.try((function(){if(e===Zr.IFRAME)return kr(Ve({attributes:r({name:t,title:y},Oe().iframe)}))}))},De=function(e){return ee?ee(e):h.try((function(){if(e===Zr.IFRAME)return kr(Ve({attributes:r({name:"__zoid_prerender_frame__"+y+"_"+oe()+"__",title:"prerender__"+y},Oe().iframe)}))}))},Le=function(e,n,t){return re?re(e,n,t):h.try((function(){if(e===Zr.IFRAME){if(!t)throw new Error("Expected proxy frame to be passed");return t.get().then((function(e){return C.register((function(){return $e(e)})),ze(e).then((function(e){return R(e)})).then((function(e){return Dr(e)}))}))}if(e===Zr.POPUP)return n;throw new Error("No render context available for "+e)}))},Me=function(){return h.try((function(){if(n)return h.all([L.trigger("zoid-focus"),n.focus()]).then(pe)}))},Fe=function(){var e=Fr(window);return e.windows=e.windows||{},e.windows[u]=window,C.register((function(){delete e.windows[u]})),u},He=function(e,n,t,r){if(n===A(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(H(o)!==window)throw new Error("Can not construct cross-domain window reference for window prop with different ancestor")}if(t===Zr.POPUP)return{type:"opener"};if(t===Zr.IFRAME)return{type:"parent",distance:U(window)};throw new Error("Can not construct window reference for child")},ke=function(e,t){return h.try((function(){var r;i=e,o=t,null==(r=n)||r.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(),C.register((function(){return t.close.fireAndForget().catch(pe)}))}))}))},Be=function(e){var n=e.width,t=e.height;return h.try((function(){L.trigger("zoid-resize",{width:n,height:t})}))},Ge=function(e){return h.try((function(){return L.trigger("zoid-destroy")})).catch(pe).then((function(){return C.all(e)})).then((function(){var n=e||new Error(jr.COMPONENT_DESTROYED);a&&en(a)||Object.values(jr).includes(n.message)?P.resolve():P.asyncReject(n)}))},qe=de((function(e){return h.try((function(){if(V){if(M(V.__source__))return;return V()}return h.try((function(){return L.trigger("zoid-close")})).then((function(){return Ge(e||new Error(jr.COMPONENT_CLOSED))}))}))})),Ye=function(e,n){var t=n.proxyWin,o=n.proxyFrame,i=n.windowName;return te?te(e,{proxyWin:t,proxyFrame:o,windowName:i}):h.try((function(){if(e===Zr.IFRAME){if(!o)throw new Error("Expected proxy frame to be passed");return o.get().then((function(e){return ze(e).then((function(n){return C.register((function(){return $e(e)})),C.register((function(){return Mr(n)})),n}))}))}if(e===Zr.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,o=void 0===t?1:t,i=n.name,a=void 0===i?"":i,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=r({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+"="+ve(n[e])})).filter(Boolean).join(",");try{f=window.open("",a,p)}catch(l){throw new Ke("Can not open popup window - "+(l.stack||l.message))}if(M(f))throw new Ke("Can not open popup window - blocked");return o&&(window.addEventListener("beforeunload",(function(){f.close()})),"onpagehide"in window?window.addEventListener("pagehide",(function(){f.close()})):window.addEventListener("unload",(function(){f.close()}))),f}(0,r({name:i,width:a,height:c},Oe().popup));return C.register((function(){return K(s)})),C.register((function(){return Mr(s)})),s}throw new Error("No render context available for "+e)})).then((function(e){return t.setWindow(e,{send:xr}),t.setName(i).then((function(){return t}))}))},rn=function(){return h.try((function(){var e="onpagehide"in window?"pagehide":"unload",n=Qe(window,e,he((function(){Ge(new Error(jr.NAVIGATED_AWAY))}))),t=j(l,Ge,3e3);if(C.register(t.cancel),C.register(n.cancel),ie)return ie()}))},on=function(e,n){var t=!1;return C.register((function(){t=!0})),h.delay(2e3).then((function(){return e.isClosed()})).then((function(r){if(!t){if(n===Zr.POPUP&&r)return qe(new Error("Detected popup close"));var o=Boolean(a&&en(a));return n===Zr.IFRAME&&r&&(o||k)?qe(new Error(jr.IFRAME_CLOSE)):on(e,n)}}))},an=function(e){var n=!1;return e.isClosed().then((function(t){return t?(n=!0,qe(new Error(jr.WINDOW_CLOSED))):h.delay(200).then((function(){return e.isClosed()})).then((function(e){if(e)return n=!0,qe(new Error(jr.WINDOW_CLOSED))}))})).then((function(){return n}))},un=function(e){return Z?Z(e):h.try((function(){if(-1===O.indexOf(e))return O.push(e),P.asyncReject(e),L.trigger("zoid-error",e)}))},cn=new h,sn=function(e){return h.try((function(){cn.resolve(e)}))};ke.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:Me,close:qe,state:I,props:F,tag:w,dimensions:ce(),event:L})},fn=function(e,n){var t=n.context;return ne?ne(e,{context:t}):h.try((function(){if(v){L.trigger("zoid-prerender");var n=e.getWindow();if(n&&b(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=R(n)).document,o=dn(v,{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=Te(r.children);o<i.length;o++)r.removeChild(i[o]);for(var a=0,u=Te(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=je(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});L.on("zoid-rendered",f.cancel)}L.trigger("zoid-prerendered")}}}}))},ln=function(e,n){var r=n.proxyFrame,o=n.proxyPrerenderFrame,i=n.context,a=n.rerender;return Q?Q(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:ye()}).then((function(e){var n=e.container,r=e.internalState.visible,o=dn(m,{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="onpagehide"in window?"pagehide":"unload",a=!1,u=[],c=function(){a=!0;for(var e=0;e<u.length;e++)u[e].disconnect();t&&t.cancel(),o&&o.removeEventListener(i,s),r&&$e(r)},s=function(){a||(n(),c())};if(en(e))return s(),{cancel:c};if(window.MutationObserver)for(var d=e.parentElement;d;){var f=new window.MutationObserver((function(){en(e)&&s()}));f.observe(d,{childList:!0}),u.push(f),d=d.parentElement}return(r=document.createElement("iframe")).setAttribute("name","__detect_close_"+oe()+"__"),r.style.display="none",ze(r).then((function(e){(o=R(e)).addEventListener(i,s)})),e.appendChild(r),t=ge((function(){en(e)&&s()}),1e3),{cancel:c}}(o,(function(){var e=new Error("Detected container element removed from DOM");return h.delay(1).then((function(){if(!en(o))return C.all(e),a().then(se,fe);qe(e)}))}));return C.register((function(){return u.cancel()})),C.register((function(){return $e(o)})),t=kr(o)}}))},pn=function(){return{state:I,event:L,close:qe,focus:Me,resize:Be,onError:un,updateProps:mn,show:Ae,hide:be}},hn=function(e){void 0===e&&(e={});var n=a,t=pn();we(x,e),function(e,n,t,r,o){var i=r.state,a=r.close,u=r.focus,c=r.event,s=r.onError;no(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&&!Pe(d)&&Pe(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||Pe(l)||Pe(t[e])||(l=r.default({props:n,state:i,close:a,focus:u,event:c,onError:s,container:o})),Pe(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&&!Pe(t[e]))throw new Error('Expected prop "'+e+'" to be defined');return Pe(l)&&r.decorate&&(l=r.decorate({value:l,props:n,state:i,close:a,focus:u,event:c,onError:s,container:o})),l}())}})})),no(n,e,pe)}(p,F,x,t,n)},mn=function(e){return hn(e),P.then((function(){var e=o,t=n;if(e&&t&&i)return le(i).then((function(n){return e.updateProps(n).catch((function(e){return an(t).then((function(n){if(!n)throw e}))}))}))}))},wn=function(e){return q?q(e):h.try((function(){return Ze(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,kr(e)}))};return{init:function(){L.on("zoid-render",(function(){return F.onRender()})),L.on("zoid-prerender",(function(){return F.onPrerender()})),L.on("zoid-display",(function(){return F.onDisplay()})),L.on("zoid-rendered",(function(){return F.onRendered()})),L.on("zoid-prerendered",(function(){return F.onPrerendered()})),L.on("zoid-close",(function(){return F.onClose()})),L.on("zoid-destroy",(function(){return F.onDestroy()})),L.on("zoid-resize",(function(){return F.onResize()})),L.on("zoid-focus",(function(){return F.onFocus()})),L.on("zoid-props",(function(e){return F.onProps(e)})),L.on("zoid-error",(function(e){return F&&F.onError?F.onError(e):fe(e).then((function(){setTimeout((function(){throw e}),1)}))})),C.register(L.reset)},render:function(e){var t=e.target,r=e.container,o=e.context,i=e.rerender;return h.try((function(){var e=Ce(),a=S||Ce();!function(e,n,t){if(e!==window){if(!B(window,e))throw new Error("Can only renderTo an adjacent frame");var r=A();if(!G(n,r)&&!b(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=xr(n,"zoid_delegate_"+y,{uid:u,overrides:{props:t,event:L,close:qe,onError:un,getInternalState:ye,setInternalState:Ee,resolveInitPromise:se,rejectInitPromise:fe}}).then((function(e){var t=e.data.parent;return C.register((function(e){if(!M(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"+me(e))}));return 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.getProxyContainer.apply(e,n)}))},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.renderContainer.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.show.apply(e,n)}))},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.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===Zr.IFRAME?(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.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===Zr.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=to(p,F,"post"),m=L.trigger("zoid-render"),v=wn(r),E=Ne(),g=v.then((function(){return hn()})),_=g.then((function(){return to(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=Ue(u[1],o),s=Ue(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")}(Re()),{query:e})}))})),N=E.then((function(n){return function(e){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:w,childDomainMatch:r,version:"10_5_2",props:e,exports:(n=t,{init:function(e){return ke(this.origin,e)},close:qe,checkClose:function(){return an(n)},resize:Be,onError:un,show:Ae,hide:be,export:sn})};var n}))}({proxyWin:t,initialChildDomain:r,childDomainMatch:o,context:c}).then((function(e){var n=Gr({data:e,metaData:{windowRef:He(a,r,c,t)},sender:{domain:A(window)},receiver:{win:t,domain:o},passByReference:r===A()}),i=n.serializedData;return C.register(n.cleanReference),i}))}({proxyWin:e.proxyWin,initialChildDomain:e.initialChildDomain,childDomainMatch:e.childDomainMatch,target:e.target,context:e.context}).then((function(e){return qr({name:y,serializedPayload:e})}))}({proxyWin:n,initialChildDomain:e,childDomainMatch:a,target:t,context:o})})),T=N.then((function(e){return xe(o,{windowName:e})})),R=De(o),O=h.hash({proxyContainer:v,proxyFrame:T,proxyPrerenderFrame:R}).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:N,proxyFrame:T,proxyWin:E}).then((function(e){var n=e.proxyWin;return d?n:Ye(o,{windowName:e.windowName,proxyWin:n,proxyFrame:e.proxyFrame})})),x=h.hash({proxyWin:I,proxyPrerenderFrame:R}).then((function(e){return Le(o,e.proxyWin,e.proxyPrerenderFrame)})),D=I.then((function(e){return n=e,Se(e)})),H=h.hash({proxyPrerenderWin:x,state:D}).then((function(e){return fn(e.proxyPrerenderWin,{context:o})})),U=h.hash({proxyWin:I,windowName:N}).then((function(e){if(d)return e.proxyWin.setName(e.windowName)})),j=h.hash({body:l}).then((function(e){return c.method?c.method:Object.keys(e.body).length?"post":"get"})),Z=h.hash({proxyWin:I,windowUrl:_,body:l,method:j,windowName:U,prerender:H}).then((function(e){return e.proxyWin.setLocation(e.windowUrl,{method:e.method,body:e.body})})),K=I.then((function(e){on(e,o)})),V=h.hash({container:O,prerender:H}).then((function(){return L.trigger("zoid-display")})),oe=I.then((function(e){})),ae=Z.then((function(){return h.try((function(){var e=F.timeout;if(e)return P.timeout(e,new Error("Loading component timed out after "+e+" milliseconds"))}))})),ue=P.then((function(){return k=!0,L.trigger("zoid-rendered")}));return h.hash({initPromise:P,buildUrlPromise:_,onRenderPromise:m,getProxyContainerPromise:v,openFramePromise:T,openPrerenderFramePromise:R,renderContainerPromise:O,openPromise:I,openPrerenderPromise:x,setStatePromise:D,prerenderPromise:H,loadUrlPromise:Z,buildWindowNamePromise:N,setWindowNamePromise:U,watchForClosePromise:K,onDisplayPromise:V,openBridgePromise:oe,runTimeoutPromise:ae,onRenderedPromise:ue,delegatePromise:s,watchForUnloadPromise:f,finalSetPropsPromise:g})})).catch((function(e){return h.all([un(e),Ge(e)]).then((function(){throw e}),(function(){throw e}))})).then(pe)},destroy:Ge,getProps:function(){return F},setProps:hn,export:sn,getHelpers:pn,getDelegateOverrides:function(){return h.try((function(){return{getProxyContainer:wn,show:Ae,hide:be,renderContainer:ln,getProxyWindow:Ne,watchForUnload:rn,openFrame:xe,openPrerenderFrame:De,prerender:fn,open:Ye,openPrerender:Le,setProxyWin:Se}}))},getExports:function(){return T({getExports:function(){return cn}})}}}var oo={register:function(e,n,t,r){var o=r.React,a=r.ReactDOM;return function(e){function n(){return e.apply(this,arguments)||this}i(n,e);var r=n.prototype;return r.render=function(){return o.createElement("div",null)},r.componentDidMount=function(){var e=a.findDOMNode(this),n=t(we({},this.props));n.render(e,Zr.IFRAME),this.setState({parent:n})},r.componentDidUpdate=function(){this.state&&this.state.parent&&this.state.parent.updateProps(we({},this.props)).catch(pe)},n}(o.Component)}},io={register:function(e,n,t,o){return o.component(e,{render:function(e){return e("div")},inheritAttrs:!1,mounted:function(){var e,n=this.$el;this.parent=t(r({},(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[Ne(t)]=r:n[t]=r,n}),{})))),this.parent.render(n,Zr.IFRAME)},watch:{$attrs:{handler:function(){this.parent&&this.$attrs&&this.parent.updateProps(r({},this.$attrs)).catch(pe)},deep:!0}}})}},ao={register:function(e,n,t){return{template:"<div></div>",inheritAttrs:!1,mounted:function(){var e,n=this.$el;this.parent=t(r({},(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[Ne(t)]=r:n[t]=r,n}),{})))),this.parent.render(n,Zr.IFRAME)},watch:{$attrs:{handler:function(){this.parent&&this.$attrs&&this.parent.updateProps(r({},this.$attrs)).catch(pe)},deep:!0}}}}},uo={register:function(e,n,t,r){return r.module(e,[]).directive(Ne(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 Re(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],Zr.IFRAME),e.$watch((function(){i.updateProps(o()).catch(pe)}))}]}}))}},co={register:function(e,n,t,o){var i=o.Component,a=o.NgModule,u=o.ElementRef,c=o.NgZone,s=o.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 Re(r({},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,Zr.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=r({},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 i({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 so(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=mn(n)),"number"==typeof t&&(d.style.height=mn(t))})),d}}function fo(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 lo=Ie(),po=Ie();function ho(e){var n,t,o=function(e){var n=e.tag,t=e.url,o=e.domain,i=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,m=void 0===h?"*":h,v=e.attributes,w=void 0===v?{}:v,y=e.defaultContext,E=void 0===y?Zr.IFRAME:y,g=e.containerTemplate,_=void 0===g?so:g,N=e.prerenderTemplate,S=void 0===N?fo:N,T=e.validate,A=e.eligible,R=void 0===A?function(){return{eligible:!0}}:A,P=e.logger,O=void 0===P?{info:pe}:P,C=e.exports,I=void 0===C?pe:C,x=e.method,D=e.children,L=void 0===D?function(){return{}}:D,F=n.replace(/-/g,"_"),H=r({},{window:{type:"object",sendToChild:!1,required:!1,allowDelegate:!0,validate:function(e){var n=e.value;if(!Z(n)&&!yr.isProxyWindow(n))throw new Error("Expected Window or ProxyWindow");if(Z(n)){if(M(n))throw new Error("Window is closed");if(!b(n))throw new Error("Window is not same domain")}},decorate:function(e){return Dr(e.value)}},timeout:{type:"number",required:!1,sendToChild:!1},cspNonce:{type:"string",required:!1},onDisplay:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:$r,decorate:eo},onRendered:{type:"function",required:!1,sendToChild:!1,default:$r,decorate:eo},onRender:{type:"function",required:!1,sendToChild:!1,default:$r,decorate:eo},onPrerendered:{type:"function",required:!1,sendToChild:!1,default:$r,decorate:eo},onPrerender:{type:"function",required:!1,sendToChild:!1,default:$r,decorate:eo},onClose:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:$r,decorate:eo},onDestroy:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:$r,decorate:eo},onResize:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:$r},onFocus:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:$r},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:o,bridgeUrl:i,method:x,propsDef:H,dimensions:f,autoResize:p,allowedParentDomains:m,attributes:w,defaultContext:E,containerTemplate:_,prerenderTemplate:S,validate:T,logger:O,eligible:R,children:L,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),i=o.name,a=o.tag,u=o.defaultContext,c=o.propsDef,s=o.eligible,d=o.children,f=o.getExtensions,l=Fr(window),p={},m=[],v=function(){if(function(e){try{return Kr(window.name).name===e}catch(e){}return!1}(i)){var e=zr().payload;if(e.tag===a&&G(e.childDomainMatch,A()))return!0}return!1},w=de((function(){if(v()){if(window.xprops)throw delete l.components[a],new Error("Can not register "+i+" 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=zr(),c=u.parent,s=u.payload,d=c.win,f=c.domain,l=new h,p=s.version,m=s.uid,v=s.exports,w=s.context,y=s.props;if(!function(e,n){if(!/_/.test(e)||!/_/.test("10_5_2"))throw new Error("Versions are in an invalid format ("+e+", 10_5_2)");return e.split("_")[0]==="10_5_2".split("_")[0]}(p))throw new Error("Parent window has zoid version "+p+", child window has version 10_5_2");var E=v.show,g=v.hide,_=v.close,N=v.onError,S=v.checkClose,T=v.export,P=v.resize,O=v.init,C=function(){return d},I=function(){return f},D=function(e){return a.push(e),{cancel:function(){a.splice(a.indexOf(e),1)}}},L=function(e){return P.fireAndForget({width:e.width,height:e.height})},M=function(e){return l.resolve(e),T(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=x(window);a<u.length;a++){var c=u[a];if(b(c)){var s=R(c).xprops;if(s&&C()===s.getParent()){var d=s.parent;if(r||!i||d&&d.uid===i.uid){var f=Hr(c,(function(e){return e.exports}));o.push({props:s,exports:f})}}}}return o},H=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||G(n,A(window))}),!1):r===A(window)||b(e);if((!d||!d.sameDomain||f)&&(!d||!d.trustedDomains||f)){var l=Qr(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 m=h[p];t.hasOwnProperty(m)||(a[m]=Qr(n,0,m,void 0,o))}return a}(d,r,e,o,{tag:t,show:E,hide:g,close:_,focus:Jr,onError:N,resize:L,getSiblings:F,onProps:D,getParent:C,getParentDomain:I,uid:m,export:M},i);n?we(n,u):n=u;for(var c=0;c<a.length;c++)(0,a[c])(n)},k=function(e){return h.try((function(){return H(e,f,!0)}))};return{init:function(){return h.try((function(){var n="";return b(d)&&(n=function(e){var n=e.componentName,t=e.parentComponentWindow,r=Wr({data:Kr(window.name).serializedInitialPayload,sender:{win:t},basic:!0}),o=r.sender;if("uid"===r.reference.type||"global"===r.metaData.windowRef.type){var i=qr({name:n,serializedPayload:Gr({data:r.data,metaData:{windowRef:Vr(t)},sender:{domain:o.domain},receiver:{win:window,domain:A()},basic:!0}).serializedData});return window.name=i,i}}({componentName:e.name,parentComponentWindow:d})||""),Fr(window).exports=e.exports({getExports:function(){return l}}),function(e,n){if(!G(e,n))throw new Error("Can not be rendered by domain: "+n)}(i,f),ur(d),window.addEventListener("beforeunload",(function(){S.fireAndForget()})),"onpagehide"in window?window.addEventListener("pagehide",(function(){S.fireAndForget()})):window.addEventListener("unload",(function(){S.fireAndForget()})),j(d,(function(){Xr()})),O({name:n,updateProps:k,close:Xr})})).then((function(){return(e=o.width,n=void 0!==e&&e,t=o.height,r=void 0!==t&&t,i=o.element,Ze(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)&&w!==Zr.POPUP&&nn(r,(function(e){L({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){N(e)}))},getProps:function(){return n||(H(y,f),n)}}}(o);return e.init(),e}})),y=function(e){var n,t="zoid-"+a+"-"+oe(),c=e||{},l=s({props:c}),p=l.eligible,v=l.reason,w=c.onDestroy;c.onDestroy=function(){if(n&&p&&m.splice(m.indexOf(n),1),w)return w.apply(void 0,arguments)};var E=ro({uid:t,options:o});E.init(),p?E.setProps(c):c.onDestroy&&c.onDestroy(),lo.register((function(e){return E.destroy(e||new Error("zoid destroyed all components"))}));var g=function(e){var n=(void 0===e?{}:e).decorate;return y((void 0===n?Ee:n)(c))},_=function(e,t,r){return h.try((function(){if(!p){var n=new Error(v||i+" component is not eligible");return E.destroy(n).then((function(){throw n}))}if(!Z(e))throw new Error("Must pass window to renderTo");return function(e,n){return h.try((function(){if(e.window)return Dr(e.window).getType();if(n){if(n!==Zr.IFRAME&&n!==Zr.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===Zr.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 E.render({target:e,container:t,context:o,rerender:function(){var o=g();return we(n,o),o.renderTo(e,t,r)}})})).catch((function(e){return E.destroy(e).then((function(){throw e}))}))};return n=r({},f(E),E.getExports(),E.getHelpers(),function(){for(var e=d(),n={},o=function(){var o=a[i],u=e[o];n[o]=function(e){var n=E.getProps(),o=r({},e,{parent:{uid:t,props:n,export:E.export}});return u(o)}},i=0,a=Object.keys(e);i<a.length;i++)o();return n}(),{isEligible:function(){return p},clone:g,render:function(e,n){return _(window,e,n)},renderTo:function(e,n,t){return _(e,n,t)}}),p&&m.push(n),n};if(w(),n=Ir("zoid_allow_delegate_"+i,(function(){return!0})),t=Ir("zoid_delegate_"+i,(function(e){var n=e.data;return{parent:ro({uid:n.uid,options:o,overrides:n.overrides,parentWin:e.source})}})),po.register(n.cancel),po.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:y,instances:m,driver:function(e,n){var t={react:oo,angular:uo,vue:io,vue3:ao,angular2:co};if(!t[e])throw new Error("Could not find driver for framework: "+e);return p[e]||(p[e]=t[e].register(a,c,y,n)),p[e]},isChild:v,canRenderTo:function(e){return xr(e,"zoid_allow_delegate_"+i).then((function(e){return e.data})).catch((function(){return!1}))},registerChild:w}}function mo(e,n){switch(e){case"STRING":return"string"==typeof n;case"BOOLEAN":return"boolean"==typeof n;case"NUMBER":return"number"==typeof n&&!Number.isNaN(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 vo=Et((function(e,n){return qt.warn("invalid_option_value",{description:n,location:e,help_url:Yt("GENERAL")})})),wo=function(e,n,t){var r=Array.isArray(t)?"array":typeof t;vo(e,'Expected type "'+n.toLowerCase()+'" but instead received "'+r+'" ('+JSON.stringify(t)+").")};function yo(e,n){if(!mo("STRING",e))throw wo("offer","STRING",e),new Error("offer_validation_error");if(!n.includes(e))throw vo("offer","Ensure valid offer type."),new Error("offer_validation_error")}var Eo,go,_o,No,So,To={account:function(e){var n=e.props.account;if(mo("STRING",n)){if(13===n.length||10===n.length||n.startsWith("client-id:"))return n;vo("account","Ensure the correct Merchant Account ID has been entered.")}else wo("account","STRING",n)},merchantId:function(e){var n=e.props.merchantId;if(void 0!==n){if(mo("STRING",n))return n.split(",").some((function(e){return 13!==e.length&&10!==e.length}))&&vo("merchantId","Ensure the correct Merchant ID has been entered."),n;wo("merchantId","STRING",n)}},customerId:function(e){var n=e.props.customerId;if(void 0!==n)if(mo("STRING",n)){if(13===n.length||10===n.length)return n;vo("customerId","Ensure the correct Merchant ID has been entered.")}else wo("customerId","STRING",n)},amount:function(e){var n=e.props.amount;if(void 0!==n){var t=Number(n);if(mo("NUMBER",t)){if(!(t<0))return t;vo("amount","Ensure value is a positive number.")}else wo("amount","NUMBER",n)}},offer:function(e){var n=e.props.offer,t=[].concat(Object.values(Bn),["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 vo("offer","Ensure valid offer length"),new Error("offer_validation_error: offers cannot exceed 2");var o=r.map((function(e){return yo(e,t),e}));return o[0]===o[1]?o[0]:o.sort().join()}return yo(n,t),n}return n},style:function(e){var n=e.props.style;if(mo("OBJECT",n)){var t=null!=n&&n.layout?n:r({},n,{layout:"text"});if(mo("STRING",t.layout))return t;if(wo("style.layout","STRING",t.layout),mo("STRING",t.preset))return r({layout:"text"},t)}else void 0!==n&&wo("style","OBJECT",n);return{layout:"text"}},currency:function(e){var n=e.props.currency;if(void 0!==n){if(mo("STRING",n))return n;wo("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(mo("STRING",n)){if(t.includes(n))return n;!function(e,n,t){vo("pageType",'Expected one of ["'+n.join('", "').replace(/\|[\w|]+/g,"")+'"] but received "'+t+'".')}(0,t,n)}else wo("pageType","STRING",n)}},buyerCountry:function(e){var n=e.props.buyerCountry;if(void 0!==n){if(mo("STRING",n))return n;wo("buyerCountry","STRING",n)}},language:function(e){var n=e.props.language;if(void 0!==n){if(mo("STRING",n))return n;wo("language","STRING",n)}},locale:function(e){var n=e.props.locale;if(void 0!==n){if(mo("STRING",n))return n;wo("locale","STRING",n)}},ignoreCache:function(e){var n=e.props.ignoreCache;if(void 0!==n){if(mo("BOOLEAN",n))return n;wo("ignoreCache","BOOLEAN",n)}},channel:function(e){var n=e.props.channel;if(void 0!==n){if(mo("STRING",n))return/^[A-Z0-9_]+$/.test(n)?n:void 0;wo("channel","STRING",n)}},ecToken:function(e){var n=e.props.ecToken;if(void 0!==n){if(mo("STRING",n))return n;wo("ecToken","STRING",n)}},buttonSessionId:function(e){var n=e.props.buttonSessionId;if(void 0!==n){if(mo("STRING",n))return n;wo("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 wo("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(",");vo("contextualComponents","Ensure only one type of mark value is provided.")}else vo("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(mo("STRING",n))return n;wo("cspNonce","STRING",n)}},merchantConfig:function(e){var n=e.props.merchantConfig;if(void 0!==n){if(!mo("STRING",n))return;return n}},features:function(e){var n=e.props.features;if(void 0!==n){if(mo("STRING",n))return n;wo("features","STRING",n)}}},Ao=(Eo=0,function(e){return e+" "+(Eo+=1)}),bo=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=St(),p=l[0],m=l[1],v={HIDDEN:n+"-hide",MODAL_SHOW:n+"-show",TRANSITION:n+"-transition"},w=Ao(t.title);return ft("div",{id:n,class:v.HIDDEN,onRender:function(e){var n=e.querySelector("div"),o=function(){a.open=!0,a.previousFocus=document.activeElement,e.classList.remove(v.HIDDEN),p(),requestAnimationFrame((function(){requestAnimationFrame((function(){n.classList.add(v.MODAL_SHOW),a.renderedModal&&window.document.activeElement!==t?t.focus():window.document.activeElement!==r&&r.focus()}))}))},u=function(){a.open=!1,n.classList.remove(v.MODAL_SHOW),m(),setTimeout((function(){e.classList.add(v.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(v.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()}))}},ft("style",{nonce:c},"\n #"+n+"."+v.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+"."+v.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."+v.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."+v.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."+v.MODAL_SHOW+"."+v.TRANSITION+" > iframe:first-of-type {\n opacity: 1;\n z-index: 2;\n }\n\n #"+n+" > div."+v.TRANSITION+" > iframe:last-of-type {\n opacity: 0;\n }\n "),ft("div",null,ft("node",{el:t,title:w}),ft("node",{el:r,title:"Prerender "+w}))).render(yt({doc:o}))}},Ro=t(2),Po=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: #ffffff; \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: 48px;\n height: 48px;\n }\n\n .close-button > button > svg {\n width: 48px;\n height: 48px;\n\n @include mobile {\n margin-left: 15px;\n }\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()}))}))})),ft("html",{lang:"en"},ft("head",null,ft("meta",{httpEquiv:"X-UA-Compatible",content:"IE=edge"}),ft("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})),ft("style",{nonce:o},f),ft("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()}},ft("div",{class:"modal","aria-errormessage":"modal-status"},ft("div",{class:"overlay",onClick:l,"aria-keyshortcuts":"escape"}),ft("div",{class:"top-overlay"}),ft("div",{class:"modal-content"},ft("div",{class:"close-button"},ft("button",{id:"prerender-close-btn",onClick:l,type:"button","aria-label":"Close",tabindex:"0"},"true"===d?ft("svg",{width:"24",height:"24",viewBox:"0 0 48 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ft("rect",{x:"4",width:"40",height:"40",rx:"20",fill:"#EDF0F2"}),ft("path",{d:"M26.5005 13.1245C26.6662 13.1246 26.8247 13.1909 26.9419 13.3081C27.0591 13.4253 27.1254 13.5838 27.1255 13.7495C27.1255 13.9154 27.0592 14.0746 26.9419 14.1919L21.1333 19.9995L26.9419 25.8081C26.9999 25.8661 27.0462 25.9345 27.0776 26.0103C27.109 26.086 27.1254 26.1675 27.1255 26.2495C27.1255 26.3315 27.109 26.413 27.0776 26.4888C27.0462 26.5646 27 26.6338 26.9419 26.6919C26.8839 26.7498 26.8155 26.7962 26.7397 26.8276C26.664 26.859 26.5825 26.8754 26.5005 26.8755C26.4185 26.8755 26.337 26.859 26.2612 26.8276C26.1854 26.7962 26.1162 26.75 26.0581 26.6919L19.8081 20.4419C19.7501 20.384 19.7038 20.3154 19.6724 20.2397C19.6409 20.1639 19.6245 20.0816 19.6245 19.9995C19.6246 19.9175 19.641 19.836 19.6724 19.7603C19.7038 19.6845 19.7501 19.616 19.8081 19.5581L26.0581 13.3081C26.1754 13.1908 26.3346 13.1245 26.5005 13.1245Z",fill:"black"})):ft("svg",{"aria-hidden":"true",width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ft("path",{d:"M12 0L0 12",transform:"translate(12 12)",stroke:"white","stroke-width":"2","stroke-linecap":"round"}),ft("path",{d:"M0 0L12 12",transform:"translate(12 12)",stroke:"white","stroke-width":"2","stroke-linecap":"round"})))),ft("span",{id:"modal-status","aria-label":"modal-status","aria-live":"polite"},"Loading Modal"),ft(Ro.Spinner,{nonce:o}))))).render(yt({doc:t}))},Oo=(go="__paypal_credit_modal__",_o=function(){return function(e){Lr();var n=ho(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}({tag:Gn.MODAL,url:Ft("MODAL"),domain:/\.paypal\.com(:\d+)?$/,containerTemplate:bo,prerenderTemplate:Po,dimensions:{width:"460px",height:"900px"},attributes:{iframe:{title:"PayPal Modal",scrolling:"no"}},props:{account:{type:"string",queryParam:!1,required:!0,value:To.account},merchantId:{type:"string",queryParam:"merchant_id",required:!1,value:To.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:To.customerId},currency:{type:"string",queryParam:!0,required:!1,value:To.currency},amount:{type:"number",queryParam:!0,required:!1,value:To.amount},buyerCountry:{type:"string",queryParam:"buyer_country",required:!1,value:To.buyerCountry},language:{type:"string",queryParam:!0,required:!1,value:To.language},locale:{type:"string",queryParam:!0,required:!1,value:To.locale},offer:{type:"string",queryParam:"credit_type",required:!1,decorate:function(e){return Tt(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:To.ignoreCache},channel:{type:"string",queryParam:"channel",required:!1,default:function(){return"UPSTREAM"},value:To.channel},ecToken:{type:"string",queryParam:"ec_token",required:!1,value:To.ecToken},buttonSessionId:{type:"string",queryParam:"button_session_id",required:!1,value:To.buttonSessionId},pageType:{type:"string",queryParam:"page_type",required:!1,value:To.pageType},contextualComponents:{type:"string",queryParam:"contextual_components",required:!1,value:To.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;qt.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&&"string"==typeof o&&o.includes("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;qt.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;qt.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;qt.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"),qt.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,o=e.event,i=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,m=n.messageRequestId,v=n.language,w=n.locale,y=t.renderStart,E=t.show,g=t.hide,_=c.trackingDetails,N=c.ppDebugId,S=c.language,T=l&&p.slice(10);At("Modal Correlation ID: "+N),qt.addMetaBuilder((function(e){var n;delete e[d];var t,o,i,u,c=e.global,f=void 0===c?{}:c;return delete e.global,(n={global:r({},f,{ts:void 0!==s?s:null!=(t=Jn().getState((function(e){return null==e?void 0:e.ts})))?t:(u=decodeURIComponent(null!=(o=null==(i=document.cookie.split("; ").find((function(e){return e.startsWith("ts_c=")})))?void 0:i.slice(5))?o:""),0===Object.keys(u).length?null:Object.fromEntries(new URLSearchParams(u).entries())),deviceID:$n(),sessionID:Xn()})})[d]={type:"modal",messageRequestId:m,buttonSessionId:a,account:l||p,partnerClientId:T,trackingDetails:_,language_requested:(null==w?void 0:w.replace("_","-"))||v,language_rendered:null!=S?S:"undefined"},n}));var A=Wt("firstModalRenderDelay");qt.info("modal_render",{index:d,refIndex:h,duration:Nt()-y}),qt.track({index:d,refIndex:h,et:"CLIENT_IMPRESSION",event_type:"modal_rendered",modal:u.join("_").toLowerCase()+":"+(f?f.toLowerCase():u[0]),partner_attribution_id:{}[zt.SDK_SETTINGS.PARTNER_ATTRIBUTION_ID],first_modal_render_delay:Math.round(A).toString(),render_duration:Math.round(Nt()-y).toString()}),"function"!=typeof i||t.products&&JSON.stringify(u)===JSON.stringify(t.products)||i({products:u,show:E,hide:g}),t.products=Array.isArray(u)&&u.map(Tt),o.trigger("ready")}}},index:{type:"string",queryParam:!1,value:function(e){var n,t=e.state;return t.index||(t.index=(n=Lt().index,Mt({index:n+1}),n).toString()),t.index}},payerId:{type:"string",queryParam:"payer_id",decorate:function(e){var n=e.props;return n.account.startsWith("client-id:")?null:n.account},default:function(){return""},required:!1},clientId:{type:"string",queryParam:"client_id",decorate:function(e){var n=e.props;return n.account.startsWith("client-id:")?n.account.slice(10):null},default:function(){return""},required:!1},sdkMeta:{type:"string",queryParam:!0,sendToChild:!1,required:!1,value:Yn},env:{type:"string",queryParam:!0,value:jn},version:{type:"string",queryParam:!0,value:Vn},deviceID:{type:"string",queryParam:!0,value:$n},sessionID:{type:"string",queryParam:!0,value:Xn},scriptUID:{type:"string",queryParam:!0,value:un},messageRequestId:{type:"string",queryParam:"message_request_id",value:oe,decorate:function(e){var n=e.props;return At("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:et},devTouchpoint:{type:"boolean",queryParam:!0,required:!1,value:nt},integrationType:{type:"string",queryParam:!0,required:!1,value:function(){return"STANDALONE_MODAL"}},cspNonce:{type:"string",required:!1,default:Zn,value:To.cspNonce},disableSetCookie:{type:"boolean",queryParam:!0,required:!1,value:Wn},features:{type:"string",queryParam:"features",required:!1,value:function(e){return function(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}(To.features({props:e.props}))}},experimentExperience:{type:"string",queryParam:"experiment_experience",required:!1},experimentName:{type:"string",queryParam:"experiment_name",required:!1}}})},function(){var e;return Lt()[go]||Mt(((e={})[go]=_o(),e)),Lt()[go]}),Co=(No=["account","merchantId","buyerCountry","language","locale"],So=new Map,function(e,n){void 0===n&&(n=!1);var t=JSON.stringify(No.map((function(n){return e[n]})));return So.has(t)&&!n||So.set(t,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.locale,s=e.ignoreCache,d=e.offer,f=e.onReady,l=e.onCalculate,p=e.onError,m=e.onApply,v=e.onShow,w=e.onClose,y=e.channel,E=e.ecToken,g=e.contextualComponents,_=e.cspNonce,N=e.integrationIdentifier,S=e.features,T=e.buttonSessionId;jt("firstModalRenderDelay");var A,b=Oo()({account:n,merchantId:t,customerId:r,currency:o,amount:i,buyerCountry:a,language:u,locale:c,ignoreCache:s,offer:d,onReady:f,onCalculate:l,onError:p,onApply:m,onShow:v,onClose:w,channel:y,ecToken:E,contextualComponents:g,cspNonce:_,integrationIdentifier:N,features:S,buttonSessionId:T}),R=function(e,n,t){void 0===e&&(e="body"),void 0===t&&(t={intent:"render"});var r="true"===(null==n?void 0:n.prequalExperience)||function(){try{return window.top.document.body&&window.top}catch(e){return}}()!==window&&!(null==S?void 0:S.includes("new-checkout-design"))?"popup":"iframe";if(A&&"popup"!==r)return A.then((function(){return n&&b.updateProps(n)}));A&&"popup"===r&&Object.assign(b,b.clone());var o=new h((function(e){return b.event.once("ready",e)}));b.state.renderStart=Nt();var i="show"===t.intent?h.resolve():kt.then((function(){return h.delay(0)}));return A=i.then((function(){return h.all([n&&b.updateProps(n),b.render(e,r),o])})).then((function(){return Ht.trigger("modal-render")}))},P=function(e){var n;void 0===e&&(e={});var t,r,o,i,a=Ot(e)?Ct(e):e;Ot(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"),A=R("body",a,{intent:"show"});var u=Tt(e.offer),c="DE"===(null==(n=e)?void 0:n.offerCountry)?["PAY_LATER_LONG_TERM","PAY_LATER_PAY_IN_1","PAY_LATER_SHORT_TERM"]:b.state.products;return void 0!==u&&"NONE"!==u&&Array.isArray(b.state.products)&&Array.isArray(c)&&!c.find((function(e){return e===u}))?(qt.warn("invalid_option_value",{location:"offer",description:'Expected one of ["'+b.state.products.join('", "')+'"] but received "'+e.offer+'".',help_url:Yt("GENERAL")}),h.resolve()):(b.state.open=!0,b.event.trigger("modal-show"),A)},O=function(){return A=R("body"),b.event.trigger("modal-hide"),A};return b.state.show=P,b.state.hide=O,{render:R,show:P,hide:O,updateProps:function(e){b.updateProps(e)}}}(e)),So.get(t)}),Io=function(e){return Co(Rt(Lt().config,e))};jt("scriptLoadDelay"),function(){Oo(),function(){var e=Kn();if(e&&!e[Dt]){At("Script:",{debugObj:e});var n=Ct(e);Mt({config:r({},Lt().config,{account:void 0,merchantId:void 0,currency:void 0,pageType:void 0},n)}),e[Dt]=!0}}();var e,n=zn();window[n]=null!=(e=window[n])?e:{},window[n].MessagesModal=Io,Qn()||Ut.then((function(){if(Lt().config.account){var e=xt("[data-pp-messagesmodal]");if(e.length>0){var n=Rt(Lt().config,Ct(e[0])),t=Io(n);e.forEach((function(e){e.setAttribute("tabindex",0),e.addEventListener("click",(function(){return t.show(e)}))}))}}}))}()}]);
|
|
1
|
+
/* version: 1.86.0 */
|
|
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=5)}([,function(e,n,t){e.exports=t(4)},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 g})),t.d(n,"SpinnerPage",(function(){return _})),t.d(n,"VenmoSpinner",(function(){return N})),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),m=((d={})["xlink:href"]="http://www.w3.org/1999/xlink",d);function v(e,n){return e.createTextNode(n.text)}function w(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=m[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 y=((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 v(t,e);if("element"===e.type){var o=function(e,n,t){return e.createElementNS(t,n.name)}(t,e,n);return w(o,e),E(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 v(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 w(i,e),E(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 E(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(y[n.name]||y.default)(e,n,r)}function g(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(g,{nonce:t}),n))}function N(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(N,{nonce:t}),n))}}])},,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 O})),t.d(n,"DEFAULT_CURRENCY",(function(){return C})),t.d(n,"DEFAULT_INTENT",(function(){return I})),t.d(n,"DEFAULT_COMMIT",(function(){return x})),t.d(n,"DEFAULT_SALE_COMMIT",(function(){return D})),t.d(n,"DEFAULT_NONSALE_COMMIT",(function(){return L})),t.d(n,"DEFAULT_VAULT",(function(){return M})),t.d(n,"DEFAULT_COMPONENTS",(function(){return F})),t.d(n,"DEFAULT_DEBUG",(function(){return H})),t.d(n,"ENV",(function(){return k})),t.d(n,"MOBILE_ENV",(function(){return U})),t.d(n,"ERROR_CODE",(function(){return B})),t.d(n,"FPTI_KEY",(function(){return G})),t.d(n,"FPTI_USER_ACTION",(function(){return W})),t.d(n,"FPTI_DATA_SOURCE",(function(){return j})),t.d(n,"FPTI_FEED",(function(){return Z})),t.d(n,"FPTI_SDK_NAME",(function(){return q})),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 K})),t.d(n,"payPalWebV5Dimensions",(function(){return Y})),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 m})),t.d(n,"SDK_PATH",(function(){return v})),t.d(n,"WEB_SDK_BRIDGE_PATH",(function(){return w})),t.d(n,"SDK_SETTINGS",(function(){return y})),t.d(n,"SDK_DATA_ATTRIBUTES",(function(){return E})),t.d(n,"SDK_QUERY_KEYS",(function(){return g})),t.d(n,"COMPONENTS",(function(){return _})),t.d(n,"DEBUG",(function(){return N})),t.d(n,"QUERY_BOOL",(function(){return S})),t.d(n,"UNKNOWN",(function(){return T})),t.d(n,"PROTOCOL",(function(){return A})),t.d(n,"PAGE_TYPES",(function(){return b})),t.d(n,"MERCHANT_ID_MAX",(function(){return R})),t.d(n,"DISPLAY_ONLY_VALUES",(function(){return P})),t.d(n,"PLATFORM",(function(){return z})),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},m={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"},v="/sdk/js",w="/web-sdk/v6/bridge",y={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"},E=y,g={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"},N={TRUE:!0,FALSE:!1},S={TRUE:"true",FALSE:"false"},T="unknown",A={HTTP:"http",HTTPS:"https"},b={HOME:"home",PRODUCT:"product",CART:"cart",CHECKOUT:"checkout",PRODUCT_LISTING:"product-listing",SEARCH_RESULTS:"search-results",PRODUCT_DETAILS:"product-details",MINI_CART:"mini-cart"},R=10,P={VAULTABLE:"vaultable"},O=s.US,C=m.USD,I=l.CAPTURE,x=p.TRUE,D=p.TRUE,L=p.TRUE,M=h.FALSE,F=_.BUTTONS,H=N.FALSE,k={LOCAL:"local",STAGE:"stage",SANDBOX:"sandbox",PRODUCTION:"production",TEST:"test"},U={ANDROID:"android",IOS:"iOS"},B={VALIDATION_ERROR:"validation_error"},G={BRAND_VERSION:"brand_version",BUTTON_COLOR:"button_color",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_FI_ID:"chosen_fi_id",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",FLOW:"flow",FUNDING_COUNT:"eligible_payment_count",FUNDING_LIST:"eligible_payment_methods",GLOBAL_SESSION_UID:"global_session_id",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",SHOPPER_SESSION_ID:"data_shopper_session_id",SMART_WALLET_INSTRUMENT_TYPES:"smart_wallet_instrument_types",SPACE_KEY:"space_key",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",USER_ACTIVATION_IS_ACTIVE:"usr_activation_is_active"},W={COMMIT:"commit",CONTINUE:"continue"},j={PAYMENTS_SDK:"checkout"},Z={PAYMENTS_SDK:"payments_sdk"},q={PAYMENTS_SDK:"payments_sdk"},K="pp.sdks.ppcp",Y={sdk_platform:"web",major_version:"5"},z={DESKTOP:"desktop",MOBILE:"mobile"},V=!0}])},function(e,n,t){"use strict";function r(){return(r=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 o(e,n){return(o=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function i(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,o(e,n)}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 m(e){return"[object RegExp]"==={}.toString.call(e)}var v={IFRAME:"iframe",POPUP:"popup"},w="Call was rejected by callee.\r\n";function y(e){return void 0===e&&(e=window),e.location.protocol}function E(e){if(void 0===e&&(e=window),e.mockDomain){var n=e.mockDomain.split("//")[0];if(n)return n}return y(e)}function g(e){return void 0===e&&(e=window),"about:"===E(e)}function _(e){if(void 0===e&&(e=window),e)try{if(e.parent&&e.parent!==e)return e.parent}catch(e){}}function N(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 T(e){void 0===e&&(e=window);var n=e.location;if(!n)throw new Error("Can not read window location");var t=y(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()?T(r):"about://"}var o=n.host;if(!o)throw new Error("Can not read window host");return t+"//"+o}function A(e){void 0===e&&(e=window);var n=T(e);return n&&e.mockDomain&&0===e.mockDomain.indexOf("mock:")?e.mockDomain:n}function b(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(g(e)&&S())return!0}catch(e){}try{if(function(e){return void 0===e&&(e=window),"mock:"===E(e)}(e)&&S())return!0}catch(e){}try{if(T(e)===T(window))return!0}catch(e){}return!1}(e))return!1;try{if(e===window)return!0;if(g(e)&&S())return!0;if(A(window)===A(e))return!0}catch(e){}return!1}function R(e){if(!b(e))throw new Error("Expected window to be same domain");return e}function P(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 O(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 C(e){for(var n=[],t=0,r=O(e);t<r.length;t++){var o=r[t];n.push(o);for(var i=0,a=C(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(P(window,e)&&window.top)return window.top}catch(e){}try{if(P(e,window)&&window.top)return window.top}catch(e){}for(var n=0,t=C(e);n<t.length;n++){var r=t[n];try{if(r.top)return r.top}catch(e){}if(_(r)===r)return r}}function x(e){var n=I(e);if(!n)throw new Error("Can not determine top window");var t=[].concat(C(n),[n]);return-1===t.indexOf(e)&&(t=[].concat(t,[e],C(e))),t}var D=[],L=[];function M(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!==w}if(n&&b(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=L[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=O(e),r=0;r<t.length;r++){var o=t[r];try{if(b(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 H(e){return void 0===e&&(e=window),N(e=e||window)||_(e)||void 0}function k(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 U(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=x(e),i=x(n);if(k(o,i))return!0;var a=N(t),u=N(r);return a&&k(x(a),i)||u&&k(x(u),o),!1}function G(e,n){if("string"==typeof e){if("string"==typeof n)return"*"===e||n===e;if(m(n))return!1;if(Array.isArray(n))return!1}return m(e)?m(n)?e.toString()===n.toString():!Array.isArray(n)&&Boolean(n.match(e)):!!Array.isArray(e)&&(Array.isArray(n)?JSON.stringify(e)===JSON.stringify(n):!m(n)&&e.some((function(e){return G(e,n)})))}function W(e){return e.match(/^(https?|mock|file):\/\//)?e.split("/").slice(0,3).join("/"):A()}function j(e,n,t,r){var o;void 0===t&&(t=1e3),void 0===r&&(r=1/0);var i=function(){if(M(e))return o&&clearTimeout(o),n();r<=0?clearTimeout(o):(r-=t,o=setTimeout(i,t))};return i(),{cancel:function(){o&&clearTimeout(o)}}}function Z(e){try{if(e===window)return!0}catch(e){if(e&&e.message===w)return!0}try{if("[object Window]"==={}.toString.call(e))return!0}catch(e){if(e&&e.message===w)return!0}try{if(window.Window&&e instanceof window.Window)return!0}catch(e){if(e&&e.message===w)return!0}try{if(e&&e.self===e)return!0}catch(e){if(e&&e.message===w)return!0}try{if(e&&e.parent===e)return!0}catch(e){if(e&&e.message===w)return!0}try{if(e&&e.top===e)return!0}catch(e){if(e&&e.message===w)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 q(e){if(b(e))return R(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 K(e){if(function(e){return void 0===e&&(e=window),Boolean(_(e))}(e)){var n=q(e);if(n&&n.parentElement)return void n.parentElement.removeChild(n)}try{e.close()}catch(e){}}function Y(e,n){for(var t=0;t<e.length;t++)try{if(e[t]===n)return t}catch(e){}return-1}var z,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(Z(r)&&M(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!Z(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=Y(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=Y(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=Y(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!==Y(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 Q(e){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function J(){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=J()?Reflect.construct:function(e,n,t){var r=[null];r.push.apply(r,n);var i=new(Function.bind.apply(e,r));return t&&o(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,Q(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(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(z=z||new V,null==e||"object"!=typeof e&&"function"!=typeof e)throw new Error("Invalid object");var n=z.get(e);return n||(n=typeof e+":"+oe(),z.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 me(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: "+me(e,n+1)}}function ve(e){return"string"==typeof e?e:e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}function we(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 ye(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 Ee(e){return e}function ge(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 Ne(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 Te(e){return[].slice.call(e)}function Ae(e){return"object"==typeof(n=e)&&null!==n&&"[object Object]"==={}.toString.call(e);var n}function be(e){if(!Ae(e))return!1;var n=e.constructor;if("function"!=typeof n)return!1;var t=n.prototype;return!!Ae(t)&&!!t.hasOwnProperty("isPrototypeOf")}function Re(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(be(i)||Array.isArray(i))&&(i=Re(i,n,o)),i}))},a=0;a<r;a++)i(a);return o}if(be(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(be(i)||Array.isArray(i))&&(i=Re(i,n,o)),i}))};for(var s in e)c(s);return u}throw new Error("Pass an object or array")}function Pe(e){return null!=e}function Oe(e){return"[object RegExp]"==={}.toString.call(e)}function Ce(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 xe(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 i(n,e),n}($(Error));function Le(){var e=document.body;if(!e)throw new Error("Body element not found");return e}function Me(){return Boolean(document.body)&&"complete"===document.readyState}function Fe(){return Boolean(document.body)&&"interactive"===document.readyState}function He(e){return encodeURIComponent(e)}function ke(e){return le(ke,(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 Ue(e,n){return void 0===n&&(n={}),n&&Object.keys(n).length?(void 0===(t=r({},ke(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 He(e)+"="+He(n.toString())})).join("&")):e;var t}function Be(){return"undefined"!=typeof window&&void 0!==window.location}function Ge(){return le(Ge,(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 je(e,n){return void 0===n&&(n=document),ee(e)?e:"string"==typeof e?n.querySelector(e):void 0}function Ze(e){return new h((function(n,t){var r=ve(e),o=je(e);if(o)return n(o);if(Me())return t(new Error("Document is ready and element "+r+" does not exist"));var i=setInterval((function(){return(o=je(e))?(n(o),void clearInterval(i)):Me()?(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(Me()||Fe())return e();var n=setInterval((function(){if(Me()||Fe())return clearInterval(n),e()}),10)}))}));var qe,Ke=function(e){function n(){return e.apply(this,arguments)||this}return i(n,e),n}(De);function Ye(e){if((qe=qe||new V).has(e)){var n=qe.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&&(L.splice(e,1),D.splice(e,1))}}(),e&&e.contentWindow)try{D.push(e.contentWindow),L.push(e)}catch(e){}})(e),n(e)})),e.addEventListener("error",(function(r){e.contentWindow?n(e):t(r)}))}));return qe.set(e,t),t}function ze(e){return Ye(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||{},o=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&&we(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:r({allowTransparency:"true"},e.attributes||{}),style:r({backgroundColor:"transparent",border:"none"},t),html:e.html,class:e.class}),i=window.navigator.userAgent.match(/MSIE|Edge/i);return o.hasAttribute("id")||o.setAttribute("id",oe()),Ye(o),n&&function(e,n){void 0===n&&(n=document);var t=je(e,n);if(t)return t;throw new Error("Can not find element: "+ve(e))}(n).appendChild(o),(e.url||i)&&o.setAttribute("src",e.url||"about:blank"),o}function Qe(e,n,t){return e.addEventListener(n,t),{cancel:function(){e.removeEventListener(n,t)}}}function Je(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 m,v,w=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",w),void 0!==f.ResizeObserver?((m=new f.ResizeObserver(w)).observe(e),v=ge(w,10*s)):void 0!==f.MutationObserver?((m=new f.MutationObserver(w)).observe(e,{attributes:!0,childList:!0,subtree:!0,characterData:!1}),v=ge(w,10*s)):v=ge(w,s),{cancel:function(){h=!0,m.disconnect(),window.removeEventListener("resize",w),v.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=Ge();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}])}function sn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var dn=[];function fn(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<dn.length;h++)for(var m=(0,dn[h])(),v=0,w=Object.keys(m);v<w.length;v++){var y=w[v];o[y.toLowerCase()]=m[y]}var E=new d.XMLHttpRequest;for(var g in E.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=sn(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),E.addEventListener("error",(function(e){t(new Error("Request to "+r.toLowerCase()+" "+n+" failed: "+e.toString()+"."))}),!1),E.open(r,n,!0),o)o.hasOwnProperty(g)&&E.setRequestHeader(g,o[g]);a?c=JSON.stringify(a):u&&(c=Object.keys(u).map((function(e){return encodeURIComponent(e)+"="+(u?encodeURIComponent(u[e]):"")})).join("&")),E.timeout=l,E.ontimeout=function(){t(new Error("Request to "+r.toLowerCase()+" "+n+" has timed out"))},E.send(c)}))}function ln(e){return"string"==typeof e&&/^[0-9]+%$/.test(e)}function pn(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 hn(e){return pn(e)+"px"}function mn(e){return"number"==typeof e?hn(e):ln(e)?e:hn(e)}function vn(e,n){if("number"==typeof e)return e;if(ln(e))return parseInt(n*pn(e)/100,10);var t;if("string"==typeof(t=e)&&/^[0-9]+px$/.test(t))return pn(e);throw new Error("Can not normalize dimension: "+e)}var wn=de((function(){try{return on()}catch(e){throw function(e,n,t){var r=t?me(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=wn().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 yn=["warn","error"],En=["error","warn","info","debug"],gn=function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};function _n(e){var n=e.url,t=e.prefix,o=e.metricNamespacePrefix,i=e.logLevel,a=void 0===i?"warn":i,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=b(e)?R(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||fn({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=[],m=[],v=[],w=[],y=[],E=[],g=[],_=[];function N(e,n,t){if(Be()&&window.console&&window.console.log&&!(En.indexOf(e)>En.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||m.length||v.length)){for(var e={},t=0;t<y.length;t++)gn(e,(0,y[t])(e));for(var r,o={},i=0;i<_.length;i++)gn(o,(0,_[i])(o));return n&&(r=c({method:"POST",url:n,headers:o,json:{events:p,meta:e,tracking:m,metrics:v},enableSendBeacon:l}).catch(pe)),p=[],m=[],v=[],h.resolve(r).then(pe)}}))}var T,A,P,O,C=(void 0===A&&(A=50),te((function(){O&&clearTimeout(O);var e=P=P||new h;return O=setTimeout((function(){P=null,O=null,h.try(T).then((function(n){e.resolve(n)}),(function(n){e.reject(n)}))}),A),e}),ne(T=S)+"::promiseDebounced"));function I(e,n,o){if(void 0===o&&(o={}),!Be())return L;t&&(n=t+"_"+n);for(var i=r({},ye(o),{timestamp:Date.now().toString()}),a=0;a<w.length;a++)gn(i,(0,w[a])(i));return function(e,n,t){p.push({level:e,event:n,payload:t}),-1!==yn.indexOf(e)&&C()}(e,n,i),N(e,n,i),L}function x(e,n){return e.push(n),L}function D(e){if(!Be())return L;o&&(e.metricNamespace=o+"."+e.metricNamespace),g.length>0&&!e.dimensions&&(e.dimensions={});for(var n=0;n<g.length;n++)gn(e.dimensions||{},(0,g[n])(e.dimensions||{}));return N("debug","metric."+e.metricNamespace,e.dimensions||{}),v.push(e),L}Be()&&ge(C,d),"object"==typeof window&&(window.addEventListener("beforeunload",(function(){S()})),"onpagehide"in window?window.addEventListener("pagehide",(function(){S()})):window.addEventListener("unload",(function(){S()})));var L={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 L;for(var n=ye(e),t=0;t<E.length;t++)gn(n,(0,E[t])(n));return N("debug","track",n),m.push(n),L},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:C,immediateFlush:S,addPayloadBuilder:function(e){return x(w,e)},addMetaBuilder:function(e){return x(y,e)},addMetricDimensionBuilder:function(e){return x(g,e)},addTrackingBuilder:function(e){return x(E,e)},addHeaderBuilder:function(e){return x(_,e)},setTransport:function(e){return c=e,L},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),L},__buffer__:{get events(){return p},get tracking(){return m},get metrics(){return v}}};return Object.defineProperty(L,"__buffer__",{writable:!1}),L}var Nn,Sn=de((function(){return _n({url:(void 0===(e="/xoplatform/logger/api/logger")&&(e=""),"https://www.paypal.com"+e),metricNamespacePrefix:"pp.sdks.ppcp"});var e}));function Tn(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 An(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){Tn(i,r,o,a,u,"next",e)}function u(e){Tn(i,r,o,a,u,"throw",e)}a(void 0)}))}}var bn=((Nn={}).local="https://cdn-latest.static.engineering.dev.paypalinc.com/qaRdaAssets/fraudnet/async/fb-raw.js",Nn.stage="https://cdn-latest.static.engineering.dev.paypalinc.com/qaRdaAssets/fraudnet/async/fb-raw.js",Nn.sandbox="https://c.paypal.com/da/r/fb.js",Nn.production="https://c.paypal.com/da/r/fb.js",Nn.test="https://c.paypal.com/da/r/fb.js",Nn);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?bn[t]+"?"+u:bn[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(){Sn().warn("ppcp_axo_init_fraudnet_failed")}));return{collect:(i=An((function*(){try{yield a,yield window.PAYPAL.asyncData.collect()}catch(e){Sn().warn("ppcp_axo_collect_fraudnet_failed")}})),function(){return i.apply(this,arguments)})}})),de((function(e){Sn().info("rest_api_create_access_token");var n,t=re(e+":");return fn({method:"post",url:(n="/v1/oauth2/token",void 0===n&&(n=""),""+("undefined"!=typeof window&&void 0!==window.location&&"https://www.paypal.com"===A()?"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 Rn,Pn,On,Cn,In,xn={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"]},Dn=(Pn=An((function*(){if(!Rn){var e=xn.create,n=xn.extractable,t=xn.usages,r=yield window.crypto.subtle.generateKey(e,n,t);Rn=Rn||{publicKey:r.publicKey,privateKey:r.privateKey}}return Rn})),function(){return Pn.apply(this,arguments)}),Ln=function(e){return new Uint8Array(e.split("").map((function(e){return e.charCodeAt(0)})))},Mn=function(e){return String.fromCharCode.apply(String,e)},Fn=function(e){return btoa(e).replace(/[=]+/g,"").replace(/\+/g,"-").replace(/\//g,"_")},Hn=(On=An((function*(e){var n=Ln(e),t=yield window.crypto.subtle.digest("sha-256",n),r=Mn(new Uint8Array(t));return Fn(r)})),function(e){return On.apply(this,arguments)}),kn=(Cn=An((function*(e){var n=e.crv,t=e.e,r=e.kty,o=e.n,i=e.x,a=e.y;return yield Hn(JSON.stringify({crv:n,e:t,kty:r,n:o,x:i,y:a}))})),function(e){return Cn.apply(this,arguments)}),Un=(In=An((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=Fn(JSON.stringify({alg:xn.alg,typ:"dpop+jwt",jwk:u})),s={ath:n?yield Hn(n):void 0,cnf:{jkt:yield kn(u)},htm:t,htu:a,iat:Math.floor(new Date/1e3),jti:window.crypto.randomUUID(),nonce:r},d=Fn(JSON.stringify(s)),f=yield window.crypto.subtle.sign(xn.sign,i,Ln(c+"."+d));return c+"."+d+"."+Fn(Mn(new Uint8Array(f)))})),function(e){return In.apply(this,arguments)}),Bn=(An((function*(e){var n=e.accessToken,t=e.method,o=e.uri,i=e.nonce,a=yield Dn(),u=a.privateKey,c=a.publicKey;return r({},n&&{Authorization:"DPoP "+n},{DPoP:yield Un({accessToken:n,method:t,uri:o,nonce:i,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"}),Gn={MESSAGE:"paypal-message",MODAL:"paypal-credit-modal",TREATEMENTS:"paypal-credit-treatments",BUTTONS:"paypal-buttons"};function Wn(){return!0}function jn(){return"sandbox"}function Zn(){}var qn=("undefined"!=typeof document?document:{}).currentScript;function Kn(){return qn||document.querySelector('script[src$="messaging.js"]')||document.querySelector('script[src$="merchant.js"]')}function Yn(){}function zn(){var e;return(null==(e=Kn())?void 0:e.getAttribute("data-pp-namespace"))||"paypal"}function Vn(){return"1.86.0"}function Qn(){return Object.values(Gn).some((function(e){return window.name.startsWith("__zoid__"+e.replace(/-/g,"_"))}))}function Jn(){return cn({name:zn()})}function Xn(){return Jn().getSessionID()}function $n(){return Jn().getID()}function et(){}function nt(){window}function tt(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 rt=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 tt(this.children,e)},e}(),ot=function(){function e(e){this.type="fragment",this.children=void 0,this.children=e}return e.prototype.render=function(e){return tt(this.children,e)},e}(),it=function(){function e(e){this.type="text",this.text=void 0,this.text=e}return e.prototype.render=function(e){return e(this)},e}(),at=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=ut(Array.isArray(e)?e:[e]);return 1===n.length?n[0]:n.length>1?new ot(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 tt(this.children,e)},e}();function ut(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 it(r.toString()));else{if("boolean"==typeof r)continue;if(Array.isArray(r))for(var o=0,i=ut(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 ct,st,dt,ft=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=ut(r),"string"==typeof e)return new rt(e,n,r);if("function"==typeof e)return new at(e,n,r);throw new TypeError("Expected jsx element to be a string or a function")},lt=((ct={}).svg="http://www.w3.org/2000/svg",ct),pt=((st={})["xlink:href"]="http://www.w3.org/1999/xlink",st);function ht(e,n){return e.createTextNode(n.text)}function mt(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=pt[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 vt=((dt={}).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(yt({doc:r}));i.children.length;)o.appendChild(i.children[0])}))},dt.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},dt.default=function(e,n,t){for(var r=0,o=n.renderChildren(t);r<o.length;r++)e.appendChild(o[r])},dt);function wt(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(vt[n.name]||vt.default)(e,n,r)}function yt(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 ht(t,e);if("element"===e.type){var o=function(e,n,t){return e.createElementNS(t,n.name)}(t,e,n);return mt(o,e),wt(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 ht(t,e);if("element"===e.type){var n=lt[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 mt(i,e),wt(i,e,t,o),i}throw new TypeError("Unhandleable node")};return o}function Et(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 gt(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 _t(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)}}_t((function(e,n){return n[e]})),_t((function(e,n){var t;return(t={})[e]=n,t})),Et((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)}))}));var Nt=function(){return(new Date).getTime()},St=Et((function(){var e=document.querySelector('meta[name="viewport"]')||ft("meta",{name:"viewport",content:""}).render(yt({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 Tt(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_MQGZ:3MEZ":case"PLLT_MQ_GZ:PLLT_SQ_EZ":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"GPL:EQZ:NON-AT":case"GPL:GTZ:NON-AT":case"GPLQ:EQZ:NON-AT":case"GPLQ:GTZ:NON-AT":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_MQ_GZ:3MEZ":case"PLLT_SQ_EZ":case"PLLT_SQ_GZ":case"PLLT_MQ_EZ_RB":case"PLLT_SQ_EZ_RB":case Bn.PAY_LATER_LONG_TERM:return Bn.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 Bn.PAY_LATER_SHORT_TERM:return Bn.PAY_LATER_SHORT_TERM;case"PI30":case"PI30Q":case"PI30NQ":case"PI30:NON-DE":case"PI30Q:NON-DE":case"PI30NQ:NON-DE":case"PI30:NON-AT":case"PI30Q:NON-AT":case"PI30NQ:NON-AT":case"PLP1_NA_XB":case"PLP1_NA":case"PLP1_NQ_XB":case"PLP1_NQ":case"PLP1_SQ_XB":case"PLP1_SQ":case Bn.PAY_LATER_PAY_IN_1:return Bn.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 Bn.PAYPAL_CREDIT_NO_INTEREST:return Bn.PAYPAL_CREDIT_NO_INTEREST;case Bn.PAY_LATER:return Bn.PAY_LATER;case Bn.REWARDS:return Bn.REWARDS;default:return}}function At(e,n){var t=void 0===n?{}:n,r=t.inZoid,o=t.debugObj;/(\?|&)pp_debug=true(&|$)/.test(window.location.search)&&!!r===Qn()&&console.warn("PayPal Messages Debug:",e,null!=o?o:"")}function bt(e){return Object.entries(e).reduce((function(e,n){var t,o,i,a=n[0],u=n[1];return Array.isArray(u)?r({},e,((o={})[a]=[].concat(u),o)):r({},e,"object"==typeof u?((i={})[a]=bt(u),i):((t={})[a]=u,t))}),{})}function Rt(e,n){return function e(n,t){return Object.entries(t).reduce((function(t,o){var i,a,u,c,s=o[0],d=o[1];return Array.isArray(d)?r({},t,((a={})[s]=[].concat(d),a)):"object"!=typeof d||null===d||n[s]&&"object"==typeof n[s]&&!Array.isArray(n[s])?r({},t,"object"==typeof d&&null!==d?((c={})[s]=e(n[s],d),c):((i={})[s]=d,i)):r({},t,((u={})[s]=bt(d),u))}),n)}(bt(e),n)}function Pt(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]=Pt(u,n,t),r}function Ot(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}function Ct(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=Array.from(e.attributes).filter((function(e){return e.nodeName.startsWith("data-pp-")})).reduce((function(e,r){var o=r.nodeValue;if(o){var i,a=r.nodeName.replace("data-pp-",""),u=t.includes(a)?new Function(o):o;return Rt(e,function(e,n){if("string"==typeof n&&n.startsWith("["))try{return Pt(e,JSON.parse(n.replace(/'/g,'"')))}catch(e){}return Pt(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),Rt(r,{style:{markup:o}})}_t((function(e,n,t){return n.getElementsByClassName(e+"__"+t)[0]})),_t((function(e,n){var t=document.createElement("style");t.textContent=n,e.insertBefore(t,e.firstChild)})),_t((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)})),_t((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 It=_t((function(e,n,t,r){if(void 0===t&&(t="PayPal Credit"),void 0===r&&(r=""),Array.isArray(n))n.forEach((function(n){return It(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 xt(e){return"string"==typeof e?Array.from(document.querySelectorAll(e)):Ot(e)?[e]:Array.isArray(e)&&e.every(Ot)?e.flatMap(xt):[]}var Dt="__paypal_messages_"+"1.86.0".replace(/[.-]/g,"_")+"__",Lt=function(){var e,n,t;return null!=(e=window[Dt])?e:(n=function(e){void 0===e&&(e={});var n=r({},e);return[n,gt(Object.assign,n)]}(window[Dt]||{index:1,config:{},messagesMap:new Map}),(t=n[0]).setGlobalState=n[1],Object.defineProperty(window,Dt,{value:t,enumerable:!1,configurable:!0,writable:!1}),window[Dt])},Mt=function(e){return Lt().setGlobalState(e)};function Ft(e){return""+function(){var e=Object({__LOCAL__:"https://localhost.paypal.com:8080",__SANDBOX__:"https://www.sandbox.paypal.com",__PRODUCTION__:"https://www.paypal.com"})["__"+"sandbox".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__:"/credit-application/paypal-credit-card/da/us/billing",__PREQUALIFICATION__:"/paylateracq/prequalify"})["__"+e.toUpperCase()+"__"]}var Ht=_e(),kt=(new h((function(e){return Ht.once("treatments",e)})),new h((function(e){return Ht.once("render",e)})),new h((function(e){return Ht.once("modal-render",e)})),new h((function(e){return"undefined"!=typeof document&&"complete"!==document.readyState?window.addEventListener("load",e):e()}))),Ut=new h((function(e){return"undefined"!=typeof document&&"loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e()})),Bt=function(e){return"__paypal_messaging_performance__"+e},Gt=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 Wt(e){var n,t;return null!=(n=null==Gt||null==(t=Gt.getEntriesByName(Bt(e))[0])?void 0:t.duration)?n:-1}function jt(e,n){var t=void 0===n?{}:n,r=t.startMark,o=t.endMark,i=t.repeat;if(Gt){if(-1!==Wt(e)){if(!i)return;Gt.clearMeasures(Bt(e)),Gt.clearMarks(Bt(e))}window.document.documentMode||Boolean(window.navigator&&window.navigator.userAgent&&/Edge|MSIE|rv:11/i.test(window.navigator.userAgent))?Gt.measure(Bt(e)):Gt.measure(Bt(e),r?Bt(r):void 0,o?Bt(o):void 0),Gt.mark(Bt(e))}}function Zt(e,n){var t,o,i,a,u,c,s,d,f=n.meta,l=n.events,p=n.tracking,h=null!=(t=f.global)?t:{},m=h.deviceID,v=h.sessionID,w=h.integration_type,y=h.integration_version,E=h.globalSessionID;e.startsWith("client-id:")&&(o=e.slice(10));var g=Object.entries(f).filter((function(n){return n[1].account===e})).map((function(e){var n,t=e[0],o=e[1],f=o.type,h=o.partnerClientId,m=o.buttonSessionId,v=o.messageRequestId,w=o.stats,y=void 0===w?{}:w,E=o.trackingDetails,g=o.language_requested,_=o.language_rendered,N=E.clickUrl;delete E.clickUrl,d=null!=d?d:h,i=null!=i?i:E.MERCHANT_PROFILE_HASH,a=null!=a?a:E.MERCHANT_PROFILE_VALID,u=null!=u?u:E.BUYER_PROFILE_HASH,c=null!=c?c:E.BUYER_PROFILE_VALID,s=null!=s?s:y.partner_attribution_id;var S=p.filter((function(e){return e.index===t}));s=null!=s?s:null==(n=S.find((function(e){return void 0!==e.partner_attribution_id})))?void 0:n.partner_attribution_id;var T=y.render_duration,A=y.request_duration;return delete y.render_duration,delete y.request_duration,r({component_type:f,instance_id:v,button_session_id:m,fdata:new URLSearchParams(N).get("fdata"),language_requested:null!=g?g:"undefined",language_rendered:null!=_?_:"undefined",merchant_events:l.filter((function(e){var n;return(null==(n=e.payload)?void 0:n.index)===t}))},E,y,{component_events:S.filter((function(e){return"MORS"!==e.event_type})).map((function(e){return r({render_duration:T,request_duration:A},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:o,merchant_id:e,partner_client_id:d,partner_attribution_id:s,merchant_profile_hash:i,merchant_profile_valid:a,buyer_profile_hash:u,buyer_profile_valid:c,device_id:m,global_session_id:E,session_id:v,integration_type:w,integration_version:y,components:g}}}var qt=_n({url:Ft("LOGGER"),prefix:"paypal_messages",logLevel:"warn",flushInterval:1e4,transport:function(e){var n=e.url,t=e.method,o=e.json,i=e.headers,a=o.events.reduce((function(e,n){var t=n.payload;return[].concat(e,[t.index,t.refIndex])}),[]),u=o.tracking.reduce((function(e,n){return[].concat(e,[n.index,n.refIndex])}),[]),c=a.concat(u),s=Object.keys(o.meta).filter((function(e){return c.includes(e)||"global"===e})).reduce((function(e,n){var t;return r({},e,((t={})[n]=o.meta[n],t))}),{}),d=o;d.meta=s;var f,l,p,m,v,w=n+"?disableSetCookie=true&features=disable-set-cookie",y=null==(f=Object.entries(s).find((function(e){var n=e[1];return"global"!==e[0]&&(null==n?void 0:n.account)})))?void 0:f[1];if(null!=y&&y.account){var E=btoa(y.account);i.Authorization="Basic "+E}return h.all((l=d,p=l.meta,m=l.events,v=l.tracking,Array.from(new Set(Object.values(p).map((function(e){return e.account})).filter(Boolean))).reduce((function(e,n){return[].concat(e,[Zt(n,{meta:p,events:m,tracking:v})])}),[])).map((function(e){return function(e,n,t){var o=void 0===t?{}:t,i=o.data,a=o.headers,u=o.withCredentials;return new h((function(t,o){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,o=n.trim().split(": "),i=o[1];return r({},e,((t={})[o[0].toLowerCase()]=i,t))}),{});switch(c.status){case 200:t({headers:e,data:"string"==typeof e["content-type"]&&e["content-type"].includes("application/json")?JSON.parse(c.responseText):c.responseText});break;case 204:t({headers:e});break;default:o(new Error("Request failed"))}}},c.open(e,n,!0),a&&Object.entries(a).forEach((function(e){c.setRequestHeader(e[0],e[1])})),c.send("object"==typeof i?JSON.stringify(i):i)}))}(t,w,{headers:r({"content-type":"application/json"},i),data:e,withCredentials:!0})})))}});qt.addMetaBuilder((function(){return{global:{integration_type:"STANDALONE_MODAL",integration_version:"1.86.0"}}})),qt.addPayloadBuilder((function(e){return delete e.container,delete e.selector,{}})),qt.addTrackingBuilder((function(){return{timestamp:(new Date).getTime()}}));var Kt={RENDERING:"/integrate/#enable-pay-later-messaging-on-your-website",GENERAL:"/integrate/reference/"};function Yt(e){var n,t,r;return""+(null!=(n=null==(t=Object({__VERSION__:"1.86.0",__FEATURES__:"no-common",__DEMO__:!1,__NATIVE_MODAL__:!0,__TARGET__:"STANDALONE_MODAL",__STAGE_TAG__:void 0,__TEST_ENV__:void 0,__DEV_TOUCHPOINT__:void 0,__DOMAIN__:Object({__LOCAL__:"https://localhost.paypal.com:8080",__SANDBOX__:"https://www.sandbox.paypal.com",__PRODUCTION__:"https://www.paypal.com"}),__URI__:Object({__MESSAGE__:"/credit-presentment/smart/message",__TREATMENTS__:"/credit-presentment/experiments/local",__MODAL__:"/credit-presentment/smart/modal",__LOGGER__:"/credit-presentment/glog",__CREDIT_APPLY__:"/credit-application/paypal-credit-card/da/us/billing",__PREQUALIFICATION__:"/paylateracq/prequalify"}),__FAQ__:Object({__BASE_URL__:"https://developer.paypal.com/docs/checkout/pay-later/us"})}))||null==(t=t.__FAQ__)?void 0:t.__BASE_URL__)?n:"https://developer.paypal.com/docs/checkout/pay-later/us").replace(/\/$/,"")+(null!=(r=Kt[e])?r:Kt.GENERAL)}var zt=t(1);function Vt(){return"__post_robot_11_0_0___"+un()}function Qt(e){void 0===e&&(e=window);var n=Vt();return e!==window?e[n]:e[n]=e[n]||{}}var Jt=function(){return{}};function Xt(e,n){return void 0===e&&(e="store"),void 0===n&&(n=Jt),Ce(Qt(),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 Ce(e,n,t)},reset:function(){e=n()},keys:function(){return Object.keys(e)}}}))}var $t,er=function(){};function nr(){var e=Qt();return e.WINDOW_WILDCARD=e.WINDOW_WILDCARD||new er,e.WINDOW_WILDCARD}function tr(e,n){return void 0===e&&(e="store"),void 0===n&&(n=Jt),Xt("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 Ce(r(n),e,t)}}}))}function rr(){return Xt("instance").getOrSet("instanceID",oe)}function or(e,n){var t=n.domain,r=tr("helloPromises"),o=r.get(e);o&&o.resolve({domain:t});var i=h.resolve({domain:t});return r.set(e,i),i}function ir(e,n){return(0,n.send)(e,"postrobot_hello",{instanceID:rr()},{domain:"*",timeout:-1}).then((function(n){var t=n.origin,r=n.data.instanceID;return or(e,{domain:t}),{win:e,domain:t,instanceID:r}}))}function ar(e,n){var t=n.send;return tr("windowInstanceIDPromises").getOrSet(e,(function(){return ir(e,{send:t}).then((function(e){return e.instanceID}))}))}function ur(e){tr("knownWindows").set(e,!0)}function cr(e){return"object"==typeof e&&null!==e&&"string"==typeof e.__type__}function sr(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 dr(e,n){return{__type__:e,__val__:n}}var fr,lr=(($t={}).function=function(){},$t.error=function(e){return dr("error",{message:e.message,stack:e.stack,code:e.code,data:e.data})},$t.promise=function(){},$t.regex=function(e){return dr("regex",e.source)},$t.date=function(e){return dr("date",e.toJSON())},$t.array=function(e){return e},$t.object=function(e){return e},$t.string=function(e){return e},$t.number=function(e){return e},$t.boolean=function(e){return e},$t.null=function(e){return e},$t[void 0]=function(e){return dr("undefined",e)},$t),pr={},hr=((fr={}).function=function(){throw new Error("Function serialization is not implemented; nothing to deserialize")},fr.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},fr.promise=function(){throw new Error("Promise serialization is not implemented; nothing to deserialize")},fr.regex=function(e){return new RegExp(e)},fr.date=function(e){return new Date(e)},fr.array=function(e){return e},fr.object=function(e){return e},fr.string=function(e){return e},fr.number=function(e){return e},fr.boolean=function(e){return e},fr.null=function(e){return e},fr[void 0]=function(){},fr),mr={};function vr(){for(var e=Xt("idToProxyWindow"),n=0,t=e.keys();n<t.length;n++){var r=t[n];e.get(r).shouldClean()&&e.del(r)}}function wr(e,n){var t=n.send,r=n.id,o=void 0===r?oe():r,i=e.then((function(e){if(b(e))return R(e).name})),a=e.then((function(e){if(M(e))throw new Error("Window is closed, can not determine type");return N(e)?v.POPUP:v.IFRAME}));i.catch(pe),a.catch(pe);var u=function(){return e.then((function(e){if(!M(e))return b(e)?R(e).name:i}))};return{id:o,getType:function(){return a},getInstanceID:fe((function(){return e.then((function(e){return ar(e,{send:t})}))})),close:function(){return e.then(K)},getName:u,focus:function(){return e.then((function(e){e.focus()}))},isClosed:function(){return e.then((function(e){return M(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)}Le().appendChild(a),a.submit(),Le().removeChild(a)}({url:n,target:e,method:i,body:a})}));if("get"!==i)throw new Error("Unsupported method: "+i);if(b(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=b(e),r=q(e);if(!t)throw new Error("Can not set name for cross-domain window: "+n);R(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 yr=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||wr(this.actualWindowPromise,{send:n}),Xt("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===v.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=wr(this.actualWindowPromise,{send:t,id:this.getID()}),tr("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:ar(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&&M(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 vr(),e.toProxyWindow(n,{send:r}).serialize()},e.deserialize=function(n,t){var r=t.send;return vr(),Xt("idToProxyWindow").get(n.id)||new e({serializedWindow:n,send:r})},e.isProxyWindow=function(e){return Boolean(e&&!Z(e)&&e.isProxyWindow)},e.toProxyWindow=function(n,t){var r=t.send;if(vr(),e.isProxyWindow(n))return n;var o=n;return tr("winToProxyWindow").get(o)||new e({win:o,send:r})},e}();function Er(e,n,t,r,o){var i=tr("methodStore"),a=Xt("proxyWindowMethods");yr.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 gr(e,n){var t=tr("methodStore"),r=Xt("proxyWindowMethods");return t.getOrSet(e,(function(){return{}}))[n]||r.get(n)}function _r(e,n,t,r,o){!function(e){var n=e.on,t=e.send;Xt("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=gr(n,i);if(!u)throw new Error("Could not find method '"+a+"' with id: "+o.id+" in "+A(window));var c=u.source,s=u.domain,d=u.val;return h.try((function(){if(!G(s,r))throw new Error("Method '"+o.name+"' domain "+JSON.stringify(Oe(u.domain)?u.domain.source:u.domain)+" does not match origin "+r+" in "+A(window));if(yr.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 "+A(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=[]),Te(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=yr.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+"::")),yr.isProxyWindow(e)?(Er(i,t,a,e,n),e.awaitWindow().then((function(e){Er(i,t,a,e,n)}))):Er(i,t,a,e,n),dr("cross_domain_function",{id:i,name:a})}function Nr(e,n,t,r){var o,i=r.on,a=r.send;return function(e,n){void 0===n&&(n=pr);var t=JSON.stringify(e,(function(e){var t=this[e];if(cr(this))return t;var r=sr(t);if(!r)return t;var o=n[r]||lr[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 dr("cross_domain_zalgo_promise",{then:_r(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 _r(e,n,t,r,{on:i,send:a})},o.object=function(e){return Z(e)||yr.isProxyWindow(e)?dr("cross_domain_window",yr.serialize(e,{send:a})):e},o))}function Sr(e,n,t,r){var o,i=r.send;return function(e,n){if(void 0===n&&(n=mr),"undefined"!==e)return JSON.parse(e,(function(e,t){if(cr(this))return t;var r,o;if(cr(t)?(r=t.__type__,o=t.__val__):(r=sr(t),o=t),!r)return o;var i=n[r]||hr[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 yr.toProxyWindow(e,{send:a}).awaitWindow().then((function(e){var c=gr(e,o);if(c&&c.val!==r)return c.val.apply({source:window,origin:A()},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 yr.deserialize(e,{send:i})},o))}var Tr={};function Ar(e,n,t,r){var o=r.on,i=r.send;return h.try((function(){var r=tr().getOrSet(e,(function(){return{}}));return r.buffer=r.buffer||[],r.buffer.push(t),r.flush=r.flush||h.flush().then((function(){if(M(e))throw new Error("Window is closed");var t=Nr(e,n,function(e){var n;return(n={})[Vt()]=e,n}(r.buffer||[]),{on:o,send:i});delete r.buffer;for(var a=Object.keys(Tr),u=[],c=0;c<a.length;c++){var s=a[c];try{Tr[s](e,t,n)}catch(e){u.push(e)}}if(u.length===a.length)throw new Error("All post-robot messaging strategies failed:\n\n"+u.map((function(e,n){return n+". "+me(e)})).join("\n\n"))})),r.flush.then((function(){delete r.flush}))})).then(pe)}function br(e){return Xt("responseListeners").get(e)}function Rr(e){Xt("responseListeners").del(e)}function Pr(e){return Xt("erroredResponseListeners").has(e)}function Or(e){var n=e.name,t=e.win,r=e.domain,o=tr("requestListeners");if("*"===t&&(t=null),"*"===r&&(r=null),!n)throw new Error("Name required to get request listener");for(var i=0,a=[t,nr()];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(G(l.regex,r))return p}}if(s["*"])return s["*"]}}}}}function Cr(e,n){var t=n.on,r=n.send,o=Xt("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=Sr(n,t,e,{on:i,send:a})}catch(e){return}if(o&&"object"==typeof o&&null!==o){var u=o[Vt()];if(Array.isArray(u))return u}}(e.data,i,a,{on:t,send:r});if(u){ur(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),M(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=Or({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&&!M(e))try{return Ar(e,n,{id:oe(),origin:A(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 "+A()+"\n\n"+me(e))}}))}h.all([h.flush().then((function(){if(!t.fireAndForget&&!M(e))try{return Ar(e,n,{id:oe(),origin:A(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 "+A()+"\n\n"+me(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(!Pr(t.hash)){var r,o=br(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(!G(o.domain,n))throw new Error("Response origin "+n+" does not match domain "+(r=o.domain,Array.isArray(r)?"("+r.join(" | ")+")":m(r)?"RegExp("+r.toString()+")":r.toString()));if(e!==o.win)throw new Error("Response source does not match registered window");Rr(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(!Pr(t.hash)){var r=br(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(!G(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 Ir(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=tr("requestListeners");if(!r||"string"!=typeof r)throw new Error("Name required to add request listener");if(o&&"*"!==o&&yr.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 m=Or({name:r,win:c,domain:i});c&&"*"!==c||(c=nr());var v=(i=i||"*").toString();if(m)throw c&&i?new Error("Request listener already exists for "+r+" on domain "+i.toString()+" for "+(c===nr()?"wildcard":"specified")+" window"):c?new Error("Request listener already exists for "+r+" for "+(c===nr()?"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 w,y,E=a.getOrSet(c,(function(){return{}})),g=Ce(E,r,(function(){return{}}));return Oe(i)?(w=Ce(g,"__domain_regex__",(function(){return[]}))).push(y={regex:i,listener:t}):g[v]=t,{cancel:function(){delete g[v],y&&(w.splice(w.indexOf(y,1)),w.length||delete g.__domain_regex__),Object.keys(g).length||delete E[r],c&&!Object.keys(E).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()}}}Tr.postrobot_post_message=function(e,n,t){0===t.indexOf("file:")&&(t="*"),e.postMessage(n,t)},Tr.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(!b(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=Qt(e);if(!t)throw new Error("Can not find postRobot global on foreign window");t.receiveMessage({source:window,origin:A(),data:n})};var xr=function(e,n,t,r){var o=(r=r||{}).domain||"*",i=r.timeout||-1,a=r.timeout||5e3,u=r.fireAndForget||!1;return yr.toProxyWindow(e,{send:xr}).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)&&!Oe(t))throw new TypeError("Can not send "+e+". Expected domain "+JSON.stringify(t)+" to be a string, array, or regex");if(M(n))throw new Error("Can not send "+e+". Target window is closed")}(n,e,o),function(e,n){var t=H(n);if(t)return t===e;if(n===e)return!1;if(I(n)===n)return!1;for(var r=0,o=O(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 tr("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||ir(e,{send:o}).then((function(e){return e.domain}))})).then((function(e){if(!G(n,n))throw new Error("Domain "+ve(n)+" does not match "+ve(n));return e}))}))}(e,o,(void 0===n?{}:n).domain,{send:xr})})).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){Xt("responseListeners").set(e,n)}(s,d);var f=tr("requestPromises").getOrSet(e,(function(){return[]}));f.push(c),c.catch((function(){!function(e){Xt("erroredResponseListeners").set(e,!0)}(s),Rr(s)}));var l=function(e){return tr("knownWindows").get(e,!1)}(e)?1e4:2e3,p=i,m=l,v=p,w=ge((function(){return M(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)):(m=Math.max(m-500,0),-1!==v&&(v=Math.max(v-500,0)),d.ack||0!==m?0===v?c.reject(new Error("No response for postMessage "+a+" in "+A()+" in "+p+"ms")):void 0:c.reject(new Error("No ack for postMessage "+a+" in "+A()+" in "+l+"ms")))}),500);c.finally((function(){w.cancel(),f.splice(f.indexOf(c,1))})).catch(pe)}return Ar(e,o,{id:oe(),origin:A(window),type:"postrobot_message_request",hash:s,name:n,data:t,fireAndForget:u},{on:Ir,send:xr}).then((function(){return u?c.resolve():c}),(function(e){throw new Error("Send request message failed for "+a+" in "+A()+"\n\n"+me(e))}))}))}))};function Dr(e){return yr.toProxyWindow(e,{send:xr})}function Lr(){var e,n,t;Qt().initialized||(Qt().initialized=!0,function(e){var n=e.on,t=e.send,r=Qt();r.receiveMessage=r.receiveMessage||function(e){return Cr(e,{on:n,send:t})}}({on:Ir,send:xr}),function(e){var n=e.on,t=e.send;Xt().getOrSet("postMessageListener",(function(){return Qe(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");Cr({source:n,origin:o,data:i},{on:t,send:r})}}))}(e,{on:n,send:t})}))}))}({on:Ir,send:xr}),n=(e={on:Ir,send:xr}).on,t=e.send,Xt("builtinListeners").getOrSet("helloListener",(function(){var e=function(e){return(0,e.on)("postrobot_hello",{domain:"*"},(function(e){return or(e.source,{domain:e.origin}),{instanceID:rr()}}))}({on:n}),r=H();return r&&ir(r,{send:t}).catch((function(e){})),e})))}function Mr(e){for(var n=0,t=tr("requestPromises").get(e,[]);n<t.length;n++)t[n].reject(new Error("Window "+(M(e)?"closed":"cleaned up")+" before response")).catch(pe)}function Fr(e){var n="__zoid_10_5_2___"+un();if(!b(e))throw new Error("Can not get global for window on different domain");return e[n]||(e[n]={}),e[n]}function Hr(e,n){try{return n(Fr(e))}catch(e){}}function kr(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 Ur(e){return re(JSON.stringify(e))}function Br(e){var n=Fr(e);return n.references=n.references||{},n.references}function Gr(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=Dr(a.win),l=d?JSON.stringify(r):Nr(f,a.domain,r,{on:Ir,send:xr}),p=c?(n=l,t=oe(),Br(window)[t]=n,{type:"uid",uid:t}):function(e){return{type:"raw",val:e}}(l);return{serializedData:Ur({sender:{domain:i.domain},metaData:o,reference:p}),cleanReference:function(){var e,n;e=window,"uid"===(n=p).type&&delete Br(e)[n.uid]}}}function Wr(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 Br(e)[n.uid];throw new Error("Unsupported ref type: "+n.type)}(n,u);return{data:i?JSON.parse(s):function(e,n,t){return Sr(e,n,t,{on:Ir,send:xr})}(n,t,s),metaData:c,sender:{win:n,domain:t},reference:u}}Lr();var jr={NAVIGATED_AWAY:"Window navigated away",COMPONENT_DESTROYED:"Component destroyed",COMPONENT_CLOSED:"Component closed",WINDOW_CLOSED:"Detected component window close",IFRAME_CLOSE:"Detected iframe close"},Zr=v;function qr(e){return"__zoid__"+e.name+"__"+e.serializedPayload+"__"}function Kr(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 Yr=de((function(e){var n=Wr({data:Kr(e).serializedInitialPayload,sender:{win:function(e){return function(e){if("opener"===e.type)return xe("opener",N(window));if("parent"===e.type&&"number"==typeof e.distance)return xe("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,U(e)-n)}(window,e.distance));if("global"===e.type&&e.uid&&"string"==typeof e.uid){var n=e.uid,t=H(window);if(!t)throw new Error("Can not find ancestor window");for(var r=0,o=x(t);r<o.length;r++){var i=o[r];if(b(i)){var a=Hr(i,(function(e){return e.windows&&e.windows[n]}));if(a)return a}}}else if("name"===e.type){var u=e.name;return xe("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=O(n);o<i.length;o++){var a=e(i[o],t);if(a)return a}}(I(e)||e,n)}(xe("ancestor",H(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 zr(){return Yr(window.name)}function Vr(e,n){if(void 0===n&&(n=window),e===_(n))return{type:"parent",distance:U(e)};if(e===N(n))return{type:"opener"};if(b(e)&&(r=e)!==I(r)){var t=R(e).name;if(t)return{type:"name",name:t}}var r}function Qr(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 Jr(){return h.try((function(){window.focus()}))}function Xr(){return h.try((function(){window.close()}))}var $r=function(){return pe},eo=function(e){return he(e.value)};function no(e,n,t){for(var o=0,i=Object.keys(r({},e,n));o<i.length;o++){var a=i[o];t(a,n[a],e[a])}}function to(e,n,t){var r={};return h.all(function(e,n,o){var i=[];return no(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&&Pe(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 ro(e){var n,t,o,i,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,m=c.containerTemplate,v=c.prerenderTemplate,w=c.tag,y=c.name,E=c.attributes,g=c.dimensions,_=c.autoResize,N=c.url,S=c.domain,T=c.exports,P=new h,O=[],C=Ie(),I={},x={},D={visible:!0},L=d.event?d.event:_e(),F=d.props?d.props:{},k=!1,Z=d.onError,q=d.getProxyContainer,Y=d.show,z=d.hide,V=d.close,Q=d.renderContainer,J=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 g?g({props:F}):g},se=function(){return h.try((function(){return d.resolveInitPromise?d.resolveInitPromise():P.resolve()}))},fe=function(e){return h.try((function(){return d.rejectInitPromise?d.rejectInitPromise(e):P.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||G(t,e)}),!1):G(e,A(window));i&&i.sameDomain&&!a||i&&i.trustedDomains&&!a||(n[o]=F[o])}}return h.hash(n)},ye=function(){return h.try((function(){return ae?ae():D}))},Ee=function(e){return h.try((function(){return ue?ue(e):D=r({},D,e)}))},Ne=function(){return J?J():h.try((function(){var e=F.window;if(e){var n=Dr(e);return C.register((function(){return e.close()})),n}return new yr({send:xr})}))},Se=function(e){return X?X(e):h.try((function(){n=e}))},Ae=function(){return Y?Y():h.hash({setState:Ee({visible:!0}),showElement:t?t.get().then(Je):null}).then(pe)},be=function(){return z?z():h.hash({setState:Ee({visible:!1}),showElement:t?t.get().then(Xe):null}).then(pe)},Re=function(){return"function"==typeof N?N({props:F}):N},Oe=function(){return"function"==typeof E?E({props:F}):E},Ce=function(){return W(Re())},xe=function(e,n){var t=n.windowName;return $?$(e,{windowName:t}):h.try((function(){if(e===Zr.IFRAME)return kr(Ve({attributes:r({name:t,title:y},Oe().iframe)}))}))},De=function(e){return ee?ee(e):h.try((function(){if(e===Zr.IFRAME)return kr(Ve({attributes:r({name:"__zoid_prerender_frame__"+y+"_"+oe()+"__",title:"prerender__"+y},Oe().iframe)}))}))},Le=function(e,n,t){return re?re(e,n,t):h.try((function(){if(e===Zr.IFRAME){if(!t)throw new Error("Expected proxy frame to be passed");return t.get().then((function(e){return C.register((function(){return $e(e)})),ze(e).then((function(e){return R(e)})).then((function(e){return Dr(e)}))}))}if(e===Zr.POPUP)return n;throw new Error("No render context available for "+e)}))},Me=function(){return h.try((function(){if(n)return h.all([L.trigger("zoid-focus"),n.focus()]).then(pe)}))},Fe=function(){var e=Fr(window);return e.windows=e.windows||{},e.windows[u]=window,C.register((function(){delete e.windows[u]})),u},He=function(e,n,t,r){if(n===A(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(H(o)!==window)throw new Error("Can not construct cross-domain window reference for window prop with different ancestor")}if(t===Zr.POPUP)return{type:"opener"};if(t===Zr.IFRAME)return{type:"parent",distance:U(window)};throw new Error("Can not construct window reference for child")},ke=function(e,t){return h.try((function(){var r;i=e,o=t,null==(r=n)||r.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(),C.register((function(){return t.close.fireAndForget().catch(pe)}))}))}))},Be=function(e){var n=e.width,t=e.height;return h.try((function(){L.trigger("zoid-resize",{width:n,height:t})}))},Ge=function(e){return h.try((function(){return L.trigger("zoid-destroy")})).catch(pe).then((function(){return C.all(e)})).then((function(){var n=e||new Error(jr.COMPONENT_DESTROYED);a&&en(a)||Object.values(jr).includes(n.message)?P.resolve():P.asyncReject(n)}))},qe=de((function(e){return h.try((function(){if(V){if(M(V.__source__))return;return V()}return h.try((function(){return L.trigger("zoid-close")})).then((function(){return Ge(e||new Error(jr.COMPONENT_CLOSED))}))}))})),Ye=function(e,n){var t=n.proxyWin,o=n.proxyFrame,i=n.windowName;return te?te(e,{proxyWin:t,proxyFrame:o,windowName:i}):h.try((function(){if(e===Zr.IFRAME){if(!o)throw new Error("Expected proxy frame to be passed");return o.get().then((function(e){return ze(e).then((function(n){return C.register((function(){return $e(e)})),C.register((function(){return Mr(n)})),n}))}))}if(e===Zr.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,o=void 0===t?1:t,i=n.name,a=void 0===i?"":i,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=r({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+"="+ve(n[e])})).filter(Boolean).join(",");try{f=window.open("",a,p)}catch(l){throw new Ke("Can not open popup window - "+(l.stack||l.message))}if(M(f))throw new Ke("Can not open popup window - blocked");return o&&(window.addEventListener("beforeunload",(function(){f.close()})),"onpagehide"in window?window.addEventListener("pagehide",(function(){f.close()})):window.addEventListener("unload",(function(){f.close()}))),f}(0,r({name:i,width:a,height:c},Oe().popup));return C.register((function(){return K(s)})),C.register((function(){return Mr(s)})),s}throw new Error("No render context available for "+e)})).then((function(e){return t.setWindow(e,{send:xr}),t.setName(i).then((function(){return t}))}))},rn=function(){return h.try((function(){var e="onpagehide"in window?"pagehide":"unload",n=Qe(window,e,he((function(){Ge(new Error(jr.NAVIGATED_AWAY))}))),t=j(l,Ge,3e3);if(C.register(t.cancel),C.register(n.cancel),ie)return ie()}))},on=function(e,n){var t=!1;return C.register((function(){t=!0})),h.delay(2e3).then((function(){return e.isClosed()})).then((function(r){if(!t){if(n===Zr.POPUP&&r)return qe(new Error("Detected popup close"));var o=Boolean(a&&en(a));return n===Zr.IFRAME&&r&&(o||k)?qe(new Error(jr.IFRAME_CLOSE)):on(e,n)}}))},an=function(e){var n=!1;return e.isClosed().then((function(t){return t?(n=!0,qe(new Error(jr.WINDOW_CLOSED))):h.delay(200).then((function(){return e.isClosed()})).then((function(e){if(e)return n=!0,qe(new Error(jr.WINDOW_CLOSED))}))})).then((function(){return n}))},un=function(e){return Z?Z(e):h.try((function(){if(-1===O.indexOf(e))return O.push(e),P.asyncReject(e),L.trigger("zoid-error",e)}))},cn=new h,sn=function(e){return h.try((function(){cn.resolve(e)}))};ke.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:Me,close:qe,state:I,props:F,tag:w,dimensions:ce(),event:L})},fn=function(e,n){var t=n.context;return ne?ne(e,{context:t}):h.try((function(){if(v){L.trigger("zoid-prerender");var n=e.getWindow();if(n&&b(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=R(n)).document,o=dn(v,{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=Te(r.children);o<i.length;o++)r.removeChild(i[o]);for(var a=0,u=Te(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=je(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});L.on("zoid-rendered",f.cancel)}L.trigger("zoid-prerendered")}}}}))},ln=function(e,n){var r=n.proxyFrame,o=n.proxyPrerenderFrame,i=n.context,a=n.rerender;return Q?Q(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:ye()}).then((function(e){var n=e.container,r=e.internalState.visible,o=dn(m,{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="onpagehide"in window?"pagehide":"unload",a=!1,u=[],c=function(){a=!0;for(var e=0;e<u.length;e++)u[e].disconnect();t&&t.cancel(),o&&o.removeEventListener(i,s),r&&$e(r)},s=function(){a||(n(),c())};if(en(e))return s(),{cancel:c};if(window.MutationObserver)for(var d=e.parentElement;d;){var f=new window.MutationObserver((function(){en(e)&&s()}));f.observe(d,{childList:!0}),u.push(f),d=d.parentElement}return(r=document.createElement("iframe")).setAttribute("name","__detect_close_"+oe()+"__"),r.style.display="none",ze(r).then((function(e){(o=R(e)).addEventListener(i,s)})),e.appendChild(r),t=ge((function(){en(e)&&s()}),1e3),{cancel:c}}(o,(function(){var e=new Error("Detected container element removed from DOM");return h.delay(1).then((function(){if(!en(o))return C.all(e),a().then(se,fe);qe(e)}))}));return C.register((function(){return u.cancel()})),C.register((function(){return $e(o)})),t=kr(o)}}))},pn=function(){return{state:I,event:L,close:qe,focus:Me,resize:Be,onError:un,updateProps:mn,show:Ae,hide:be}},hn=function(e){void 0===e&&(e={});var n=a,t=pn();we(x,e),function(e,n,t,r,o){var i=r.state,a=r.close,u=r.focus,c=r.event,s=r.onError;no(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&&!Pe(d)&&Pe(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||Pe(l)||Pe(t[e])||(l=r.default({props:n,state:i,close:a,focus:u,event:c,onError:s,container:o})),Pe(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&&!Pe(t[e]))throw new Error('Expected prop "'+e+'" to be defined');return Pe(l)&&r.decorate&&(l=r.decorate({value:l,props:n,state:i,close:a,focus:u,event:c,onError:s,container:o})),l}())}})})),no(n,e,pe)}(p,F,x,t,n)},mn=function(e){return hn(e),P.then((function(){var e=o,t=n;if(e&&t&&i)return le(i).then((function(n){return e.updateProps(n).catch((function(e){return an(t).then((function(n){if(!n)throw e}))}))}))}))},wn=function(e){return q?q(e):h.try((function(){return Ze(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,kr(e)}))};return{init:function(){L.on("zoid-render",(function(){return F.onRender()})),L.on("zoid-prerender",(function(){return F.onPrerender()})),L.on("zoid-display",(function(){return F.onDisplay()})),L.on("zoid-rendered",(function(){return F.onRendered()})),L.on("zoid-prerendered",(function(){return F.onPrerendered()})),L.on("zoid-close",(function(){return F.onClose()})),L.on("zoid-destroy",(function(){return F.onDestroy()})),L.on("zoid-resize",(function(){return F.onResize()})),L.on("zoid-focus",(function(){return F.onFocus()})),L.on("zoid-props",(function(e){return F.onProps(e)})),L.on("zoid-error",(function(e){return F&&F.onError?F.onError(e):fe(e).then((function(){setTimeout((function(){throw e}),1)}))})),C.register(L.reset)},render:function(e){var t=e.target,r=e.container,o=e.context,i=e.rerender;return h.try((function(){var e=Ce(),a=S||Ce();!function(e,n,t){if(e!==window){if(!B(window,e))throw new Error("Can only renderTo an adjacent frame");var r=A();if(!G(n,r)&&!b(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=xr(n,"zoid_delegate_"+y,{uid:u,overrides:{props:t,event:L,close:qe,onError:un,getInternalState:ye,setInternalState:Ee,resolveInitPromise:se,rejectInitPromise:fe}}).then((function(e){var t=e.data.parent;return C.register((function(e){if(!M(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"+me(e))}));return 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.getProxyContainer.apply(e,n)}))},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.renderContainer.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.show.apply(e,n)}))},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.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===Zr.IFRAME?(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.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===Zr.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=to(p,F,"post"),m=L.trigger("zoid-render"),v=wn(r),E=Ne(),g=v.then((function(){return hn()})),_=g.then((function(){return to(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=Ue(u[1],o),s=Ue(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")}(Re()),{query:e})}))})),N=E.then((function(n){return function(e){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:w,childDomainMatch:r,version:"10_5_2",props:e,exports:(n=t,{init:function(e){return ke(this.origin,e)},close:qe,checkClose:function(){return an(n)},resize:Be,onError:un,show:Ae,hide:be,export:sn})};var n}))}({proxyWin:t,initialChildDomain:r,childDomainMatch:o,context:c}).then((function(e){var n=Gr({data:e,metaData:{windowRef:He(a,r,c,t)},sender:{domain:A(window)},receiver:{win:t,domain:o},passByReference:r===A()}),i=n.serializedData;return C.register(n.cleanReference),i}))}({proxyWin:e.proxyWin,initialChildDomain:e.initialChildDomain,childDomainMatch:e.childDomainMatch,target:e.target,context:e.context}).then((function(e){return qr({name:y,serializedPayload:e})}))}({proxyWin:n,initialChildDomain:e,childDomainMatch:a,target:t,context:o})})),T=N.then((function(e){return xe(o,{windowName:e})})),R=De(o),O=h.hash({proxyContainer:v,proxyFrame:T,proxyPrerenderFrame:R}).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:N,proxyFrame:T,proxyWin:E}).then((function(e){var n=e.proxyWin;return d?n:Ye(o,{windowName:e.windowName,proxyWin:n,proxyFrame:e.proxyFrame})})),x=h.hash({proxyWin:I,proxyPrerenderFrame:R}).then((function(e){return Le(o,e.proxyWin,e.proxyPrerenderFrame)})),D=I.then((function(e){return n=e,Se(e)})),H=h.hash({proxyPrerenderWin:x,state:D}).then((function(e){return fn(e.proxyPrerenderWin,{context:o})})),U=h.hash({proxyWin:I,windowName:N}).then((function(e){if(d)return e.proxyWin.setName(e.windowName)})),j=h.hash({body:l}).then((function(e){return c.method?c.method:Object.keys(e.body).length?"post":"get"})),Z=h.hash({proxyWin:I,windowUrl:_,body:l,method:j,windowName:U,prerender:H}).then((function(e){return e.proxyWin.setLocation(e.windowUrl,{method:e.method,body:e.body})})),K=I.then((function(e){on(e,o)})),V=h.hash({container:O,prerender:H}).then((function(){return L.trigger("zoid-display")})),oe=I.then((function(e){})),ae=Z.then((function(){return h.try((function(){var e=F.timeout;if(e)return P.timeout(e,new Error("Loading component timed out after "+e+" milliseconds"))}))})),ue=P.then((function(){return k=!0,L.trigger("zoid-rendered")}));return h.hash({initPromise:P,buildUrlPromise:_,onRenderPromise:m,getProxyContainerPromise:v,openFramePromise:T,openPrerenderFramePromise:R,renderContainerPromise:O,openPromise:I,openPrerenderPromise:x,setStatePromise:D,prerenderPromise:H,loadUrlPromise:Z,buildWindowNamePromise:N,setWindowNamePromise:U,watchForClosePromise:K,onDisplayPromise:V,openBridgePromise:oe,runTimeoutPromise:ae,onRenderedPromise:ue,delegatePromise:s,watchForUnloadPromise:f,finalSetPropsPromise:g})})).catch((function(e){return h.all([un(e),Ge(e)]).then((function(){throw e}),(function(){throw e}))})).then(pe)},destroy:Ge,getProps:function(){return F},setProps:hn,export:sn,getHelpers:pn,getDelegateOverrides:function(){return h.try((function(){return{getProxyContainer:wn,show:Ae,hide:be,renderContainer:ln,getProxyWindow:Ne,watchForUnload:rn,openFrame:xe,openPrerenderFrame:De,prerender:fn,open:Ye,openPrerender:Le,setProxyWin:Se}}))},getExports:function(){return T({getExports:function(){return cn}})}}}var oo={register:function(e,n,t,r){var o=r.React,a=r.ReactDOM;return function(e){function n(){return e.apply(this,arguments)||this}i(n,e);var r=n.prototype;return r.render=function(){return o.createElement("div",null)},r.componentDidMount=function(){var e=a.findDOMNode(this),n=t(we({},this.props));n.render(e,Zr.IFRAME),this.setState({parent:n})},r.componentDidUpdate=function(){this.state&&this.state.parent&&this.state.parent.updateProps(we({},this.props)).catch(pe)},n}(o.Component)}},io={register:function(e,n,t,o){return o.component(e,{render:function(e){return e("div")},inheritAttrs:!1,mounted:function(){var e,n=this.$el;this.parent=t(r({},(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[Ne(t)]=r:n[t]=r,n}),{})))),this.parent.render(n,Zr.IFRAME)},watch:{$attrs:{handler:function(){this.parent&&this.$attrs&&this.parent.updateProps(r({},this.$attrs)).catch(pe)},deep:!0}}})}},ao={register:function(e,n,t){return{template:"<div></div>",inheritAttrs:!1,mounted:function(){var e,n=this.$el;this.parent=t(r({},(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[Ne(t)]=r:n[t]=r,n}),{})))),this.parent.render(n,Zr.IFRAME)},watch:{$attrs:{handler:function(){this.parent&&this.$attrs&&this.parent.updateProps(r({},this.$attrs)).catch(pe)},deep:!0}}}}},uo={register:function(e,n,t,r){return r.module(e,[]).directive(Ne(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 Re(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],Zr.IFRAME),e.$watch((function(){i.updateProps(o()).catch(pe)}))}]}}))}},co={register:function(e,n,t,o){var i=o.Component,a=o.NgModule,u=o.ElementRef,c=o.NgZone,s=o.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 Re(r({},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,Zr.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=r({},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 i({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 so(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=mn(n)),"number"==typeof t&&(d.style.height=mn(t))})),d}}function fo(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 lo=Ie(),po=Ie();function ho(e){var n,t,o=function(e){var n=e.tag,t=e.url,o=e.domain,i=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,m=void 0===h?"*":h,v=e.attributes,w=void 0===v?{}:v,y=e.defaultContext,E=void 0===y?Zr.IFRAME:y,g=e.containerTemplate,_=void 0===g?so:g,N=e.prerenderTemplate,S=void 0===N?fo:N,T=e.validate,A=e.eligible,R=void 0===A?function(){return{eligible:!0}}:A,P=e.logger,O=void 0===P?{info:pe}:P,C=e.exports,I=void 0===C?pe:C,x=e.method,D=e.children,L=void 0===D?function(){return{}}:D,F=n.replace(/-/g,"_"),H=r({},{window:{type:"object",sendToChild:!1,required:!1,allowDelegate:!0,validate:function(e){var n=e.value;if(!Z(n)&&!yr.isProxyWindow(n))throw new Error("Expected Window or ProxyWindow");if(Z(n)){if(M(n))throw new Error("Window is closed");if(!b(n))throw new Error("Window is not same domain")}},decorate:function(e){return Dr(e.value)}},timeout:{type:"number",required:!1,sendToChild:!1},cspNonce:{type:"string",required:!1},onDisplay:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:$r,decorate:eo},onRendered:{type:"function",required:!1,sendToChild:!1,default:$r,decorate:eo},onRender:{type:"function",required:!1,sendToChild:!1,default:$r,decorate:eo},onPrerendered:{type:"function",required:!1,sendToChild:!1,default:$r,decorate:eo},onPrerender:{type:"function",required:!1,sendToChild:!1,default:$r,decorate:eo},onClose:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:$r,decorate:eo},onDestroy:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:$r,decorate:eo},onResize:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:$r},onFocus:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:$r},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:o,bridgeUrl:i,method:x,propsDef:H,dimensions:f,autoResize:p,allowedParentDomains:m,attributes:w,defaultContext:E,containerTemplate:_,prerenderTemplate:S,validate:T,logger:O,eligible:R,children:L,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),i=o.name,a=o.tag,u=o.defaultContext,c=o.propsDef,s=o.eligible,d=o.children,f=o.getExtensions,l=Fr(window),p={},m=[],v=function(){if(function(e){try{return Kr(window.name).name===e}catch(e){}return!1}(i)){var e=zr().payload;if(e.tag===a&&G(e.childDomainMatch,A()))return!0}return!1},w=de((function(){if(v()){if(window.xprops)throw delete l.components[a],new Error("Can not register "+i+" 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=zr(),c=u.parent,s=u.payload,d=c.win,f=c.domain,l=new h,p=s.version,m=s.uid,v=s.exports,w=s.context,y=s.props;if(!function(e,n){if(!/_/.test(e)||!/_/.test("10_5_2"))throw new Error("Versions are in an invalid format ("+e+", 10_5_2)");return e.split("_")[0]==="10_5_2".split("_")[0]}(p))throw new Error("Parent window has zoid version "+p+", child window has version 10_5_2");var E=v.show,g=v.hide,_=v.close,N=v.onError,S=v.checkClose,T=v.export,P=v.resize,O=v.init,C=function(){return d},I=function(){return f},D=function(e){return a.push(e),{cancel:function(){a.splice(a.indexOf(e),1)}}},L=function(e){return P.fireAndForget({width:e.width,height:e.height})},M=function(e){return l.resolve(e),T(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=x(window);a<u.length;a++){var c=u[a];if(b(c)){var s=R(c).xprops;if(s&&C()===s.getParent()){var d=s.parent;if(r||!i||d&&d.uid===i.uid){var f=Hr(c,(function(e){return e.exports}));o.push({props:s,exports:f})}}}}return o},H=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||G(n,A(window))}),!1):r===A(window)||b(e);if((!d||!d.sameDomain||f)&&(!d||!d.trustedDomains||f)){var l=Qr(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 m=h[p];t.hasOwnProperty(m)||(a[m]=Qr(n,0,m,void 0,o))}return a}(d,r,e,o,{tag:t,show:E,hide:g,close:_,focus:Jr,onError:N,resize:L,getSiblings:F,onProps:D,getParent:C,getParentDomain:I,uid:m,export:M},i);n?we(n,u):n=u;for(var c=0;c<a.length;c++)(0,a[c])(n)},k=function(e){return h.try((function(){return H(e,f,!0)}))};return{init:function(){return h.try((function(){var n="";return b(d)&&(n=function(e){var n=e.componentName,t=e.parentComponentWindow,r=Wr({data:Kr(window.name).serializedInitialPayload,sender:{win:t},basic:!0}),o=r.sender;if("uid"===r.reference.type||"global"===r.metaData.windowRef.type){var i=qr({name:n,serializedPayload:Gr({data:r.data,metaData:{windowRef:Vr(t)},sender:{domain:o.domain},receiver:{win:window,domain:A()},basic:!0}).serializedData});return window.name=i,i}}({componentName:e.name,parentComponentWindow:d})||""),Fr(window).exports=e.exports({getExports:function(){return l}}),function(e,n){if(!G(e,n))throw new Error("Can not be rendered by domain: "+n)}(i,f),ur(d),window.addEventListener("beforeunload",(function(){S.fireAndForget()})),"onpagehide"in window?window.addEventListener("pagehide",(function(){S.fireAndForget()})):window.addEventListener("unload",(function(){S.fireAndForget()})),j(d,(function(){Xr()})),O({name:n,updateProps:k,close:Xr})})).then((function(){return(e=o.width,n=void 0!==e&&e,t=o.height,r=void 0!==t&&t,i=o.element,Ze(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)&&w!==Zr.POPUP&&nn(r,(function(e){L({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){N(e)}))},getProps:function(){return n||(H(y,f),n)}}}(o);return e.init(),e}})),y=function(e){var n,t="zoid-"+a+"-"+oe(),c=e||{},l=s({props:c}),p=l.eligible,v=l.reason,w=c.onDestroy;c.onDestroy=function(){if(n&&p&&m.splice(m.indexOf(n),1),w)return w.apply(void 0,arguments)};var E=ro({uid:t,options:o});E.init(),p?E.setProps(c):c.onDestroy&&c.onDestroy(),lo.register((function(e){return E.destroy(e||new Error("zoid destroyed all components"))}));var g=function(e){var n=(void 0===e?{}:e).decorate;return y((void 0===n?Ee:n)(c))},_=function(e,t,r){return h.try((function(){if(!p){var n=new Error(v||i+" component is not eligible");return E.destroy(n).then((function(){throw n}))}if(!Z(e))throw new Error("Must pass window to renderTo");return function(e,n){return h.try((function(){if(e.window)return Dr(e.window).getType();if(n){if(n!==Zr.IFRAME&&n!==Zr.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===Zr.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 E.render({target:e,container:t,context:o,rerender:function(){var o=g();return we(n,o),o.renderTo(e,t,r)}})})).catch((function(e){return E.destroy(e).then((function(){throw e}))}))};return n=r({},f(E),E.getExports(),E.getHelpers(),function(){for(var e=d(),n={},o=function(){var o=a[i],u=e[o];n[o]=function(e){var n=E.getProps(),o=r({},e,{parent:{uid:t,props:n,export:E.export}});return u(o)}},i=0,a=Object.keys(e);i<a.length;i++)o();return n}(),{isEligible:function(){return p},clone:g,render:function(e,n){return _(window,e,n)},renderTo:function(e,n,t){return _(e,n,t)}}),p&&m.push(n),n};if(w(),n=Ir("zoid_allow_delegate_"+i,(function(){return!0})),t=Ir("zoid_delegate_"+i,(function(e){var n=e.data;return{parent:ro({uid:n.uid,options:o,overrides:n.overrides,parentWin:e.source})}})),po.register(n.cancel),po.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:y,instances:m,driver:function(e,n){var t={react:oo,angular:uo,vue:io,vue3:ao,angular2:co};if(!t[e])throw new Error("Could not find driver for framework: "+e);return p[e]||(p[e]=t[e].register(a,c,y,n)),p[e]},isChild:v,canRenderTo:function(e){return xr(e,"zoid_allow_delegate_"+i).then((function(e){return e.data})).catch((function(){return!1}))},registerChild:w}}function mo(e,n){switch(e){case"STRING":return"string"==typeof n;case"BOOLEAN":return"boolean"==typeof n;case"NUMBER":return"number"==typeof n&&!Number.isNaN(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 vo=Et((function(e,n){return qt.warn("invalid_option_value",{description:n,location:e,help_url:Yt("GENERAL")})})),wo=function(e,n,t){var r=Array.isArray(t)?"array":typeof t;vo(e,'Expected type "'+n.toLowerCase()+'" but instead received "'+r+'" ('+JSON.stringify(t)+").")};function yo(e,n){if(!mo("STRING",e))throw wo("offer","STRING",e),new Error("offer_validation_error");if(!n.includes(e))throw vo("offer","Ensure valid offer type."),new Error("offer_validation_error")}var Eo,go,_o,No,So,To={account:function(e){var n=e.props.account;if(mo("STRING",n)){if(13===n.length||10===n.length||n.startsWith("client-id:"))return n;vo("account","Ensure the correct Merchant Account ID has been entered.")}else wo("account","STRING",n)},merchantId:function(e){var n=e.props.merchantId;if(void 0!==n){if(mo("STRING",n))return n.split(",").some((function(e){return 13!==e.length&&10!==e.length}))&&vo("merchantId","Ensure the correct Merchant ID has been entered."),n;wo("merchantId","STRING",n)}},customerId:function(e){var n=e.props.customerId;if(void 0!==n)if(mo("STRING",n)){if(13===n.length||10===n.length)return n;vo("customerId","Ensure the correct Merchant ID has been entered.")}else wo("customerId","STRING",n)},amount:function(e){var n=e.props.amount;if(void 0!==n){var t=Number(n);if(mo("NUMBER",t)){if(!(t<0))return t;vo("amount","Ensure value is a positive number.")}else wo("amount","NUMBER",n)}},offer:function(e){var n=e.props.offer,t=[].concat(Object.values(Bn),["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 vo("offer","Ensure valid offer length"),new Error("offer_validation_error: offers cannot exceed 2");var o=r.map((function(e){return yo(e,t),e}));return o[0]===o[1]?o[0]:o.sort().join()}return yo(n,t),n}return n},style:function(e){var n=e.props.style;if(mo("OBJECT",n)){var t=null!=n&&n.layout?n:r({},n,{layout:"text"});if(mo("STRING",t.layout))return t;if(wo("style.layout","STRING",t.layout),mo("STRING",t.preset))return r({layout:"text"},t)}else void 0!==n&&wo("style","OBJECT",n);return{layout:"text"}},currency:function(e){var n=e.props.currency;if(void 0!==n){if(mo("STRING",n))return n;wo("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(mo("STRING",n)){if(t.includes(n))return n;!function(e,n,t){vo("pageType",'Expected one of ["'+n.join('", "').replace(/\|[\w|]+/g,"")+'"] but received "'+t+'".')}(0,t,n)}else wo("pageType","STRING",n)}},buyerCountry:function(e){var n=e.props.buyerCountry;if(void 0!==n){if(mo("STRING",n))return n;wo("buyerCountry","STRING",n)}},language:function(e){var n=e.props.language;if(void 0!==n){if(mo("STRING",n))return n;wo("language","STRING",n)}},locale:function(e){var n=e.props.locale;if(void 0!==n){if(mo("STRING",n))return n;wo("locale","STRING",n)}},ignoreCache:function(e){var n=e.props.ignoreCache;if(void 0!==n){if(mo("BOOLEAN",n))return n;wo("ignoreCache","BOOLEAN",n)}},channel:function(e){var n=e.props.channel;if(void 0!==n){if(mo("STRING",n))return/^[A-Z0-9_]+$/.test(n)?n:void 0;wo("channel","STRING",n)}},ecToken:function(e){var n=e.props.ecToken;if(void 0!==n){if(mo("STRING",n))return n;wo("ecToken","STRING",n)}},buttonSessionId:function(e){var n=e.props.buttonSessionId;if(void 0!==n){if(mo("STRING",n))return n;wo("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 wo("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(",");vo("contextualComponents","Ensure only one type of mark value is provided.")}else vo("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(mo("STRING",n))return n;wo("cspNonce","STRING",n)}},merchantConfig:function(e){var n=e.props.merchantConfig;if(void 0!==n){if(!mo("STRING",n))return;return n}},features:function(e){var n=e.props.features;if(void 0!==n){if(mo("STRING",n))return n;wo("features","STRING",n)}}},Ao=(Eo=0,function(e){return e+" "+(Eo+=1)}),bo=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=St(),p=l[0],m=l[1],v={HIDDEN:n+"-hide",MODAL_SHOW:n+"-show",TRANSITION:n+"-transition"},w=Ao(t.title);return ft("div",{id:n,class:v.HIDDEN,onRender:function(e){var n=e.querySelector("div"),o=function(){a.open=!0,a.previousFocus=document.activeElement,e.classList.remove(v.HIDDEN),p(),requestAnimationFrame((function(){requestAnimationFrame((function(){n.classList.add(v.MODAL_SHOW),a.renderedModal&&window.document.activeElement!==t?t.focus():window.document.activeElement!==r&&r.focus()}))}))},u=function(){a.open=!1,n.classList.remove(v.MODAL_SHOW),m(),setTimeout((function(){e.classList.add(v.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(v.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()}))}},ft("style",{nonce:c},"\n #"+n+"."+v.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+"."+v.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."+v.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."+v.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."+v.MODAL_SHOW+"."+v.TRANSITION+" > iframe:first-of-type {\n opacity: 1;\n z-index: 2;\n }\n\n #"+n+" > div."+v.TRANSITION+" > iframe:last-of-type {\n opacity: 0;\n }\n "),ft("div",null,ft("node",{el:t,title:w}),ft("node",{el:r,title:"Prerender "+w}))).render(yt({doc:o}))}},Ro=t(2),Po=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: #ffffff; \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: 48px;\n height: 48px;\n }\n\n .close-button > button > svg {\n width: 48px;\n height: 48px;\n\n @include mobile {\n margin-left: 15px;\n }\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()}))}))})),ft("html",{lang:"en"},ft("head",null,ft("meta",{httpEquiv:"X-UA-Compatible",content:"IE=edge"}),ft("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})),ft("style",{nonce:o},f),ft("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()}},ft("div",{class:"modal","aria-errormessage":"modal-status"},ft("div",{class:"overlay",onClick:l,"aria-keyshortcuts":"escape"}),ft("div",{class:"top-overlay"}),ft("div",{class:"modal-content"},ft("div",{class:"close-button"},ft("button",{id:"prerender-close-btn",onClick:l,type:"button","aria-label":"Close",tabindex:"0"},"true"===d?ft("svg",{width:"24",height:"24",viewBox:"0 0 48 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ft("rect",{x:"4",width:"40",height:"40",rx:"20",fill:"#EDF0F2"}),ft("path",{d:"M26.5005 13.1245C26.6662 13.1246 26.8247 13.1909 26.9419 13.3081C27.0591 13.4253 27.1254 13.5838 27.1255 13.7495C27.1255 13.9154 27.0592 14.0746 26.9419 14.1919L21.1333 19.9995L26.9419 25.8081C26.9999 25.8661 27.0462 25.9345 27.0776 26.0103C27.109 26.086 27.1254 26.1675 27.1255 26.2495C27.1255 26.3315 27.109 26.413 27.0776 26.4888C27.0462 26.5646 27 26.6338 26.9419 26.6919C26.8839 26.7498 26.8155 26.7962 26.7397 26.8276C26.664 26.859 26.5825 26.8754 26.5005 26.8755C26.4185 26.8755 26.337 26.859 26.2612 26.8276C26.1854 26.7962 26.1162 26.75 26.0581 26.6919L19.8081 20.4419C19.7501 20.384 19.7038 20.3154 19.6724 20.2397C19.6409 20.1639 19.6245 20.0816 19.6245 19.9995C19.6246 19.9175 19.641 19.836 19.6724 19.7603C19.7038 19.6845 19.7501 19.616 19.8081 19.5581L26.0581 13.3081C26.1754 13.1908 26.3346 13.1245 26.5005 13.1245Z",fill:"black"})):ft("svg",{"aria-hidden":"true",width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ft("path",{d:"M12 0L0 12",transform:"translate(12 12)",stroke:"white","stroke-width":"2","stroke-linecap":"round"}),ft("path",{d:"M0 0L12 12",transform:"translate(12 12)",stroke:"white","stroke-width":"2","stroke-linecap":"round"})))),ft("span",{id:"modal-status","aria-label":"modal-status","aria-live":"polite"},"Loading Modal"),ft(Ro.Spinner,{nonce:o}))))).render(yt({doc:t}))},Oo=(go="__paypal_credit_modal__",_o=function(){return function(e){Lr();var n=ho(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}({tag:Gn.MODAL,url:Ft("MODAL"),domain:/\.paypal\.com(:\d+)?$/,containerTemplate:bo,prerenderTemplate:Po,dimensions:{width:"460px",height:"900px"},attributes:{iframe:{title:"PayPal Modal",scrolling:"no"}},props:{account:{type:"string",queryParam:!1,required:!0,value:To.account},merchantId:{type:"string",queryParam:"merchant_id",required:!1,value:To.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:To.customerId},currency:{type:"string",queryParam:!0,required:!1,value:To.currency},amount:{type:"number",queryParam:!0,required:!1,value:To.amount},buyerCountry:{type:"string",queryParam:"buyer_country",required:!1,value:To.buyerCountry},language:{type:"string",queryParam:!0,required:!1,value:To.language},locale:{type:"string",queryParam:!0,required:!1,value:To.locale},offer:{type:"string",queryParam:"credit_type",required:!1,decorate:function(e){return Tt(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:To.ignoreCache},channel:{type:"string",queryParam:"channel",required:!1,default:function(){return"UPSTREAM"},value:To.channel},ecToken:{type:"string",queryParam:"ec_token",required:!1,value:To.ecToken},buttonSessionId:{type:"string",queryParam:"button_session_id",required:!1,value:To.buttonSessionId},pageType:{type:"string",queryParam:"page_type",required:!1,value:To.pageType},contextualComponents:{type:"string",queryParam:"contextual_components",required:!1,value:To.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;qt.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&&"string"==typeof o&&o.includes("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;qt.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;qt.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;qt.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"),qt.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,o=e.event,i=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,m=n.messageRequestId,v=n.language,w=n.locale,y=t.renderStart,E=t.show,g=t.hide,_=c.trackingDetails,N=c.ppDebugId,S=c.language,T=l&&p.slice(10);At("Modal Correlation ID: "+N),qt.addMetaBuilder((function(e){var n;delete e[d];var t,o,i,u,c=e.global,f=void 0===c?{}:c;return delete e.global,(n={global:r({},f,{ts:void 0!==s?s:null!=(t=Jn().getState((function(e){return null==e?void 0:e.ts})))?t:(u=decodeURIComponent(null!=(o=null==(i=document.cookie.split("; ").find((function(e){return e.startsWith("ts_c=")})))?void 0:i.slice(5))?o:""),0===Object.keys(u).length?null:Object.fromEntries(new URLSearchParams(u).entries())),deviceID:$n(),sessionID:Xn()})})[d]={type:"modal",messageRequestId:m,buttonSessionId:a,account:l||p,partnerClientId:T,trackingDetails:_,language_requested:(null==w?void 0:w.replace("_","-"))||v,language_rendered:null!=S?S:"undefined"},n}));var A=Wt("firstModalRenderDelay");qt.info("modal_render",{index:d,refIndex:h,duration:Nt()-y}),qt.track({index:d,refIndex:h,et:"CLIENT_IMPRESSION",event_type:"modal_rendered",modal:u.join("_").toLowerCase()+":"+(f?f.toLowerCase():u[0]),partner_attribution_id:{}[zt.SDK_SETTINGS.PARTNER_ATTRIBUTION_ID],first_modal_render_delay:Math.round(A).toString(),render_duration:Math.round(Nt()-y).toString()}),"function"!=typeof i||t.products&&JSON.stringify(u)===JSON.stringify(t.products)||i({products:u,show:E,hide:g}),t.products=Array.isArray(u)&&u.map(Tt),o.trigger("ready")}}},index:{type:"string",queryParam:!1,value:function(e){var n,t=e.state;return t.index||(t.index=(n=Lt().index,Mt({index:n+1}),n).toString()),t.index}},payerId:{type:"string",queryParam:"payer_id",decorate:function(e){var n=e.props;return n.account.startsWith("client-id:")?null:n.account},default:function(){return""},required:!1},clientId:{type:"string",queryParam:"client_id",decorate:function(e){var n=e.props;return n.account.startsWith("client-id:")?n.account.slice(10):null},default:function(){return""},required:!1},sdkMeta:{type:"string",queryParam:!0,sendToChild:!1,required:!1,value:Yn},env:{type:"string",queryParam:!0,value:jn},version:{type:"string",queryParam:!0,value:Vn},deviceID:{type:"string",queryParam:!0,value:$n},sessionID:{type:"string",queryParam:!0,value:Xn},scriptUID:{type:"string",queryParam:!0,value:un},messageRequestId:{type:"string",queryParam:"message_request_id",value:oe,decorate:function(e){var n=e.props;return At("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:et},devTouchpoint:{type:"boolean",queryParam:!0,required:!1,value:nt},integrationType:{type:"string",queryParam:!0,required:!1,value:function(){return"STANDALONE_MODAL"}},cspNonce:{type:"string",required:!1,default:Zn,value:To.cspNonce},disableSetCookie:{type:"boolean",queryParam:!0,required:!1,value:Wn},features:{type:"string",queryParam:"features",required:!1,value:function(e){return function(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}(To.features({props:e.props}))}},experimentExperience:{type:"string",queryParam:"experiment_experience",required:!1},experimentName:{type:"string",queryParam:"experiment_name",required:!1}}})},function(){var e;return Lt()[go]||Mt(((e={})[go]=_o(),e)),Lt()[go]}),Co=(No=["account","merchantId","buyerCountry","language","locale"],So=new Map,function(e,n){void 0===n&&(n=!1);var t=JSON.stringify(No.map((function(n){return e[n]})));return So.has(t)&&!n||So.set(t,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.locale,s=e.ignoreCache,d=e.offer,f=e.onReady,l=e.onCalculate,p=e.onError,m=e.onApply,v=e.onShow,w=e.onClose,y=e.channel,E=e.ecToken,g=e.contextualComponents,_=e.cspNonce,N=e.integrationIdentifier,S=e.features,T=e.buttonSessionId;jt("firstModalRenderDelay");var A,b=Oo()({account:n,merchantId:t,customerId:r,currency:o,amount:i,buyerCountry:a,language:u,locale:c,ignoreCache:s,offer:d,onReady:f,onCalculate:l,onError:p,onApply:m,onShow:v,onClose:w,channel:y,ecToken:E,contextualComponents:g,cspNonce:_,integrationIdentifier:N,features:S,buttonSessionId:T}),R=function(e,n,t){void 0===e&&(e="body"),void 0===t&&(t={intent:"render"});var r="true"===(null==n?void 0:n.prequalExperience)||function(){try{return window.top.document.body&&window.top}catch(e){return}}()!==window&&!(null==S?void 0:S.includes("new-checkout-design"))?"popup":"iframe";if(A&&"popup"!==r)return A.then((function(){return n&&b.updateProps(n)}));A&&"popup"===r&&Object.assign(b,b.clone());var o=new h((function(e){return b.event.once("ready",e)}));b.state.renderStart=Nt();var i="show"===t.intent?h.resolve():kt.then((function(){return h.delay(0)}));return A=i.then((function(){return h.all([n&&b.updateProps(n),b.render(e,r),o])})).then((function(){return Ht.trigger("modal-render")}))},P=function(e){var n;void 0===e&&(e={});var t,r,o,i,a=Ot(e)?Ct(e):e;Ot(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"),A=R("body",a,{intent:"show"});var u=Tt(e.offer),c="DE"===(null==(n=e)?void 0:n.offerCountry)?["PAY_LATER_LONG_TERM","PAY_LATER_PAY_IN_1","PAY_LATER_SHORT_TERM"]:b.state.products;return void 0!==u&&"NONE"!==u&&Array.isArray(b.state.products)&&Array.isArray(c)&&!c.find((function(e){return e===u}))?(qt.warn("invalid_option_value",{location:"offer",description:'Expected one of ["'+b.state.products.join('", "')+'"] but received "'+e.offer+'".',help_url:Yt("GENERAL")}),h.resolve()):(b.state.open=!0,b.event.trigger("modal-show"),A)},O=function(){return A=R("body"),b.event.trigger("modal-hide"),A};return b.state.show=P,b.state.hide=O,{render:R,show:P,hide:O,updateProps:function(e){b.updateProps(e)}}}(e)),So.get(t)}),Io=function(e){return Co(Rt(Lt().config,e))};jt("scriptLoadDelay"),function(){Oo(),function(){var e=Kn();if(e&&!e[Dt]){At("Script:",{debugObj:e});var n=Ct(e);Mt({config:r({},Lt().config,{account:void 0,merchantId:void 0,currency:void 0,pageType:void 0},n)}),e[Dt]=!0}}();var e,n=zn();window[n]=null!=(e=window[n])?e:{},window[n].MessagesModal=Io,Qn()||Ut.then((function(){if(Lt().config.account){var e=xt("[data-pp-messagesmodal]");if(e.length>0){var n=Rt(Lt().config,Ct(e[0])),t=Io(n);e.forEach((function(e){e.setAttribute("tabindex",0),e.addEventListener("click",(function(){return t.show(e)}))}))}}}))}()}]);
|
|
3
3
|
//# sourceMappingURL=modal.js.map
|