@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=9)}([,,function(e,n,t){e.exports=t(8)},function(e,n){e.exports=function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return{}.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}([function(e,n,t){"use strict";function r(e,n){for(var t=[],r=0;r<e.length;r++){var o=e[r].render(n);if(o)if(Array.isArray(o))for(var i=0;i<o.length;i++){var a=o[i];a&&t.push(a)}else t.push(o)}return t}t.r(n),t.d(n,"Spinner",(function(){return E})),t.d(n,"SpinnerPage",(function(){return _})),t.d(n,"VenmoSpinner",(function(){return 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,l,f=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 y(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 w=((l={}).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 y(o,e),g(o,e,t,(function(e){return r(e,n)})),o}throw new TypeError("Unhandleable node")},o=function(e){if("component"===e.type)return e.renderComponent(o);if("text"===e.type)return 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 y(i,e),g(i,e,t,o),i}throw new TypeError("Unhandleable node")};return o}({doc:r}));i.children.length;)o.appendChild(i.children[0])}))},l.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},l.default=function(e,n,t){for(var r=0,o=n.renderChildren(t);r<o.length;r++)e.appendChild(o[r])},l);function g(e,n,t,r){if(n.props.hasOwnProperty("innerHTML")){if(n.children.length)throw new Error("Expected no children to be passed when innerHTML prop is set");var o=n.props.innerHTML;if("string"!=typeof o)throw new TypeError("innerHTML prop must be string");"script"===n.name?e.text=o:(e.innerHTML=o,function(e,n){void 0===n&&(n=window.document);for(var t=0,r=e.querySelectorAll("script");t<r.length;t++){var o=r[t],i=o.parentNode;if(i){var a=n.createElement("script");a.text=o.textContent,i.replaceChild(a,o)}}}(e,t))}else(w[n.name]||w.default)(e,n,r)}function E(e){return f("div",{class:"preloader spinner"},f("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"}),f("div",{class:"spinWrap"},f("p",{class:"spinnerImage"}),f("p",{class:"loader"})))}function _(e,n){var t=e.nonce;return f("html",null,f("head",null,f("title",null,"PayPal"),f("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})),f("body",null,f(E,{nonce:t}),n))}function N(e){return f(p,null,f("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'}),f("div",{class:"spinner"},f("div",null),f("div",null),f("div",null),f("div",null),f("div",null),f("div",null),f("div",null),f("div",null),f("div",null),f("div",null),f("div",null),f("div",null)))}function S(e,n){var t=e.nonce;return f("html",null,f("head",null,f("title",null,"Venmo"),f("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})),f("body",null,f(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 I})),t.d(n,"DEFAULT_INTENT",(function(){return C})),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 M})),t.d(n,"DEFAULT_VAULT",(function(){return L})),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 q})),t.d(n,"FPTI_USER_ACTION",(function(){return W})),t.d(n,"FPTI_DATA_SOURCE",(function(){return G})),t.d(n,"FPTI_FEED",(function(){return j})),t.d(n,"FPTI_SDK_NAME",(function(){return Z})),t.d(n,"FUNDING",(function(){return r})),t.d(n,"FUNDING_BRAND_LABEL",(function(){return o})),t.d(n,"CARD",(function(){return i})),t.d(n,"WALLET_INSTRUMENT",(function(){return a})),t.d(n,"FUNDING_PRODUCTS",(function(){return u})),t.d(n,"COUNTRY",(function(){return s})),t.d(n,"LANG",(function(){return d})),t.d(n,"COUNTRY_LANGS",(function(){return l})),t.d(n,"BASE_SDK_METRIC_NAMESPACE",(function(){return K})),t.d(n,"payPalWebV5Dimensions",(function(){return z})),t.d(n,"INTENT",(function(){return f})),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 y})),t.d(n,"SDK_SETTINGS",(function(){return w})),t.d(n,"SDK_DATA_ATTRIBUTES",(function(){return g})),t.d(n,"SDK_QUERY_KEYS",(function(){return E})),t.d(n,"COMPONENTS",(function(){return _})),t.d(n,"DEBUG",(function(){return N})),t.d(n,"QUERY_BOOL",(function(){return S})),t.d(n,"UNKNOWN",(function(){return b})),t.d(n,"PROTOCOL",(function(){return T})),t.d(n,"PAGE_TYPES",(function(){return A})),t.d(n,"MERCHANT_ID_MAX",(function(){return R})),t.d(n,"DISPLAY_ONLY_VALUES",(function(){return P})),t.d(n,"PLATFORM",(function(){return Y})),t.d(n,"TYPES",(function(){return V}));var r={PAYPAL:"paypal",VENMO:"venmo",APPLEPAY:"applepay",ITAU:"itau",CREDIT:"credit",PAYLATER:"paylater",CARD:"card",IDEAL:"ideal",SEPA:"sepa",BANCONTACT:"bancontact",GIROPAY:"giropay",SOFORT:"sofort",EPS:"eps",MYBANK:"mybank",P24:"p24",PAYU:"payu",BLIK:"blik",TRUSTLY:"trustly",OXXO:"oxxo",BOLETO:"boleto",BOLETOBANCARIO:"boletobancario",WECHATPAY:"wechatpay",MERCADOPAGO:"mercadopago",MULTIBANCO:"multibanco",SATISPAY:"satispay",PAIDY:"paidy",ZIMPLER:"zimpler",MAXIMA:"maxima"},o={PAYPAL:"PayPal",CREDIT:"PayPal Credit"},i={VISA:"visa",MASTERCARD:"mastercard",AMEX:"amex",DISCOVER:"discover",HIPER:"hiper",ELO:"elo",JCB:"jcb",CUP:"cup",DINERS:"diners",MAESTRO:"maestro",EFTPOS:"eftpos",CB_NATIONALE:"cb_nationale"},a={BALANCE:"balance",CARD:"card",BANK:"bank",CREDIT:"credit"},u={PAY_IN_3:"payIn3",PAY_IN_4:"payIn4",PAYLATER:"paylater",CREDIT:"credit"},c=[r.IDEAL,r.BANCONTACT,r.GIROPAY,r.SOFORT,r.EPS,r.MYBANK,r.P24,r.PAYU,r.BLIK,r.TRUSTLY,r.OXXO,r.BOLETO,r.BOLETOBANCARIO,r.WECHATPAY,r.MERCADOPAGO,r.MULTIBANCO,r.SATISPAY,r.PAIDY,r.MAXIMA,r.ZIMPLER],s={AD:"AD",AE:"AE",AG:"AG",AI:"AI",AL:"AL",AM:"AM",AN:"AN",AO:"AO",AR:"AR",AT:"AT",AU:"AU",AW:"AW",AZ:"AZ",BA:"BA",BB:"BB",BE:"BE",BF:"BF",BG:"BG",BH:"BH",BI:"BI",BJ:"BJ",BM:"BM",BN:"BN",BO:"BO",BR:"BR",BS:"BS",BT:"BT",BW:"BW",BY:"BY",BZ:"BZ",CA:"CA",CD:"CD",CG:"CG",CH:"CH",CI:"CI",CK:"CK",CL:"CL",CM:"CM",CN:"CN",CO:"CO",CR:"CR",CV:"CV",CY:"CY",CZ:"CZ",DE:"DE",DJ:"DJ",DK:"DK",DM:"DM",DO:"DO",DZ:"DZ",EC:"EC",EE:"EE",EG:"EG",ER:"ER",ES:"ES",ET:"ET",FI:"FI",FJ:"FJ",FK:"FK",FM:"FM",FO:"FO",FR:"FR",GA:"GA",GB:"GB",GD:"GD",GE:"GE",GF:"GF",GI:"GI",GL:"GL",GM:"GM",GN:"GN",GP:"GP",GR:"GR",GT:"GT",GW:"GW",GY:"GY",HK:"HK",HN:"HN",HR:"HR",HU:"HU",ID:"ID",IE:"IE",IL:"IL",IN:"IN",IS:"IS",IT:"IT",JM:"JM",JO:"JO",JP:"JP",KE:"KE",KG:"KG",KH:"KH",KI:"KI",KM:"KM",KN:"KN",KR:"KR",KW:"KW",KY:"KY",KZ:"KZ",LA:"LA",LC:"LC",LI:"LI",LK:"LK",LS:"LS",LT:"LT",LU:"LU",LV:"LV",MA:"MA",MC:"MC",MD:"MD",ME:"ME",MG:"MG",MH:"MH",MK:"MK",ML:"ML",MN:"MN",MQ:"MQ",MR:"MR",MS:"MS",MT:"MT",MU:"MU",MV:"MV",MW:"MW",MX:"MX",MY:"MY",MZ:"MZ",NA:"NA",NC:"NC",NE:"NE",NF:"NF",NG:"NG",NI:"NI",NL:"NL",NO:"NO",NP:"NP",NR:"NR",NU:"NU",NZ:"NZ",OM:"OM",PA:"PA",PE:"PE",PF:"PF",PG:"PG",PH:"PH",PL:"PL",PM:"PM",PN:"PN",PT:"PT",PW:"PW",PY:"PY",QA:"QA",RE:"RE",RO:"RO",RS:"RS",RU:"RU",RW:"RW",SA:"SA",SB:"SB",SC:"SC",SE:"SE",SG:"SG",SH:"SH",SI:"SI",SJ:"SJ",SK:"SK",SL:"SL",SM:"SM",SN:"SN",SO:"SO",SR:"SR",ST:"ST",SV:"SV",SZ:"SZ",TC:"TC",TD:"TD",TG:"TG",TH:"TH",TJ:"TJ",TM:"TM",TN:"TN",TO:"TO",TR:"TR",TT:"TT",TV:"TV",TW:"TW",TZ:"TZ",UA:"UA",UG:"UG",US:"US",UY:"UY",VA:"VA",VC:"VC",VE:"VE",VG:"VG",VN:"VN",VU:"VU",WF:"WF",WS:"WS",YE:"YE",YT:"YT",ZA:"ZA",ZM:"ZM",ZW:"ZW"},d={AR:"ar",BG:"bg",CS:"cs",DA:"da",DE:"de",EL:"el",EN:"en",ES:"es",ET:"et",FI:"fi",FR:"fr",HE:"he",HU:"hu",ID:"id",IT:"it",JA:"ja",KO:"ko",LT:"lt",LV:"lv",MS:"ms",NL:"nl",NO:"no",PL:"pl",PT:"pt",RO:"ro",RU:"ru",SI:"si",SK:"sk",SL:"sl",SQ:"sq",SV:"sv",TH:"th",TL:"tl",TR:"tr",VI:"vi",ZH:"zh",ZH_HANT:"zh_Hant"},l={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]},f={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",y="/web-sdk/v6/bridge",w={AMOUNT:"data-amount",API_STAGE_HOST:"data-api-stage-host",CLIENT_METADATA_ID:"data-client-metadata-id",CLIENT_TOKEN:"data-client-token",CSP_NONCE:"data-csp-nonce",ENABLE_3DS:"data-enable-3ds",JS_SDK_LIBRARY:"data-js-sdk-library",MERCHANT_ID:"data-merchant-id",NAMESPACE:"data-namespace",PAGE_TYPE:"data-page-type",PARTNER_ATTRIBUTION_ID:"data-partner-attribution-id",POPUPS_DISABLED:"data-popups-disabled",SDK_INTEGRATION_SOURCE:"data-sdk-integration-source",SDK_TOKEN:"data-sdk-client-token",SHOPPER_SESSION_ID:"data-shopper-session-id",STAGE_HOST:"data-stage-host",USER_EXPERIENCE_FLOW:"data-user-experience-flow",USER_ID_TOKEN:"data-user-id-token"},g=w,E={COMPONENTS:"components",ENV:"env",DEBUG:"debug",CACHEBUST:"cachebust",CLIENT_ID:"client-id",MERCHANT_ID:"merchant-id",LOCALE:"locale",CURRENCY:"currency",INTENT:"intent",COMMIT:"commit",VAULT:"vault",BUYER_COUNTRY:"buyer-country",ENABLE_FUNDING:"enable-funding",DISABLE_FUNDING:"disable-funding",DISABLE_CARD:"disable-card",INTEGRATION_DATE:"integration-date",STAGE_HOST:"stage-host",STAGE_ALIAS:"stage-alias",CDN_REGISTRY:"cdn-registry",VERSION:"version"},_={BUTTONS:"buttons",CARD_FIELDS:"card-fields",HOSTED_BUTTONS:"hosted-buttons",HOSTED_FIELDS:"hosted-fields"},N={TRUE:!0,FALSE:!1},S={TRUE:"true",FALSE:"false"},b="unknown",T={HTTP:"http",HTTPS:"https"},A={HOME:"home",PRODUCT:"product",CART:"cart",CHECKOUT:"checkout",PRODUCT_LISTING:"product-listing",SEARCH_RESULTS:"search-results",PRODUCT_DETAILS:"product-details",MINI_CART:"mini-cart"},R=10,P={VAULTABLE:"vaultable"},O=s.US,I=m.USD,C=f.CAPTURE,x=p.TRUE,D=p.TRUE,M=p.TRUE,L=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"},q={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"},G={PAYMENTS_SDK:"checkout"},j={PAYMENTS_SDK:"payments_sdk"},Z={PAYMENTS_SDK:"payments_sdk"},K="pp.sdks.ppcp",z={sdk_platform:"web",major_version:"5"},Y={DESKTOP:"desktop",MOBILE:"mobile"},V=!0}])},function(e,n,t){"use strict";function r(e,n){return(r=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function o(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,r(e,n)}function i(){return(i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function a(e){try{if(!e)return!1;if("undefined"!=typeof Promise&&e instanceof Promise)return!0;if("undefined"!=typeof window&&"function"==typeof window.Window&&e instanceof window.Window)return!1;if("undefined"!=typeof window&&"function"==typeof window.constructor&&e instanceof window.constructor)return!1;var n={}.toString;if(n){var t=n.call(e);if("[object Window]"===t||"[object global]"===t||"[object DOMWindow]"===t)return!1}if("function"==typeof e.then)return!0}catch(e){return!1}return!1}t.r(n);var u,c=[],s=[],d=0;function l(){if(!d&&u){var e=u;u=null,e.resolve()}}function f(){d+=1}function p(){d-=1,l()}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;f();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,f();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,l=void 0;if(n)try{l=c?c(this.value):this.value}catch(e){d.reject(e);continue}else if(t){if(!s){d.reject(this.error);continue}try{l=s(this.error)}catch(e){d.reject(e);continue}}if(l instanceof e&&(l.resolved||l.rejected)){var h=l;h.resolved?d.resolve(h.value):d.reject(h.error),h.errorHandled=!0}else a(l)?l instanceof e&&(l.resolved||l.rejected)?l.resolved?d.resolve(l.value):d.reject(l.error):o(l,d):d.resolve(l)}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;f();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,l(),n;var n},e}();function m(e){return"[object RegExp]"==={}.toString.call(e)}var v={IFRAME:"iframe",POPUP:"popup"},y="Call was rejected by callee.\r\n";function w(e){return void 0===e&&(e=window),e.location.protocol}function g(e){if(void 0===e&&(e=window),e.mockDomain){var n=e.mockDomain.split("//")[0];if(n)return n}return w(e)}function E(e){return void 0===e&&(e=window),"about:"===g(e)}function _(e){if(void 0===e&&(e=window),e)try{if(e.parent&&e.parent!==e)return e.parent}catch(e){}}function 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 b(e){void 0===e&&(e=window);var n=e.location;if(!n)throw new Error("Can not read window location");var t=w(e);if(!t)throw new Error("Can not read window protocol");if("file:"===t)return"file://";if("about:"===t){var r=_(e);return r&&S()?b(r):"about://"}var o=n.host;if(!o)throw new Error("Can not read window host");return t+"//"+o}function T(e){void 0===e&&(e=window);var n=b(e);return n&&e.mockDomain&&0===e.mockDomain.indexOf("mock:")?e.mockDomain:n}function A(e){if(!function(e){try{if(e===window)return!0}catch(e){}try{var n=Object.getOwnPropertyDescriptor(e,"location");if(n&&!1===n.enumerable)return!1}catch(e){}try{if(E(e)&&S())return!0}catch(e){}try{if(function(e){return void 0===e&&(e=window),"mock:"===g(e)}(e)&&S())return!0}catch(e){}try{if(b(e)===b(window))return!0}catch(e){}return!1}(e))return!1;try{if(e===window)return!0;if(E(e)&&S())return!0;if(T(window)===T(e))return!0}catch(e){}return!1}function R(e){if(!A(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 I(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=I(o);i<a.length;i++)n.push(a[i])}return n}function C(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=I(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=C(e);if(!n)throw new Error("Can not determine top window");var t=[].concat(I(n),[n]);return-1===t.indexOf(e)&&(t=[].concat(t,[e],I(e))),t}var D=[],M=[];function L(e,n){void 0===n&&(n=!0);try{if(e===window)return!1}catch(e){return!0}try{if(!e)return!0}catch(e){return!0}try{if(e.closed)return!0}catch(e){return!e||e.message!==y}if(n&&A(e))try{if(e.mockclosed)return!0}catch(e){}try{if(!e.parent||!e.top)return!0}catch(e){}var t=function(e,n){for(var t=0;t<e.length;t++)try{if(e[t]===n)return t}catch(e){}return-1}(D,e);if(-1!==t){var r=M[t];if(r&&function(e){if(!e.contentWindow)return!0;if(!e.parentNode)return!0;var n=e.ownerDocument;if(n&&n.documentElement&&!n.documentElement.contains(e)){for(var t=e;t.parentNode&&t.parentNode!==t;)t=t.parentNode;if(!t.host||!n.documentElement.contains(t.host))return!0}return!1}(r))return!0}return!1}function F(e,n){for(var t=O(e),r=0;r<t.length;r++){var o=t[r];try{if(A(o)&&o.name===n&&-1!==t.indexOf(o))return o}catch(e){}}try{if(-1!==t.indexOf(e.frames[n]))return e.frames[n]}catch(e){}try{if(-1!==t.indexOf(e[n]))return e[n]}catch(e){}}function 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=C(e)||e,r=C(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 q(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 q(e,n)})))}function W(e){return e.match(/^(https?|mock|file):\/\//)?e.split("/").slice(0,3).join("/"):T()}function G(e,n,t,r){var o;void 0===t&&(t=1e3),void 0===r&&(r=1/0);var i=function(){if(L(e))return o&&clearTimeout(o),n();r<=0?clearTimeout(o):(r-=t,o=setTimeout(i,t))};return i(),{cancel:function(){o&&clearTimeout(o)}}}function j(e){try{if(e===window)return!0}catch(e){if(e&&e.message===y)return!0}try{if("[object Window]"==={}.toString.call(e))return!0}catch(e){if(e&&e.message===y)return!0}try{if(window.Window&&e instanceof window.Window)return!0}catch(e){if(e&&e.message===y)return!0}try{if(e&&e.self===e)return!0}catch(e){if(e&&e.message===y)return!0}try{if(e&&e.parent===e)return!0}catch(e){if(e&&e.message===y)return!0}try{if(e&&e.top===e)return!0}catch(e){if(e&&e.message===y)return!0}try{if(e&&"__unlikely_value__"===e.__cross_domain_utils_window_check__)return!1}catch(e){return!0}try{if("postMessage"in e&&"self"in e&&"location"in e)return!0}catch(e){}return!1}function Z(e){if(A(e))return 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=Z(e);if(n&&n.parentElement)return void n.parentElement.removeChild(n)}try{e.close()}catch(e){}}function z(e,n){for(var t=0;t<e.length;t++)try{if(e[t]===n)return t}catch(e){}return-1}var Y,V=function(){function e(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>0)+"__",function(){if("undefined"==typeof WeakMap)return!1;if(void 0===Object.freeze)return!1;try{var e=new WeakMap,n={};return Object.freeze(n),e.set(n,"__testvalue__"),"__testvalue__"===e.get(n)}catch(e){return!1}}())try{this.weakmap=new WeakMap}catch(e){}this.keys=[],this.values=[]}var n=e.prototype;return n._cleanupClosedWindows=function(){for(var e=this.weakmap,n=this.keys,t=0;t<n.length;t++){var r=n[t];if(j(r)&&L(r)){if(e)try{e.delete(r)}catch(e){}n.splice(t,1),this.values.splice(t,1),t-=1}}},n.isSafeToReadWrite=function(e){return!j(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=z(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=z(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=z(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!==z(this.keys,e)},n.getOrSet=function(e,n){if(this.has(e))return this.get(e);var t=n();return this.set(e,t),t},e}();function J(e){return(J=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Q(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function X(e,n,t){return(X=Q()?Reflect.construct:function(e,n,t){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return t&&r(i,t.prototype),i}).apply(null,arguments)}function $(e){var n="function"==typeof Map?new Map:void 0;return($=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return X(e,arguments,J(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r(t,e)})(e)}function ee(e){var n=!1;try{(e instanceof window.Element||null!==e&&"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument)&&(n=!0)}catch(e){}return n}function ne(e){return e.name||e.__name__||e.displayName||"anonymous"}function te(e,n){try{delete e.name,e.name=n}catch(e){}return e.__name__=e.displayName=n,e}function re(e){if("function"==typeof btoa)return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,n){return String.fromCharCode(parseInt(n,16))}))).replace(/[=]/g,"");if("undefined"!=typeof Buffer)return Buffer.from(e,"utf8").toString("base64").replace(/[=]/g,"");throw new Error("Can not find window.btoa or Buffer")}function oe(){var e="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,(function(){return e.charAt(Math.floor(Math.random()*e.length))}))+"_"+re((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function ie(){if("undefined"!=typeof window)return window;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("No global found")}function ae(e){try{return JSON.stringify([].slice.call(e),(function(e,n){return"function"==typeof n?"memoize["+function(e){if(Y=Y||new V,null==e||"object"!=typeof e&&"function"!=typeof e)throw new Error("Invalid object");var n=Y.get(e);return n||(n=typeof e+":"+oe(),Y.set(e,n)),n}(n)+"]":ee(n)?{}:n}))}catch(e){throw new Error("Arguments not serializable -- can not be used to memoize")}}function ue(){return{}}var ce=0,se=0;function de(e,n){void 0===n&&(n={});var t,r,o=n.thisNamespace,i=void 0!==o&&o,a=n.time,u=ce;ce+=1;var c=function(){for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];var s,d;u<se&&(t=null,r=null,u=ce,ce+=1),s=i?(r=r||new V).getOrSet(this,ue):t=t||{};try{d=ae(o)}catch(n){return e.apply(this,arguments)}var l=s[d];if(l&&a&&Date.now()-l.time<a&&(delete s[d],l=null),l)return l.value;var f=Date.now(),p=e.apply(this,arguments);return s[d]={time:f,value:p},p};return c.reset=function(){t=null,r=null},te(c,(n.name||ne(e))+"::memoized")}function le(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 fe(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 ye(e,n){if(!n)return e;if(Object.assign)return Object.assign(e,n);for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}function we(e,n){void 0===n&&(n=Boolean);var t={};for(var r in e)e.hasOwnProperty(r)&&n(e[r],r)&&(t[r]=e[r]);return t}function ge(e){return e}function Ee(e,n){var t;return function r(){t=setTimeout((function(){e(),r()}),n)}(),{cancel:function(){clearTimeout(t)}}}function _e(){var e={},n={},t={on:function(e,t){var r=n[e]=n[e]||[];r.push(t);var o=!1;return{cancel:function(){o||(o=!0,r.splice(r.indexOf(t),1))}}},once:function(e,n){var r=t.on(e,(function(){r.cancel(),n()}));return r},trigger:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];var i=n[e],a=[];if(i)for(var u=function(){var e=i[c];a.push(h.try((function(){return e.apply(void 0,r)})))},c=0;c<i.length;c++)u();return h.all(a).then(pe)},triggerOnce:function(n){if(e[n])return h.resolve();e[n]=!0;for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.trigger.apply(t,[n].concat(o))},reset:function(){n={}}};return t}function 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 be(e){return[].slice.call(e)}function Te(e){return"object"==typeof(n=e)&&null!==n&&"[object Object]"==={}.toString.call(e);var n}function Ae(e){if(!Te(e))return!1;var n=e.constructor;if("function"!=typeof n)return!1;var t=n.prototype;return!!Te(t)&&!!t.hasOwnProperty("isPrototypeOf")}function 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(Ae(i)||Array.isArray(i))&&(i=Re(i,n,o)),i}))},a=0;a<r;a++)i(a);return o}if(Ae(e)){var u={},c=function(r){if(!e.hasOwnProperty(r))return 1;Se(u,r,(function(){var o=t?t+"."+r:""+r,i=n(e[r],r,o);return(Ae(i)||Array.isArray(i))&&(i=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 Ie(e,n,t){if(e.hasOwnProperty(n))return e[n];var r=t();return e[n]=r,r}function Ce(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 o(n,e),n}($(Error));function Me(){var e=document.body;if(!e)throw new Error("Body element not found");return e}function Le(){return Boolean(document.body)&&"complete"===document.readyState}function Fe(){return Boolean(document.body)&&"interactive"===document.readyState}function He(e){return encodeURIComponent(e)}function ke(e){return fe(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=i({},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 qe(){return fe(qe,(function(){try{if("undefined"==typeof window)return!1;if(window.localStorage){var e=Math.random().toString();window.localStorage.setItem("__test__localStorage__",e);var n=window.localStorage.getItem("__test__localStorage__");if(window.localStorage.removeItem("__test__localStorage__"),e===n)return!0}}catch(e){}return!1}))}function We(e,n){e.appendChild(n)}function Ge(e,n){return void 0===n&&(n=document),ee(e)?e:"string"==typeof e?n.querySelector(e):void 0}function je(e){return new h((function(n,t){var r=ve(e),o=Ge(e);if(o)return n(o);if(Le())return t(new Error("Document is ready and element "+r+" does not exist"));var i=setInterval((function(){return(o=Ge(e))?(n(o),void clearInterval(i)):Le()?(clearInterval(i),t(new Error("Document is ready and element "+r+" does not exist"))):void 0}),10)}))}de((function(){return new h((function(e){if(Le()||Fe())return e();var n=setInterval((function(){if(Le()||Fe())return clearInterval(n),e()}),10)}))}));var Ze,Ke=function(e){function n(){return e.apply(this,arguments)||this}return o(n,e),n}(De);function ze(e){if((Ze=Ze||new V).has(e)){var n=Ze.get(e);if(n)return n}var t=new h((function(n,t){e.addEventListener("load",(function(){(function(e){if(function(){for(var e=0;e<D.length;e++){var n=!1;try{n=D[e].closed}catch(e){}n&&(M.splice(e,1),D.splice(e,1))}}(),e&&e.contentWindow)try{D.push(e.contentWindow),M.push(e)}catch(e){}})(e),n(e)})),e.addEventListener("error",(function(r){e.contentWindow?n(e):t(r)}))}));return Ze.set(e,t),t}function Ye(e){return ze(e).then((function(e){if(!e.contentWindow)throw new Error("Could not find window in iframe");return e.contentWindow}))}function Ve(e,n){void 0===e&&(e={});var t=e.style||{},r=function(e,n,t){void 0===e&&(e="div"),void 0===n&&(n={}),e=e.toLowerCase();var r,o,i,a=document.createElement(e);if(n.style&&ye(a.style,n.style),n.class&&(a.className=n.class.join(" ")),n.id&&a.setAttribute("id",n.id),n.attributes)for(var u=0,c=Object.keys(n.attributes);u<c.length;u++){var s=c[u];a.setAttribute(s,n.attributes[s])}if(n.styleSheet&&(r=a,o=n.styleSheet,void 0===i&&(i=window.document),r.styleSheet?r.styleSheet.cssText=o:r.appendChild(i.createTextNode(o))),n.html){if("iframe"===e)throw new Error("Iframe html can not be written unless container provided and iframe in DOM");a.innerHTML=n.html}return a}("iframe",{attributes:i({allowTransparency:"true"},e.attributes||{}),style:i({backgroundColor:"transparent",border:"none"},t),html:e.html,class:e.class}),o=window.navigator.userAgent.match(/MSIE|Edge/i);return r.hasAttribute("id")||r.setAttribute("id",oe()),ze(r),n&&function(e,n){void 0===n&&(n=document);var t=Ge(e,n);if(t)return t;throw new Error("Can not find element: "+ve(e))}(n).appendChild(r),(e.url||o)&&r.setAttribute("src",e.url||"about:blank"),r}function Je(e,n,t){return e.addEventListener(n,t),{cancel:function(){e.removeEventListener(n,t)}}}function Qe(e){e.style.setProperty("display","")}function Xe(e){e.style.setProperty("display","none","important")}function $e(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function en(e){return!(e&&e.parentNode&&e.ownerDocument&&e.ownerDocument.documentElement&&e.ownerDocument.documentElement.contains(e))}function nn(e,n,t){var r=void 0===t?{}:t,o=r.width,i=void 0===o||o,a=r.height,u=void 0===a||a,c=r.interval,s=void 0===c?100:c,d=r.win,l=void 0===d?window:d,f=e.offsetWidth,p=e.offsetHeight,h=!1;n({width:f,height:p});var m,v,y=function(){if(!h&&function(e){return Boolean(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}(e)){var t=e.offsetWidth,r=e.offsetHeight;(i&&t!==f||u&&r!==p)&&n({width:t,height:r}),f=t,p=r}};return l.addEventListener("resize",y),void 0!==l.ResizeObserver?((m=new l.ResizeObserver(y)).observe(e),v=Ee(y,10*s)):void 0!==l.MutationObserver?((m=new l.MutationObserver(y)).observe(e,{attributes:!0,childList:!0,subtree:!0,characterData:!1}),v=Ee(y,10*s)):v=Ee(y,s),{cancel:function(){h=!0,m.disconnect(),window.removeEventListener("resize",y),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 fe(cn,(function(){var e,t="__"+n+"_storage__",i=oe();function a(n){var r,o=qe();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 ln(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,l=e.timeout,f=void 0===l?0:l;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,l=Object.keys(i);s<l.length;s++){var p=l[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,y=Object.keys(m);v<y.length;v++){var w=y[v];o[w.toLowerCase()]=m[w]}var g=new d.XMLHttpRequest;for(var E in g.addEventListener("load",(function(){var o=function(e){void 0===e&&(e="");for(var n={},t=0,r=e.trim().split("\n");t<r.length;t++){var o=r[t].split(":"),i=o[0],a=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),g.addEventListener("error",(function(e){t(new Error("Request to "+r.toLowerCase()+" "+n+" failed: "+e.toString()+"."))}),!1),g.open(r,n,!0),o)o.hasOwnProperty(E)&&g.setRequestHeader(E,o[E]);a?c=JSON.stringify(a):u&&(c=Object.keys(u).map((function(e){return encodeURIComponent(e)+"="+(u?encodeURIComponent(u[e]):"")})).join("&")),g.timeout=f,g.ontimeout=function(){t(new Error("Request to "+r.toLowerCase()+" "+n+" has timed out"))},g.send(c)}))}function fn(e){return"string"==typeof e&&/^[0-9]+%$/.test(e)}function 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):fn(e)?e:hn(e)}function vn(e,n){if("number"==typeof e)return e;if(fn(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)}function yn(){return"__post_robot_11_0_0___"+un()}function wn(e){void 0===e&&(e=window);var n=yn();return e!==window?e[n]:e[n]=e[n]||{}}var gn=function(){return{}};function En(e,n){return void 0===e&&(e="store"),void 0===n&&(n=gn),Ie(wn(),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 Ie(e,n,t)},reset:function(){e=n()},keys:function(){return Object.keys(e)}}}))}var _n,Nn=function(){};function Sn(){var e=wn();return e.WINDOW_WILDCARD=e.WINDOW_WILDCARD||new Nn,e.WINDOW_WILDCARD}function bn(e,n){return void 0===e&&(e="store"),void 0===n&&(n=gn),En("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 Ie(r(n),e,t)}}}))}function Tn(){return En("instance").getOrSet("instanceID",oe)}function An(e,n){var t=n.domain,r=bn("helloPromises"),o=r.get(e);o&&o.resolve({domain:t});var i=h.resolve({domain:t});return r.set(e,i),i}function Rn(e,n){return(0,n.send)(e,"postrobot_hello",{instanceID:Tn()},{domain:"*",timeout:-1}).then((function(n){var t=n.origin,r=n.data.instanceID;return An(e,{domain:t}),{win:e,domain:t,instanceID:r}}))}function Pn(e,n){var t=n.send;return bn("windowInstanceIDPromises").getOrSet(e,(function(){return Rn(e,{send:t}).then((function(e){return e.instanceID}))}))}function On(e){bn("knownWindows").set(e,!0)}function In(e){return"object"==typeof e&&null!==e&&"string"==typeof e.__type__}function Cn(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 xn(e,n){return{__type__:e,__val__:n}}var Dn,Mn=((_n={}).function=function(){},_n.error=function(e){return xn("error",{message:e.message,stack:e.stack,code:e.code,data:e.data})},_n.promise=function(){},_n.regex=function(e){return xn("regex",e.source)},_n.date=function(e){return xn("date",e.toJSON())},_n.array=function(e){return e},_n.object=function(e){return e},_n.string=function(e){return e},_n.number=function(e){return e},_n.boolean=function(e){return e},_n.null=function(e){return e},_n[void 0]=function(e){return xn("undefined",e)},_n),Ln={},Fn=((Dn={}).function=function(){throw new Error("Function serialization is not implemented; nothing to deserialize")},Dn.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},Dn.promise=function(){throw new Error("Promise serialization is not implemented; nothing to deserialize")},Dn.regex=function(e){return new RegExp(e)},Dn.date=function(e){return new Date(e)},Dn.array=function(e){return e},Dn.object=function(e){return e},Dn.string=function(e){return e},Dn.number=function(e){return e},Dn.boolean=function(e){return e},Dn.null=function(e){return e},Dn[void 0]=function(){},Dn),Hn={};function kn(){for(var e=En("idToProxyWindow"),n=0,t=e.keys();n<t.length;n++){var r=t[n];e.get(r).shouldClean()&&e.del(r)}}function Un(e,n){var t=n.send,r=n.id,o=void 0===r?oe():r,i=e.then((function(e){if(A(e))return R(e).name})),a=e.then((function(e){if(L(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(!L(e))return A(e)?R(e).name:i}))};return{id:o,getType:function(){return a},getInstanceID:le((function(){return e.then((function(e){return Pn(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 L(e)}))},setLocation:function(n,t){return void 0===t&&(t={}),e.then((function(e){var r=window.location.protocol+"//"+window.location.host,o=t.method,i=void 0===o?"get":o,a=t.body;if(0===n.indexOf("/"))n=""+r+n;else if(!n.match(/^https?:\/\//)&&0!==n.indexOf(r))throw new Error("Expected url to be http or https url, or absolute path, got "+JSON.stringify(n));if("post"===i)return u().then((function(e){if(!e)throw new Error("Can not post to window without target name");!function(e){var n=e.url,t=e.target,r=e.body,o=e.method,i=void 0===o?"post":o,a=document.createElement("form");if(a.setAttribute("target",t),a.setAttribute("method",i),a.setAttribute("action",n),a.style.display="none",r)for(var u=0,c=Object.keys(r);u<c.length;u++){var s,d=c[u],l=document.createElement("input");l.setAttribute("name",d),l.setAttribute("value",null==(s=r[d])?void 0:s.toString()),a.appendChild(l)}Me().appendChild(a),a.submit(),Me().removeChild(a)}({url:n,target:e,method:i,body:a})}));if("get"!==i)throw new Error("Unsupported method: "+i);if(A(e))try{if(e.location&&"function"==typeof e.location.replace)return void e.location.replace(n)}catch(e){}e.location=n}))},setName:function(n){return e.then((function(e){var t=A(e),r=Z(e);if(!t)throw new Error("Can not set name for cross-domain window: "+n);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 Bn=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||Un(this.actualWindowPromise,{send:n}),En("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=Un(this.actualWindowPromise,{send:t,id:this.getID()}),bn("winToProxyWindow").set(e,this)},n.awaitWindow=function(){return this.actualWindowPromise},n.matchWindow=function(e,n){var t=this,r=n.send;return h.try((function(){return t.actualWindow?e===t.actualWindow:h.hash({proxyInstanceID:t.getInstanceID(),knownWindowInstanceID:Pn(e,{send:r})}).then((function(n){var o=n.proxyInstanceID===n.knownWindowInstanceID;return o&&t.setWindow(e,{send:r}),o}))}))},n.unwrap=function(){return this.actualWindow||this},n.getInstanceID=function(){return this.serializedWindow.getInstanceID()},n.shouldClean=function(){return Boolean(this.actualWindow&&L(this.actualWindow))},n.serialize=function(){return this.serializedWindow},e.unwrap=function(n){return e.isProxyWindow(n)?n.unwrap():n},e.serialize=function(n,t){var r=t.send;return kn(),e.toProxyWindow(n,{send:r}).serialize()},e.deserialize=function(n,t){var r=t.send;return kn(),En("idToProxyWindow").get(n.id)||new e({serializedWindow:n,send:r})},e.isProxyWindow=function(e){return Boolean(e&&!j(e)&&e.isProxyWindow)},e.toProxyWindow=function(n,t){var r=t.send;if(kn(),e.isProxyWindow(n))return n;var o=n;return bn("winToProxyWindow").get(o)||new e({win:o,send:r})},e}();function qn(e,n,t,r,o){var i=bn("methodStore"),a=En("proxyWindowMethods");Bn.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 Wn(e,n){var t=bn("methodStore"),r=En("proxyWindowMethods");return t.getOrSet(e,(function(){return{}}))[n]||r.get(n)}function Gn(e,n,t,r,o){!function(e){var n=e.on,t=e.send;En("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=Wn(n,i);if(!u)throw new Error("Could not find method '"+a+"' with id: "+o.id+" in "+T(window));var c=u.source,s=u.domain,d=u.val;return h.try((function(){if(!q(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 "+T(window));if(Bn.isProxyWindow(c))return c.matchWindow(n,{send:t}).then((function(e){if(!e)throw new Error("Method call '"+o.name+"' failed - proxy window does not match source in "+T(window))}))})).then((function(){return d.apply({source:n,origin:r},o.args)}),(function(e){return h.try((function(){if(d.onError)return d.onError(e)})).then((function(){var n;throw e.stack&&(e.stack="Remote call to "+a+"("+(void 0===(n=o.args)&&(n=[]),be(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=Bn.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+"::")),Bn.isProxyWindow(e)?(qn(i,t,a,e,n),e.awaitWindow().then((function(e){qn(i,t,a,e,n)}))):qn(i,t,a,e,n),xn("cross_domain_function",{id:i,name:a})}function jn(e,n,t,r){var o,i=r.on,a=r.send;return function(e,n){void 0===n&&(n=Ln);var t=JSON.stringify(e,(function(e){var t=this[e];if(In(this))return t;var r=Cn(t);if(!r)return t;var o=n[r]||Mn[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 xn("cross_domain_zalgo_promise",{then:Gn(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 Gn(e,n,t,r,{on:i,send:a})},o.object=function(e){return j(e)||Bn.isProxyWindow(e)?xn("cross_domain_window",Bn.serialize(e,{send:a})):e},o))}function Zn(e,n,t,r){var o,i=r.send;return function(e,n){if(void 0===n&&(n=Hn),"undefined"!==e)return JSON.parse(e,(function(e,t){if(In(this))return t;var r,o;if(In(t)?(r=t.__type__,o=t.__val__):(r=Cn(t),o=t),!r)return o;var i=n[r]||Fn[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 Bn.toProxyWindow(e,{send:a}).awaitWindow().then((function(e){var c=Wn(e,o);if(c&&c.val!==r)return c.val.apply({source:window,origin:T()},u);var s=[].slice.call(u);return t.fireAndForget?a(e,"postrobot_method",{id:o,name:i,args:s},{domain:n,fireAndForget:!0}):a(e,"postrobot_method",{id:o,name:i,args:s},{domain:n,fireAndForget:!1}).then((function(e){return e.data.result}))})).catch((function(e){throw e}))}return void 0===t&&(t={}),r.__name__=i,r.__origin__=n,r.__source__=e,r.__id__=o,r.origin=n,r},c=u();return c.fireAndForget=u({fireAndForget:!0}),c}(e,n,t,{send:i})},o.cross_domain_window=function(e){return Bn.deserialize(e,{send:i})},o))}var Kn={};function zn(e,n,t,r){var o=r.on,i=r.send;return h.try((function(){var r=bn().getOrSet(e,(function(){return{}}));return r.buffer=r.buffer||[],r.buffer.push(t),r.flush=r.flush||h.flush().then((function(){if(L(e))throw new Error("Window is closed");var t,a,u=jn(e,n,(t=r.buffer||[],(a={})[yn()]=t,a),{on:o,send:i});delete r.buffer;for(var c=Object.keys(Kn),s=[],d=0;d<c.length;d++){var l=c[d];try{Kn[l](e,u,n)}catch(e){s.push(e)}}if(s.length===c.length)throw new Error("All post-robot messaging strategies failed:\n\n"+s.map((function(e,n){return n+". "+me(e)})).join("\n\n"))})),r.flush.then((function(){delete r.flush}))})).then(pe)}function Yn(e){return En("responseListeners").get(e)}function Vn(e){En("responseListeners").del(e)}function Jn(e){return En("erroredResponseListeners").has(e)}function Qn(e){var n=e.name,t=e.win,r=e.domain,o=bn("requestListeners");if("*"===t&&(t=null),"*"===r&&(r=null),!n)throw new Error("Name required to get request listener");for(var i=0,a=[t,Sn()];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,l=s.__domain_regex__;d<l.length;d++){var f=l[d],p=f.listener;if(q(f.regex,r))return p}}if(s["*"])return s["*"]}}}}}function Xn(e,n){var t=n.on,r=n.send,o=En("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=Zn(n,t,e,{on:i,send:a})}catch(e){return}if(o&&"object"==typeof o&&null!==o){var u=o[yn()];if(Array.isArray(u))return u}}(e.data,i,a,{on:t,send:r});if(u){On(i);for(var c,s=function(){var e=u[d];if(o.has(e.id))return{v:void 0};if(o.set(e.id,!0),L(i)&&!e.fireAndForget)return{v:void 0};0===e.origin.indexOf("file:")&&(a="file://");try{"postrobot_message_request"===e.type?function(e,n,t,r){var o=r.on,i=r.send,a=Qn({name:t.name,win:e,domain:n}),u="postrobot_method"===t.name&&t.data&&"string"==typeof t.data.name?t.data.name+"()":t.name;function c(r,a,c){return h.flush().then((function(){if(!t.fireAndForget&&!L(e))try{return zn(e,n,{id:oe(),origin:T(window),type:"postrobot_message_response",hash:t.hash,name:t.name,ack:r,data:a,error:c},{on:o,send:i})}catch(e){throw new Error("Send response message failed for "+u+" in "+T()+"\n\n"+me(e))}}))}h.all([h.flush().then((function(){if(!t.fireAndForget&&!L(e))try{return zn(e,n,{id:oe(),origin:T(window),type:"postrobot_message_ack",hash:t.hash,name:t.name},{on:o,send:i})}catch(e){throw new Error("Send ack message failed for "+u+" in "+T()+"\n\n"+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(!Jn(t.hash)){var r,o=Yn(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(!q(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");Vn(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(!Jn(t.hash)){var r=Yn(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(!q(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 $n(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=bn("requestListeners");if(!r||"string"!=typeof r)throw new Error("Name required to add request listener");if(o&&"*"!==o&&Bn.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,l=c;d<l.length;d++)s.push(e({name:r,domain:i,win:l[d]},t));return{cancel:function(){for(var e=0;e<s.length;e++)s[e].cancel()}}}if(Array.isArray(i)){for(var f=[],p=0,h=i;p<h.length;p++)f.push(e({name:r,win:c,domain:h[p]},t));return{cancel:function(){for(var e=0;e<f.length;e++)f[e].cancel()}}}var m=Qn({name:r,win:c,domain:i});c&&"*"!==c||(c=Sn());var v=(i=i||"*").toString();if(m)throw c&&i?new Error("Request listener already exists for "+r+" on domain "+i.toString()+" for "+(c===Sn()?"wildcard":"specified")+" window"):c?new Error("Request listener already exists for "+r+" for "+(c===Sn()?"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 y,w,g=a.getOrSet(c,(function(){return{}})),E=Ie(g,r,(function(){return{}}));return Oe(i)?(y=Ie(E,"__domain_regex__",(function(){return[]}))).push(w={regex:i,listener:t}):E[v]=t,{cancel:function(){delete E[v],w&&(y.splice(y.indexOf(w,1)),y.length||delete E.__domain_regex__),Object.keys(E).length||delete g[r],c&&!Object.keys(g).length&&a.del(c)}}}({name:e,win:n.window,domain:n.domain||"*"},{handler:t||n.handler,handleError:n.errorHandler||function(e){throw e}});return{cancel:function(){r.cancel()}}}Kn.postrobot_post_message=function(e,n,t){0===t.indexOf("file:")&&(t="*"),e.postMessage(n,t)},Kn.postrobot_global=function(e,n){if(!function(e){return(e=e||window).navigator.mockUserAgent||e.navigator.userAgent}(window).match(/MSIE|rv:11|trident|edge\/12|edge\/13/i))throw new Error("Global messaging not needed for browser");if(!A(e))throw new Error("Post message through global disabled between different domain windows");if(!1!==B(window,e))throw new Error("Can only use global to communicate between two different windows, not between frames");var t=wn(e);if(!t)throw new Error("Can not find postRobot global on foreign window");t.receiveMessage({source:window,origin:T(),data:n})};var et=function(e,n,t,r){var o=(r=r||{}).domain||"*",i=r.timeout||-1,a=r.timeout||5e3,u=r.fireAndForget||!1;return Bn.toProxyWindow(e,{send:et}).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(L(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(C(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 bn("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||Rn(e,{send:o}).then((function(e){return e.domain}))})).then((function(e){if(!q(n,n))throw new Error("Domain "+ve(n)+" does not match "+ve(n));return e}))}))}(e,o,(void 0===n?{}:n).domain,{send:et})})).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){En("responseListeners").set(e,n)}(s,d);var l=bn("requestPromises").getOrSet(e,(function(){return[]}));l.push(c),c.catch((function(){!function(e){En("erroredResponseListeners").set(e,!0)}(s),Vn(s)}));var f=function(e){return bn("knownWindows").get(e,!1)}(e)?1e4:2e3,p=i,m=f,v=p,y=Ee((function(){return L(e)?c.reject(new Error("Window closed for "+n+" before "+(d.ack?"response":"ack"))):d.cancelled?c.reject(new Error("Response listener was cancelled for "+n)):(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 "+T()+" in "+p+"ms")):void 0:c.reject(new Error("No ack for postMessage "+a+" in "+T()+" in "+f+"ms")))}),500);c.finally((function(){y.cancel(),l.splice(l.indexOf(c,1))})).catch(pe)}return zn(e,o,{id:oe(),origin:T(window),type:"postrobot_message_request",hash:s,name:n,data:t,fireAndForget:u},{on:$n,send:et}).then((function(){return u?c.resolve():c}),(function(e){throw new Error("Send request message failed for "+a+" in "+T()+"\n\n"+me(e))}))}))}))};function nt(e){return Bn.toProxyWindow(e,{send:et})}function tt(){var e,n,t;wn().initialized||(wn().initialized=!0,function(e){var n=e.on,t=e.send,r=wn();r.receiveMessage=r.receiveMessage||function(e){return Xn(e,{on:n,send:t})}}({on:$n,send:et}),function(e){var n=e.on,t=e.send;En().getOrSet("postMessageListener",(function(){return Je(window,"message",(function(e){!function(e,n){var t=n.on,r=n.send;h.try((function(){var n=e.source||e.sourceElement,o=e.origin||e.originalEvent&&e.originalEvent.origin,i=e.data;if("null"===o&&(o="file://"),n){if(!o)throw new Error("Post message did not have origin domain");Xn({source:n,origin:o,data:i},{on:t,send:r})}}))}(e,{on:n,send:t})}))}))}({on:$n,send:et}),n=(e={on:$n,send:et}).on,t=e.send,En("builtinListeners").getOrSet("helloListener",(function(){var e=n("postrobot_hello",{domain:"*"},(function(e){return An(e.source,{domain:e.origin}),{instanceID:Tn()}})),r=H();return r&&Rn(r,{send:t}).catch((function(e){})),e})))}function rt(e){for(var n=0,t=bn("requestPromises").get(e,[]);n<t.length;n++)t[n].reject(new Error("Window "+(L(e)?"closed":"cleaned up")+" before response")).catch(pe)}function ot(e){var n="__zoid_10_5_2___"+un();if(!A(e))throw new Error("Can not get global for window on different domain");return e[n]||(e[n]={}),e[n]}function it(e,n){try{return n(ot(e))}catch(e){}}function at(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 ut(e){return re(JSON.stringify(e))}function ct(e){var n=ot(e);return n.references=n.references||{},n.references}function st(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,l=nt(a.win),f=d?JSON.stringify(r):jn(l,a.domain,r,{on:$n,send:et}),p=c?(n=f,t=oe(),ct(window)[t]=n,{type:"uid",uid:t}):function(e){return{type:"raw",val:e}}(f);return{serializedData:ut({sender:{domain:i.domain},metaData:o,reference:p}),cleanReference:function(){var e,n;e=window,"uid"===(n=p).type&&delete ct(e)[n.uid]}}}function dt(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 ct(e)[n.uid];throw new Error("Unsupported ref type: "+n.type)}(n,u);return{data:i?JSON.parse(s):function(e,n,t){return Zn(e,n,t,{on:$n,send:et})}(n,t,s),metaData:c,sender:{win:n,domain:t},reference:u}}tt();var lt={NAVIGATED_AWAY:"Window navigated away",COMPONENT_DESTROYED:"Component destroyed",COMPONENT_CLOSED:"Component closed",WINDOW_CLOSED:"Detected component window close",IFRAME_CLOSE:"Detected iframe close"},ft=v;function pt(e){return"__zoid__"+e.name+"__"+e.serializedPayload+"__"}function ht(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 mt=de((function(e){var n=dt({data:ht(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(A(i)){var a=it(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}}(C(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 vt(){return mt(window.name)}function yt(e,n){if(void 0===n&&(n=window),e===_(n))return{type:"parent",distance:U(e)};if(e===N(n))return{type:"opener"};if(A(e)&&(r=e)!==C(r)){var t=R(e).name;if(t)return{type:"name",name:t}}var r}function wt(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 gt(){return h.try((function(){window.focus()}))}function Et(){return h.try((function(){window.close()}))}var _t=function(){return pe},Nt=function(e){return he(e.value)};function St(e,n,t){for(var r=0,o=Object.keys(i({},e,n));r<o.length;r++){var a=o[r];t(a,n[a],e[a])}}function bt(e,n,t){var r={};return h.all(function(e,n,o){var i=[];return St(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 Tt(e){var n,t,r,o,a,u=e.uid,c=e.options,s=e.overrides,d=void 0===s?{}:s,l=e.parentWin,f=void 0===l?window:l,p=c.propsDef,m=c.containerTemplate,v=c.prerenderTemplate,y=c.tag,w=c.name,g=c.attributes,E=c.dimensions,_=c.autoResize,N=c.url,S=c.domain,b=c.exports,P=new h,O=[],I=Ce(),C={},x={},D={visible:!0},M=d.event?d.event:_e(),F=d.props?d.props:{},k=!1,j=d.onError,Z=d.getProxyContainer,z=d.show,Y=d.hide,V=d.close,J=d.renderContainer,Q=d.getProxyWindow,X=d.setProxyWin,$=d.openFrame,ee=d.openPrerenderFrame,ne=d.prerender,te=d.open,re=d.openPrerender,ie=d.watchForUnload,ae=d.getInternalState,ue=d.setInternalState,ce=function(){return"function"==typeof E?E({props:F}):E},se=function(){return h.try((function(){return d.resolveInitPromise?d.resolveInitPromise():P.resolve()}))},le=function(e){return h.try((function(){return d.rejectInitPromise?d.rejectInitPromise(e):P.reject(e)}))},fe=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||q(t,e)}),!1):q(e,T(window));i&&i.sameDomain&&!a||i&&i.trustedDomains&&!a||(n[o]=F[o])}}return h.hash(n)},we=function(){return h.try((function(){return ae?ae():D}))},ge=function(e){return h.try((function(){return ue?ue(e):D=i({},D,e)}))},Ne=function(){return Q?Q():h.try((function(){var e=F.window;if(e){var n=nt(e);return I.register((function(){return e.close()})),n}return new Bn({send:et})}))},Se=function(e){return X?X(e):h.try((function(){n=e}))},Te=function(){return z?z():h.hash({setState:ge({visible:!0}),showElement:t?t.get().then(Qe):null}).then(pe)},Ae=function(){return Y?Y():h.hash({setState:ge({visible:!1}),showElement:t?t.get().then(Xe):null}).then(pe)},Re=function(){return"function"==typeof N?N({props:F}):N},Oe=function(){return"function"==typeof g?g({props:F}):g},Ie=function(){return W(Re())},xe=function(e,n){var t=n.windowName;return $?$(e,{windowName:t}):h.try((function(){if(e===ft.IFRAME)return at(Ve({attributes:i({name:t,title:w},Oe().iframe)}))}))},De=function(e){return ee?ee(e):h.try((function(){if(e===ft.IFRAME)return at(Ve({attributes:i({name:"__zoid_prerender_frame__"+w+"_"+oe()+"__",title:"prerender__"+w},Oe().iframe)}))}))},Me=function(e,n,t){return re?re(e,n,t):h.try((function(){if(e===ft.IFRAME){if(!t)throw new Error("Expected proxy frame to be passed");return t.get().then((function(e){return I.register((function(){return $e(e)})),Ye(e).then((function(e){return R(e)})).then((function(e){return nt(e)}))}))}if(e===ft.POPUP)return n;throw new Error("No render context available for "+e)}))},Le=function(){return h.try((function(){if(n)return h.all([M.trigger("zoid-focus"),n.focus()]).then(pe)}))},Fe=function(){var e=ot(window);return e.windows=e.windows||{},e.windows[u]=window,I.register((function(){delete e.windows[u]})),u},He=function(e,n,t,r){if(n===T(window))return{type:"global",uid:Fe()};if(e!==window)throw new Error("Can not construct cross-domain window reference for different target window");if(F.window){var o=r.getWindow();if(!o)throw new Error("Can not construct cross-domain window reference for lazy window prop");if(H(o)!==window)throw new Error("Can not construct cross-domain window reference for window prop with different ancestor")}if(t===ft.POPUP)return{type:"opener"};if(t===ft.IFRAME)return{type:"parent",distance:U(window)};throw new Error("Can not construct window reference for child")},ke=function(e,t){return h.try((function(){var i;o=e,r=t,null==(i=n)||i.isPopup().then((function(e){var r;""!==(null==t?void 0:t.name)&&e&&(null==(r=n)||r.setName(null==t?void 0:t.name))})).finally((function(){se(),I.register((function(){return t.close.fireAndForget().catch(pe)}))}))}))},Be=function(e){var n=e.width,t=e.height;return h.try((function(){M.trigger("zoid-resize",{width:n,height:t})}))},qe=function(e){return h.try((function(){return M.trigger("zoid-destroy")})).catch(pe).then((function(){return I.all(e)})).then((function(){var n=e||new Error(lt.COMPONENT_DESTROYED);a&&en(a)||Object.values(lt).includes(n.message)?P.resolve():P.asyncReject(n)}))},Ze=de((function(e){return h.try((function(){if(V){if(L(V.__source__))return;return V()}return h.try((function(){return M.trigger("zoid-close")})).then((function(){return qe(e||new Error(lt.COMPONENT_CLOSED))}))}))})),ze=function(e,n){var t=n.proxyWin,r=n.proxyFrame,o=n.windowName;return te?te(e,{proxyWin:t,proxyFrame:r,windowName:o}):h.try((function(){if(e===ft.IFRAME){if(!r)throw new Error("Expected proxy frame to be passed");return r.get().then((function(e){return Ye(e).then((function(n){return I.register((function(){return $e(e)})),I.register((function(){return rt(n)})),n}))}))}if(e===ft.POPUP){var n=ce(),t=n.width,a=void 0===t?"300px":t,u=n.height,c=void 0===u?"150px":u;a=vn(a,window.outerWidth),c=vn(c,window.outerWidth);var s=function(e,n){var t=(n=n||{}).closeOnUnload,r=void 0===t?1:t,o=n.name,a=void 0===o?"":o,u=n.width,c=n.height,s=0,d=0;u&&(window.outerWidth?d=Math.round((window.outerWidth-u)/2)+window.screenX:window.screen.width&&(d=Math.round((window.screen.width-u)/2))),c&&(window.outerHeight?s=Math.round((window.outerHeight-c)/2)+window.screenY:window.screen.height&&(s=Math.round((window.screen.height-c)/2))),delete n.closeOnUnload,delete n.name,u&&c&&(n=i({top:s,left:d,width:u,height:c,status:1,toolbar:0,menubar:0,resizable:1,scrollbars:1},n));var l,f,p=Object.keys(n).map((function(e){if(null!=n[e])return e+"="+ve(n[e])})).filter(Boolean).join(",");try{l=window.open("",a,p)}catch(f){throw new Ke("Can not open popup window - "+(f.stack||f.message))}if(L(l))throw new Ke("Can not open popup window - blocked");return r&&(window.addEventListener("beforeunload",(function(){l.close()})),"onpagehide"in window?window.addEventListener("pagehide",(function(){l.close()})):window.addEventListener("unload",(function(){l.close()}))),l}(0,i({name:o,width:a,height:c},Oe().popup));return I.register((function(){return K(s)})),I.register((function(){return rt(s)})),s}throw new Error("No render context available for "+e)})).then((function(e){return t.setWindow(e,{send:et}),t.setName(o).then((function(){return t}))}))},rn=function(){return h.try((function(){var e="onpagehide"in window?"pagehide":"unload",n=Je(window,e,he((function(){qe(new Error(lt.NAVIGATED_AWAY))}))),t=G(f,qe,3e3);if(I.register(t.cancel),I.register(n.cancel),ie)return ie()}))},on=function(e,n){var t=!1;return I.register((function(){t=!0})),h.delay(2e3).then((function(){return e.isClosed()})).then((function(r){if(!t){if(n===ft.POPUP&&r)return Ze(new Error("Detected popup close"));var o=Boolean(a&&en(a));return n===ft.IFRAME&&r&&(o||k)?Ze(new Error(lt.IFRAME_CLOSE)):on(e,n)}}))},an=function(e){var n=!1;return e.isClosed().then((function(t){return t?(n=!0,Ze(new Error(lt.WINDOW_CLOSED))):h.delay(200).then((function(){return e.isClosed()})).then((function(e){if(e)return n=!0,Ze(new Error(lt.WINDOW_CLOSED))}))})).then((function(){return n}))},un=function(e){return j?j(e):h.try((function(){if(-1===O.indexOf(e))return O.push(e),P.asyncReject(e),M.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:Le,close:Ze,state:C,props:F,tag:y,dimensions:ce(),event:M})},ln=function(e,n){var t=n.context;return ne?ne(e,{context:t}):h.try((function(){if(v){M.trigger("zoid-prerender");var n=e.getWindow();if(n&&A(n)&&function(e){try{if(!e.location.href)return!0;if("about:blank"===e.location.href)return!0}catch(e){}return!1}(n)){var r=(n=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=be(r.children);o<i.length;o++)r.removeChild(i[o]);for(var a=0,u=be(n.children);a<u.length;a++)r.appendChild(u[a])}(n,o);var i=_.width,a=void 0!==i&&i,u=_.height,c=void 0!==u&&u,s=_.element,d=void 0===s?"body":s;if((d=Ge(d,r))&&(a||c)){var l=nn(d,(function(e){Be({width:a?e.width:void 0,height:c?e.height:void 0})}),{width:a,height:c,win:n});M.on("zoid-rendered",l.cancel)}M.trigger("zoid-prerendered")}}}}))},fn=function(e,n){var r=n.proxyFrame,o=n.proxyPrerenderFrame,i=n.context,a=n.rerender;return J?J(e,{proxyFrame:r,proxyPrerenderFrame:o,context:i,rerender:a}):h.hash({container:e.get(),frame:r?r.get():null,prerenderFrame:o?o.get():null,internalState:we()}).then((function(e){var n=e.container,r=e.internalState.visible,o=dn(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 l=new window.MutationObserver((function(){en(e)&&s()}));l.observe(d,{childList:!0}),u.push(l),d=d.parentElement}return(r=document.createElement("iframe")).setAttribute("name","__detect_close_"+oe()+"__"),r.style.display="none",Ye(r).then((function(e){(o=R(e)).addEventListener(i,s)})),e.appendChild(r),t=Ee((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 I.all(e),a().then(se,le);Ze(e)}))}));return I.register((function(){return u.cancel()})),I.register((function(){return $e(o)})),t=at(o)}}))},pn=function(){return{state:C,event:M,close:Ze,focus:Le,resize:Be,onError:un,updateProps:mn,show:Te,hide:Ae}},hn=function(e){void 0===e&&(e={});var n=a,t=pn();ye(x,e),function(e,n,t,r,o){var i=r.state,a=r.close,u=r.focus,c=r.event,s=r.onError;St(t,e,(function(e,r,d){var l=!1,f=d;Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){return l?f:(l=!0,function(){if(!r)return f;var l=r.alias;if(l&&!Pe(d)&&Pe(t[l])&&(f=t[l]),r.value&&(f=r.value({props:n,state:i,close:a,focus:u,event:c,onError:s,container:o})),!r.default||Pe(f)||Pe(t[e])||(f=r.default({props:n,state:i,close:a,focus:u,event:c,onError:s,container:o})),Pe(f)){if("array"===r.type?!Array.isArray(f):typeof f!==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(f)&&r.decorate&&(f=r.decorate({value:f,props:n,state:i,close:a,focus:u,event:c,onError:s,container:o})),f}())}})})),St(n,e,pe)}(p,F,x,t,n)},mn=function(e){return hn(e),P.then((function(){var e=r,t=n;if(e&&t&&o)return fe(o).then((function(n){return e.updateProps(n).catch((function(e){return an(t).then((function(n){if(!n)throw e}))}))}))}))},yn=function(e){return Z?Z(e):h.try((function(){return je(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,at(e)}))};return{init:function(){M.on("zoid-render",(function(){return F.onRender()})),M.on("zoid-prerender",(function(){return F.onPrerender()})),M.on("zoid-display",(function(){return F.onDisplay()})),M.on("zoid-rendered",(function(){return F.onRendered()})),M.on("zoid-prerendered",(function(){return F.onPrerendered()})),M.on("zoid-close",(function(){return F.onClose()})),M.on("zoid-destroy",(function(){return F.onDestroy()})),M.on("zoid-resize",(function(){return F.onResize()})),M.on("zoid-focus",(function(){return F.onFocus()})),M.on("zoid-props",(function(e){return F.onProps(e)})),M.on("zoid-error",(function(e){return F&&F.onError?F.onError(e):le(e).then((function(){setTimeout((function(){throw e}),1)}))})),I.register(M.reset)},render:function(e){var t=e.target,r=e.container,o=e.context,i=e.rerender;return h.try((function(){var e=Ie(),a=S||Ie();!function(e,n,t){if(e!==window){if(!B(window,e))throw new Error("Can only renderTo an adjacent frame");var r=T();if(!q(n,r)&&!A(e))throw new Error("Can not render remotely to "+n.toString()+" - can only render to "+r);if(t&&"string"!=typeof t)throw new Error("Container passed to renderTo must be a string selector, got "+typeof t+" }")}}(t,a,r);var s=h.try((function(){if(t!==window)return function(e,n){for(var t={},r=0,o=Object.keys(F);r<o.length;r++){var i=o[r],a=p[i];a&&a.allowDelegate&&(t[i]=F[i])}var c=et(n,"zoid_delegate_"+w,{uid:u,overrides:{props:t,event:M,close:Ze,onError:un,getInternalState:we,setInternalState:ge,resolveInitPromise:se,rejectInitPromise:le}}).then((function(e){var t=e.data.parent;return I.register((function(e){if(!L(n))return t.destroy(e)})),t.getDelegateOverrides()})).catch((function(e){throw new Error("Unable to delegate rendering. Possibly the component is not loaded in the target window.\n\n"+me(e))}));return Z=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.getProxyContainer.apply(e,n)}))},J=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.renderContainer.apply(e,n)}))},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.show.apply(e,n)}))},Y=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.hide.apply(e,n)}))},ie=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.watchForUnload.apply(e,n)}))},e===ft.IFRAME?(Q=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.getProxyWindow.apply(e,n)}))},$=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.openFrame.apply(e,n)}))},ee=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.openPrerenderFrame.apply(e,n)}))},ne=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.prerender.apply(e,n)}))},te=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.open.apply(e,n)}))},re=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.openPrerender.apply(e,n)}))}):e===ft.POPUP&&(X=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.setProxyWin.apply(e,n)}))}),c}(o,t)})),d=F.window,l=rn(),f=bt(p,F,"post"),m=M.trigger("zoid-render"),v=yn(r),g=Ne(),E=v.then((function(){return hn()})),_=E.then((function(){return bt(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=g.then((function(n){return function(e){var n=void 0===e?{}:e,t=n.proxyWin,r=n.initialChildDomain,o=n.childDomainMatch,i=n.target,a=void 0===i?window:i,c=n.context;return function(e){var n=void 0===e?{}:e,t=n.proxyWin,r=n.childDomainMatch,o=n.context;return fe(n.initialChildDomain).then((function(e){return{uid:u,context:o,tag:y,childDomainMatch:r,version:"10_5_2",props:e,exports:(n=t,{init:function(e){return ke(this.origin,e)},close:Ze,checkClose:function(){return an(n)},resize:Be,onError:un,show:Te,hide:Ae,export:sn})};var n}))}({proxyWin:t,initialChildDomain:r,childDomainMatch:o,context:c}).then((function(e){var n=st({data:e,metaData:{windowRef:He(a,r,c,t)},sender:{domain:T(window)},receiver:{win:t,domain:o},passByReference:r===T()}),i=n.serializedData;return I.register(n.cleanReference),i}))}({proxyWin:(r={proxyWin:n,initialChildDomain:e,childDomainMatch:a,target:t,context:o}).proxyWin,initialChildDomain:r.initialChildDomain,childDomainMatch:r.childDomainMatch,target:r.target,context:r.context}).then((function(e){return pt({name:w,serializedPayload:e})}));var r})),b=N.then((function(e){return xe(o,{windowName:e})})),R=De(o),O=h.hash({proxyContainer:v,proxyFrame:b,proxyPrerenderFrame:R}).then((function(e){return fn(e.proxyContainer,{context:o,proxyFrame:e.proxyFrame,proxyPrerenderFrame:e.proxyPrerenderFrame,rerender:i})})).then((function(e){return e})),C=h.hash({windowName:N,proxyFrame:b,proxyWin:g}).then((function(e){var n=e.proxyWin;return d?n:ze(o,{windowName:e.windowName,proxyWin:n,proxyFrame:e.proxyFrame})})),x=h.hash({proxyWin:C,proxyPrerenderFrame:R}).then((function(e){return Me(o,e.proxyWin,e.proxyPrerenderFrame)})),D=C.then((function(e){return n=e,Se(e)})),H=h.hash({proxyPrerenderWin:x,state:D}).then((function(e){return ln(e.proxyPrerenderWin,{context:o})})),U=h.hash({proxyWin:C,windowName:N}).then((function(e){if(d)return e.proxyWin.setName(e.windowName)})),G=h.hash({body:f}).then((function(e){return c.method?c.method:Object.keys(e.body).length?"post":"get"})),j=h.hash({proxyWin:C,windowUrl:_,body:f,method:G,windowName:U,prerender:H}).then((function(e){return e.proxyWin.setLocation(e.windowUrl,{method:e.method,body:e.body})})),K=C.then((function(e){on(e,o)})),V=h.hash({container:O,prerender:H}).then((function(){return M.trigger("zoid-display")})),oe=C.then((function(e){})),ae=j.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,M.trigger("zoid-rendered")}));return h.hash({initPromise:P,buildUrlPromise:_,onRenderPromise:m,getProxyContainerPromise:v,openFramePromise:b,openPrerenderFramePromise:R,renderContainerPromise:O,openPromise:C,openPrerenderPromise:x,setStatePromise:D,prerenderPromise:H,loadUrlPromise:j,buildWindowNamePromise:N,setWindowNamePromise:U,watchForClosePromise:K,onDisplayPromise:V,openBridgePromise:oe,runTimeoutPromise:ae,onRenderedPromise:ue,delegatePromise:s,watchForUnloadPromise:l,finalSetPropsPromise:E})})).catch((function(e){return h.all([un(e),qe(e)]).then((function(){throw e}),(function(){throw e}))})).then(pe)},destroy:qe,getProps:function(){return F},setProps:hn,export:sn,getHelpers:pn,getDelegateOverrides:function(){return h.try((function(){return{getProxyContainer:yn,show:Te,hide:Ae,renderContainer:fn,getProxyWindow:Ne,watchForUnload:rn,openFrame:xe,openPrerenderFrame:De,prerender:ln,open:ze,openPrerender:Me,setProxyWin:Se}}))},getExports:function(){return b({getExports:function(){return cn}})}}}var At={register:function(e,n,t,r){var i=r.React,a=r.ReactDOM;return function(e){function n(){return e.apply(this,arguments)||this}o(n,e);var r=n.prototype;return r.render=function(){return i.createElement("div",null)},r.componentDidMount=function(){var e=a.findDOMNode(this),n=t(ye({},this.props));n.render(e,ft.IFRAME),this.setState({parent:n})},r.componentDidUpdate=function(){this.state&&this.state.parent&&this.state.parent.updateProps(ye({},this.props)).catch(pe)},n}(i.Component)}},Rt={register:function(e,n,t,r){return r.component(e,{render:function(e){return e("div")},inheritAttrs:!1,mounted:function(){var e,n=this.$el;this.parent=t(i({},(e=this.$attrs,Object.keys(e).reduce((function(n,t){var r=e[t];return"style-object"===t||"styleObject"===t?(n.style=r,n.styleObject=r):t.includes("-")?n[Ne(t)]=r:n[t]=r,n}),{})))),this.parent.render(n,ft.IFRAME)},watch:{$attrs:{handler:function(){this.parent&&this.$attrs&&this.parent.updateProps(i({},this.$attrs)).catch(pe)},deep:!0}}})}},Pt={register:function(e,n,t){return{template:"<div></div>",inheritAttrs:!1,mounted:function(){var e,n=this.$el;this.parent=t(i({},(e=this.$attrs,Object.keys(e).reduce((function(n,t){var r=e[t];return"style-object"===t||"styleObject"===t?(n.style=r,n.styleObject=r):t.includes("-")?n[Ne(t)]=r:n[t]=r,n}),{})))),this.parent.render(n,ft.IFRAME)},watch:{$attrs:{handler:function(){this.parent&&this.$attrs&&this.parent.updateProps(i({},this.$attrs)).catch(pe)},deep:!0}}}}},Ot={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],ft.IFRAME),e.$watch((function(){i.updateProps(o()).catch(pe)}))}]}}))}},It={register:function(e,n,t,r){var o=r.Component,a=r.NgModule,u=r.ElementRef,c=r.NgZone,s=r.Inject,d=function(){function e(e,n){this.elementRef=void 0,this.internalProps=void 0,this.parent=void 0,this.props=void 0,this.zone=void 0,this._props=void 0,this._props={},this.elementRef=e,this.zone=n}var n=e.prototype;return n.getProps=function(){var e=this;return Re(i({},this.internalProps,this.props),(function(n){if("function"==typeof n){var t=e.zone;return function(){var e=arguments,r=this;return t.run((function(){return n.apply(r,e)}))}}return n}))},n.ngOnInit=function(){var e=this.elementRef.nativeElement;this.parent=t(this.getProps()),this.parent.render(e,ft.IFRAME)},n.ngDoCheck=function(){this.parent&&!function(e,n){var t={};for(var r in e)if(e.hasOwnProperty(r)&&(t[r]=!0,e[r]!==n[r]))return!1;for(var o in n)if(!t[o])return!1;return!0}(this._props,this.props)&&(this._props=i({},this.props),this.parent.updateProps(this.getProps()))},e}();d.annotations=void 0,d.parameters=void 0,d.parameters=[[new s(u)],[new s(c)]],d.annotations=[new o({selector:e,template:"<div></div>",inputs:["props"]})];var l=function(){};return l.annotations=void 0,l.annotations=[new a({declarations:[d],exports:[d]})],l}};function Ct(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 l=o.createElement("style");return i.cspNonce&&l.setAttribute("nonce",i.cspNonce),l.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(l),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 xt(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 Dt=Ce(),Mt=Ce();function Lt(e){var n,t,r=function(e){var n=e.tag,t=e.url,r=e.domain,o=e.bridgeUrl,a=e.props,u=void 0===a?{}:a,c=e.getExtensions,s=void 0===c?function(){return{}}:c,d=e.dimensions,l=void 0===d?{}:d,f=e.autoResize,p=void 0===f?{}:f,h=e.allowedParentDomains,m=void 0===h?"*":h,v=e.attributes,y=void 0===v?{}:v,w=e.defaultContext,g=void 0===w?ft.IFRAME:w,E=e.containerTemplate,_=void 0===E?Ct:E,N=e.prerenderTemplate,S=void 0===N?xt:N,b=e.validate,T=e.eligible,R=void 0===T?function(){return{eligible:!0}}:T,P=e.logger,O=void 0===P?{info:pe}:P,I=e.exports,C=void 0===I?pe:I,x=e.method,D=e.children,M=void 0===D?function(){return{}}:D,F=n.replace(/-/g,"_"),H=i({},{window:{type:"object",sendToChild:!1,required:!1,allowDelegate:!0,validate:function(e){var n=e.value;if(!j(n)&&!Bn.isProxyWindow(n))throw new Error("Expected Window or ProxyWindow");if(j(n)){if(L(n))throw new Error("Window is closed");if(!A(n))throw new Error("Window is not same domain")}},decorate:function(e){return nt(e.value)}},timeout:{type:"number",required:!1,sendToChild:!1},cspNonce:{type:"string",required:!1},onDisplay:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:_t,decorate:Nt},onRendered:{type:"function",required:!1,sendToChild:!1,default:_t,decorate:Nt},onRender:{type:"function",required:!1,sendToChild:!1,default:_t,decorate:Nt},onPrerendered:{type:"function",required:!1,sendToChild:!1,default:_t,decorate:Nt},onPrerender:{type:"function",required:!1,sendToChild:!1,default:_t,decorate:Nt},onClose:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:_t,decorate:Nt},onDestroy:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:_t,decorate:Nt},onResize:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:_t},onFocus:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:_t},close:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.close}},focus:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.focus}},resize:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.resize}},uid:{type:"string",required:!1,sendToChild:!1,childDecorate:function(e){return e.uid}},tag:{type:"string",required:!1,sendToChild:!1,childDecorate:function(e){return e.tag}},getParent:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.getParent}},getParentDomain:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.getParentDomain}},show:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.show}},hide:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.hide}},export:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.export}},onError:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.onError}},onProps:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.onProps}},getSiblings:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.getSiblings}}},u);if(!_)throw new Error("Container template required");return{name:F,tag:n,url:t,domain:r,bridgeUrl:o,method:x,propsDef:H,dimensions:l,autoResize:p,allowedParentDomains:m,attributes:y,defaultContext:g,containerTemplate:_,prerenderTemplate:S,validate:b,logger:O,eligible:R,children:M,exports:"function"==typeof C?C:function(e){for(var n=e.getExports,t={},r=function(){var e=i[o],r=C[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(C);o<i.length;o++)r();return t},getExtensions:s}}(e),o=r.name,a=r.tag,u=r.defaultContext,c=r.propsDef,s=r.eligible,d=r.children,l=r.getExtensions,f=ot(window),p={},m=[],v=function(){if(function(e){try{return ht(window.name).name===e}catch(e){}return!1}(o)){var e=vt().payload;if(e.tag===a&&q(e.childDomainMatch,T()))return!0}return!1},y=de((function(){if(v()){if(window.xprops)throw delete f.components[a],new Error("Can not register "+o+" as child - child already registered");var e=function(e){var n,t=e.tag,r=e.propsDef,o=e.autoResize,i=e.allowedParentDomains,a=[],u=vt(),c=u.parent,s=u.payload,d=c.win,l=c.domain,f=new h,p=s.version,m=s.uid,v=s.exports,y=s.context,w=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 g=v.show,E=v.hide,_=v.close,N=v.onError,S=v.checkClose,b=v.export,P=v.resize,O=v.init,I=function(){return d},C=function(){return l},D=function(e){return a.push(e),{cancel:function(){a.splice(a.indexOf(e),1)}}},M=function(e){return P.fireAndForget({width:e.width,height:e.height})},L=function(e){return f.resolve(e),b(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(A(c)){var s=R(c).xprops;if(s&&I()===s.getParent()){var d=s.parent;if(r||!i||d&&d.uid===i.uid){var l=it(c,(function(e){return e.exports}));o.push({props:s,exports:l})}}}}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],l=d&&d.trustedDomains&&d.trustedDomains.length>0?d.trustedDomains.reduce((function(e,n){return e||q(n,T(window))}),!1):r===T(window)||A(e);if((!d||!d.sameDomain||l)&&(!d||!d.trustedDomains||l)){var f=wt(n,0,s,t[s],o);a[s]=f,d&&d.alias&&!a[d.alias]&&(a[d.alias]=f)}}if(!i)for(var p=0,h=Object.keys(n);p<h.length;p++){var m=h[p];t.hasOwnProperty(m)||(a[m]=wt(n,0,m,void 0,o))}return a}(d,r,e,o,{tag:t,show:g,hide:E,close:_,focus:gt,onError:N,resize:M,getSiblings:F,onProps:D,getParent:I,getParentDomain:C,uid:m,export:L},i);n?ye(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,l,!0)}))};return{init:function(){return h.try((function(){var n="";return A(d)&&(n=function(e){var n=e.componentName,t=e.parentComponentWindow,r=dt({data:ht(window.name).serializedInitialPayload,sender:{win:t},basic:!0}),o=r.sender;if("uid"===r.reference.type||"global"===r.metaData.windowRef.type){var i=pt({name:n,serializedPayload:st({data:r.data,metaData:{windowRef:yt(t)},sender:{domain:o.domain},receiver:{win:window,domain:T()},basic:!0}).serializedData});return window.name=i,i}}({componentName:e.name,parentComponentWindow:d})||""),ot(window).exports=e.exports({getExports:function(){return f}}),function(e,n){if(!q(e,n))throw new Error("Can not be rendered by domain: "+n)}(i,l),On(d),window.addEventListener("beforeunload",(function(){S.fireAndForget()})),"onpagehide"in window?window.addEventListener("pagehide",(function(){S.fireAndForget()})):window.addEventListener("unload",(function(){S.fireAndForget()})),G(d,(function(){Et()})),O({name:n,updateProps:k,close:Et})})).then((function(){return(e=o.width,n=void 0!==e&&e,t=o.height,r=void 0!==t&&t,i=o.element,je(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)&&y!==ft.POPUP&&nn(r,(function(e){M({width:n?e.width:void 0,height:t?e.height:void 0})}),{width:n,height:t})}));var e,n,t,r,i})).catch((function(e){N(e)}))},getProps:function(){return n||(H(w,l),n)}}}(r);return e.init(),e}})),w=function(e){var n,t="zoid-"+a+"-"+oe(),c=e||{},f=s({props:c}),p=f.eligible,v=f.reason,y=c.onDestroy;c.onDestroy=function(){if(n&&p&&m.splice(m.indexOf(n),1),y)return y.apply(void 0,arguments)};var g=Tt({uid:t,options:r});g.init(),p?g.setProps(c):c.onDestroy&&c.onDestroy(),Dt.register((function(e){return g.destroy(e||new Error("zoid destroyed all components"))}));var E=function(e){var n=(void 0===e?{}:e).decorate;return w((void 0===n?ge:n)(c))},_=function(e,t,r){return h.try((function(){if(!p){var n=new Error(v||o+" component is not eligible");return g.destroy(n).then((function(){throw n}))}if(!j(e))throw new Error("Must pass window to renderTo");return function(e,n){return h.try((function(){if(e.window)return nt(e.window).getType();if(n){if(n!==ft.IFRAME&&n!==ft.POPUP)throw new Error("Unrecognized context: "+n);return n}return u}))}(c,r)})).then((function(o){if(t=function(e,n){if(n){if("string"!=typeof n&&!ee(n))throw new TypeError("Expected string or element selector to be passed");return n}if(e===ft.POPUP)return"body";throw new Error("Expected element to be passed to render iframe")}(o,t),e!==window&&"string"!=typeof t)throw new Error("Must pass string element when rendering to another window");return g.render({target:e,container:t,context:o,rerender:function(){var o=E();return ye(n,o),o.renderTo(e,t,r)}})})).catch((function(e){return g.destroy(e).then((function(){throw e}))}))};return n=i({},l(g),g.getExports(),g.getHelpers(),function(){for(var e=d(),n={},r=function(){var r=a[o],u=e[r];n[r]=function(e){var n=g.getProps(),r=i({},e,{parent:{uid:t,props:n,export:g.export}});return u(r)}},o=0,a=Object.keys(e);o<a.length;o++)r();return n}(),{isEligible:function(){return p},clone:E,render:function(e,n){return _(window,e,n)},renderTo:function(e,n,t){return _(e,n,t)}}),p&&m.push(n),n};if(y(),n=$n("zoid_allow_delegate_"+o,(function(){return!0})),t=$n("zoid_delegate_"+o,(function(e){var n=e.data;return{parent:Tt({uid:n.uid,options:r,overrides:n.overrides,parentWin:e.source})}})),Mt.register(n.cancel),Mt.register(t.cancel),f.components=f.components||{},f.components[a])throw new Error("Can not register multiple components with the same tag: "+a);return f.components[a]=!0,{init:w,instances:m,driver:function(e,n){var t={react:At,angular:Ot,vue:Rt,vue3:Pt,angular2:It};if(!t[e])throw new Error("Could not find driver for framework: "+e);return p[e]||(p[e]=t[e].register(a,c,w,n)),p[e]},isChild:v,canRenderTo:function(e){return et(e,"zoid_allow_delegate_"+o).then((function(e){return e.data})).catch((function(){return!1}))},registerChild:y}}var Ft=function(e){tt();var n=Lt(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},Ht=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=Ht().attributes;n<t.length;n++){var r=t[n];0===r.name.indexOf("data-")&&(e[r.name]=r.value)}return e["data-uid"]=un(),e})),de((function(e){try{if(e&&"function"==typeof atob){var n=JSON.parse(window.atob(e.split(".")[1])).options;return(void 0===n?{}:n).customer_id||""}return""}catch(e){throw new Error("Error decoding SDK token")}}));var kt=["warn","error"],Ut=["error","warn","info","debug"],Bt=function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};function qt(e){var n=e.url,t=e.prefix,r=e.metricNamespacePrefix,o=e.logLevel,a=void 0===o?"warn":o,u=e.transport,c=void 0===u?function(e){var n=e.url,t=e.method,r=e.headers,o=e.json,i=e.enableSendBeacon,a=void 0!==i&&i;return h.try((function(){var e=window,i=A(e)?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||ln({win:i,url:n,method:t,headers:r,json:o})})).then(pe)}:u,s=e.flushInterval,d=void 0===s?6e4:s,l=e.enableSendBeacon,f=void 0!==l&&l,p=[],m=[],v=[],y=[],w=[],g=[],E=[],_=[];function N(e,n,t){if(Be()&&window.console&&window.console.log&&!(Ut.indexOf(e)>Ut.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<w.length;t++)Bt(e,(0,w[t])(e));for(var r,o={},i=0;i<_.length;i++)Bt(o,(0,_[i])(o));return n&&(r=c({method:"POST",url:n,headers:o,json:{events:p,meta:e,tracking:m,metrics:v},enableSendBeacon:f}).catch(pe)),p=[],m=[],v=[],h.resolve(r).then(pe)}}))}var b,T,P,O,I=(void 0===T&&(T=50),te((function(){O&&clearTimeout(O);var e=P=P||new h;return O=setTimeout((function(){P=null,O=null,h.try(b).then((function(n){e.resolve(n)}),(function(n){e.reject(n)}))}),T),e}),ne(b=S)+"::promiseDebounced"));function C(e,n,r){if(void 0===r&&(r={}),!Be())return M;t&&(n=t+"_"+n);for(var o=i({},we(r),{timestamp:Date.now().toString()}),a=0;a<y.length;a++)Bt(o,(0,y[a])(o));return function(e,n,t){p.push({level:e,event:n,payload:t}),-1!==kt.indexOf(e)&&I()}(e,n,o),N(e,n,o),M}function x(e,n){return e.push(n),M}function D(e){if(!Be())return M;r&&(e.metricNamespace=r+"."+e.metricNamespace),E.length>0&&!e.dimensions&&(e.dimensions={});for(var n=0;n<E.length;n++)Bt(e.dimensions||{},(0,E[n])(e.dimensions||{}));return N("debug","metric."+e.metricNamespace,e.dimensions||{}),v.push(e),M}Be()&&Ee(I,d),"object"==typeof window&&(window.addEventListener("beforeunload",(function(){S()})),"onpagehide"in window?window.addEventListener("pagehide",(function(){S()})):window.addEventListener("unload",(function(){S()})));var M={debug:function(e,n){return C("debug",e,n)},info:function(e,n){return C("info",e,n)},warn:function(e,n){return C("warn",e,n)},error:function(e,n){return C("error",e,n)},track:function(e){if(void 0===e&&(e={}),!Be())return M;for(var n=we(e),t=0;t<g.length;t++)Bt(n,(0,g[t])(n));return N("debug","track",n),m.push(n),M},metric:D,metricCounter:function(e){var n;return D({metricNamespace:e.namespace,metricEventName:e.event,metricValue:null!=(n=e.value)?n:1,metricType:"counter",dimensions:e.dimensions})},metricGauge:function(e){return D({metricNamespace:e.namespace,metricEventName:e.event,metricValue:e.value,metricType:"gauge",dimensions:e.dimensions})},metricHistogram:function(e){return D({metricNamespace:e.namespace,metricEventName:e.event,metricValue:e.value,metricType:"histogram",dimensions:e.dimensions})},flush:I,immediateFlush:S,addPayloadBuilder:function(e){return x(y,e)},addMetaBuilder:function(e){return x(w,e)},addMetricDimensionBuilder:function(e){return x(E,e)},addTrackingBuilder:function(e){return x(g,e)},addHeaderBuilder:function(e){return x(_,e)},setTransport:function(e){return c=e,M},configure:function(e){return e.url&&(n=e.url),e.prefix&&(t=e.prefix),e.logLevel&&(a=e.logLevel),e.transport&&(c=e.transport),e.flushInterval&&(d=e.flushInterval),e.enableSendBeacon&&(f=e.enableSendBeacon),M},__buffer__:{get events(){return p},get tracking(){return m},get metrics(){return v}}};return Object.defineProperty(M,"__buffer__",{writable:!1}),M}var Wt,Gt=de((function(){return qt({url:(void 0===(e="/xoplatform/logger/api/logger")&&(e=""),"https://www.paypal.com"+e),metricNamespacePrefix:"pp.sdks.ppcp"});var e}));function jt(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 Zt(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){jt(i,r,o,a,u,"next",e)}function u(e){jt(i,r,o,a,u,"throw",e)}a(void 0)}))}}var Kt=((Wt={}).local="https://cdn-latest.static.engineering.dev.paypalinc.com/qaRdaAssets/fraudnet/async/fb-raw.js",Wt.stage="https://cdn-latest.static.engineering.dev.paypalinc.com/qaRdaAssets/fraudnet/async/fb-raw.js",Wt.sandbox="https://c.paypal.com/da/r/fb.js",Wt.production="https://c.paypal.com/da/r/fb.js",Wt.test="https://c.paypal.com/da/r/fb.js",Wt);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?Kt[t]+"?"+u:Kt[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(){Gt().warn("ppcp_axo_init_fraudnet_failed")}));return{collect:(i=Zt((function*(){try{yield a,yield window.PAYPAL.asyncData.collect()}catch(e){Gt().warn("ppcp_axo_collect_fraudnet_failed")}})),function(){return i.apply(this,arguments)})}})),de((function(e){Gt().info("rest_api_create_access_token");var n,t=re(e+":");return ln({method:"post",url:(n="/v1/oauth2/token",void 0===n&&(n=""),""+("undefined"!=typeof window&&void 0!==window.location&&"https://www.paypal.com"===T()?"https://www.paypal.com":__PAYPAL_API_DOMAIN__)+n),headers:{Authorization:"Basic "+t},data:{grant_type:"client_credentials"}}).then((function(n){var t=n.body;if(t&&"invalid_client"===t.error)throw new Error("Auth Api invalid client id: "+e+":\n\n"+JSON.stringify(t,null,4));if(!t||!t.access_token)throw new Error("Auth Api response error:\n\n"+JSON.stringify(t,null,4));return t.access_token}))})),de(_e);var zt,Yt,Vt,Jt,Qt,Xt={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"]},$t=(Yt=Zt((function*(){if(!zt){var e=Xt.create,n=Xt.extractable,t=Xt.usages,r=yield window.crypto.subtle.generateKey(e,n,t);zt=zt||{publicKey:r.publicKey,privateKey:r.privateKey}}return zt})),function(){return Yt.apply(this,arguments)}),er=function(e){return new Uint8Array(e.split("").map((function(e){return e.charCodeAt(0)})))},nr=function(e){return String.fromCharCode.apply(String,e)},tr=function(e){return btoa(e).replace(/[=]+/g,"").replace(/\+/g,"-").replace(/\//g,"_")},rr=(Vt=Zt((function*(e){var n=er(e),t=yield window.crypto.subtle.digest("sha-256",n),r=nr(new Uint8Array(t));return tr(r)})),function(e){return Vt.apply(this,arguments)}),or=(Jt=Zt((function*(e){var n=e.crv,t=e.e,r=e.kty,o=e.n,i=e.x,a=e.y;return yield rr(JSON.stringify({crv:n,e:t,kty:r,n:o,x:i,y:a}))})),function(e){return Jt.apply(this,arguments)}),ir=(Qt=Zt((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=tr(JSON.stringify({alg:Xt.alg,typ:"dpop+jwt",jwk:u})),s={ath:n?yield rr(n):void 0,cnf:{jkt:yield or(u)},htm:t,htu:a,iat:Math.floor(new Date/1e3),jti:window.crypto.randomUUID(),nonce:r},d=tr(JSON.stringify(s)),l=yield window.crypto.subtle.sign(Xt.sign,i,er(c+"."+d));return c+"."+d+"."+tr(nr(new Uint8Array(l)))})),function(e){return Qt.apply(this,arguments)}),ar=(Zt((function*(e){var n=e.accessToken,t=e.method,r=e.uri,o=e.nonce,a=yield $t(),u=a.privateKey,c=a.publicKey;return i({},n&&{Authorization:"DPoP "+n},{DPoP:yield ir({accessToken:n,method:t,uri:r,nonce:o,publicKey:c,privateKey:u})})})),{PAY_LATER_LONG_TERM:"PAY_LATER_LONG_TERM",PAY_LATER_SHORT_TERM:"PAY_LATER_SHORT_TERM",PAY_LATER_PAY_IN_1:"PAY_LATER_PAY_IN_1",PAYPAL_CREDIT_NO_INTEREST:"PAYPAL_CREDIT_NO_INTEREST",PAY_LATER:"PAY_LATER",REWARDS:"REWARDS"}),ur={MESSAGE:"paypal-message",MODAL:"paypal-credit-modal",TREATEMENTS:"paypal-credit-treatments",BUTTONS:"paypal-buttons"};function cr(){return!0}function sr(){return"sandbox"}function dr(){}function lr(){}var fr=("undefined"!=typeof document?document:{}).currentScript;function pr(){return fr||document.querySelector('script[src$="messaging.js"]')||document.querySelector('script[src$="merchant.js"]')}function hr(){}function mr(){return"paypal"}function vr(){var e;return(null==(e=pr())?void 0:e.getAttribute("data-pp-namespace"))||"paypal"}function yr(){return"1.85.0"}function wr(){return Object.values(ur).some((function(e){return window.name.startsWith("__zoid__"+e.replace(/-/g,"_"))}))}function gr(){return cn({name:vr()})}function Er(){return gr().getSessionID()}function _r(){return gr().getID()}function Nr(e){return gr().getState((function(n){return Object.assign(n,e)}))}function Sr(){}function br(){window}function Tr(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}function Ar(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 Rr=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 Ar(this.children,e)},e}(),Pr=function(){function e(e){this.type="fragment",this.children=void 0,this.children=e}return e.prototype.render=function(e){return Ar(this.children,e)},e}(),Or=function(){function e(e){this.type="text",this.text=void 0,this.text=e}return e.prototype.render=function(e){return e(this)},e}(),Ir=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=Cr(Array.isArray(e)?e:[e]);return 1===n.length?n[0]:n.length>1?new Pr(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 Ar(this.children,e)},e}();function Cr(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 Or(r.toString()));else{if("boolean"==typeof r)continue;if(Array.isArray(r))for(var o=0,i=Cr(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 xr,Dr,Mr,Lr=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=Cr(r),"string"==typeof e)return new Rr(e,n,r);if("function"==typeof e)return new Ir(e,n,r);throw new TypeError("Expected jsx element to be a string or a function")},Fr=((xr={}).svg="http://www.w3.org/2000/svg",xr),Hr=((Dr={})["xlink:href"]="http://www.w3.org/1999/xlink",Dr);function kr(e,n){return e.createTextNode(n.text)}function Ur(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=Hr[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 Br=((Mr={}).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(Wr({doc:r}));i.children.length;)o.appendChild(i.children[0])}))},Mr.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},Mr.default=function(e,n,t){for(var r=0,o=n.renderChildren(t);r<o.length;r++)e.appendChild(o[r])},Mr);function qr(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(Br[n.name]||Br.default)(e,n,r)}function Wr(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 kr(t,e);if("element"===e.type){var o=function(e,n,t){return e.createElementNS(t,n.name)}(t,e,n);return Ur(o,e),qr(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 kr(t,e);if("element"===e.type){var n=Fr[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 Ur(i,e),qr(i,e,t,o),i}throw new TypeError("Unhandleable node")};return o}function Gr(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 jr(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 Zr(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)}}Zr((function(e,n){return n[e]})),Zr((function(e,n){var t;return(t={})[e]=n,t}));var Kr=Gr((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)}))})),zr=function(){return(new Date).getTime()},Yr=Gr((function(){var e=document.querySelector('meta[name="viewport"]')||Lr("meta",{name:"viewport",content:""}).render(Wr({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 Vr(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 ar.PAY_LATER_LONG_TERM:return ar.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 ar.PAY_LATER_SHORT_TERM:return ar.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 ar.PAY_LATER_PAY_IN_1:return ar.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 ar.PAYPAL_CREDIT_NO_INTEREST:return ar.PAYPAL_CREDIT_NO_INTEREST;case ar.PAY_LATER:return ar.PAY_LATER;case ar.REWARDS:return ar.REWARDS;default:return}}function Jr(){var e,n,t,r;return null!=(e=gr().getState((function(e){return null==e?void 0:e.ts})))?e:(r=decodeURIComponent(null!=(n=null==(t=document.cookie.split("; ").find((function(e){return e.startsWith("ts_c=")})))?void 0:t.slice(5))?n:""),0===Object.keys(r).length?null:Object.fromEntries(new URLSearchParams(r).entries()))}function Qr(e,n){var t=void 0===n?{}:n,r=t.inZoid,o=t.debugObj;/(\?|&)pp_debug=true(&|$)/.test(window.location.search)&&!!r===wr()&&console.warn("PayPal Messages Debug:",e,null!=o?o:"")}function Xr(e){return Object.entries(e).reduce((function(e,n){var t,r,o,a=n[0],u=n[1];return Array.isArray(u)?i({},e,((r={})[a]=[].concat(u),r)):i({},e,"object"==typeof u?((o={})[a]=Xr(u),o):((t={})[a]=u,t))}),{})}function $r(e,n){return function e(n,t){return Object.entries(t).reduce((function(t,r){var o,a,u,c,s=r[0],d=r[1];return Array.isArray(d)?i({},t,((a={})[s]=[].concat(d),a)):"object"!=typeof d||null===d||n[s]&&"object"==typeof n[s]&&!Array.isArray(n[s])?i({},t,"object"==typeof d&&null!==d?((c={})[s]=e(n[s],d),c):((o={})[s]=d,o)):i({},t,((u={})[s]=Xr(d),u))}),n)}(Xr(e),n)}function eo(e,n,t){var r;void 0===t&&(t="-");var o,i=e.indexOf(t);if(-1===i)return(o={})[e]=n,o;var a=e.slice(0,i),u=e.slice(i+1);return(r={})[a]=eo(u,n,t),r}var no=function(e){var n;return null==e||null==(n=e.ownerDocument)?void 0:n.defaultView},to=function(){try{return window.top.document.body&&window.top}catch(e){return}};function ro(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}function oo(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 $r(e,function(e,n){if("string"==typeof n&&n.startsWith("["))try{return eo(e,JSON.parse(n.replace(/'/g,'"')))}catch(e){}return eo(e,n)}(null!=(i=n[a])?i:a,u))}return e}),{});if(!e.firstElementChild||"SCRIPT"!==e.firstElementChild.tagName||"text/template"!==e.firstElementChild.getAttribute("type"))return r;var o=e.firstElementChild.textContent.trim();return e.removeChild(e.firstElementChild),$r(r,{style:{markup:o}})}Zr((function(e,n,t){return n.getElementsByClassName(e+"__"+t)[0]})),Zr((function(e,n){var t=document.createElement("style");t.textContent=n,e.insertBefore(t,e.firstChild)})),Zr((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)})),Zr((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 io=Zr((function(e,n,t,r){if(void 0===t&&(t="PayPal Credit"),void 0===r&&(r=""),Array.isArray(n))n.forEach((function(n){return io(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 l=document.createElement("canvas");l.height=c,l.width=u,d.appendChild(s),d.appendChild(l),e.appendChild(d)}else e.parentNode.removeChild(e)}),2);function ao(e){var n=e.getBoundingClientRect(),t=no(e),r=(n.top+n.bottom)/2,o=(n.left+n.right)/2;return!(r>t.innerHeight||r<0||o>t.innerWidth||o<0)}function uo(e){var n=no(e);if("function"==typeof n.getComputedStyle){var t=n.getComputedStyle(e);if("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility")||"auto"!==t.getPropertyValue("clip"))return!0}var r=e.getBoundingClientRect();return r.left>n.document.body.scrollWidth||r.right<0||r.top>n.document.body.scrollHeight||r.bottom<0||0===e.offsetWidth||0===e.offsetHeight}function co(e){return"string"==typeof e?Array.from(document.querySelectorAll(e)):ro(e)?[e]:Array.isArray(e)&&e.every(ro)?e.flatMap(co):[]}var so=function(e,n){if((null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE&&!(e instanceof Window)||(null==n?void 0:n.nodeType)!==Node.ELEMENT_NODE)return!1;var t=e instanceof Window?{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}:e.getBoundingClientRect(),r=n.getBoundingClientRect();return t.top<=r.top&&t.bottom>=r.bottom&&t.left<=r.left&&t.right>=r.right},lo="__paypal_messages_"+"1.85.0".replace(/[.-]/g,"_")+"__",fo=function(){var e,n,t;return null!=(e=window[lo])?e:(n=function(e){void 0===e&&(e={});var n=i({},e);return[n,jr(Object.assign,n)]}(window[lo]||{index:1,config:{},messagesMap:new Map}),(t=n[0]).setGlobalState=n[1],Object.defineProperty(window,lo,{value:t,enumerable:!1,configurable:!0,writable:!1}),window[lo])},po=function(e){return fo().setGlobalState(e)},ho=function(){var e=fo().index;return po({index:e+1}),e},mo=function(){var e=0;return function(n){return n+" "+(e+=1)}};function vo(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 yo=function(e,n){return function(){var t;return fo()[e]||po(((t={})[e]=n(),t)),fo()[e]}},wo=_e(),go=function(){var e=pr();if(e&&!e[lo]){Qr("Script:",{debugObj:e});var n=oo(e);po({config:i({},fo().config,{account:void 0,merchantId:void 0,currency:void 0,pageType:void 0},n)}),e[lo]=!0}},Eo=new h((function(e){return wo.once("treatments",e)})),_o=new h((function(e){return wo.once("render",e)})),No=(new h((function(e){return wo.once("modal-render",e)})),new h((function(e){return"undefined"!=typeof document&&"complete"!==document.readyState?window.addEventListener("load",e):e()}))),So=new h((function(e){return"undefined"!=typeof document&&"loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e()}));function bo(e,n){var t,r,o,a,u,c,s,d,l=n.meta,f=n.events,p=n.tracking,h=null!=(t=l.global)?t:{},m=h.deviceID,v=h.sessionID,y=h.integration_type,w=h.integration_version,g=h.globalSessionID;e.startsWith("client-id:")&&(r=e.slice(10));var E=Object.entries(l).filter((function(n){return n[1].account===e})).map((function(e){var n,t=e[0],r=e[1],l=r.type,h=r.partnerClientId,m=r.buttonSessionId,v=r.messageRequestId,y=r.stats,w=void 0===y?{}:y,g=r.trackingDetails,E=r.language_requested,_=r.language_rendered,N=g.clickUrl;delete g.clickUrl,d=null!=d?d:h,o=null!=o?o:g.MERCHANT_PROFILE_HASH,a=null!=a?a:g.MERCHANT_PROFILE_VALID,u=null!=u?u:g.BUYER_PROFILE_HASH,c=null!=c?c:g.BUYER_PROFILE_VALID,s=null!=s?s:w.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 b=w.render_duration,T=w.request_duration;return delete w.render_duration,delete w.request_duration,i({component_type:l,instance_id:v,button_session_id:m,fdata:new URLSearchParams(N).get("fdata"),language_requested:null!=E?E:"undefined",language_rendered:null!=_?_:"undefined",merchant_events:f.filter((function(e){var n;return(null==(n=e.payload)?void 0:n.index)===t}))},g,w,{component_events:S.filter((function(e){return"MORS"!==e.event_type})).map((function(e){return i({render_duration:b,request_duration:T},e)}))})}));return{specversion:"1.0",type:"com.paypal.credit.upstream-presentment.v1",source:"urn:paypal:event-src:js-sdk:messages",datacontenttype:"application/json",dataschema:"ppaas:events.credit.FinancingPresentmentAsyncAPISpecification/v1/schema/json/credit_upstream_presentment_event.json",data:{client_id:r,merchant_id:e,partner_client_id:d,partner_attribution_id:s,merchant_profile_hash:o,merchant_profile_valid:a,buyer_profile_hash:u,buyer_profile_valid:c,device_id:m,global_session_id:g,session_id:v,integration_type:y,integration_version:w,components:E}}}var To=qt({url:vo("LOGGER"),prefix:"paypal_messages",logLevel:"warn",flushInterval:1e4,transport:function(e){var n=e.url,t=e.method,r=e.json,o=e.headers,a=r.events.reduce((function(e,n){var t=n.payload;return[].concat(e,[t.index,t.refIndex])}),[]),u=r.tracking.reduce((function(e,n){return[].concat(e,[n.index,n.refIndex])}),[]),c=a.concat(u),s=Object.keys(r.meta).filter((function(e){return c.includes(e)||"global"===e})).reduce((function(e,n){var t;return i({},e,((t={})[n]=r.meta[n],t))}),{}),d=r;d.meta=s;var l,f,p,m,v,y=n+"?disableSetCookie=true&features=disable-set-cookie",w=null==(l=Object.entries(s).find((function(e){var n=e[1];return"global"!==e[0]&&(null==n?void 0:n.account)})))?void 0:l[1];if(null!=w&&w.account){var g=btoa(w.account);o.Authorization="Basic "+g}return h.all((f=d,p=f.meta,m=f.events,v=f.tracking,Array.from(new Set(Object.values(p).map((function(e){return e.account})).filter(Boolean))).reduce((function(e,n){return[].concat(e,[bo(n,{meta:p,events:m,tracking:v})])}),[])).map((function(e){return function(e,n,t){var r=void 0===t?{}:t,o=r.data,a=r.headers,u=r.withCredentials;return new h((function(t,r){var c=new XMLHttpRequest;u&&(c.withCredentials=!0),c.onreadystatechange=function(){if(4===c.readyState){var e=c.getAllResponseHeaders().trim().split("\n").reduce((function(e,n){var t,r=n.trim().split(": "),o=r[1];return i({},e,((t={})[r[0].toLowerCase()]=o,t))}),{});switch(c.status){case 200:t({headers:e,data:"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:r(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 o?JSON.stringify(o):o)}))}(t,y,{headers:i({"content-type":"application/json"},o),data:e,withCredentials:!0})})))}});To.addMetaBuilder((function(){return{global:{integration_type:"STANDALONE",integration_version:"1.85.0"}}})),To.addPayloadBuilder((function(e){return delete e.container,delete e.selector,{}})),To.addTrackingBuilder((function(){return{timestamp:(new Date).getTime()}}));var Ao={RENDERING:"/integrate/#enable-pay-later-messaging-on-your-website",GENERAL:"/integrate/reference/"};function Ro(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",__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=Ao[e])?r:Ao.GENERAL)}var Po=yo("__insertion_observer__",(function(){return new MutationObserver((function(e){var n=[];e.forEach((function(e){"attributes"===e.type&&"data-pp-message"===e.attributeName?n.push(e.target):Array.from(e.addedNodes).forEach((function(e){ro(e)&&(e.hasAttribute("data-pp-message")?n.push(e):Array.from(e.querySelectorAll("[data-pp-message]")).forEach((function(e){return n.push(e)})))}))})),n.length>0&&n.forEach((function(e){var n;return null==(n=window[vr()])?void 0:n.Messages({_auto:!0}).render(e)}))}))})),Oo=function(e){var n=function(e,n){return n.reduce((function(n,t){var r;return e.has(t.target)&&null!=(r=t.attributeName)&&r.startsWith("data-pp-")?(n.push(t.target),n):n}),[])}(fo().messagesMap,e);n.length>0&&n.forEach((function(e){var n;return null==(n=window[vr()])?void 0:n.Messages().render(e)}))},Io=yo("__attribute_observer__",(function(){return new MutationObserver(Oo)})),Co=function(){return h.resolve(void 0===window.IntersectionObserver?Kr("https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=IntersectionObserver"):void 0)},xo=yo("__viewport_intersection_observer__",(function(){return Co().then((function(){return new IntersectionObserver((function(e,n){e.forEach((function(e){var t=e.target.getAttribute("data-pp-id");e.isIntersecting&&(To.track({index:t,et:"CLIENT_IMPRESSION",event_type:"scroll",visible:"true"}),n.unobserve(e.target))}))}),{threshold:.5})}))})),Do=yo("__intersection_observer__",(function(){return Co().then((function(){return h.all([No,_o])})).then((function(){var e=function(e){for(var n=no(e),t=[],r=e;(null==(o=r)?void 0:o.parentNode.nodeType)===Node.ELEMENT_NODE;){var o;0!==r.parentNode.offsetHeight&&t.push(r.parentNode),r=r.parentNode}t.reverse();var i=t[0],a=t.find((function(e,t,r){var o,a=e.offsetHeight,u=r[t+1];if(u&&a<=u.offsetHeight)return i=u,!1;if(a>n.innerHeight&&a>=i.offsetHeight)return!0;var c=null!=(o=r[t-1])?o:e.parentNode;return!!(u&&u.offsetHeight<a&&so(c,e))})),u=so(n,a)?void 0:a;return Qr("Root:",{debugObj:u||"undefined. Viewport is used as the root."}),u}(fo().messagesMap.keys().next().value);return new IntersectionObserver((function(n,t){var r=fo().messagesMap;n.forEach((function(n){var o,i=n.target,a=i.parentNode.parentNode;Qr("Message Container:",{debugObj:a}),Qr("Messages Container Parent:",{debugObj:a.parentNode});var u=(r.get(a)||{}).state;if(null!=u&&u.renderStart){var c,s=a.getAttribute("data-pp-id"),d=Number(i.getAttribute("data-width")),l=Number(i.getAttribute("data-height")),f=zr()-u.renderStart;0===(null==(o=n.rootBounds)?void 0:o.width)&&0===n.rootBounds.height&&(c=so(e,i)),(n.intersectionRatio<.9&&n.intersectionRatio>0&&!function(e,n){if((null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE&&!(e instanceof Window)||(null==n?void 0:n.nodeType)!==Node.ELEMENT_NODE)return!1;var t=e instanceof Window?{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}:e.getBoundingClientRect(),r=n.getBoundingClientRect();return r.left>=t.right||r.right<=t.left||r.bottom<=t.top||r.top>=t.bottom}(null!=e?e:window,i)||Math.ceil(i.getBoundingClientRect().width+1)<d)&&!c?(To.warn(u.renderComplete?"update_hidden":"hidden",{description:"PayPal Message has been hidden. Message must be visible and requires minimum dimensions of "+d+"px x "+l+"px. Current container is "+n.intersectionRect.width+"px x "+n.intersectionRect.height+"px.",container:a,index:s,duration:f,help_url:Ro("RENDERING")}),To.track({index:s,et:"CLIENT_IMPRESSION",event_type:"message_hidden"}),Qr("Message Hidden: true"),u.renderComplete=!0,delete u.renderStart,i.style.setProperty("opacity","0","important"),i.style.setProperty("pointer-events","none","important"),t.unobserve(i)):(i.style.setProperty("opacity",1),i.style.setProperty("pointer-events",null),To.info(u.renderComplete?"update_visible":"visible",{index:s,duration:f}),u.renderComplete=!0,delete u.renderStart,t.unobserve(i))}else t.unobserve(i)}))}),{root:e})}))}));function Mo(){var e=fo().config.account;return"string"==typeof e?e:void 0}function Lo(){var e=Mo();return null!=e&&e.startsWith("client-id:")?e.slice("client-id:".length):void 0}function Fo(){var e=Mo();return e&&!e.startsWith("client-id:")?e:void 0}var Ho=yo("__paypal_credit_treatments__",(function(){return Ft({tag:ur.TREATEMENTS,url:vo("TREATMENTS"),domain:/\.paypal\.com(:\d+)?$/,containerTemplate:function(e){var n=e.uid,t=e.prerenderFrame,r=e.frame,o=e.doc;return Lr("span",{id:n},Lr("style",null,"\n #"+n+" {\n position: absolute!important;\n left: -99999px;\n top: -99999px;\n width: 1px;\n height: 1px;\n }\n "),Lr("node",{el:r}),Lr("node",{el:t})).render(Wr({doc:o}))},props:{disableSetCookie:{type:"boolean",queryParam:!0,required:!1,value:cr},features:{type:"string",queryParam:"features",required:!1,value:Tr},namespace:{type:"string",queryParam:!1,value:mr},deviceID:{type:"string",queryParam:!0,value:_r},clientId:{type:"string",queryParam:"client_id",required:!1,value:Lo},payerId:{type:"string",queryParam:"payer_id",required:!1,value:Fo},onReady:{type:"function",queryParam:!1,value:function(){return function(e){Nr({experiments:{treatmentsHash:e.treatmentsHash,expiration:Date.now()+9e5}}),wo.trigger("treatments")}}},sdkMeta:{type:"string",queryParam:!0,sendToChild:!1,required:!1,value:hr,debug:Qr("SDK Meta: "+void 0)},uid:{type:"string",queryParam:!0,value:un,debug:Qr("ScriptUID: "+un())},stageTag:{type:"string",queryParam:!0,required:!1,value:Sr},env:{type:"string",queryParam:!0,value:sr,debug:Qr("Environment: sandbox")},scriptUID:{type:"string",queryParam:!0,value:un,debug:Qr("ScriptUID: "+un())},version:{type:"string",queryParam:!0,value:yr,debug:Qr("Library Version: 1.85.0")},integrationType:{type:"string",queryParam:!0,value:function(){return"STANDALONE"},debug:Qr("Library Integration: STANDALONE")}}})})),ko=Gr((function(){Ho()().render(document.body)}));function Uo(){if(wr()||!qe())return null;var e=gr().getState((function(e){return e.experiments}));return e?e.expiration<Date.now()?("loading"===document.readyState?window.addEventListener("DOMContentLoaded",(function(){return ko()})):ko(),null):e.treatmentsHash:null}var Bo=function(e){return"__paypal_messaging_performance__"+e},qo=function e(){return fe(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 Wo(e){var n,t;return null!=(n=null==qo||null==(t=qo.getEntriesByName(Bo(e))[0])?void 0:t.duration)?n:-1}function Go(e){var n,t=null==qo?void 0:qo.getEntriesByType("navigation")[0];return null!=(n=null==t?void 0:t[e])?n:-1}function jo(e,n){var t=void 0===n?{}:n,r=t.startMark,o=t.endMark,i=t.repeat;if(qo){if(-1!==Wo(e)){if(!i)return;qo.clearMeasures(Bo(e)),qo.clearMarks(Bo(e))}window.document.documentMode||Boolean(window.navigator&&window.navigator.userAgent&&/Edge|MSIE|rv:11/i.test(window.navigator.userAgent))?qo.measure(Bo(e)):qo.measure(Bo(e),r?Bo(r):void 0,o?Bo(o):void 0),qo.mark(Bo(e))}}var Zo=Gr((function(){var e=window.document.body.appendChild(window.document.createElement("div"));e.setAttribute("class","pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads text-ad-links"),e.style.setProperty("width","1px","important"),e.style.setProperty("height","1px","important"),e.style.setProperty("position","absolute","important"),e.style.setProperty("left","-10000px","important"),e.style.setProperty("top","-1000px","important");var n=void 0!==window.getComputedStyle?window.getComputedStyle(e):void 0;return new h((function(t){!function r(o){return o<=0?(window.document.body.removeChild(e),t(!1)):null!==window.document.body.getAttribute("abp")||n&&("none"===n.getPropertyValue("display")||"hidden"===n.getPropertyValue("visibility"))||null===e.offsetParent||0===e.offsetHeight||0===e.offsetLeft||0===e.offsetTop||0===e.offsetWidth||0===e.clientHeight||0===e.clientWidth?(window.document.body.removeChild(e),t(!0)):setTimeout((function(){r(o-1)}),50)}(5)}))})),Ko=function(e){return Math.round(e).toString()};function zo(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}}wr()||No.then((function(){var e={et:"CLIENT_IMPRESSION",event_type:"page_loaded",script_load_delay:Ko(Wo("scriptLoadDelay")),dom_load_delay:Ko(Go("domContentLoadedEventStart")),page_load_delay:Ko(Go("loadEventStart"))};To.track(e)}));var Yo=Gr((function(e,n){return To.warn("invalid_option_value",{description:n,location:e,help_url:Ro("GENERAL")})})),Vo=function(e,n,t){var r=Array.isArray(t)?"array":typeof t;Yo(e,'Expected type "'+n.toLowerCase()+'" but instead received "'+r+'" ('+JSON.stringify(t)+").")};function Jo(e,n){if(!zo("STRING",e))throw Vo("offer","STRING",e),new Error("offer_validation_error");if(!n.includes(e))throw Yo("offer","Ensure valid offer type."),new Error("offer_validation_error")}var Qo,Xo,$o,ei={account:function(e){var n=e.props.account;if(zo("STRING",n)){if(13===n.length||10===n.length||n.startsWith("client-id:"))return n;Yo("account","Ensure the correct Merchant Account ID has been entered.")}else Vo("account","STRING",n)},merchantId:function(e){var n=e.props.merchantId;if(void 0!==n){if(zo("STRING",n))return n.split(",").some((function(e){return 13!==e.length&&10!==e.length}))&&Yo("merchantId","Ensure the correct Merchant ID has been entered."),n;Vo("merchantId","STRING",n)}},customerId:function(e){var n=e.props.customerId;if(void 0!==n)if(zo("STRING",n)){if(13===n.length||10===n.length)return n;Yo("customerId","Ensure the correct Merchant ID has been entered.")}else Vo("customerId","STRING",n)},amount:function(e){var n=e.props.amount;if(void 0!==n){var t=Number(n);if(zo("NUMBER",t)){if(!(t<0))return t;Yo("amount","Ensure value is a positive number.")}else Vo("amount","NUMBER",n)}},offer:function(e){var n=e.props.offer,t=[].concat(Object.values(ar),["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 Yo("offer","Ensure valid offer length"),new Error("offer_validation_error: offers cannot exceed 2");var o=r.map((function(e){return Jo(e,t),e}));return o[0]===o[1]?o[0]:o.sort().join()}return Jo(n,t),n}return n},style:function(e){var n=e.props.style;if(zo("OBJECT",n)){var t=null!=n&&n.layout?n:i({},n,{layout:"text"});if(zo("STRING",t.layout))return t;if(Vo("style.layout","STRING",t.layout),zo("STRING",t.preset))return i({layout:"text"},t)}else void 0!==n&&Vo("style","OBJECT",n);return{layout:"text"}},currency:function(e){var n=e.props.currency;if(void 0!==n){if(zo("STRING",n))return n;Vo("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(zo("STRING",n)){if(t.includes(n))return n;!function(e,n,t){Yo("pageType",'Expected one of ["'+n.join('", "').replace(/\|[\w|]+/g,"")+'"] but received "'+t+'".')}(0,t,n)}else Vo("pageType","STRING",n)}},buyerCountry:function(e){var n=e.props.buyerCountry;if(void 0!==n){if(zo("STRING",n))return n;Vo("buyerCountry","STRING",n)}},language:function(e){var n=e.props.language;if(void 0!==n){if(zo("STRING",n))return n;Vo("language","STRING",n)}},locale:function(e){var n=e.props.locale;if(void 0!==n){if(zo("STRING",n))return n;Vo("locale","STRING",n)}},ignoreCache:function(e){var n=e.props.ignoreCache;if(void 0!==n){if(zo("BOOLEAN",n))return n;Vo("ignoreCache","BOOLEAN",n)}},channel:function(e){var n=e.props.channel;if(void 0!==n){if(zo("STRING",n))return/^[A-Z0-9_]+$/.test(n)?n:void 0;Vo("channel","STRING",n)}},ecToken:function(e){var n=e.props.ecToken;if(void 0!==n){if(zo("STRING",n))return n;Vo("ecToken","STRING",n)}},buttonSessionId:function(e){var n=e.props.buttonSessionId;if(void 0!==n){if(zo("STRING",n))return n;Vo("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 Vo("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(",");Yo("contextualComponents","Ensure only one type of mark value is provided.")}else Yo("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(zo("STRING",n))return n;Vo("cspNonce","STRING",n)}},merchantConfig:function(e){var n=e.props.merchantConfig;if(void 0!==n){if(!zo("STRING",n))return;return n}},features:function(e){var n=e.props.features;if(void 0!==n){if(zo("STRING",n))return n;Vo("features","STRING",n)}}},ni=mo(),ti=function(e){var n,t=e.uid,r=e.frame,o=e.prerenderFrame,i=e.doc,a=e.event,u=e.props,c=e.container,s=c,d=function(e){var n;if("text"!==(null==e?void 0:e.layout))return null;var t=null==e||null==(n=e.text)?void 0:n.size,r="number"==typeof t?t:Number(t),o=Number.isFinite(r)&&r>=10&&r<=16?r:14;return Math.round(1.3*o*1*10)/10}(u.style);!d||null==s||!s.style||null!=(n=s.dataset)&&n.ppPlaceholderApplied||(s.dataset.ppPlaceholderMinHeight=s.style.minHeight||"",s.dataset.ppPlaceholderApplied="true",s.style.minHeight=d+"px"),a.on("zoid-rendered",(function(){o.parentNode.removeChild(o)}));var l="\n #"+t+" > iframe {\n width: 100%;\n height: 0;\n }\n\n #"+t+" > iframe:nth-of-type(2) {\n display: none;\n }\n ";a.on("styles",(function(e){var n=e.styles;"string"==typeof n&&(c.querySelector("#"+t+" style").textContent="\n "+l+"\n "+n.replace(/\.pp-flex[^\s:,.#]*/g,"#"+t)+"\n ")}));var f=ni(r.title);return Lr("span",{id:t},Lr("style",{nonce:u.cspNonce},l),Lr("node",{el:r,title:f,onRender:function(e){a.on("zoid-resize",(function(n){var t,r=n.width,o=n.height;null!=s&&null!=(t=s.dataset)&&t.ppPlaceholderApplied&&(s.style.minHeight=s.dataset.ppPlaceholderMinHeight||"",delete s.dataset.ppPlaceholderMinHeight,delete s.dataset.ppPlaceholderApplied),0===r&&0===o||("flex"===u.style.layout?(e.style.setProperty("height",null),e.setAttribute("data-width",0),e.setAttribute("data-height",0)):(e.setAttribute("data-width",r),e.setAttribute("data-height",o),"number"==typeof o&&e.style.setProperty("height",o+"px")),e.__hasResizedBefore__?a.once("styles",(function(){Do().then((function(n){n.observe(e)}))})):(e.__hasResizedBefore__=!0,Do().then((function(n){n.observe(e)}))))}))}}),Lr("node",{el:o,title:"Prerender "+f})).render(Wr({doc:i}))},ri=["styles","warnings"],oi=yo("__paypal_credit_message__",(function(){var e;return Ft({tag:ur.MESSAGE,url:vo("MESSAGE"),domain:/\.paypal\.com(:\d+)?$/,containerTemplate:ti,autoResize:{width:!0,height:!0,element:"button"},attributes:{iframe:{title:"PayPal Message",scrolling:"no"}},props:{account:{type:"string",queryParam:!1,required:!0,value:ei.account},merchantId:{type:"string",queryParam:"merchant_id",required:!1,value:ei.merchantId},customerId:{type:"string",queryParam:"customer_id",required:!1,value:ei.customerId},amount:{type:"number",queryParam:!0,required:!1,value:ei.amount},currency:{type:"string",queryParam:!0,required:!1,value:ei.currency},pageType:{type:"string",queryParam:"page_type",required:!1,value:ei.pageType},style:{type:"object",serialization:"json",queryParam:!0,required:!1,value:ei.style},offer:{type:"string",queryParam:"credit_type",required:!1,value:ei.offer},buyerCountry:{type:"string",queryParam:"buyer_country",required:!1,value:ei.buyerCountry},language:{type:"string",queryParam:!0,required:!1,value:ei.language},locale:{type:"string",queryParam:!0,required:!1,value:ei.locale},ignoreCache:{type:"boolean",queryParam:"ignore_cache",required:!1,value:ei.ignoreCache},channel:{type:"string",queryParam:"channel",required:!1,default:function(){return"UPSTREAM"},value:ei.channel},ecToken:{type:"string",queryParam:"ec_token",required:!1,value:ei.ecToken},contextualComponents:{type:"string",queryParam:"contextual_components",required:!1,value:ei.contextualComponents},onClick:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onClick;return function(e){var r=e.meta,o=n.modal,i=n.index,a=n.account,u=n.merchantId,c=n.currency,s=n.amount,d=n.buyerCountry,l=n.language,f=n.locale,p=n.onApply,h=r.offerType,m=r.offerCountry,v=r.messageRequestId,y=r.lander,w=r.prequalExperience;"PURCHASE_PROTECTION"===h?null==function(e,n){try{var t=new URL(e),r="https:"===t.protocol,o=/\.paypal\.com$/i.test(t.hostname);return r&&o?window.open(e,n,"width=460,height=900"):null}catch(e){return null}}(y,h)&&To.warn("Blocked unsafe lander URL",{lander:y,help_url:Ro("GENERAL")}):o.show({account:a,merchantId:u,currency:c,amount:s,buyerCountry:d,language:l,locale:f,onApply:p,offer:h,offerCountry:m,prequalExperience:w,refId:v,refIndex:i,page_view_link_source:"message_click"}),To.track({index:i,et:"CLICK",event_type:"MORS"}),To.track({index:i,et:"CLICK",event_type:"message_clicked",page_view_link_name:"Banner Wrapper"}),"function"==typeof t&&t({meta:r})}}},onHover:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.index,r=n.onHover,o=!1;return function(e){var n=e.meta;o||(o=!0,To.track({index:t,et:"CLIENT_IMPRESSION",event_type:"message_hovered"})),"function"==typeof r&&r({meta:n})}}},onReady:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onReady;return function(e){var r=e.meta,o=e.activeTags,a=e.ts,u=e.requestDuration,c=e.messageRequestId,s=e.globalSessionID,d=n.account,l=n.merchantId,f=n.index,p=n.modal,h=n.getContainer,m=n.pageType,v=n.language,y=n.locale,w=r.trackingDetails,g=r.offerType,E=r.ppDebugId,_=r.language,N=l&&d.slice(10);w.PAGE_TYPE=m,Qr("Message Correlation ID: "+E);var S=void 0!==a?a:Jr();Nr({ts:S}),To.addMetaBuilder((function(e){var n;delete e[f];var t=e.global,r=void 0===t?{}:t;return delete e.global,(n={global:i({},r,{ts:S,deviceID:_r(),sessionID:Er(),globalSessionID:s})})[f]={type:"message",messageRequestId:c,account:l||d,partnerClientId:N,trackingDetails:w,language_requested:(null==y?void 0:y.replace("_","-"))||v,language_rendered:null!=_?_:"undefined"},n})),function(e){var n=e.container,t=e.activeTags,r=e.index,o=e.requestDuration,a=fo().messagesMap.get(n).state,u=Math.round(zr()-a.renderStart).toString(),c=Wo("firstRenderDelay");ao(n)||xo().then((function(e){return e.observe(n)})),function(e){var n=e.container,t=e.activeTags,r=e.index,o=e.requestDuration,i=e.renderDuration,a=n.getBoundingClientRect(),u=to(),c={},s=function(e){return e.split("::").map((function(e){return e.split(":")[1]}))}(t),d=s[0],l=s[1],f=s[2];return Zo().then((function(e){return{index:r,ad_blocker:e.toString(),blocked:uo(n).toString(),partner_attribution_id:c["data-partner-attribution-id"],position_in_page_x:Math.round(a.left).toString(),position_in_page_y:Math.round(a.top).toString(),browser_width:String(null==u?void 0:u.innerWidth),browser_height:String(null==u?void 0:u.innerHeight),in_viewport:ao(n).toString(),headline:d,sub_headline:l,disclaimer:f,request_duration:Ko(o),render_duration:i}}))}({container:n,activeTags:t,index:r,requestDuration:o,renderDuration:u}).then((function(e){!function(e,n){To.addMetaBuilder((function(t){var r,o=i({},t[e],n);return delete t[e],(r={})[e]=o,r}))}(r,{type:"message",stats:e}),To.track({index:r,et:"CLIENT_IMPRESSION",event_type:"message_rendered",first_render_delay:Math.round(c).toString()})}))}({container:h(),activeTags:o,index:f,requestDuration:u}),p.updateProps({refIndex:f,offer:g}),To.track({index:f,et:"CLIENT_IMPRESSION",event_type:"MORS"}),"function"==typeof t&&t({meta:r})}}},onMarkup:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=e.event,r=n.onMarkup;return function(e){var o=e.styles,a=e.warnings,u=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n.indexOf(t=i[r])>=0||(o[t]=e[t]);return o}(e,ri),c=n.getContainer;return void 0!==o&&t.trigger("styles",{styles:o}),a&&a.forEach((function(e){To.warn("render_warning",{description:e,container:c(),help_url:Ro("RENDERING")})})),r&&r(i({styles:o,warnings:a},u))}}},onDestroy:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onDestroy;return function(){var e=n.getContainer,r=fo().messagesMap,o=e();h.delay(0).then((function(){if(o&&o.ownerDocument.body.contains(o)){var e=r.get(o).clone(),n=e.render,t=e.state,i=e.updateProps,a=e.clone;t.renderStart=zr(),r.set(o,{render:n,updateProps:i,state:t,clone:a}),n(o)}})),"function"==typeof t&&t()}}},payerId:{type:"string",queryParam:"payer_id",decorate:function(e){var n=e.props;return 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},merchantConfigHash:{type:"string",queryParam:"merchant_config",required:!1,value:dr,debug:Qr("Merchant Config Hash: "+void 0)},treatmentsHash:{type:"string",queryParam:"treatments",required:!1,value:Uo,debug:Qr("Treatments Hash: "+Uo())},sdkMeta:{type:"string",queryParam:!0,sendToChild:!1,required:!1,value:hr,debug:Qr("SDK Meta: "+void 0)},env:{type:"string",queryParam:!0,value:sr,debug:Qr("Environment: sandbox")},version:{type:"string",queryParam:!0,value:yr,debug:Qr("Library Version: 1.85.0")},integrationType:{type:"string",queryParam:!0,value:function(){return"STANDALONE"},debug:Qr("Library Integration: STANDALONE")},deviceID:{type:"string",queryParam:!0,value:_r,debug:Qr("Device ID: "+_r())},sessionID:{type:"string",queryParam:!0,value:Er,debug:Qr("Session ID: "+Er())},scriptUID:{type:"string",queryParam:!0,value:un,debug:Qr("ScriptUID: "+un())},messageRequestId:{type:"string",queryParam:"message_request_id",value:function(e){var n=e.state;return n.messageRequestId||(n.messageRequestId=oe()),Qr("Message Request ID: "+n.messageRequestId),n.messageRequestId}},debug:{type:"boolean",queryParam:"pp_debug",required:!1,value:function(){return!!/(\?|&)pp_debug=true(&|$)/.test(window.location.search)||void 0}},messageLocation:{type:"string",queryParam:!1,value:function(){return window.location.href},debug:Qr("Message Location: "+window.location.href)},stageTag:{type:"string",queryParam:!0,required:!1,value:Sr},partnerAttributionId:{type:"string",queryParam:!0,required:!1,value:function(){var e,n;return null!=(e=(null!=(n={})?n:{})["data-partner-attribution-id"])?e:null},debug:Qr("Partner Attribution ID: "+(null!=(e={})?e:{})["data-partner-attribution-id"])},devTouchpoint:{type:"boolean",queryParam:!0,required:!1,value:br},cspNonce:{type:"string",required:!1,default:lr,value:ei.cspNonce},disableSetCookie:{type:"boolean",queryParam:!0,required:!1,value:cr},features:{type:"string",queryParam:"features",required:!1,value:function(e){return Tr(ei.features({props:e.props}))}}}})})),ii=t(2),ai=mo(),ui=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,l=null!=s&&s.includes("new-checkout-design")?0:5,f=Yr(),p=f[0],m=f[1],v={HIDDEN:n+"-hide",MODAL_SHOW:n+"-show",TRANSITION:n+"-transition"},y=ai(t.title);return Lr("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()}))}},Lr("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("+l+"%);\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 "),Lr("div",null,Lr("node",{el:t,title:y}),Lr("node",{el:r,title:"Prerender "+y}))).render(Wr({doc:o}))}},ci=t(3),si=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",l="\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 ",f=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()}))}))})),Lr("html",{lang:"en"},Lr("head",null,Lr("meta",{httpEquiv:"X-UA-Compatible",content:"IE=edge"}),Lr("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})),Lr("style",{nonce:o},l),Lr("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||f()}},Lr("div",{class:"modal","aria-errormessage":"modal-status"},Lr("div",{class:"overlay",onClick:f,"aria-keyshortcuts":"escape"}),Lr("div",{class:"top-overlay"}),Lr("div",{class:"modal-content"},Lr("div",{class:"close-button"},Lr("button",{id:"prerender-close-btn",onClick:f,type:"button","aria-label":"Close",tabindex:"0"},"true"===d?Lr("svg",{width:"24",height:"24",viewBox:"0 0 48 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Lr("rect",{x:"4",width:"40",height:"40",rx:"20",fill:"#EDF0F2"}),Lr("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"})):Lr("svg",{"aria-hidden":"true",width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Lr("path",{d:"M12 0L0 12",transform:"translate(12 12)",stroke:"white","stroke-width":"2","stroke-linecap":"round"}),Lr("path",{d:"M0 0L12 12",transform:"translate(12 12)",stroke:"white","stroke-width":"2","stroke-linecap":"round"})))),Lr("span",{id:"modal-status","aria-label":"modal-status","aria-live":"polite"},"Loading Modal"),Lr(ci.Spinner,{nonce:o}))))).render(Wr({doc:t}))},di=yo("__paypal_credit_modal__",(function(){return Ft({tag:ur.MODAL,url:vo("MODAL"),domain:/\.paypal\.com(:\d+)?$/,containerTemplate:ui,prerenderTemplate:si,dimensions:{width:"460px",height:"900px"},attributes:{iframe:{title:"PayPal Modal",scrolling:"no"}},props:{account:{type:"string",queryParam:!1,required:!0,value:ei.account},merchantId:{type:"string",queryParam:"merchant_id",required:!1,value:ei.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:ei.customerId},currency:{type:"string",queryParam:!0,required:!1,value:ei.currency},amount:{type:"number",queryParam:!0,required:!1,value:ei.amount},buyerCountry:{type:"string",queryParam:"buyer_country",required:!1,value:ei.buyerCountry},language:{type:"string",queryParam:!0,required:!1,value:ei.language},locale:{type:"string",queryParam:!0,required:!1,value:ei.locale},offer:{type:"string",queryParam:"credit_type",required:!1,decorate:function(e){return Vr(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:ei.ignoreCache},channel:{type:"string",queryParam:"channel",required:!1,default:function(){return"UPSTREAM"},value:ei.channel},ecToken:{type:"string",queryParam:"ec_token",required:!1,value:ei.ecToken},buttonSessionId:{type:"string",queryParam:"button_session_id",required:!1,value:ei.buttonSessionId},pageType:{type:"string",queryParam:"page_type",required:!1,value:ei.pageType},contextualComponents:{type:"string",queryParam:"contextual_components",required:!1,value:ei.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;To.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;To.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;To.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;To.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"),To.track({index:i,refIndex:a,et:"CLICK",event_type:"modal_close",page_view_link_name:o}),"function"==typeof r&&r({linkName:o})}}}},onReady:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=e.state,r=e.event,o=n.onReady,a=n.buttonSessionId;return function(e){var u=e.products,c=e.meta,s=e.ts,d=n.index,l=n.offer,f=n.merchantId,p=n.account,h=n.refIndex,m=n.messageRequestId,v=n.language,y=n.locale,w=t.renderStart,g=t.show,E=t.hide,_=c.trackingDetails,N=c.ppDebugId,S=c.language,b=f&&p.slice(10);Qr("Modal Correlation ID: "+N),To.addMetaBuilder((function(e){var n;delete e[d];var t=e.global,r=void 0===t?{}:t;return delete e.global,(n={global:i({},r,{ts:void 0!==s?s:Jr(),deviceID:_r(),sessionID:Er()})})[d]={type:"modal",messageRequestId:m,buttonSessionId:a,account:f||p,partnerClientId:b,trackingDetails:_,language_requested:(null==y?void 0:y.replace("_","-"))||v,language_rendered:null!=S?S:"undefined"},n}));var T=Wo("firstModalRenderDelay");To.info("modal_render",{index:d,refIndex:h,duration:zr()-w}),To.track({index:d,refIndex:h,et:"CLIENT_IMPRESSION",event_type:"modal_rendered",modal:u.join("_").toLowerCase()+":"+(l?l.toLowerCase():u[0]),partner_attribution_id:{}[ii.SDK_SETTINGS.PARTNER_ATTRIBUTION_ID],first_modal_render_delay:Math.round(T).toString(),render_duration:Math.round(zr()-w).toString()}),"function"!=typeof o||t.products&&JSON.stringify(u)===JSON.stringify(t.products)||o({products:u,show:g,hide:E}),t.products=Array.isArray(u)&&u.map(Vr),r.trigger("ready")}}},index:{type:"string",queryParam:!1,value:function(e){var n=e.state;return n.index||(n.index=ho().toString()),n.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:hr},env:{type:"string",queryParam:!0,value:sr},version:{type:"string",queryParam:!0,value:yr},deviceID:{type:"string",queryParam:!0,value:_r},sessionID:{type:"string",queryParam:!0,value:Er},scriptUID:{type:"string",queryParam:!0,value:un},messageRequestId:{type:"string",queryParam:"message_request_id",value:oe,decorate:function(e){var n=e.props;return Qr("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:Sr},devTouchpoint:{type:"boolean",queryParam:!0,required:!1,value:br},integrationType:{type:"string",queryParam:!0,required:!1,value:function(){return"STANDALONE"}},cspNonce:{type:"string",required:!1,default:lr,value:ei.cspNonce},disableSetCookie:{type:"boolean",queryParam:!0,required:!1,value:cr},features:{type:"string",queryParam:"features",required:!1,value:function(e){return Tr(ei.features({props:e.props}))}},experimentExperience:{type:"string",queryParam:"experiment_experience",required:!1},experimentName:{type:"string",queryParam:"experiment_name",required:!1}}})})),li=(Qo=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,l=e.onReady,f=e.onCalculate,p=e.onError,m=e.onApply,v=e.onShow,y=e.onClose,w=e.channel,g=e.ecToken,E=e.contextualComponents,_=e.cspNonce,N=e.integrationIdentifier,S=e.features,b=e.buttonSessionId;jo("firstModalRenderDelay");var T,A=di()({account:n,merchantId:t,customerId:r,currency:o,amount:i,buyerCountry:a,language:u,locale:c,ignoreCache:s,offer:d,onReady:l,onCalculate:f,onError:p,onApply:m,onShow:v,onClose:y,channel:w,ecToken:g,contextualComponents:E,cspNonce:_,integrationIdentifier:N,features:S,buttonSessionId:b}),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)||to()!==window&&!(null==S?void 0:S.includes("new-checkout-design"))?"popup":"iframe";if(T&&"popup"!==r)return T.then((function(){return n&&A.updateProps(n)}));T&&"popup"===r&&Object.assign(A,A.clone());var o=new h((function(e){return A.event.once("ready",e)}));A.state.renderStart=zr();var i="show"===t.intent?h.resolve():No.then((function(){return h.delay(0)}));return T=i.then((function(){return h.all([n&&A.updateProps(n),A.render(e,r),o])})).then((function(){return wo.trigger("modal-render")}))},P=function(e){var n;void 0===e&&(e={});var t,r,o,i,a=ro(e)?oo(e):e;ro(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"),T=R("body",a,{intent:"show"});var u=Vr(e.offer),c="DE"===(null==(n=e)?void 0:n.offerCountry)?["PAY_LATER_LONG_TERM","PAY_LATER_PAY_IN_1","PAY_LATER_SHORT_TERM"]:A.state.products;return void 0!==u&&"NONE"!==u&&Array.isArray(A.state.products)&&Array.isArray(c)&&!c.find((function(e){return e===u}))?(To.warn("invalid_option_value",{location:"offer",description:'Expected one of ["'+A.state.products.join('", "')+'"] but received "'+e.offer+'".',help_url:Ro("GENERAL")}),h.resolve()):(A.state.open=!0,A.event.trigger("modal-show"),T)},O=function(){return T=R("body"),A.event.trigger("modal-hide"),T};return A.state.show=P,A.state.hide=O,{render:R,show:P,hide:O,updateProps:function(e){A.updateProps(e)}}},Xo=["account","merchantId","buyerCountry","language","locale"],$o=new Map,function(e,n){void 0===n&&(n=!1);var t=JSON.stringify(Xo.map((function(n){return e[n]})));return $o.has(t)&&!n||$o.set(t,Qo(e)),$o.get(t)}),fi=function(e){return li($r(fo().config,e))},pi=function(e){return void 0===e&&(e={}),{render:function(n){void 0===n&&(n="[data-pp-message]"),jo("firstRenderDelay");var t=zr(),r=fo().messagesMap,o=co(n);if(0===o.length)return e._auto||To.warn("invalid_selector",{description:'No elements were found with the following selector: "'+n+'"',selector:n,help_url:Ro("RENDERING")}),h.resolve();var a=o.filter((function(n){return n.ownerDocument.body.contains(n)?!e._auto||!n.hasAttribute("data-pp-id"):(To.warn("not_in_document",{description:"Container must be in the document.",container:n,help_url:Ro("RENDERING")}),!1)}));return Eo.then((function(){return h.all(a.map((function(n,o){return new h((function(a,u){var c=function(){try{var o=function(e,n){var t=fo().config,r=oo(n),o=i({},t,e,r,{pageType:r.pageType||e.pageType||r.placement||e.placement});return delete o.placement,o}(e,n);n.hasAttribute("data-pp-id")||n.setAttribute("data-pp-id",ho());var c=n.getAttribute("data-pp-id"),s=o.account,d=o.merchantId,l=o.customerId,f=o.currency,p=o.amount,h=o.pageType,m=o.style,v=o.offer,y=o.buyerCountry,w=o.language,g=o.locale,E=o.ignoreCache,_=o.onClick,N=o.onRender,S=o.onApply,b=o.channel,T=o.ecToken,A=o.contextualComponents,R={account:s,merchantId:d,customerId:l,currency:f,amount:p,buyerCountry:y,language:w,locale:g,ignoreCache:E,channel:b,ecToken:T,contextualComponents:A,cspNonce:o.cspNonce,features:o.features},P=i({},R,{onApply:S}),O=i({},R,{index:c,pageType:h,style:m,offer:v,onClick:_,onApply:S,onReady:function(){"function"==typeof N&&N.apply(void 0,arguments)},getContainer:function(){return n}});if(s&&(O.modal=fi(P)),!r.has(n)){var I=oi()(O),C=I.render,x=I.state,D=I.updateProps,M=I.clone;return x.renderStart=t,x.style=O.style,r.set(n,{render:C,updateProps:D,state:x,clone:M}),Io().observe(n,{attributes:!0}),Qr("{\n clientID: "+s+",\n merchantID: "+d+",\n customerID: "+l+",\n offer: "+v+",\n currency: "+f+",\n ignoreCache: "+E+",\n channel: "+b+",\n ecToken: "+T+",\n contextualComponents: "+A+',\n \n index: data-pp-id="'+c+'",\n style: '+JSON.stringify(m)+",\n amount: "+p+",\n buyerCountry: "+y+",\n language: "+w+",\n locale: "+g+",\n pageType: "+h+",\n \n renderStart: "+new Date(t).toLocaleString()+",\n renderMessageTime: "+(new Date).toLocaleString()+"\n }"),C(n).then((function(){return wo.trigger("render")})).then(a)}var L=r.get(n),F=L.updateProps,H=L.state;if(H.renderComplete&&(H.renderStart=t),H.style&&O.style){var k=$r(H.style,O.style);H.style=k,O.style=k}return F(Object.entries(O).reduce((function(e,n){var t,r=n[1];return void 0===r?e:Object.assign(e,((t={})[n[0]]=r,t))}),{})).then((function(){return wo.trigger("render")})).then(a)}catch(e){return"offer_validation_error"===e.message?a():u(e)}};0!==o?window.requestIdleCallback?window.requestIdleCallback(c):setTimeout(c,20*o):c()}))})))}))}}};Object.assign(pi,{render:function(e,n){return pi(e).render(n)},setGlobalConfig:function(e){return void 0===e&&(e={}),po({config:i({},fo().config,e)})}});var hi=pi;jo("scriptLoadDelay"),function(){Ho(),oi(),Do(),go();var e,n=vr();if(window[n]=null!=(e=window[n])?e:{},window[n].Messages=hi,window[n].Message=hi,!wr()){var t=function(){!Uo()&&qe()?ko():wo.trigger("treatments"),fo().config.account&&hi.render({_auto:!0}),Po().observe(document.body,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-pp-message"]}),Qr("DOMContentLoaded at "+(new Date).toLocaleString())};"loading"===document.readyState?window.addEventListener("DOMContentLoaded",t):t()}}(),function(){di(),go();var e,n=vr();window[n]=null!=(e=window[n])?e:{},window[n].MessagesModal=fi,wr()||So.then((function(){if(fo().config.account){var e=co("[data-pp-messagesmodal]");if(e.length>0){var n=$r(fo().config,oo(e[0])),t=fi(n);e.forEach((function(e){e.setAttribute("tabindex",0),e.addEventListener("click",(function(){return t.show(e)}))}))}}}))}()}]);
|
|
3
|
-
//# sourceMappingURL=messaging@1.
|
|
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=9)}([,,function(e,n,t){e.exports=t(8)},function(e,n){e.exports=function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return{}.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}([function(e,n,t){"use strict";function r(e,n){for(var t=[],r=0;r<e.length;r++){var o=e[r].render(n);if(o)if(Array.isArray(o))for(var i=0;i<o.length;i++){var a=o[i];a&&t.push(a)}else t.push(o)}return t}t.r(n),t.d(n,"Spinner",(function(){return E})),t.d(n,"SpinnerPage",(function(){return _})),t.d(n,"VenmoSpinner",(function(){return 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,l,f=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 y(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 w=((l={}).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 y(o,e),g(o,e,t,(function(e){return r(e,n)})),o}throw new TypeError("Unhandleable node")},o=function(e){if("component"===e.type)return e.renderComponent(o);if("text"===e.type)return 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 y(i,e),g(i,e,t,o),i}throw new TypeError("Unhandleable node")};return o}({doc:r}));i.children.length;)o.appendChild(i.children[0])}))},l.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},l.default=function(e,n,t){for(var r=0,o=n.renderChildren(t);r<o.length;r++)e.appendChild(o[r])},l);function g(e,n,t,r){if(n.props.hasOwnProperty("innerHTML")){if(n.children.length)throw new Error("Expected no children to be passed when innerHTML prop is set");var o=n.props.innerHTML;if("string"!=typeof o)throw new TypeError("innerHTML prop must be string");"script"===n.name?e.text=o:(e.innerHTML=o,function(e,n){void 0===n&&(n=window.document);for(var t=0,r=e.querySelectorAll("script");t<r.length;t++){var o=r[t],i=o.parentNode;if(i){var a=n.createElement("script");a.text=o.textContent,i.replaceChild(a,o)}}}(e,t))}else(w[n.name]||w.default)(e,n,r)}function E(e){return f("div",{class:"preloader spinner"},f("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"}),f("div",{class:"spinWrap"},f("p",{class:"spinnerImage"}),f("p",{class:"loader"})))}function _(e,n){var t=e.nonce;return f("html",null,f("head",null,f("title",null,"PayPal"),f("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})),f("body",null,f(E,{nonce:t}),n))}function N(e){return f(p,null,f("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'}),f("div",{class:"spinner"},f("div",null),f("div",null),f("div",null),f("div",null),f("div",null),f("div",null),f("div",null),f("div",null),f("div",null),f("div",null),f("div",null),f("div",null)))}function S(e,n){var t=e.nonce;return f("html",null,f("head",null,f("title",null,"Venmo"),f("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})),f("body",null,f(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 I})),t.d(n,"DEFAULT_INTENT",(function(){return C})),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 M})),t.d(n,"DEFAULT_VAULT",(function(){return L})),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 q})),t.d(n,"FPTI_USER_ACTION",(function(){return W})),t.d(n,"FPTI_DATA_SOURCE",(function(){return G})),t.d(n,"FPTI_FEED",(function(){return j})),t.d(n,"FPTI_SDK_NAME",(function(){return Z})),t.d(n,"FUNDING",(function(){return r})),t.d(n,"FUNDING_BRAND_LABEL",(function(){return o})),t.d(n,"CARD",(function(){return i})),t.d(n,"WALLET_INSTRUMENT",(function(){return a})),t.d(n,"FUNDING_PRODUCTS",(function(){return u})),t.d(n,"COUNTRY",(function(){return s})),t.d(n,"LANG",(function(){return d})),t.d(n,"COUNTRY_LANGS",(function(){return l})),t.d(n,"BASE_SDK_METRIC_NAMESPACE",(function(){return K})),t.d(n,"payPalWebV5Dimensions",(function(){return z})),t.d(n,"INTENT",(function(){return f})),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 y})),t.d(n,"SDK_SETTINGS",(function(){return w})),t.d(n,"SDK_DATA_ATTRIBUTES",(function(){return g})),t.d(n,"SDK_QUERY_KEYS",(function(){return E})),t.d(n,"COMPONENTS",(function(){return _})),t.d(n,"DEBUG",(function(){return N})),t.d(n,"QUERY_BOOL",(function(){return S})),t.d(n,"UNKNOWN",(function(){return b})),t.d(n,"PROTOCOL",(function(){return T})),t.d(n,"PAGE_TYPES",(function(){return A})),t.d(n,"MERCHANT_ID_MAX",(function(){return R})),t.d(n,"DISPLAY_ONLY_VALUES",(function(){return P})),t.d(n,"PLATFORM",(function(){return Y})),t.d(n,"TYPES",(function(){return V}));var r={PAYPAL:"paypal",VENMO:"venmo",APPLEPAY:"applepay",ITAU:"itau",CREDIT:"credit",PAYLATER:"paylater",CARD:"card",IDEAL:"ideal",SEPA:"sepa",BANCONTACT:"bancontact",GIROPAY:"giropay",SOFORT:"sofort",EPS:"eps",MYBANK:"mybank",P24:"p24",PAYU:"payu",BLIK:"blik",TRUSTLY:"trustly",OXXO:"oxxo",BOLETO:"boleto",BOLETOBANCARIO:"boletobancario",WECHATPAY:"wechatpay",MERCADOPAGO:"mercadopago",MULTIBANCO:"multibanco",SATISPAY:"satispay",PAIDY:"paidy",ZIMPLER:"zimpler",MAXIMA:"maxima"},o={PAYPAL:"PayPal",CREDIT:"PayPal Credit"},i={VISA:"visa",MASTERCARD:"mastercard",AMEX:"amex",DISCOVER:"discover",HIPER:"hiper",ELO:"elo",JCB:"jcb",CUP:"cup",DINERS:"diners",MAESTRO:"maestro",EFTPOS:"eftpos",CB_NATIONALE:"cb_nationale"},a={BALANCE:"balance",CARD:"card",BANK:"bank",CREDIT:"credit"},u={PAY_IN_3:"payIn3",PAY_IN_4:"payIn4",PAYLATER:"paylater",CREDIT:"credit"},c=[r.IDEAL,r.BANCONTACT,r.GIROPAY,r.SOFORT,r.EPS,r.MYBANK,r.P24,r.PAYU,r.BLIK,r.TRUSTLY,r.OXXO,r.BOLETO,r.BOLETOBANCARIO,r.WECHATPAY,r.MERCADOPAGO,r.MULTIBANCO,r.SATISPAY,r.PAIDY,r.MAXIMA,r.ZIMPLER],s={AD:"AD",AE:"AE",AG:"AG",AI:"AI",AL:"AL",AM:"AM",AN:"AN",AO:"AO",AR:"AR",AT:"AT",AU:"AU",AW:"AW",AZ:"AZ",BA:"BA",BB:"BB",BE:"BE",BF:"BF",BG:"BG",BH:"BH",BI:"BI",BJ:"BJ",BM:"BM",BN:"BN",BO:"BO",BR:"BR",BS:"BS",BT:"BT",BW:"BW",BY:"BY",BZ:"BZ",CA:"CA",CD:"CD",CG:"CG",CH:"CH",CI:"CI",CK:"CK",CL:"CL",CM:"CM",CN:"CN",CO:"CO",CR:"CR",CV:"CV",CY:"CY",CZ:"CZ",DE:"DE",DJ:"DJ",DK:"DK",DM:"DM",DO:"DO",DZ:"DZ",EC:"EC",EE:"EE",EG:"EG",ER:"ER",ES:"ES",ET:"ET",FI:"FI",FJ:"FJ",FK:"FK",FM:"FM",FO:"FO",FR:"FR",GA:"GA",GB:"GB",GD:"GD",GE:"GE",GF:"GF",GI:"GI",GL:"GL",GM:"GM",GN:"GN",GP:"GP",GR:"GR",GT:"GT",GW:"GW",GY:"GY",HK:"HK",HN:"HN",HR:"HR",HU:"HU",ID:"ID",IE:"IE",IL:"IL",IN:"IN",IS:"IS",IT:"IT",JM:"JM",JO:"JO",JP:"JP",KE:"KE",KG:"KG",KH:"KH",KI:"KI",KM:"KM",KN:"KN",KR:"KR",KW:"KW",KY:"KY",KZ:"KZ",LA:"LA",LC:"LC",LI:"LI",LK:"LK",LS:"LS",LT:"LT",LU:"LU",LV:"LV",MA:"MA",MC:"MC",MD:"MD",ME:"ME",MG:"MG",MH:"MH",MK:"MK",ML:"ML",MN:"MN",MQ:"MQ",MR:"MR",MS:"MS",MT:"MT",MU:"MU",MV:"MV",MW:"MW",MX:"MX",MY:"MY",MZ:"MZ",NA:"NA",NC:"NC",NE:"NE",NF:"NF",NG:"NG",NI:"NI",NL:"NL",NO:"NO",NP:"NP",NR:"NR",NU:"NU",NZ:"NZ",OM:"OM",PA:"PA",PE:"PE",PF:"PF",PG:"PG",PH:"PH",PL:"PL",PM:"PM",PN:"PN",PT:"PT",PW:"PW",PY:"PY",QA:"QA",RE:"RE",RO:"RO",RS:"RS",RU:"RU",RW:"RW",SA:"SA",SB:"SB",SC:"SC",SE:"SE",SG:"SG",SH:"SH",SI:"SI",SJ:"SJ",SK:"SK",SL:"SL",SM:"SM",SN:"SN",SO:"SO",SR:"SR",ST:"ST",SV:"SV",SZ:"SZ",TC:"TC",TD:"TD",TG:"TG",TH:"TH",TJ:"TJ",TM:"TM",TN:"TN",TO:"TO",TR:"TR",TT:"TT",TV:"TV",TW:"TW",TZ:"TZ",UA:"UA",UG:"UG",US:"US",UY:"UY",VA:"VA",VC:"VC",VE:"VE",VG:"VG",VN:"VN",VU:"VU",WF:"WF",WS:"WS",YE:"YE",YT:"YT",ZA:"ZA",ZM:"ZM",ZW:"ZW"},d={AR:"ar",BG:"bg",CS:"cs",DA:"da",DE:"de",EL:"el",EN:"en",ES:"es",ET:"et",FI:"fi",FR:"fr",HE:"he",HU:"hu",ID:"id",IT:"it",JA:"ja",KO:"ko",LT:"lt",LV:"lv",MS:"ms",NL:"nl",NO:"no",PL:"pl",PT:"pt",RO:"ro",RU:"ru",SI:"si",SK:"sk",SL:"sl",SQ:"sq",SV:"sv",TH:"th",TL:"tl",TR:"tr",VI:"vi",ZH:"zh",ZH_HANT:"zh_Hant"},l={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]},f={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",y="/web-sdk/v6/bridge",w={AMOUNT:"data-amount",API_STAGE_HOST:"data-api-stage-host",CLIENT_METADATA_ID:"data-client-metadata-id",CLIENT_TOKEN:"data-client-token",CSP_NONCE:"data-csp-nonce",ENABLE_3DS:"data-enable-3ds",JS_SDK_LIBRARY:"data-js-sdk-library",MERCHANT_ID:"data-merchant-id",NAMESPACE:"data-namespace",PAGE_TYPE:"data-page-type",PARTNER_ATTRIBUTION_ID:"data-partner-attribution-id",POPUPS_DISABLED:"data-popups-disabled",SDK_INTEGRATION_SOURCE:"data-sdk-integration-source",SDK_TOKEN:"data-sdk-client-token",SHOPPER_SESSION_ID:"data-shopper-session-id",STAGE_HOST:"data-stage-host",USER_EXPERIENCE_FLOW:"data-user-experience-flow",USER_ID_TOKEN:"data-user-id-token"},g=w,E={COMPONENTS:"components",ENV:"env",DEBUG:"debug",CACHEBUST:"cachebust",CLIENT_ID:"client-id",MERCHANT_ID:"merchant-id",LOCALE:"locale",CURRENCY:"currency",INTENT:"intent",COMMIT:"commit",VAULT:"vault",BUYER_COUNTRY:"buyer-country",ENABLE_FUNDING:"enable-funding",DISABLE_FUNDING:"disable-funding",DISABLE_CARD:"disable-card",INTEGRATION_DATE:"integration-date",STAGE_HOST:"stage-host",STAGE_ALIAS:"stage-alias",CDN_REGISTRY:"cdn-registry",VERSION:"version"},_={BUTTONS:"buttons",CARD_FIELDS:"card-fields",HOSTED_BUTTONS:"hosted-buttons",HOSTED_FIELDS:"hosted-fields"},N={TRUE:!0,FALSE:!1},S={TRUE:"true",FALSE:"false"},b="unknown",T={HTTP:"http",HTTPS:"https"},A={HOME:"home",PRODUCT:"product",CART:"cart",CHECKOUT:"checkout",PRODUCT_LISTING:"product-listing",SEARCH_RESULTS:"search-results",PRODUCT_DETAILS:"product-details",MINI_CART:"mini-cart"},R=10,P={VAULTABLE:"vaultable"},O=s.US,I=m.USD,C=f.CAPTURE,x=p.TRUE,D=p.TRUE,M=p.TRUE,L=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"},q={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"},G={PAYMENTS_SDK:"checkout"},j={PAYMENTS_SDK:"payments_sdk"},Z={PAYMENTS_SDK:"payments_sdk"},K="pp.sdks.ppcp",z={sdk_platform:"web",major_version:"5"},Y={DESKTOP:"desktop",MOBILE:"mobile"},V=!0}])},function(e,n,t){"use strict";function r(e,n){return(r=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function o(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,r(e,n)}function i(){return(i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function a(e){try{if(!e)return!1;if("undefined"!=typeof Promise&&e instanceof Promise)return!0;if("undefined"!=typeof window&&"function"==typeof window.Window&&e instanceof window.Window)return!1;if("undefined"!=typeof window&&"function"==typeof window.constructor&&e instanceof window.constructor)return!1;var n={}.toString;if(n){var t=n.call(e);if("[object Window]"===t||"[object global]"===t||"[object DOMWindow]"===t)return!1}if("function"==typeof e.then)return!0}catch(e){return!1}return!1}t.r(n);var u,c=[],s=[],d=0;function l(){if(!d&&u){var e=u;u=null,e.resolve()}}function f(){d+=1}function p(){d-=1,l()}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;f();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,f();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,l=void 0;if(n)try{l=c?c(this.value):this.value}catch(e){d.reject(e);continue}else if(t){if(!s){d.reject(this.error);continue}try{l=s(this.error)}catch(e){d.reject(e);continue}}if(l instanceof e&&(l.resolved||l.rejected)){var h=l;h.resolved?d.resolve(h.value):d.reject(h.error),h.errorHandled=!0}else a(l)?l instanceof e&&(l.resolved||l.rejected)?l.resolved?d.resolve(l.value):d.reject(l.error):o(l,d):d.resolve(l)}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;f();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,l(),n;var n},e}();function m(e){return"[object RegExp]"==={}.toString.call(e)}var v={IFRAME:"iframe",POPUP:"popup"},y="Call was rejected by callee.\r\n";function w(e){return void 0===e&&(e=window),e.location.protocol}function g(e){if(void 0===e&&(e=window),e.mockDomain){var n=e.mockDomain.split("//")[0];if(n)return n}return w(e)}function E(e){return void 0===e&&(e=window),"about:"===g(e)}function _(e){if(void 0===e&&(e=window),e)try{if(e.parent&&e.parent!==e)return e.parent}catch(e){}}function 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 b(e){void 0===e&&(e=window);var n=e.location;if(!n)throw new Error("Can not read window location");var t=w(e);if(!t)throw new Error("Can not read window protocol");if("file:"===t)return"file://";if("about:"===t){var r=_(e);return r&&S()?b(r):"about://"}var o=n.host;if(!o)throw new Error("Can not read window host");return t+"//"+o}function T(e){void 0===e&&(e=window);var n=b(e);return n&&e.mockDomain&&0===e.mockDomain.indexOf("mock:")?e.mockDomain:n}function A(e){if(!function(e){try{if(e===window)return!0}catch(e){}try{var n=Object.getOwnPropertyDescriptor(e,"location");if(n&&!1===n.enumerable)return!1}catch(e){}try{if(E(e)&&S())return!0}catch(e){}try{if(function(e){return void 0===e&&(e=window),"mock:"===g(e)}(e)&&S())return!0}catch(e){}try{if(b(e)===b(window))return!0}catch(e){}return!1}(e))return!1;try{if(e===window)return!0;if(E(e)&&S())return!0;if(T(window)===T(e))return!0}catch(e){}return!1}function R(e){if(!A(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 I(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=I(o);i<a.length;i++)n.push(a[i])}return n}function C(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=I(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=C(e);if(!n)throw new Error("Can not determine top window");var t=[].concat(I(n),[n]);return-1===t.indexOf(e)&&(t=[].concat(t,[e],I(e))),t}var D=[],M=[];function L(e,n){void 0===n&&(n=!0);try{if(e===window)return!1}catch(e){return!0}try{if(!e)return!0}catch(e){return!0}try{if(e.closed)return!0}catch(e){return!e||e.message!==y}if(n&&A(e))try{if(e.mockclosed)return!0}catch(e){}try{if(!e.parent||!e.top)return!0}catch(e){}var t=function(e,n){for(var t=0;t<e.length;t++)try{if(e[t]===n)return t}catch(e){}return-1}(D,e);if(-1!==t){var r=M[t];if(r&&function(e){if(!e.contentWindow)return!0;if(!e.parentNode)return!0;var n=e.ownerDocument;if(n&&n.documentElement&&!n.documentElement.contains(e)){for(var t=e;t.parentNode&&t.parentNode!==t;)t=t.parentNode;if(!t.host||!n.documentElement.contains(t.host))return!0}return!1}(r))return!0}return!1}function F(e,n){for(var t=O(e),r=0;r<t.length;r++){var o=t[r];try{if(A(o)&&o.name===n&&-1!==t.indexOf(o))return o}catch(e){}}try{if(-1!==t.indexOf(e.frames[n]))return e.frames[n]}catch(e){}try{if(-1!==t.indexOf(e[n]))return e[n]}catch(e){}}function 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=C(e)||e,r=C(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 q(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 q(e,n)})))}function W(e){return e.match(/^(https?|mock|file):\/\//)?e.split("/").slice(0,3).join("/"):T()}function G(e,n,t,r){var o;void 0===t&&(t=1e3),void 0===r&&(r=1/0);var i=function(){if(L(e))return o&&clearTimeout(o),n();r<=0?clearTimeout(o):(r-=t,o=setTimeout(i,t))};return i(),{cancel:function(){o&&clearTimeout(o)}}}function j(e){try{if(e===window)return!0}catch(e){if(e&&e.message===y)return!0}try{if("[object Window]"==={}.toString.call(e))return!0}catch(e){if(e&&e.message===y)return!0}try{if(window.Window&&e instanceof window.Window)return!0}catch(e){if(e&&e.message===y)return!0}try{if(e&&e.self===e)return!0}catch(e){if(e&&e.message===y)return!0}try{if(e&&e.parent===e)return!0}catch(e){if(e&&e.message===y)return!0}try{if(e&&e.top===e)return!0}catch(e){if(e&&e.message===y)return!0}try{if(e&&"__unlikely_value__"===e.__cross_domain_utils_window_check__)return!1}catch(e){return!0}try{if("postMessage"in e&&"self"in e&&"location"in e)return!0}catch(e){}return!1}function Z(e){if(A(e))return 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=Z(e);if(n&&n.parentElement)return void n.parentElement.removeChild(n)}try{e.close()}catch(e){}}function z(e,n){for(var t=0;t<e.length;t++)try{if(e[t]===n)return t}catch(e){}return-1}var Y,V=function(){function e(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>0)+"__",function(){if("undefined"==typeof WeakMap)return!1;if(void 0===Object.freeze)return!1;try{var e=new WeakMap,n={};return Object.freeze(n),e.set(n,"__testvalue__"),"__testvalue__"===e.get(n)}catch(e){return!1}}())try{this.weakmap=new WeakMap}catch(e){}this.keys=[],this.values=[]}var n=e.prototype;return n._cleanupClosedWindows=function(){for(var e=this.weakmap,n=this.keys,t=0;t<n.length;t++){var r=n[t];if(j(r)&&L(r)){if(e)try{e.delete(r)}catch(e){}n.splice(t,1),this.values.splice(t,1),t-=1}}},n.isSafeToReadWrite=function(e){return!j(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=z(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=z(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=z(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!==z(this.keys,e)},n.getOrSet=function(e,n){if(this.has(e))return this.get(e);var t=n();return this.set(e,t),t},e}();function J(e){return(J=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Q(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function X(e,n,t){return(X=Q()?Reflect.construct:function(e,n,t){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return t&&r(i,t.prototype),i}).apply(null,arguments)}function $(e){var n="function"==typeof Map?new Map:void 0;return($=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return X(e,arguments,J(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r(t,e)})(e)}function ee(e){var n=!1;try{(e instanceof window.Element||null!==e&&"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument)&&(n=!0)}catch(e){}return n}function ne(e){return e.name||e.__name__||e.displayName||"anonymous"}function te(e,n){try{delete e.name,e.name=n}catch(e){}return e.__name__=e.displayName=n,e}function re(e){if("function"==typeof btoa)return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,n){return String.fromCharCode(parseInt(n,16))}))).replace(/[=]/g,"");if("undefined"!=typeof Buffer)return Buffer.from(e,"utf8").toString("base64").replace(/[=]/g,"");throw new Error("Can not find window.btoa or Buffer")}function oe(){var e="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,(function(){return e.charAt(Math.floor(Math.random()*e.length))}))+"_"+re((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function ie(){if("undefined"!=typeof window)return window;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("No global found")}function ae(e){try{return JSON.stringify([].slice.call(e),(function(e,n){return"function"==typeof n?"memoize["+function(e){if(Y=Y||new V,null==e||"object"!=typeof e&&"function"!=typeof e)throw new Error("Invalid object");var n=Y.get(e);return n||(n=typeof e+":"+oe(),Y.set(e,n)),n}(n)+"]":ee(n)?{}:n}))}catch(e){throw new Error("Arguments not serializable -- can not be used to memoize")}}function ue(){return{}}var ce=0,se=0;function de(e,n){void 0===n&&(n={});var t,r,o=n.thisNamespace,i=void 0!==o&&o,a=n.time,u=ce;ce+=1;var c=function(){for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];var s,d;u<se&&(t=null,r=null,u=ce,ce+=1),s=i?(r=r||new V).getOrSet(this,ue):t=t||{};try{d=ae(o)}catch(n){return e.apply(this,arguments)}var l=s[d];if(l&&a&&Date.now()-l.time<a&&(delete s[d],l=null),l)return l.value;var f=Date.now(),p=e.apply(this,arguments);return s[d]={time:f,value:p},p};return c.reset=function(){t=null,r=null},te(c,(n.name||ne(e))+"::memoized")}function le(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 fe(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 ye(e,n){if(!n)return e;if(Object.assign)return Object.assign(e,n);for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}function we(e,n){void 0===n&&(n=Boolean);var t={};for(var r in e)e.hasOwnProperty(r)&&n(e[r],r)&&(t[r]=e[r]);return t}function ge(e){return e}function Ee(e,n){var t;return function r(){t=setTimeout((function(){e(),r()}),n)}(),{cancel:function(){clearTimeout(t)}}}function _e(){var e={},n={},t={on:function(e,t){var r=n[e]=n[e]||[];r.push(t);var o=!1;return{cancel:function(){o||(o=!0,r.splice(r.indexOf(t),1))}}},once:function(e,n){var r=t.on(e,(function(){r.cancel(),n()}));return r},trigger:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];var i=n[e],a=[];if(i)for(var u=function(){var e=i[c];a.push(h.try((function(){return e.apply(void 0,r)})))},c=0;c<i.length;c++)u();return h.all(a).then(pe)},triggerOnce:function(n){if(e[n])return h.resolve();e[n]=!0;for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.trigger.apply(t,[n].concat(o))},reset:function(){n={}}};return t}function 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 be(e){return[].slice.call(e)}function Te(e){return"object"==typeof(n=e)&&null!==n&&"[object Object]"==={}.toString.call(e);var n}function Ae(e){if(!Te(e))return!1;var n=e.constructor;if("function"!=typeof n)return!1;var t=n.prototype;return!!Te(t)&&!!t.hasOwnProperty("isPrototypeOf")}function 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(Ae(i)||Array.isArray(i))&&(i=Re(i,n,o)),i}))},a=0;a<r;a++)i(a);return o}if(Ae(e)){var u={},c=function(r){if(!e.hasOwnProperty(r))return 1;Se(u,r,(function(){var o=t?t+"."+r:""+r,i=n(e[r],r,o);return(Ae(i)||Array.isArray(i))&&(i=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 Ie(e,n,t){if(e.hasOwnProperty(n))return e[n];var r=t();return e[n]=r,r}function Ce(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 o(n,e),n}($(Error));function Me(){var e=document.body;if(!e)throw new Error("Body element not found");return e}function Le(){return Boolean(document.body)&&"complete"===document.readyState}function Fe(){return Boolean(document.body)&&"interactive"===document.readyState}function He(e){return encodeURIComponent(e)}function ke(e){return fe(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=i({},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 qe(){return fe(qe,(function(){try{if("undefined"==typeof window)return!1;if(window.localStorage){var e=Math.random().toString();window.localStorage.setItem("__test__localStorage__",e);var n=window.localStorage.getItem("__test__localStorage__");if(window.localStorage.removeItem("__test__localStorage__"),e===n)return!0}}catch(e){}return!1}))}function We(e,n){e.appendChild(n)}function Ge(e,n){return void 0===n&&(n=document),ee(e)?e:"string"==typeof e?n.querySelector(e):void 0}function je(e){return new h((function(n,t){var r=ve(e),o=Ge(e);if(o)return n(o);if(Le())return t(new Error("Document is ready and element "+r+" does not exist"));var i=setInterval((function(){return(o=Ge(e))?(n(o),void clearInterval(i)):Le()?(clearInterval(i),t(new Error("Document is ready and element "+r+" does not exist"))):void 0}),10)}))}de((function(){return new h((function(e){if(Le()||Fe())return e();var n=setInterval((function(){if(Le()||Fe())return clearInterval(n),e()}),10)}))}));var Ze,Ke=function(e){function n(){return e.apply(this,arguments)||this}return o(n,e),n}(De);function ze(e){if((Ze=Ze||new V).has(e)){var n=Ze.get(e);if(n)return n}var t=new h((function(n,t){e.addEventListener("load",(function(){(function(e){if(function(){for(var e=0;e<D.length;e++){var n=!1;try{n=D[e].closed}catch(e){}n&&(M.splice(e,1),D.splice(e,1))}}(),e&&e.contentWindow)try{D.push(e.contentWindow),M.push(e)}catch(e){}})(e),n(e)})),e.addEventListener("error",(function(r){e.contentWindow?n(e):t(r)}))}));return Ze.set(e,t),t}function Ye(e){return ze(e).then((function(e){if(!e.contentWindow)throw new Error("Could not find window in iframe");return e.contentWindow}))}function Ve(e,n){void 0===e&&(e={});var t=e.style||{},r=function(e,n,t){void 0===e&&(e="div"),void 0===n&&(n={}),e=e.toLowerCase();var r,o,i,a=document.createElement(e);if(n.style&&ye(a.style,n.style),n.class&&(a.className=n.class.join(" ")),n.id&&a.setAttribute("id",n.id),n.attributes)for(var u=0,c=Object.keys(n.attributes);u<c.length;u++){var s=c[u];a.setAttribute(s,n.attributes[s])}if(n.styleSheet&&(r=a,o=n.styleSheet,void 0===i&&(i=window.document),r.styleSheet?r.styleSheet.cssText=o:r.appendChild(i.createTextNode(o))),n.html){if("iframe"===e)throw new Error("Iframe html can not be written unless container provided and iframe in DOM");a.innerHTML=n.html}return a}("iframe",{attributes:i({allowTransparency:"true"},e.attributes||{}),style:i({backgroundColor:"transparent",border:"none"},t),html:e.html,class:e.class}),o=window.navigator.userAgent.match(/MSIE|Edge/i);return r.hasAttribute("id")||r.setAttribute("id",oe()),ze(r),n&&function(e,n){void 0===n&&(n=document);var t=Ge(e,n);if(t)return t;throw new Error("Can not find element: "+ve(e))}(n).appendChild(r),(e.url||o)&&r.setAttribute("src",e.url||"about:blank"),r}function Je(e,n,t){return e.addEventListener(n,t),{cancel:function(){e.removeEventListener(n,t)}}}function Qe(e){e.style.setProperty("display","")}function Xe(e){e.style.setProperty("display","none","important")}function $e(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function en(e){return!(e&&e.parentNode&&e.ownerDocument&&e.ownerDocument.documentElement&&e.ownerDocument.documentElement.contains(e))}function nn(e,n,t){var r=void 0===t?{}:t,o=r.width,i=void 0===o||o,a=r.height,u=void 0===a||a,c=r.interval,s=void 0===c?100:c,d=r.win,l=void 0===d?window:d,f=e.offsetWidth,p=e.offsetHeight,h=!1;n({width:f,height:p});var m,v,y=function(){if(!h&&function(e){return Boolean(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}(e)){var t=e.offsetWidth,r=e.offsetHeight;(i&&t!==f||u&&r!==p)&&n({width:t,height:r}),f=t,p=r}};return l.addEventListener("resize",y),void 0!==l.ResizeObserver?((m=new l.ResizeObserver(y)).observe(e),v=Ee(y,10*s)):void 0!==l.MutationObserver?((m=new l.MutationObserver(y)).observe(e,{attributes:!0,childList:!0,subtree:!0,characterData:!1}),v=Ee(y,10*s)):v=Ee(y,s),{cancel:function(){h=!0,m.disconnect(),window.removeEventListener("resize",y),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 fe(cn,(function(){var e,t="__"+n+"_storage__",i=oe();function a(n){var r,o=qe();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 ln(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,l=e.timeout,f=void 0===l?0:l;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,l=Object.keys(i);s<l.length;s++){var p=l[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,y=Object.keys(m);v<y.length;v++){var w=y[v];o[w.toLowerCase()]=m[w]}var g=new d.XMLHttpRequest;for(var E in g.addEventListener("load",(function(){var o=function(e){void 0===e&&(e="");for(var n={},t=0,r=e.trim().split("\n");t<r.length;t++){var o=r[t].split(":"),i=o[0],a=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),g.addEventListener("error",(function(e){t(new Error("Request to "+r.toLowerCase()+" "+n+" failed: "+e.toString()+"."))}),!1),g.open(r,n,!0),o)o.hasOwnProperty(E)&&g.setRequestHeader(E,o[E]);a?c=JSON.stringify(a):u&&(c=Object.keys(u).map((function(e){return encodeURIComponent(e)+"="+(u?encodeURIComponent(u[e]):"")})).join("&")),g.timeout=f,g.ontimeout=function(){t(new Error("Request to "+r.toLowerCase()+" "+n+" has timed out"))},g.send(c)}))}function fn(e){return"string"==typeof e&&/^[0-9]+%$/.test(e)}function 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):fn(e)?e:hn(e)}function vn(e,n){if("number"==typeof e)return e;if(fn(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)}function yn(){return"__post_robot_11_0_0___"+un()}function wn(e){void 0===e&&(e=window);var n=yn();return e!==window?e[n]:e[n]=e[n]||{}}var gn=function(){return{}};function En(e,n){return void 0===e&&(e="store"),void 0===n&&(n=gn),Ie(wn(),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 Ie(e,n,t)},reset:function(){e=n()},keys:function(){return Object.keys(e)}}}))}var _n,Nn=function(){};function Sn(){var e=wn();return e.WINDOW_WILDCARD=e.WINDOW_WILDCARD||new Nn,e.WINDOW_WILDCARD}function bn(e,n){return void 0===e&&(e="store"),void 0===n&&(n=gn),En("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 Ie(r(n),e,t)}}}))}function Tn(){return En("instance").getOrSet("instanceID",oe)}function An(e,n){var t=n.domain,r=bn("helloPromises"),o=r.get(e);o&&o.resolve({domain:t});var i=h.resolve({domain:t});return r.set(e,i),i}function Rn(e,n){return(0,n.send)(e,"postrobot_hello",{instanceID:Tn()},{domain:"*",timeout:-1}).then((function(n){var t=n.origin,r=n.data.instanceID;return An(e,{domain:t}),{win:e,domain:t,instanceID:r}}))}function Pn(e,n){var t=n.send;return bn("windowInstanceIDPromises").getOrSet(e,(function(){return Rn(e,{send:t}).then((function(e){return e.instanceID}))}))}function On(e){bn("knownWindows").set(e,!0)}function In(e){return"object"==typeof e&&null!==e&&"string"==typeof e.__type__}function Cn(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 xn(e,n){return{__type__:e,__val__:n}}var Dn,Mn=((_n={}).function=function(){},_n.error=function(e){return xn("error",{message:e.message,stack:e.stack,code:e.code,data:e.data})},_n.promise=function(){},_n.regex=function(e){return xn("regex",e.source)},_n.date=function(e){return xn("date",e.toJSON())},_n.array=function(e){return e},_n.object=function(e){return e},_n.string=function(e){return e},_n.number=function(e){return e},_n.boolean=function(e){return e},_n.null=function(e){return e},_n[void 0]=function(e){return xn("undefined",e)},_n),Ln={},Fn=((Dn={}).function=function(){throw new Error("Function serialization is not implemented; nothing to deserialize")},Dn.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},Dn.promise=function(){throw new Error("Promise serialization is not implemented; nothing to deserialize")},Dn.regex=function(e){return new RegExp(e)},Dn.date=function(e){return new Date(e)},Dn.array=function(e){return e},Dn.object=function(e){return e},Dn.string=function(e){return e},Dn.number=function(e){return e},Dn.boolean=function(e){return e},Dn.null=function(e){return e},Dn[void 0]=function(){},Dn),Hn={};function kn(){for(var e=En("idToProxyWindow"),n=0,t=e.keys();n<t.length;n++){var r=t[n];e.get(r).shouldClean()&&e.del(r)}}function Un(e,n){var t=n.send,r=n.id,o=void 0===r?oe():r,i=e.then((function(e){if(A(e))return R(e).name})),a=e.then((function(e){if(L(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(!L(e))return A(e)?R(e).name:i}))};return{id:o,getType:function(){return a},getInstanceID:le((function(){return e.then((function(e){return Pn(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 L(e)}))},setLocation:function(n,t){return void 0===t&&(t={}),e.then((function(e){var r=window.location.protocol+"//"+window.location.host,o=t.method,i=void 0===o?"get":o,a=t.body;if(0===n.indexOf("/"))n=""+r+n;else if(!n.match(/^https?:\/\//)&&0!==n.indexOf(r))throw new Error("Expected url to be http or https url, or absolute path, got "+JSON.stringify(n));if("post"===i)return u().then((function(e){if(!e)throw new Error("Can not post to window without target name");!function(e){var n=e.url,t=e.target,r=e.body,o=e.method,i=void 0===o?"post":o,a=document.createElement("form");if(a.setAttribute("target",t),a.setAttribute("method",i),a.setAttribute("action",n),a.style.display="none",r)for(var u=0,c=Object.keys(r);u<c.length;u++){var s,d=c[u],l=document.createElement("input");l.setAttribute("name",d),l.setAttribute("value",null==(s=r[d])?void 0:s.toString()),a.appendChild(l)}Me().appendChild(a),a.submit(),Me().removeChild(a)}({url:n,target:e,method:i,body:a})}));if("get"!==i)throw new Error("Unsupported method: "+i);if(A(e))try{if(e.location&&"function"==typeof e.location.replace)return void e.location.replace(n)}catch(e){}e.location=n}))},setName:function(n){return e.then((function(e){var t=A(e),r=Z(e);if(!t)throw new Error("Can not set name for cross-domain window: "+n);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 Bn=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||Un(this.actualWindowPromise,{send:n}),En("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=Un(this.actualWindowPromise,{send:t,id:this.getID()}),bn("winToProxyWindow").set(e,this)},n.awaitWindow=function(){return this.actualWindowPromise},n.matchWindow=function(e,n){var t=this,r=n.send;return h.try((function(){return t.actualWindow?e===t.actualWindow:h.hash({proxyInstanceID:t.getInstanceID(),knownWindowInstanceID:Pn(e,{send:r})}).then((function(n){var o=n.proxyInstanceID===n.knownWindowInstanceID;return o&&t.setWindow(e,{send:r}),o}))}))},n.unwrap=function(){return this.actualWindow||this},n.getInstanceID=function(){return this.serializedWindow.getInstanceID()},n.shouldClean=function(){return Boolean(this.actualWindow&&L(this.actualWindow))},n.serialize=function(){return this.serializedWindow},e.unwrap=function(n){return e.isProxyWindow(n)?n.unwrap():n},e.serialize=function(n,t){var r=t.send;return kn(),e.toProxyWindow(n,{send:r}).serialize()},e.deserialize=function(n,t){var r=t.send;return kn(),En("idToProxyWindow").get(n.id)||new e({serializedWindow:n,send:r})},e.isProxyWindow=function(e){return Boolean(e&&!j(e)&&e.isProxyWindow)},e.toProxyWindow=function(n,t){var r=t.send;if(kn(),e.isProxyWindow(n))return n;var o=n;return bn("winToProxyWindow").get(o)||new e({win:o,send:r})},e}();function qn(e,n,t,r,o){var i=bn("methodStore"),a=En("proxyWindowMethods");Bn.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 Wn(e,n){var t=bn("methodStore"),r=En("proxyWindowMethods");return t.getOrSet(e,(function(){return{}}))[n]||r.get(n)}function Gn(e,n,t,r,o){!function(e){var n=e.on,t=e.send;En("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=Wn(n,i);if(!u)throw new Error("Could not find method '"+a+"' with id: "+o.id+" in "+T(window));var c=u.source,s=u.domain,d=u.val;return h.try((function(){if(!q(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 "+T(window));if(Bn.isProxyWindow(c))return c.matchWindow(n,{send:t}).then((function(e){if(!e)throw new Error("Method call '"+o.name+"' failed - proxy window does not match source in "+T(window))}))})).then((function(){return d.apply({source:n,origin:r},o.args)}),(function(e){return h.try((function(){if(d.onError)return d.onError(e)})).then((function(){var n;throw e.stack&&(e.stack="Remote call to "+a+"("+(void 0===(n=o.args)&&(n=[]),be(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=Bn.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+"::")),Bn.isProxyWindow(e)?(qn(i,t,a,e,n),e.awaitWindow().then((function(e){qn(i,t,a,e,n)}))):qn(i,t,a,e,n),xn("cross_domain_function",{id:i,name:a})}function jn(e,n,t,r){var o,i=r.on,a=r.send;return function(e,n){void 0===n&&(n=Ln);var t=JSON.stringify(e,(function(e){var t=this[e];if(In(this))return t;var r=Cn(t);if(!r)return t;var o=n[r]||Mn[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 xn("cross_domain_zalgo_promise",{then:Gn(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 Gn(e,n,t,r,{on:i,send:a})},o.object=function(e){return j(e)||Bn.isProxyWindow(e)?xn("cross_domain_window",Bn.serialize(e,{send:a})):e},o))}function Zn(e,n,t,r){var o,i=r.send;return function(e,n){if(void 0===n&&(n=Hn),"undefined"!==e)return JSON.parse(e,(function(e,t){if(In(this))return t;var r,o;if(In(t)?(r=t.__type__,o=t.__val__):(r=Cn(t),o=t),!r)return o;var i=n[r]||Fn[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 Bn.toProxyWindow(e,{send:a}).awaitWindow().then((function(e){var c=Wn(e,o);if(c&&c.val!==r)return c.val.apply({source:window,origin:T()},u);var s=[].slice.call(u);return t.fireAndForget?a(e,"postrobot_method",{id:o,name:i,args:s},{domain:n,fireAndForget:!0}):a(e,"postrobot_method",{id:o,name:i,args:s},{domain:n,fireAndForget:!1}).then((function(e){return e.data.result}))})).catch((function(e){throw e}))}return void 0===t&&(t={}),r.__name__=i,r.__origin__=n,r.__source__=e,r.__id__=o,r.origin=n,r},c=u();return c.fireAndForget=u({fireAndForget:!0}),c}(e,n,t,{send:i})},o.cross_domain_window=function(e){return Bn.deserialize(e,{send:i})},o))}var Kn={};function zn(e,n,t,r){var o=r.on,i=r.send;return h.try((function(){var r=bn().getOrSet(e,(function(){return{}}));return r.buffer=r.buffer||[],r.buffer.push(t),r.flush=r.flush||h.flush().then((function(){if(L(e))throw new Error("Window is closed");var t,a,u=jn(e,n,(t=r.buffer||[],(a={})[yn()]=t,a),{on:o,send:i});delete r.buffer;for(var c=Object.keys(Kn),s=[],d=0;d<c.length;d++){var l=c[d];try{Kn[l](e,u,n)}catch(e){s.push(e)}}if(s.length===c.length)throw new Error("All post-robot messaging strategies failed:\n\n"+s.map((function(e,n){return n+". "+me(e)})).join("\n\n"))})),r.flush.then((function(){delete r.flush}))})).then(pe)}function Yn(e){return En("responseListeners").get(e)}function Vn(e){En("responseListeners").del(e)}function Jn(e){return En("erroredResponseListeners").has(e)}function Qn(e){var n=e.name,t=e.win,r=e.domain,o=bn("requestListeners");if("*"===t&&(t=null),"*"===r&&(r=null),!n)throw new Error("Name required to get request listener");for(var i=0,a=[t,Sn()];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,l=s.__domain_regex__;d<l.length;d++){var f=l[d],p=f.listener;if(q(f.regex,r))return p}}if(s["*"])return s["*"]}}}}}function Xn(e,n){var t=n.on,r=n.send,o=En("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=Zn(n,t,e,{on:i,send:a})}catch(e){return}if(o&&"object"==typeof o&&null!==o){var u=o[yn()];if(Array.isArray(u))return u}}(e.data,i,a,{on:t,send:r});if(u){On(i);for(var c,s=function(){var e=u[d];if(o.has(e.id))return{v:void 0};if(o.set(e.id,!0),L(i)&&!e.fireAndForget)return{v:void 0};0===e.origin.indexOf("file:")&&(a="file://");try{"postrobot_message_request"===e.type?function(e,n,t,r){var o=r.on,i=r.send,a=Qn({name:t.name,win:e,domain:n}),u="postrobot_method"===t.name&&t.data&&"string"==typeof t.data.name?t.data.name+"()":t.name;function c(r,a,c){return h.flush().then((function(){if(!t.fireAndForget&&!L(e))try{return zn(e,n,{id:oe(),origin:T(window),type:"postrobot_message_response",hash:t.hash,name:t.name,ack:r,data:a,error:c},{on:o,send:i})}catch(e){throw new Error("Send response message failed for "+u+" in "+T()+"\n\n"+me(e))}}))}h.all([h.flush().then((function(){if(!t.fireAndForget&&!L(e))try{return zn(e,n,{id:oe(),origin:T(window),type:"postrobot_message_ack",hash:t.hash,name:t.name},{on:o,send:i})}catch(e){throw new Error("Send ack message failed for "+u+" in "+T()+"\n\n"+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(!Jn(t.hash)){var r,o=Yn(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(!q(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");Vn(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(!Jn(t.hash)){var r=Yn(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(!q(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 $n(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=bn("requestListeners");if(!r||"string"!=typeof r)throw new Error("Name required to add request listener");if(o&&"*"!==o&&Bn.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,l=c;d<l.length;d++)s.push(e({name:r,domain:i,win:l[d]},t));return{cancel:function(){for(var e=0;e<s.length;e++)s[e].cancel()}}}if(Array.isArray(i)){for(var f=[],p=0,h=i;p<h.length;p++)f.push(e({name:r,win:c,domain:h[p]},t));return{cancel:function(){for(var e=0;e<f.length;e++)f[e].cancel()}}}var m=Qn({name:r,win:c,domain:i});c&&"*"!==c||(c=Sn());var v=(i=i||"*").toString();if(m)throw c&&i?new Error("Request listener already exists for "+r+" on domain "+i.toString()+" for "+(c===Sn()?"wildcard":"specified")+" window"):c?new Error("Request listener already exists for "+r+" for "+(c===Sn()?"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 y,w,g=a.getOrSet(c,(function(){return{}})),E=Ie(g,r,(function(){return{}}));return Oe(i)?(y=Ie(E,"__domain_regex__",(function(){return[]}))).push(w={regex:i,listener:t}):E[v]=t,{cancel:function(){delete E[v],w&&(y.splice(y.indexOf(w,1)),y.length||delete E.__domain_regex__),Object.keys(E).length||delete g[r],c&&!Object.keys(g).length&&a.del(c)}}}({name:e,win:n.window,domain:n.domain||"*"},{handler:t||n.handler,handleError:n.errorHandler||function(e){throw e}});return{cancel:function(){r.cancel()}}}Kn.postrobot_post_message=function(e,n,t){0===t.indexOf("file:")&&(t="*"),e.postMessage(n,t)},Kn.postrobot_global=function(e,n){if(!function(e){return(e=e||window).navigator.mockUserAgent||e.navigator.userAgent}(window).match(/MSIE|rv:11|trident|edge\/12|edge\/13/i))throw new Error("Global messaging not needed for browser");if(!A(e))throw new Error("Post message through global disabled between different domain windows");if(!1!==B(window,e))throw new Error("Can only use global to communicate between two different windows, not between frames");var t=wn(e);if(!t)throw new Error("Can not find postRobot global on foreign window");t.receiveMessage({source:window,origin:T(),data:n})};var et=function(e,n,t,r){var o=(r=r||{}).domain||"*",i=r.timeout||-1,a=r.timeout||5e3,u=r.fireAndForget||!1;return Bn.toProxyWindow(e,{send:et}).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(L(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(C(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 bn("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||Rn(e,{send:o}).then((function(e){return e.domain}))})).then((function(e){if(!q(n,n))throw new Error("Domain "+ve(n)+" does not match "+ve(n));return e}))}))}(e,o,(void 0===n?{}:n).domain,{send:et})})).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){En("responseListeners").set(e,n)}(s,d);var l=bn("requestPromises").getOrSet(e,(function(){return[]}));l.push(c),c.catch((function(){!function(e){En("erroredResponseListeners").set(e,!0)}(s),Vn(s)}));var f=function(e){return bn("knownWindows").get(e,!1)}(e)?1e4:2e3,p=i,m=f,v=p,y=Ee((function(){return L(e)?c.reject(new Error("Window closed for "+n+" before "+(d.ack?"response":"ack"))):d.cancelled?c.reject(new Error("Response listener was cancelled for "+n)):(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 "+T()+" in "+p+"ms")):void 0:c.reject(new Error("No ack for postMessage "+a+" in "+T()+" in "+f+"ms")))}),500);c.finally((function(){y.cancel(),l.splice(l.indexOf(c,1))})).catch(pe)}return zn(e,o,{id:oe(),origin:T(window),type:"postrobot_message_request",hash:s,name:n,data:t,fireAndForget:u},{on:$n,send:et}).then((function(){return u?c.resolve():c}),(function(e){throw new Error("Send request message failed for "+a+" in "+T()+"\n\n"+me(e))}))}))}))};function nt(e){return Bn.toProxyWindow(e,{send:et})}function tt(){var e,n,t;wn().initialized||(wn().initialized=!0,function(e){var n=e.on,t=e.send,r=wn();r.receiveMessage=r.receiveMessage||function(e){return Xn(e,{on:n,send:t})}}({on:$n,send:et}),function(e){var n=e.on,t=e.send;En().getOrSet("postMessageListener",(function(){return Je(window,"message",(function(e){!function(e,n){var t=n.on,r=n.send;h.try((function(){var n=e.source||e.sourceElement,o=e.origin||e.originalEvent&&e.originalEvent.origin,i=e.data;if("null"===o&&(o="file://"),n){if(!o)throw new Error("Post message did not have origin domain");Xn({source:n,origin:o,data:i},{on:t,send:r})}}))}(e,{on:n,send:t})}))}))}({on:$n,send:et}),n=(e={on:$n,send:et}).on,t=e.send,En("builtinListeners").getOrSet("helloListener",(function(){var e=n("postrobot_hello",{domain:"*"},(function(e){return An(e.source,{domain:e.origin}),{instanceID:Tn()}})),r=H();return r&&Rn(r,{send:t}).catch((function(e){})),e})))}function rt(e){for(var n=0,t=bn("requestPromises").get(e,[]);n<t.length;n++)t[n].reject(new Error("Window "+(L(e)?"closed":"cleaned up")+" before response")).catch(pe)}function ot(e){var n="__zoid_10_5_2___"+un();if(!A(e))throw new Error("Can not get global for window on different domain");return e[n]||(e[n]={}),e[n]}function it(e,n){try{return n(ot(e))}catch(e){}}function at(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 ut(e){return re(JSON.stringify(e))}function ct(e){var n=ot(e);return n.references=n.references||{},n.references}function st(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,l=nt(a.win),f=d?JSON.stringify(r):jn(l,a.domain,r,{on:$n,send:et}),p=c?(n=f,t=oe(),ct(window)[t]=n,{type:"uid",uid:t}):function(e){return{type:"raw",val:e}}(f);return{serializedData:ut({sender:{domain:i.domain},metaData:o,reference:p}),cleanReference:function(){var e,n;e=window,"uid"===(n=p).type&&delete ct(e)[n.uid]}}}function dt(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 ct(e)[n.uid];throw new Error("Unsupported ref type: "+n.type)}(n,u);return{data:i?JSON.parse(s):function(e,n,t){return Zn(e,n,t,{on:$n,send:et})}(n,t,s),metaData:c,sender:{win:n,domain:t},reference:u}}tt();var lt={NAVIGATED_AWAY:"Window navigated away",COMPONENT_DESTROYED:"Component destroyed",COMPONENT_CLOSED:"Component closed",WINDOW_CLOSED:"Detected component window close",IFRAME_CLOSE:"Detected iframe close"},ft=v;function pt(e){return"__zoid__"+e.name+"__"+e.serializedPayload+"__"}function ht(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 mt=de((function(e){var n=dt({data:ht(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(A(i)){var a=it(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}}(C(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 vt(){return mt(window.name)}function yt(e,n){if(void 0===n&&(n=window),e===_(n))return{type:"parent",distance:U(e)};if(e===N(n))return{type:"opener"};if(A(e)&&(r=e)!==C(r)){var t=R(e).name;if(t)return{type:"name",name:t}}var r}function wt(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 gt(){return h.try((function(){window.focus()}))}function Et(){return h.try((function(){window.close()}))}var _t=function(){return pe},Nt=function(e){return he(e.value)};function St(e,n,t){for(var r=0,o=Object.keys(i({},e,n));r<o.length;r++){var a=o[r];t(a,n[a],e[a])}}function bt(e,n,t){var r={};return h.all(function(e,n,o){var i=[];return St(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 Tt(e){var n,t,r,o,a,u=e.uid,c=e.options,s=e.overrides,d=void 0===s?{}:s,l=e.parentWin,f=void 0===l?window:l,p=c.propsDef,m=c.containerTemplate,v=c.prerenderTemplate,y=c.tag,w=c.name,g=c.attributes,E=c.dimensions,_=c.autoResize,N=c.url,S=c.domain,b=c.exports,P=new h,O=[],I=Ce(),C={},x={},D={visible:!0},M=d.event?d.event:_e(),F=d.props?d.props:{},k=!1,j=d.onError,Z=d.getProxyContainer,z=d.show,Y=d.hide,V=d.close,J=d.renderContainer,Q=d.getProxyWindow,X=d.setProxyWin,$=d.openFrame,ee=d.openPrerenderFrame,ne=d.prerender,te=d.open,re=d.openPrerender,ie=d.watchForUnload,ae=d.getInternalState,ue=d.setInternalState,ce=function(){return"function"==typeof E?E({props:F}):E},se=function(){return h.try((function(){return d.resolveInitPromise?d.resolveInitPromise():P.resolve()}))},le=function(e){return h.try((function(){return d.rejectInitPromise?d.rejectInitPromise(e):P.reject(e)}))},fe=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||q(t,e)}),!1):q(e,T(window));i&&i.sameDomain&&!a||i&&i.trustedDomains&&!a||(n[o]=F[o])}}return h.hash(n)},we=function(){return h.try((function(){return ae?ae():D}))},ge=function(e){return h.try((function(){return ue?ue(e):D=i({},D,e)}))},Ne=function(){return Q?Q():h.try((function(){var e=F.window;if(e){var n=nt(e);return I.register((function(){return e.close()})),n}return new Bn({send:et})}))},Se=function(e){return X?X(e):h.try((function(){n=e}))},Te=function(){return z?z():h.hash({setState:ge({visible:!0}),showElement:t?t.get().then(Qe):null}).then(pe)},Ae=function(){return Y?Y():h.hash({setState:ge({visible:!1}),showElement:t?t.get().then(Xe):null}).then(pe)},Re=function(){return"function"==typeof N?N({props:F}):N},Oe=function(){return"function"==typeof g?g({props:F}):g},Ie=function(){return W(Re())},xe=function(e,n){var t=n.windowName;return $?$(e,{windowName:t}):h.try((function(){if(e===ft.IFRAME)return at(Ve({attributes:i({name:t,title:w},Oe().iframe)}))}))},De=function(e){return ee?ee(e):h.try((function(){if(e===ft.IFRAME)return at(Ve({attributes:i({name:"__zoid_prerender_frame__"+w+"_"+oe()+"__",title:"prerender__"+w},Oe().iframe)}))}))},Me=function(e,n,t){return re?re(e,n,t):h.try((function(){if(e===ft.IFRAME){if(!t)throw new Error("Expected proxy frame to be passed");return t.get().then((function(e){return I.register((function(){return $e(e)})),Ye(e).then((function(e){return R(e)})).then((function(e){return nt(e)}))}))}if(e===ft.POPUP)return n;throw new Error("No render context available for "+e)}))},Le=function(){return h.try((function(){if(n)return h.all([M.trigger("zoid-focus"),n.focus()]).then(pe)}))},Fe=function(){var e=ot(window);return e.windows=e.windows||{},e.windows[u]=window,I.register((function(){delete e.windows[u]})),u},He=function(e,n,t,r){if(n===T(window))return{type:"global",uid:Fe()};if(e!==window)throw new Error("Can not construct cross-domain window reference for different target window");if(F.window){var o=r.getWindow();if(!o)throw new Error("Can not construct cross-domain window reference for lazy window prop");if(H(o)!==window)throw new Error("Can not construct cross-domain window reference for window prop with different ancestor")}if(t===ft.POPUP)return{type:"opener"};if(t===ft.IFRAME)return{type:"parent",distance:U(window)};throw new Error("Can not construct window reference for child")},ke=function(e,t){return h.try((function(){var i;o=e,r=t,null==(i=n)||i.isPopup().then((function(e){var r;""!==(null==t?void 0:t.name)&&e&&(null==(r=n)||r.setName(null==t?void 0:t.name))})).finally((function(){se(),I.register((function(){return t.close.fireAndForget().catch(pe)}))}))}))},Be=function(e){var n=e.width,t=e.height;return h.try((function(){M.trigger("zoid-resize",{width:n,height:t})}))},qe=function(e){return h.try((function(){return M.trigger("zoid-destroy")})).catch(pe).then((function(){return I.all(e)})).then((function(){var n=e||new Error(lt.COMPONENT_DESTROYED);a&&en(a)||Object.values(lt).includes(n.message)?P.resolve():P.asyncReject(n)}))},Ze=de((function(e){return h.try((function(){if(V){if(L(V.__source__))return;return V()}return h.try((function(){return M.trigger("zoid-close")})).then((function(){return qe(e||new Error(lt.COMPONENT_CLOSED))}))}))})),ze=function(e,n){var t=n.proxyWin,r=n.proxyFrame,o=n.windowName;return te?te(e,{proxyWin:t,proxyFrame:r,windowName:o}):h.try((function(){if(e===ft.IFRAME){if(!r)throw new Error("Expected proxy frame to be passed");return r.get().then((function(e){return Ye(e).then((function(n){return I.register((function(){return $e(e)})),I.register((function(){return rt(n)})),n}))}))}if(e===ft.POPUP){var n=ce(),t=n.width,a=void 0===t?"300px":t,u=n.height,c=void 0===u?"150px":u;a=vn(a,window.outerWidth),c=vn(c,window.outerWidth);var s=function(e,n){var t=(n=n||{}).closeOnUnload,r=void 0===t?1:t,o=n.name,a=void 0===o?"":o,u=n.width,c=n.height,s=0,d=0;u&&(window.outerWidth?d=Math.round((window.outerWidth-u)/2)+window.screenX:window.screen.width&&(d=Math.round((window.screen.width-u)/2))),c&&(window.outerHeight?s=Math.round((window.outerHeight-c)/2)+window.screenY:window.screen.height&&(s=Math.round((window.screen.height-c)/2))),delete n.closeOnUnload,delete n.name,u&&c&&(n=i({top:s,left:d,width:u,height:c,status:1,toolbar:0,menubar:0,resizable:1,scrollbars:1},n));var l,f,p=Object.keys(n).map((function(e){if(null!=n[e])return e+"="+ve(n[e])})).filter(Boolean).join(",");try{l=window.open("",a,p)}catch(f){throw new Ke("Can not open popup window - "+(f.stack||f.message))}if(L(l))throw new Ke("Can not open popup window - blocked");return r&&(window.addEventListener("beforeunload",(function(){l.close()})),"onpagehide"in window?window.addEventListener("pagehide",(function(){l.close()})):window.addEventListener("unload",(function(){l.close()}))),l}(0,i({name:o,width:a,height:c},Oe().popup));return I.register((function(){return K(s)})),I.register((function(){return rt(s)})),s}throw new Error("No render context available for "+e)})).then((function(e){return t.setWindow(e,{send:et}),t.setName(o).then((function(){return t}))}))},rn=function(){return h.try((function(){var e="onpagehide"in window?"pagehide":"unload",n=Je(window,e,he((function(){qe(new Error(lt.NAVIGATED_AWAY))}))),t=G(f,qe,3e3);if(I.register(t.cancel),I.register(n.cancel),ie)return ie()}))},on=function(e,n){var t=!1;return I.register((function(){t=!0})),h.delay(2e3).then((function(){return e.isClosed()})).then((function(r){if(!t){if(n===ft.POPUP&&r)return Ze(new Error("Detected popup close"));var o=Boolean(a&&en(a));return n===ft.IFRAME&&r&&(o||k)?Ze(new Error(lt.IFRAME_CLOSE)):on(e,n)}}))},an=function(e){var n=!1;return e.isClosed().then((function(t){return t?(n=!0,Ze(new Error(lt.WINDOW_CLOSED))):h.delay(200).then((function(){return e.isClosed()})).then((function(e){if(e)return n=!0,Ze(new Error(lt.WINDOW_CLOSED))}))})).then((function(){return n}))},un=function(e){return j?j(e):h.try((function(){if(-1===O.indexOf(e))return O.push(e),P.asyncReject(e),M.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:Le,close:Ze,state:C,props:F,tag:y,dimensions:ce(),event:M})},ln=function(e,n){var t=n.context;return ne?ne(e,{context:t}):h.try((function(){if(v){M.trigger("zoid-prerender");var n=e.getWindow();if(n&&A(n)&&function(e){try{if(!e.location.href)return!0;if("about:blank"===e.location.href)return!0}catch(e){}return!1}(n)){var r=(n=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=be(r.children);o<i.length;o++)r.removeChild(i[o]);for(var a=0,u=be(n.children);a<u.length;a++)r.appendChild(u[a])}(n,o);var i=_.width,a=void 0!==i&&i,u=_.height,c=void 0!==u&&u,s=_.element,d=void 0===s?"body":s;if((d=Ge(d,r))&&(a||c)){var l=nn(d,(function(e){Be({width:a?e.width:void 0,height:c?e.height:void 0})}),{width:a,height:c,win:n});M.on("zoid-rendered",l.cancel)}M.trigger("zoid-prerendered")}}}}))},fn=function(e,n){var r=n.proxyFrame,o=n.proxyPrerenderFrame,i=n.context,a=n.rerender;return J?J(e,{proxyFrame:r,proxyPrerenderFrame:o,context:i,rerender:a}):h.hash({container:e.get(),frame:r?r.get():null,prerenderFrame:o?o.get():null,internalState:we()}).then((function(e){var n=e.container,r=e.internalState.visible,o=dn(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 l=new window.MutationObserver((function(){en(e)&&s()}));l.observe(d,{childList:!0}),u.push(l),d=d.parentElement}return(r=document.createElement("iframe")).setAttribute("name","__detect_close_"+oe()+"__"),r.style.display="none",Ye(r).then((function(e){(o=R(e)).addEventListener(i,s)})),e.appendChild(r),t=Ee((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 I.all(e),a().then(se,le);Ze(e)}))}));return I.register((function(){return u.cancel()})),I.register((function(){return $e(o)})),t=at(o)}}))},pn=function(){return{state:C,event:M,close:Ze,focus:Le,resize:Be,onError:un,updateProps:mn,show:Te,hide:Ae}},hn=function(e){void 0===e&&(e={});var n=a,t=pn();ye(x,e),function(e,n,t,r,o){var i=r.state,a=r.close,u=r.focus,c=r.event,s=r.onError;St(t,e,(function(e,r,d){var l=!1,f=d;Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){return l?f:(l=!0,function(){if(!r)return f;var l=r.alias;if(l&&!Pe(d)&&Pe(t[l])&&(f=t[l]),r.value&&(f=r.value({props:n,state:i,close:a,focus:u,event:c,onError:s,container:o})),!r.default||Pe(f)||Pe(t[e])||(f=r.default({props:n,state:i,close:a,focus:u,event:c,onError:s,container:o})),Pe(f)){if("array"===r.type?!Array.isArray(f):typeof f!==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(f)&&r.decorate&&(f=r.decorate({value:f,props:n,state:i,close:a,focus:u,event:c,onError:s,container:o})),f}())}})})),St(n,e,pe)}(p,F,x,t,n)},mn=function(e){return hn(e),P.then((function(){var e=r,t=n;if(e&&t&&o)return fe(o).then((function(n){return e.updateProps(n).catch((function(e){return an(t).then((function(n){if(!n)throw e}))}))}))}))},yn=function(e){return Z?Z(e):h.try((function(){return je(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,at(e)}))};return{init:function(){M.on("zoid-render",(function(){return F.onRender()})),M.on("zoid-prerender",(function(){return F.onPrerender()})),M.on("zoid-display",(function(){return F.onDisplay()})),M.on("zoid-rendered",(function(){return F.onRendered()})),M.on("zoid-prerendered",(function(){return F.onPrerendered()})),M.on("zoid-close",(function(){return F.onClose()})),M.on("zoid-destroy",(function(){return F.onDestroy()})),M.on("zoid-resize",(function(){return F.onResize()})),M.on("zoid-focus",(function(){return F.onFocus()})),M.on("zoid-props",(function(e){return F.onProps(e)})),M.on("zoid-error",(function(e){return F&&F.onError?F.onError(e):le(e).then((function(){setTimeout((function(){throw e}),1)}))})),I.register(M.reset)},render:function(e){var t=e.target,r=e.container,o=e.context,i=e.rerender;return h.try((function(){var e=Ie(),a=S||Ie();!function(e,n,t){if(e!==window){if(!B(window,e))throw new Error("Can only renderTo an adjacent frame");var r=T();if(!q(n,r)&&!A(e))throw new Error("Can not render remotely to "+n.toString()+" - can only render to "+r);if(t&&"string"!=typeof t)throw new Error("Container passed to renderTo must be a string selector, got "+typeof t+" }")}}(t,a,r);var s=h.try((function(){if(t!==window)return function(e,n){for(var t={},r=0,o=Object.keys(F);r<o.length;r++){var i=o[r],a=p[i];a&&a.allowDelegate&&(t[i]=F[i])}var c=et(n,"zoid_delegate_"+w,{uid:u,overrides:{props:t,event:M,close:Ze,onError:un,getInternalState:we,setInternalState:ge,resolveInitPromise:se,rejectInitPromise:le}}).then((function(e){var t=e.data.parent;return I.register((function(e){if(!L(n))return t.destroy(e)})),t.getDelegateOverrides()})).catch((function(e){throw new Error("Unable to delegate rendering. Possibly the component is not loaded in the target window.\n\n"+me(e))}));return Z=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.getProxyContainer.apply(e,n)}))},J=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.renderContainer.apply(e,n)}))},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.show.apply(e,n)}))},Y=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.hide.apply(e,n)}))},ie=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.watchForUnload.apply(e,n)}))},e===ft.IFRAME?(Q=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.getProxyWindow.apply(e,n)}))},$=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.openFrame.apply(e,n)}))},ee=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.openPrerenderFrame.apply(e,n)}))},ne=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.prerender.apply(e,n)}))},te=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.open.apply(e,n)}))},re=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.openPrerender.apply(e,n)}))}):e===ft.POPUP&&(X=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return c.then((function(e){return e.setProxyWin.apply(e,n)}))}),c}(o,t)})),d=F.window,l=rn(),f=bt(p,F,"post"),m=M.trigger("zoid-render"),v=yn(r),g=Ne(),E=v.then((function(){return hn()})),_=E.then((function(){return bt(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=g.then((function(n){return function(e){var n=void 0===e?{}:e,t=n.proxyWin,r=n.initialChildDomain,o=n.childDomainMatch,i=n.target,a=void 0===i?window:i,c=n.context;return function(e){var n=void 0===e?{}:e,t=n.proxyWin,r=n.childDomainMatch,o=n.context;return fe(n.initialChildDomain).then((function(e){return{uid:u,context:o,tag:y,childDomainMatch:r,version:"10_5_2",props:e,exports:(n=t,{init:function(e){return ke(this.origin,e)},close:Ze,checkClose:function(){return an(n)},resize:Be,onError:un,show:Te,hide:Ae,export:sn})};var n}))}({proxyWin:t,initialChildDomain:r,childDomainMatch:o,context:c}).then((function(e){var n=st({data:e,metaData:{windowRef:He(a,r,c,t)},sender:{domain:T(window)},receiver:{win:t,domain:o},passByReference:r===T()}),i=n.serializedData;return I.register(n.cleanReference),i}))}({proxyWin:(r={proxyWin:n,initialChildDomain:e,childDomainMatch:a,target:t,context:o}).proxyWin,initialChildDomain:r.initialChildDomain,childDomainMatch:r.childDomainMatch,target:r.target,context:r.context}).then((function(e){return pt({name:w,serializedPayload:e})}));var r})),b=N.then((function(e){return xe(o,{windowName:e})})),R=De(o),O=h.hash({proxyContainer:v,proxyFrame:b,proxyPrerenderFrame:R}).then((function(e){return fn(e.proxyContainer,{context:o,proxyFrame:e.proxyFrame,proxyPrerenderFrame:e.proxyPrerenderFrame,rerender:i})})).then((function(e){return e})),C=h.hash({windowName:N,proxyFrame:b,proxyWin:g}).then((function(e){var n=e.proxyWin;return d?n:ze(o,{windowName:e.windowName,proxyWin:n,proxyFrame:e.proxyFrame})})),x=h.hash({proxyWin:C,proxyPrerenderFrame:R}).then((function(e){return Me(o,e.proxyWin,e.proxyPrerenderFrame)})),D=C.then((function(e){return n=e,Se(e)})),H=h.hash({proxyPrerenderWin:x,state:D}).then((function(e){return ln(e.proxyPrerenderWin,{context:o})})),U=h.hash({proxyWin:C,windowName:N}).then((function(e){if(d)return e.proxyWin.setName(e.windowName)})),G=h.hash({body:f}).then((function(e){return c.method?c.method:Object.keys(e.body).length?"post":"get"})),j=h.hash({proxyWin:C,windowUrl:_,body:f,method:G,windowName:U,prerender:H}).then((function(e){return e.proxyWin.setLocation(e.windowUrl,{method:e.method,body:e.body})})),K=C.then((function(e){on(e,o)})),V=h.hash({container:O,prerender:H}).then((function(){return M.trigger("zoid-display")})),oe=C.then((function(e){})),ae=j.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,M.trigger("zoid-rendered")}));return h.hash({initPromise:P,buildUrlPromise:_,onRenderPromise:m,getProxyContainerPromise:v,openFramePromise:b,openPrerenderFramePromise:R,renderContainerPromise:O,openPromise:C,openPrerenderPromise:x,setStatePromise:D,prerenderPromise:H,loadUrlPromise:j,buildWindowNamePromise:N,setWindowNamePromise:U,watchForClosePromise:K,onDisplayPromise:V,openBridgePromise:oe,runTimeoutPromise:ae,onRenderedPromise:ue,delegatePromise:s,watchForUnloadPromise:l,finalSetPropsPromise:E})})).catch((function(e){return h.all([un(e),qe(e)]).then((function(){throw e}),(function(){throw e}))})).then(pe)},destroy:qe,getProps:function(){return F},setProps:hn,export:sn,getHelpers:pn,getDelegateOverrides:function(){return h.try((function(){return{getProxyContainer:yn,show:Te,hide:Ae,renderContainer:fn,getProxyWindow:Ne,watchForUnload:rn,openFrame:xe,openPrerenderFrame:De,prerender:ln,open:ze,openPrerender:Me,setProxyWin:Se}}))},getExports:function(){return b({getExports:function(){return cn}})}}}var At={register:function(e,n,t,r){var i=r.React,a=r.ReactDOM;return function(e){function n(){return e.apply(this,arguments)||this}o(n,e);var r=n.prototype;return r.render=function(){return i.createElement("div",null)},r.componentDidMount=function(){var e=a.findDOMNode(this),n=t(ye({},this.props));n.render(e,ft.IFRAME),this.setState({parent:n})},r.componentDidUpdate=function(){this.state&&this.state.parent&&this.state.parent.updateProps(ye({},this.props)).catch(pe)},n}(i.Component)}},Rt={register:function(e,n,t,r){return r.component(e,{render:function(e){return e("div")},inheritAttrs:!1,mounted:function(){var e,n=this.$el;this.parent=t(i({},(e=this.$attrs,Object.keys(e).reduce((function(n,t){var r=e[t];return"style-object"===t||"styleObject"===t?(n.style=r,n.styleObject=r):t.includes("-")?n[Ne(t)]=r:n[t]=r,n}),{})))),this.parent.render(n,ft.IFRAME)},watch:{$attrs:{handler:function(){this.parent&&this.$attrs&&this.parent.updateProps(i({},this.$attrs)).catch(pe)},deep:!0}}})}},Pt={register:function(e,n,t){return{template:"<div></div>",inheritAttrs:!1,mounted:function(){var e,n=this.$el;this.parent=t(i({},(e=this.$attrs,Object.keys(e).reduce((function(n,t){var r=e[t];return"style-object"===t||"styleObject"===t?(n.style=r,n.styleObject=r):t.includes("-")?n[Ne(t)]=r:n[t]=r,n}),{})))),this.parent.render(n,ft.IFRAME)},watch:{$attrs:{handler:function(){this.parent&&this.$attrs&&this.parent.updateProps(i({},this.$attrs)).catch(pe)},deep:!0}}}}},Ot={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],ft.IFRAME),e.$watch((function(){i.updateProps(o()).catch(pe)}))}]}}))}},It={register:function(e,n,t,r){var o=r.Component,a=r.NgModule,u=r.ElementRef,c=r.NgZone,s=r.Inject,d=function(){function e(e,n){this.elementRef=void 0,this.internalProps=void 0,this.parent=void 0,this.props=void 0,this.zone=void 0,this._props=void 0,this._props={},this.elementRef=e,this.zone=n}var n=e.prototype;return n.getProps=function(){var e=this;return Re(i({},this.internalProps,this.props),(function(n){if("function"==typeof n){var t=e.zone;return function(){var e=arguments,r=this;return t.run((function(){return n.apply(r,e)}))}}return n}))},n.ngOnInit=function(){var e=this.elementRef.nativeElement;this.parent=t(this.getProps()),this.parent.render(e,ft.IFRAME)},n.ngDoCheck=function(){this.parent&&!function(e,n){var t={};for(var r in e)if(e.hasOwnProperty(r)&&(t[r]=!0,e[r]!==n[r]))return!1;for(var o in n)if(!t[o])return!1;return!0}(this._props,this.props)&&(this._props=i({},this.props),this.parent.updateProps(this.getProps()))},e}();d.annotations=void 0,d.parameters=void 0,d.parameters=[[new s(u)],[new s(c)]],d.annotations=[new o({selector:e,template:"<div></div>",inputs:["props"]})];var l=function(){};return l.annotations=void 0,l.annotations=[new a({declarations:[d],exports:[d]})],l}};function Ct(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 l=o.createElement("style");return i.cspNonce&&l.setAttribute("nonce",i.cspNonce),l.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(l),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 xt(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 Dt=Ce(),Mt=Ce();function Lt(e){var n,t,r=function(e){var n=e.tag,t=e.url,r=e.domain,o=e.bridgeUrl,a=e.props,u=void 0===a?{}:a,c=e.getExtensions,s=void 0===c?function(){return{}}:c,d=e.dimensions,l=void 0===d?{}:d,f=e.autoResize,p=void 0===f?{}:f,h=e.allowedParentDomains,m=void 0===h?"*":h,v=e.attributes,y=void 0===v?{}:v,w=e.defaultContext,g=void 0===w?ft.IFRAME:w,E=e.containerTemplate,_=void 0===E?Ct:E,N=e.prerenderTemplate,S=void 0===N?xt:N,b=e.validate,T=e.eligible,R=void 0===T?function(){return{eligible:!0}}:T,P=e.logger,O=void 0===P?{info:pe}:P,I=e.exports,C=void 0===I?pe:I,x=e.method,D=e.children,M=void 0===D?function(){return{}}:D,F=n.replace(/-/g,"_"),H=i({},{window:{type:"object",sendToChild:!1,required:!1,allowDelegate:!0,validate:function(e){var n=e.value;if(!j(n)&&!Bn.isProxyWindow(n))throw new Error("Expected Window or ProxyWindow");if(j(n)){if(L(n))throw new Error("Window is closed");if(!A(n))throw new Error("Window is not same domain")}},decorate:function(e){return nt(e.value)}},timeout:{type:"number",required:!1,sendToChild:!1},cspNonce:{type:"string",required:!1},onDisplay:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:_t,decorate:Nt},onRendered:{type:"function",required:!1,sendToChild:!1,default:_t,decorate:Nt},onRender:{type:"function",required:!1,sendToChild:!1,default:_t,decorate:Nt},onPrerendered:{type:"function",required:!1,sendToChild:!1,default:_t,decorate:Nt},onPrerender:{type:"function",required:!1,sendToChild:!1,default:_t,decorate:Nt},onClose:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:_t,decorate:Nt},onDestroy:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:_t,decorate:Nt},onResize:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:_t},onFocus:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:_t},close:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.close}},focus:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.focus}},resize:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.resize}},uid:{type:"string",required:!1,sendToChild:!1,childDecorate:function(e){return e.uid}},tag:{type:"string",required:!1,sendToChild:!1,childDecorate:function(e){return e.tag}},getParent:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.getParent}},getParentDomain:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.getParentDomain}},show:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.show}},hide:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.hide}},export:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.export}},onError:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.onError}},onProps:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.onProps}},getSiblings:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.getSiblings}}},u);if(!_)throw new Error("Container template required");return{name:F,tag:n,url:t,domain:r,bridgeUrl:o,method:x,propsDef:H,dimensions:l,autoResize:p,allowedParentDomains:m,attributes:y,defaultContext:g,containerTemplate:_,prerenderTemplate:S,validate:b,logger:O,eligible:R,children:M,exports:"function"==typeof C?C:function(e){for(var n=e.getExports,t={},r=function(){var e=i[o],r=C[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(C);o<i.length;o++)r();return t},getExtensions:s}}(e),o=r.name,a=r.tag,u=r.defaultContext,c=r.propsDef,s=r.eligible,d=r.children,l=r.getExtensions,f=ot(window),p={},m=[],v=function(){if(function(e){try{return ht(window.name).name===e}catch(e){}return!1}(o)){var e=vt().payload;if(e.tag===a&&q(e.childDomainMatch,T()))return!0}return!1},y=de((function(){if(v()){if(window.xprops)throw delete f.components[a],new Error("Can not register "+o+" as child - child already registered");var e=function(e){var n,t=e.tag,r=e.propsDef,o=e.autoResize,i=e.allowedParentDomains,a=[],u=vt(),c=u.parent,s=u.payload,d=c.win,l=c.domain,f=new h,p=s.version,m=s.uid,v=s.exports,y=s.context,w=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 g=v.show,E=v.hide,_=v.close,N=v.onError,S=v.checkClose,b=v.export,P=v.resize,O=v.init,I=function(){return d},C=function(){return l},D=function(e){return a.push(e),{cancel:function(){a.splice(a.indexOf(e),1)}}},M=function(e){return P.fireAndForget({width:e.width,height:e.height})},L=function(e){return f.resolve(e),b(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(A(c)){var s=R(c).xprops;if(s&&I()===s.getParent()){var d=s.parent;if(r||!i||d&&d.uid===i.uid){var l=it(c,(function(e){return e.exports}));o.push({props:s,exports:l})}}}}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],l=d&&d.trustedDomains&&d.trustedDomains.length>0?d.trustedDomains.reduce((function(e,n){return e||q(n,T(window))}),!1):r===T(window)||A(e);if((!d||!d.sameDomain||l)&&(!d||!d.trustedDomains||l)){var f=wt(n,0,s,t[s],o);a[s]=f,d&&d.alias&&!a[d.alias]&&(a[d.alias]=f)}}if(!i)for(var p=0,h=Object.keys(n);p<h.length;p++){var m=h[p];t.hasOwnProperty(m)||(a[m]=wt(n,0,m,void 0,o))}return a}(d,r,e,o,{tag:t,show:g,hide:E,close:_,focus:gt,onError:N,resize:M,getSiblings:F,onProps:D,getParent:I,getParentDomain:C,uid:m,export:L},i);n?ye(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,l,!0)}))};return{init:function(){return h.try((function(){var n="";return A(d)&&(n=function(e){var n=e.componentName,t=e.parentComponentWindow,r=dt({data:ht(window.name).serializedInitialPayload,sender:{win:t},basic:!0}),o=r.sender;if("uid"===r.reference.type||"global"===r.metaData.windowRef.type){var i=pt({name:n,serializedPayload:st({data:r.data,metaData:{windowRef:yt(t)},sender:{domain:o.domain},receiver:{win:window,domain:T()},basic:!0}).serializedData});return window.name=i,i}}({componentName:e.name,parentComponentWindow:d})||""),ot(window).exports=e.exports({getExports:function(){return f}}),function(e,n){if(!q(e,n))throw new Error("Can not be rendered by domain: "+n)}(i,l),On(d),window.addEventListener("beforeunload",(function(){S.fireAndForget()})),"onpagehide"in window?window.addEventListener("pagehide",(function(){S.fireAndForget()})):window.addEventListener("unload",(function(){S.fireAndForget()})),G(d,(function(){Et()})),O({name:n,updateProps:k,close:Et})})).then((function(){return(e=o.width,n=void 0!==e&&e,t=o.height,r=void 0!==t&&t,i=o.element,je(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)&&y!==ft.POPUP&&nn(r,(function(e){M({width:n?e.width:void 0,height:t?e.height:void 0})}),{width:n,height:t})}));var e,n,t,r,i})).catch((function(e){N(e)}))},getProps:function(){return n||(H(w,l),n)}}}(r);return e.init(),e}})),w=function(e){var n,t="zoid-"+a+"-"+oe(),c=e||{},f=s({props:c}),p=f.eligible,v=f.reason,y=c.onDestroy;c.onDestroy=function(){if(n&&p&&m.splice(m.indexOf(n),1),y)return y.apply(void 0,arguments)};var g=Tt({uid:t,options:r});g.init(),p?g.setProps(c):c.onDestroy&&c.onDestroy(),Dt.register((function(e){return g.destroy(e||new Error("zoid destroyed all components"))}));var E=function(e){var n=(void 0===e?{}:e).decorate;return w((void 0===n?ge:n)(c))},_=function(e,t,r){return h.try((function(){if(!p){var n=new Error(v||o+" component is not eligible");return g.destroy(n).then((function(){throw n}))}if(!j(e))throw new Error("Must pass window to renderTo");return function(e,n){return h.try((function(){if(e.window)return nt(e.window).getType();if(n){if(n!==ft.IFRAME&&n!==ft.POPUP)throw new Error("Unrecognized context: "+n);return n}return u}))}(c,r)})).then((function(o){if(t=function(e,n){if(n){if("string"!=typeof n&&!ee(n))throw new TypeError("Expected string or element selector to be passed");return n}if(e===ft.POPUP)return"body";throw new Error("Expected element to be passed to render iframe")}(o,t),e!==window&&"string"!=typeof t)throw new Error("Must pass string element when rendering to another window");return g.render({target:e,container:t,context:o,rerender:function(){var o=E();return ye(n,o),o.renderTo(e,t,r)}})})).catch((function(e){return g.destroy(e).then((function(){throw e}))}))};return n=i({},l(g),g.getExports(),g.getHelpers(),function(){for(var e=d(),n={},r=function(){var r=a[o],u=e[r];n[r]=function(e){var n=g.getProps(),r=i({},e,{parent:{uid:t,props:n,export:g.export}});return u(r)}},o=0,a=Object.keys(e);o<a.length;o++)r();return n}(),{isEligible:function(){return p},clone:E,render:function(e,n){return _(window,e,n)},renderTo:function(e,n,t){return _(e,n,t)}}),p&&m.push(n),n};if(y(),n=$n("zoid_allow_delegate_"+o,(function(){return!0})),t=$n("zoid_delegate_"+o,(function(e){var n=e.data;return{parent:Tt({uid:n.uid,options:r,overrides:n.overrides,parentWin:e.source})}})),Mt.register(n.cancel),Mt.register(t.cancel),f.components=f.components||{},f.components[a])throw new Error("Can not register multiple components with the same tag: "+a);return f.components[a]=!0,{init:w,instances:m,driver:function(e,n){var t={react:At,angular:Ot,vue:Rt,vue3:Pt,angular2:It};if(!t[e])throw new Error("Could not find driver for framework: "+e);return p[e]||(p[e]=t[e].register(a,c,w,n)),p[e]},isChild:v,canRenderTo:function(e){return et(e,"zoid_allow_delegate_"+o).then((function(e){return e.data})).catch((function(){return!1}))},registerChild:y}}var Ft=function(e){tt();var n=Lt(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},Ht=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=Ht().attributes;n<t.length;n++){var r=t[n];0===r.name.indexOf("data-")&&(e[r.name]=r.value)}return e["data-uid"]=un(),e})),de((function(e){try{if(e&&"function"==typeof atob){var n=JSON.parse(window.atob(e.split(".")[1])).options;return(void 0===n?{}:n).customer_id||""}return""}catch(e){throw new Error("Error decoding SDK token")}}));var kt=["warn","error"],Ut=["error","warn","info","debug"],Bt=function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};function qt(e){var n=e.url,t=e.prefix,r=e.metricNamespacePrefix,o=e.logLevel,a=void 0===o?"warn":o,u=e.transport,c=void 0===u?function(e){var n=e.url,t=e.method,r=e.headers,o=e.json,i=e.enableSendBeacon,a=void 0!==i&&i;return h.try((function(){var e=window,i=A(e)?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||ln({win:i,url:n,method:t,headers:r,json:o})})).then(pe)}:u,s=e.flushInterval,d=void 0===s?6e4:s,l=e.enableSendBeacon,f=void 0!==l&&l,p=[],m=[],v=[],y=[],w=[],g=[],E=[],_=[];function N(e,n,t){if(Be()&&window.console&&window.console.log&&!(Ut.indexOf(e)>Ut.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<w.length;t++)Bt(e,(0,w[t])(e));for(var r,o={},i=0;i<_.length;i++)Bt(o,(0,_[i])(o));return n&&(r=c({method:"POST",url:n,headers:o,json:{events:p,meta:e,tracking:m,metrics:v},enableSendBeacon:f}).catch(pe)),p=[],m=[],v=[],h.resolve(r).then(pe)}}))}var b,T,P,O,I=(void 0===T&&(T=50),te((function(){O&&clearTimeout(O);var e=P=P||new h;return O=setTimeout((function(){P=null,O=null,h.try(b).then((function(n){e.resolve(n)}),(function(n){e.reject(n)}))}),T),e}),ne(b=S)+"::promiseDebounced"));function C(e,n,r){if(void 0===r&&(r={}),!Be())return M;t&&(n=t+"_"+n);for(var o=i({},we(r),{timestamp:Date.now().toString()}),a=0;a<y.length;a++)Bt(o,(0,y[a])(o));return function(e,n,t){p.push({level:e,event:n,payload:t}),-1!==kt.indexOf(e)&&I()}(e,n,o),N(e,n,o),M}function x(e,n){return e.push(n),M}function D(e){if(!Be())return M;r&&(e.metricNamespace=r+"."+e.metricNamespace),E.length>0&&!e.dimensions&&(e.dimensions={});for(var n=0;n<E.length;n++)Bt(e.dimensions||{},(0,E[n])(e.dimensions||{}));return N("debug","metric."+e.metricNamespace,e.dimensions||{}),v.push(e),M}Be()&&Ee(I,d),"object"==typeof window&&(window.addEventListener("beforeunload",(function(){S()})),"onpagehide"in window?window.addEventListener("pagehide",(function(){S()})):window.addEventListener("unload",(function(){S()})));var M={debug:function(e,n){return C("debug",e,n)},info:function(e,n){return C("info",e,n)},warn:function(e,n){return C("warn",e,n)},error:function(e,n){return C("error",e,n)},track:function(e){if(void 0===e&&(e={}),!Be())return M;for(var n=we(e),t=0;t<g.length;t++)Bt(n,(0,g[t])(n));return N("debug","track",n),m.push(n),M},metric:D,metricCounter:function(e){var n;return D({metricNamespace:e.namespace,metricEventName:e.event,metricValue:null!=(n=e.value)?n:1,metricType:"counter",dimensions:e.dimensions})},metricGauge:function(e){return D({metricNamespace:e.namespace,metricEventName:e.event,metricValue:e.value,metricType:"gauge",dimensions:e.dimensions})},metricHistogram:function(e){return D({metricNamespace:e.namespace,metricEventName:e.event,metricValue:e.value,metricType:"histogram",dimensions:e.dimensions})},flush:I,immediateFlush:S,addPayloadBuilder:function(e){return x(y,e)},addMetaBuilder:function(e){return x(w,e)},addMetricDimensionBuilder:function(e){return x(E,e)},addTrackingBuilder:function(e){return x(g,e)},addHeaderBuilder:function(e){return x(_,e)},setTransport:function(e){return c=e,M},configure:function(e){return e.url&&(n=e.url),e.prefix&&(t=e.prefix),e.logLevel&&(a=e.logLevel),e.transport&&(c=e.transport),e.flushInterval&&(d=e.flushInterval),e.enableSendBeacon&&(f=e.enableSendBeacon),M},__buffer__:{get events(){return p},get tracking(){return m},get metrics(){return v}}};return Object.defineProperty(M,"__buffer__",{writable:!1}),M}var Wt,Gt=de((function(){return qt({url:(void 0===(e="/xoplatform/logger/api/logger")&&(e=""),"https://www.paypal.com"+e),metricNamespacePrefix:"pp.sdks.ppcp"});var e}));function jt(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 Zt(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){jt(i,r,o,a,u,"next",e)}function u(e){jt(i,r,o,a,u,"throw",e)}a(void 0)}))}}var Kt=((Wt={}).local="https://cdn-latest.static.engineering.dev.paypalinc.com/qaRdaAssets/fraudnet/async/fb-raw.js",Wt.stage="https://cdn-latest.static.engineering.dev.paypalinc.com/qaRdaAssets/fraudnet/async/fb-raw.js",Wt.sandbox="https://c.paypal.com/da/r/fb.js",Wt.production="https://c.paypal.com/da/r/fb.js",Wt.test="https://c.paypal.com/da/r/fb.js",Wt);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?Kt[t]+"?"+u:Kt[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(){Gt().warn("ppcp_axo_init_fraudnet_failed")}));return{collect:(i=Zt((function*(){try{yield a,yield window.PAYPAL.asyncData.collect()}catch(e){Gt().warn("ppcp_axo_collect_fraudnet_failed")}})),function(){return i.apply(this,arguments)})}})),de((function(e){Gt().info("rest_api_create_access_token");var n,t=re(e+":");return ln({method:"post",url:(n="/v1/oauth2/token",void 0===n&&(n=""),""+("undefined"!=typeof window&&void 0!==window.location&&"https://www.paypal.com"===T()?"https://www.paypal.com":__PAYPAL_API_DOMAIN__)+n),headers:{Authorization:"Basic "+t},data:{grant_type:"client_credentials"}}).then((function(n){var t=n.body;if(t&&"invalid_client"===t.error)throw new Error("Auth Api invalid client id: "+e+":\n\n"+JSON.stringify(t,null,4));if(!t||!t.access_token)throw new Error("Auth Api response error:\n\n"+JSON.stringify(t,null,4));return t.access_token}))})),de(_e);var zt,Yt,Vt,Jt,Qt,Xt={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"]},$t=(Yt=Zt((function*(){if(!zt){var e=Xt.create,n=Xt.extractable,t=Xt.usages,r=yield window.crypto.subtle.generateKey(e,n,t);zt=zt||{publicKey:r.publicKey,privateKey:r.privateKey}}return zt})),function(){return Yt.apply(this,arguments)}),er=function(e){return new Uint8Array(e.split("").map((function(e){return e.charCodeAt(0)})))},nr=function(e){return String.fromCharCode.apply(String,e)},tr=function(e){return btoa(e).replace(/[=]+/g,"").replace(/\+/g,"-").replace(/\//g,"_")},rr=(Vt=Zt((function*(e){var n=er(e),t=yield window.crypto.subtle.digest("sha-256",n),r=nr(new Uint8Array(t));return tr(r)})),function(e){return Vt.apply(this,arguments)}),or=(Jt=Zt((function*(e){var n=e.crv,t=e.e,r=e.kty,o=e.n,i=e.x,a=e.y;return yield rr(JSON.stringify({crv:n,e:t,kty:r,n:o,x:i,y:a}))})),function(e){return Jt.apply(this,arguments)}),ir=(Qt=Zt((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=tr(JSON.stringify({alg:Xt.alg,typ:"dpop+jwt",jwk:u})),s={ath:n?yield rr(n):void 0,cnf:{jkt:yield or(u)},htm:t,htu:a,iat:Math.floor(new Date/1e3),jti:window.crypto.randomUUID(),nonce:r},d=tr(JSON.stringify(s)),l=yield window.crypto.subtle.sign(Xt.sign,i,er(c+"."+d));return c+"."+d+"."+tr(nr(new Uint8Array(l)))})),function(e){return Qt.apply(this,arguments)}),ar=(Zt((function*(e){var n=e.accessToken,t=e.method,r=e.uri,o=e.nonce,a=yield $t(),u=a.privateKey,c=a.publicKey;return i({},n&&{Authorization:"DPoP "+n},{DPoP:yield ir({accessToken:n,method:t,uri:r,nonce:o,publicKey:c,privateKey:u})})})),{PAY_LATER_LONG_TERM:"PAY_LATER_LONG_TERM",PAY_LATER_SHORT_TERM:"PAY_LATER_SHORT_TERM",PAY_LATER_PAY_IN_1:"PAY_LATER_PAY_IN_1",PAYPAL_CREDIT_NO_INTEREST:"PAYPAL_CREDIT_NO_INTEREST",PAY_LATER:"PAY_LATER",REWARDS:"REWARDS"}),ur={MESSAGE:"paypal-message",MODAL:"paypal-credit-modal",TREATEMENTS:"paypal-credit-treatments",BUTTONS:"paypal-buttons"};function cr(){return!0}function sr(){return"sandbox"}function dr(){}function lr(){}var fr=("undefined"!=typeof document?document:{}).currentScript;function pr(){return fr||document.querySelector('script[src$="messaging.js"]')||document.querySelector('script[src$="merchant.js"]')}function hr(){}function mr(){return"paypal"}function vr(){var e;return(null==(e=pr())?void 0:e.getAttribute("data-pp-namespace"))||"paypal"}function yr(){return"1.86.0"}function wr(){return Object.values(ur).some((function(e){return window.name.startsWith("__zoid__"+e.replace(/-/g,"_"))}))}function gr(){return cn({name:vr()})}function Er(){return gr().getSessionID()}function _r(){return gr().getID()}function Nr(e){return gr().getState((function(n){return Object.assign(n,e)}))}function Sr(){}function br(){window}function Tr(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}function Ar(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 Rr=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 Ar(this.children,e)},e}(),Pr=function(){function e(e){this.type="fragment",this.children=void 0,this.children=e}return e.prototype.render=function(e){return Ar(this.children,e)},e}(),Or=function(){function e(e){this.type="text",this.text=void 0,this.text=e}return e.prototype.render=function(e){return e(this)},e}(),Ir=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=Cr(Array.isArray(e)?e:[e]);return 1===n.length?n[0]:n.length>1?new Pr(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 Ar(this.children,e)},e}();function Cr(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 Or(r.toString()));else{if("boolean"==typeof r)continue;if(Array.isArray(r))for(var o=0,i=Cr(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 xr,Dr,Mr,Lr=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=Cr(r),"string"==typeof e)return new Rr(e,n,r);if("function"==typeof e)return new Ir(e,n,r);throw new TypeError("Expected jsx element to be a string or a function")},Fr=((xr={}).svg="http://www.w3.org/2000/svg",xr),Hr=((Dr={})["xlink:href"]="http://www.w3.org/1999/xlink",Dr);function kr(e,n){return e.createTextNode(n.text)}function Ur(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=Hr[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 Br=((Mr={}).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(Wr({doc:r}));i.children.length;)o.appendChild(i.children[0])}))},Mr.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},Mr.default=function(e,n,t){for(var r=0,o=n.renderChildren(t);r<o.length;r++)e.appendChild(o[r])},Mr);function qr(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(Br[n.name]||Br.default)(e,n,r)}function Wr(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 kr(t,e);if("element"===e.type){var o=function(e,n,t){return e.createElementNS(t,n.name)}(t,e,n);return Ur(o,e),qr(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 kr(t,e);if("element"===e.type){var n=Fr[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 Ur(i,e),qr(i,e,t,o),i}throw new TypeError("Unhandleable node")};return o}function Gr(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 jr(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 Zr(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)}}Zr((function(e,n){return n[e]})),Zr((function(e,n){var t;return(t={})[e]=n,t}));var Kr=Gr((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)}))})),zr=function(){return(new Date).getTime()},Yr=Gr((function(){var e=document.querySelector('meta[name="viewport"]')||Lr("meta",{name:"viewport",content:""}).render(Wr({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 Vr(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 ar.PAY_LATER_LONG_TERM:return ar.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 ar.PAY_LATER_SHORT_TERM:return ar.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 ar.PAY_LATER_PAY_IN_1:return ar.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 ar.PAYPAL_CREDIT_NO_INTEREST:return ar.PAYPAL_CREDIT_NO_INTEREST;case ar.PAY_LATER:return ar.PAY_LATER;case ar.REWARDS:return ar.REWARDS;default:return}}function Jr(){var e,n,t,r;return null!=(e=gr().getState((function(e){return null==e?void 0:e.ts})))?e:(r=decodeURIComponent(null!=(n=null==(t=document.cookie.split("; ").find((function(e){return e.startsWith("ts_c=")})))?void 0:t.slice(5))?n:""),0===Object.keys(r).length?null:Object.fromEntries(new URLSearchParams(r).entries()))}function Qr(e,n){var t=void 0===n?{}:n,r=t.inZoid,o=t.debugObj;/(\?|&)pp_debug=true(&|$)/.test(window.location.search)&&!!r===wr()&&console.warn("PayPal Messages Debug:",e,null!=o?o:"")}function Xr(e){return Object.entries(e).reduce((function(e,n){var t,r,o,a=n[0],u=n[1];return Array.isArray(u)?i({},e,((r={})[a]=[].concat(u),r)):i({},e,"object"==typeof u?((o={})[a]=Xr(u),o):((t={})[a]=u,t))}),{})}function $r(e,n){return function e(n,t){return Object.entries(t).reduce((function(t,r){var o,a,u,c,s=r[0],d=r[1];return Array.isArray(d)?i({},t,((a={})[s]=[].concat(d),a)):"object"!=typeof d||null===d||n[s]&&"object"==typeof n[s]&&!Array.isArray(n[s])?i({},t,"object"==typeof d&&null!==d?((c={})[s]=e(n[s],d),c):((o={})[s]=d,o)):i({},t,((u={})[s]=Xr(d),u))}),n)}(Xr(e),n)}function eo(e,n,t){var r;void 0===t&&(t="-");var o,i=e.indexOf(t);if(-1===i)return(o={})[e]=n,o;var a=e.slice(0,i),u=e.slice(i+1);return(r={})[a]=eo(u,n,t),r}var no=function(e){var n;return null==e||null==(n=e.ownerDocument)?void 0:n.defaultView},to=function(){try{return window.top.document.body&&window.top}catch(e){return}};function ro(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}function oo(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 $r(e,function(e,n){if("string"==typeof n&&n.startsWith("["))try{return eo(e,JSON.parse(n.replace(/'/g,'"')))}catch(e){}return eo(e,n)}(null!=(i=n[a])?i:a,u))}return e}),{});if(!e.firstElementChild||"SCRIPT"!==e.firstElementChild.tagName||"text/template"!==e.firstElementChild.getAttribute("type"))return r;var o=e.firstElementChild.textContent.trim();return e.removeChild(e.firstElementChild),$r(r,{style:{markup:o}})}Zr((function(e,n,t){return n.getElementsByClassName(e+"__"+t)[0]})),Zr((function(e,n){var t=document.createElement("style");t.textContent=n,e.insertBefore(t,e.firstChild)})),Zr((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)})),Zr((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 io=Zr((function(e,n,t,r){if(void 0===t&&(t="PayPal Credit"),void 0===r&&(r=""),Array.isArray(n))n.forEach((function(n){return io(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 l=document.createElement("canvas");l.height=c,l.width=u,d.appendChild(s),d.appendChild(l),e.appendChild(d)}else e.parentNode.removeChild(e)}),2);function ao(e){var n=e.getBoundingClientRect(),t=no(e),r=(n.top+n.bottom)/2,o=(n.left+n.right)/2;return!(r>t.innerHeight||r<0||o>t.innerWidth||o<0)}function uo(e){var n=no(e);if("function"==typeof n.getComputedStyle){var t=n.getComputedStyle(e);if("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility")||"auto"!==t.getPropertyValue("clip"))return!0}var r=e.getBoundingClientRect();return r.left>n.document.body.scrollWidth||r.right<0||r.top>n.document.body.scrollHeight||r.bottom<0||0===e.offsetWidth||0===e.offsetHeight}function co(e){return"string"==typeof e?Array.from(document.querySelectorAll(e)):ro(e)?[e]:Array.isArray(e)&&e.every(ro)?e.flatMap(co):[]}var so=function(e,n){if((null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE&&!(e instanceof Window)||(null==n?void 0:n.nodeType)!==Node.ELEMENT_NODE)return!1;var t=e instanceof Window?{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}:e.getBoundingClientRect(),r=n.getBoundingClientRect();return t.top<=r.top&&t.bottom>=r.bottom&&t.left<=r.left&&t.right>=r.right},lo="__paypal_messages_"+"1.86.0".replace(/[.-]/g,"_")+"__",fo=function(){var e,n,t;return null!=(e=window[lo])?e:(n=function(e){void 0===e&&(e={});var n=i({},e);return[n,jr(Object.assign,n)]}(window[lo]||{index:1,config:{},messagesMap:new Map}),(t=n[0]).setGlobalState=n[1],Object.defineProperty(window,lo,{value:t,enumerable:!1,configurable:!0,writable:!1}),window[lo])},po=function(e){return fo().setGlobalState(e)},ho=function(){var e=fo().index;return po({index:e+1}),e},mo=function(){var e=0;return function(n){return n+" "+(e+=1)}};function vo(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 yo=function(e,n){return function(){var t;return fo()[e]||po(((t={})[e]=n(),t)),fo()[e]}},wo=_e(),go=function(){var e=pr();if(e&&!e[lo]){Qr("Script:",{debugObj:e});var n=oo(e);po({config:i({},fo().config,{account:void 0,merchantId:void 0,currency:void 0,pageType:void 0},n)}),e[lo]=!0}},Eo=new h((function(e){return wo.once("treatments",e)})),_o=new h((function(e){return wo.once("render",e)})),No=(new h((function(e){return wo.once("modal-render",e)})),new h((function(e){return"undefined"!=typeof document&&"complete"!==document.readyState?window.addEventListener("load",e):e()}))),So=new h((function(e){return"undefined"!=typeof document&&"loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e()}));function bo(e,n){var t,r,o,a,u,c,s,d,l=n.meta,f=n.events,p=n.tracking,h=null!=(t=l.global)?t:{},m=h.deviceID,v=h.sessionID,y=h.integration_type,w=h.integration_version,g=h.globalSessionID;e.startsWith("client-id:")&&(r=e.slice(10));var E=Object.entries(l).filter((function(n){return n[1].account===e})).map((function(e){var n,t=e[0],r=e[1],l=r.type,h=r.partnerClientId,m=r.buttonSessionId,v=r.messageRequestId,y=r.stats,w=void 0===y?{}:y,g=r.trackingDetails,E=r.language_requested,_=r.language_rendered,N=g.clickUrl;delete g.clickUrl,d=null!=d?d:h,o=null!=o?o:g.MERCHANT_PROFILE_HASH,a=null!=a?a:g.MERCHANT_PROFILE_VALID,u=null!=u?u:g.BUYER_PROFILE_HASH,c=null!=c?c:g.BUYER_PROFILE_VALID,s=null!=s?s:w.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 b=w.render_duration,T=w.request_duration;return delete w.render_duration,delete w.request_duration,i({component_type:l,instance_id:v,button_session_id:m,fdata:new URLSearchParams(N).get("fdata"),language_requested:null!=E?E:"undefined",language_rendered:null!=_?_:"undefined",merchant_events:f.filter((function(e){var n;return(null==(n=e.payload)?void 0:n.index)===t}))},g,w,{component_events:S.filter((function(e){return"MORS"!==e.event_type})).map((function(e){return i({render_duration:b,request_duration:T},e)}))})}));return{specversion:"1.0",type:"com.paypal.credit.upstream-presentment.v1",source:"urn:paypal:event-src:js-sdk:messages",datacontenttype:"application/json",dataschema:"ppaas:events.credit.FinancingPresentmentAsyncAPISpecification/v1/schema/json/credit_upstream_presentment_event.json",data:{client_id:r,merchant_id:e,partner_client_id:d,partner_attribution_id:s,merchant_profile_hash:o,merchant_profile_valid:a,buyer_profile_hash:u,buyer_profile_valid:c,device_id:m,global_session_id:g,session_id:v,integration_type:y,integration_version:w,components:E}}}var To=qt({url:vo("LOGGER"),prefix:"paypal_messages",logLevel:"warn",flushInterval:1e4,transport:function(e){var n=e.url,t=e.method,r=e.json,o=e.headers,a=r.events.reduce((function(e,n){var t=n.payload;return[].concat(e,[t.index,t.refIndex])}),[]),u=r.tracking.reduce((function(e,n){return[].concat(e,[n.index,n.refIndex])}),[]),c=a.concat(u),s=Object.keys(r.meta).filter((function(e){return c.includes(e)||"global"===e})).reduce((function(e,n){var t;return i({},e,((t={})[n]=r.meta[n],t))}),{}),d=r;d.meta=s;var l,f,p,m,v,y=n+"?disableSetCookie=true&features=disable-set-cookie",w=null==(l=Object.entries(s).find((function(e){var n=e[1];return"global"!==e[0]&&(null==n?void 0:n.account)})))?void 0:l[1];if(null!=w&&w.account){var g=btoa(w.account);o.Authorization="Basic "+g}return h.all((f=d,p=f.meta,m=f.events,v=f.tracking,Array.from(new Set(Object.values(p).map((function(e){return e.account})).filter(Boolean))).reduce((function(e,n){return[].concat(e,[bo(n,{meta:p,events:m,tracking:v})])}),[])).map((function(e){return function(e,n,t){var r=void 0===t?{}:t,o=r.data,a=r.headers,u=r.withCredentials;return new h((function(t,r){var c=new XMLHttpRequest;u&&(c.withCredentials=!0),c.onreadystatechange=function(){if(4===c.readyState){var e=c.getAllResponseHeaders().trim().split("\n").reduce((function(e,n){var t,r=n.trim().split(": "),o=r[1];return i({},e,((t={})[r[0].toLowerCase()]=o,t))}),{});switch(c.status){case 200:t({headers:e,data:"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:r(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 o?JSON.stringify(o):o)}))}(t,y,{headers:i({"content-type":"application/json"},o),data:e,withCredentials:!0})})))}});To.addMetaBuilder((function(){return{global:{integration_type:"STANDALONE",integration_version:"1.86.0"}}})),To.addPayloadBuilder((function(e){return delete e.container,delete e.selector,{}})),To.addTrackingBuilder((function(){return{timestamp:(new Date).getTime()}}));var Ao={RENDERING:"/integrate/#enable-pay-later-messaging-on-your-website",GENERAL:"/integrate/reference/"};function Ro(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",__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=Ao[e])?r:Ao.GENERAL)}var Po=yo("__insertion_observer__",(function(){return new MutationObserver((function(e){var n=[];e.forEach((function(e){"attributes"===e.type&&"data-pp-message"===e.attributeName?n.push(e.target):Array.from(e.addedNodes).forEach((function(e){ro(e)&&(e.hasAttribute("data-pp-message")?n.push(e):Array.from(e.querySelectorAll("[data-pp-message]")).forEach((function(e){return n.push(e)})))}))})),n.length>0&&n.forEach((function(e){var n;return null==(n=window[vr()])?void 0:n.Messages({_auto:!0}).render(e)}))}))})),Oo=function(e){var n=function(e,n){return n.reduce((function(n,t){var r;return e.has(t.target)&&null!=(r=t.attributeName)&&r.startsWith("data-pp-")?(n.push(t.target),n):n}),[])}(fo().messagesMap,e);n.length>0&&n.forEach((function(e){var n;return null==(n=window[vr()])?void 0:n.Messages().render(e)}))},Io=yo("__attribute_observer__",(function(){return new MutationObserver(Oo)})),Co=function(){return h.resolve(void 0===window.IntersectionObserver?Kr("https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=IntersectionObserver"):void 0)},xo=yo("__viewport_intersection_observer__",(function(){return Co().then((function(){return new IntersectionObserver((function(e,n){e.forEach((function(e){var t=e.target.getAttribute("data-pp-id");e.isIntersecting&&(To.track({index:t,et:"CLIENT_IMPRESSION",event_type:"scroll",visible:"true"}),n.unobserve(e.target))}))}),{threshold:.5})}))})),Do=yo("__intersection_observer__",(function(){return Co().then((function(){return h.all([No,_o])})).then((function(){var e=function(e){for(var n=no(e),t=[],r=e;(null==(o=r)?void 0:o.parentNode.nodeType)===Node.ELEMENT_NODE;){var o;0!==r.parentNode.offsetHeight&&t.push(r.parentNode),r=r.parentNode}t.reverse();var i=t[0],a=t.find((function(e,t,r){var o,a=e.offsetHeight,u=r[t+1];if(u&&a<=u.offsetHeight)return i=u,!1;if(a>n.innerHeight&&a>=i.offsetHeight)return!0;var c=null!=(o=r[t-1])?o:e.parentNode;return!!(u&&u.offsetHeight<a&&so(c,e))})),u=so(n,a)?void 0:a;return Qr("Root:",{debugObj:u||"undefined. Viewport is used as the root."}),u}(fo().messagesMap.keys().next().value);return new IntersectionObserver((function(n,t){var r=fo().messagesMap;n.forEach((function(n){var o,i=n.target,a=i.parentNode.parentNode;Qr("Message Container:",{debugObj:a}),Qr("Messages Container Parent:",{debugObj:a.parentNode});var u=(r.get(a)||{}).state;if(null!=u&&u.renderStart){var c,s=a.getAttribute("data-pp-id"),d=Number(i.getAttribute("data-width")),l=Number(i.getAttribute("data-height")),f=zr()-u.renderStart;0===(null==(o=n.rootBounds)?void 0:o.width)&&0===n.rootBounds.height&&(c=so(e,i)),(n.intersectionRatio<.9&&n.intersectionRatio>0&&!function(e,n){if((null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE&&!(e instanceof Window)||(null==n?void 0:n.nodeType)!==Node.ELEMENT_NODE)return!1;var t=e instanceof Window?{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}:e.getBoundingClientRect(),r=n.getBoundingClientRect();return r.left>=t.right||r.right<=t.left||r.bottom<=t.top||r.top>=t.bottom}(null!=e?e:window,i)||Math.ceil(i.getBoundingClientRect().width+1)<d)&&!c?(To.warn(u.renderComplete?"update_hidden":"hidden",{description:"PayPal Message has been hidden. Message must be visible and requires minimum dimensions of "+d+"px x "+l+"px. Current container is "+n.intersectionRect.width+"px x "+n.intersectionRect.height+"px.",container:a,index:s,duration:f,help_url:Ro("RENDERING")}),To.track({index:s,et:"CLIENT_IMPRESSION",event_type:"message_hidden"}),Qr("Message Hidden: true"),u.renderComplete=!0,delete u.renderStart,i.style.setProperty("opacity","0","important"),i.style.setProperty("pointer-events","none","important"),t.unobserve(i)):(i.style.setProperty("opacity",1),i.style.setProperty("pointer-events",null),To.info(u.renderComplete?"update_visible":"visible",{index:s,duration:f}),u.renderComplete=!0,delete u.renderStart,t.unobserve(i))}else t.unobserve(i)}))}),{root:e})}))}));function Mo(){var e=fo().config.account;return"string"==typeof e?e:void 0}function Lo(){var e=Mo();return null!=e&&e.startsWith("client-id:")?e.slice("client-id:".length):void 0}function Fo(){var e=Mo();return e&&!e.startsWith("client-id:")?e:void 0}var Ho=yo("__paypal_credit_treatments__",(function(){return Ft({tag:ur.TREATEMENTS,url:vo("TREATMENTS"),domain:/\.paypal\.com(:\d+)?$/,containerTemplate:function(e){var n=e.uid,t=e.prerenderFrame,r=e.frame,o=e.doc;return Lr("span",{id:n},Lr("style",null,"\n #"+n+" {\n position: absolute!important;\n left: -99999px;\n top: -99999px;\n width: 1px;\n height: 1px;\n }\n "),Lr("node",{el:r}),Lr("node",{el:t})).render(Wr({doc:o}))},props:{disableSetCookie:{type:"boolean",queryParam:!0,required:!1,value:cr},features:{type:"string",queryParam:"features",required:!1,value:Tr},namespace:{type:"string",queryParam:!1,value:mr},deviceID:{type:"string",queryParam:!0,value:_r},clientId:{type:"string",queryParam:"client_id",required:!1,value:Lo},payerId:{type:"string",queryParam:"payer_id",required:!1,value:Fo},onReady:{type:"function",queryParam:!1,value:function(){return function(e){Nr({experiments:{treatmentsHash:e.treatmentsHash,expiration:Date.now()+9e5}}),wo.trigger("treatments")}}},sdkMeta:{type:"string",queryParam:!0,sendToChild:!1,required:!1,value:hr,debug:Qr("SDK Meta: "+void 0)},uid:{type:"string",queryParam:!0,value:un,debug:Qr("ScriptUID: "+un())},stageTag:{type:"string",queryParam:!0,required:!1,value:Sr},env:{type:"string",queryParam:!0,value:sr,debug:Qr("Environment: sandbox")},scriptUID:{type:"string",queryParam:!0,value:un,debug:Qr("ScriptUID: "+un())},version:{type:"string",queryParam:!0,value:yr,debug:Qr("Library Version: 1.86.0")},integrationType:{type:"string",queryParam:!0,value:function(){return"STANDALONE"},debug:Qr("Library Integration: STANDALONE")}}})})),ko=Gr((function(){Ho()().render(document.body)}));function Uo(){if(wr()||!qe())return null;var e=gr().getState((function(e){return e.experiments}));return e?e.expiration<Date.now()?("loading"===document.readyState?window.addEventListener("DOMContentLoaded",(function(){return ko()})):ko(),null):e.treatmentsHash:null}var Bo=function(e){return"__paypal_messaging_performance__"+e},qo=function e(){return fe(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 Wo(e){var n,t;return null!=(n=null==qo||null==(t=qo.getEntriesByName(Bo(e))[0])?void 0:t.duration)?n:-1}function Go(e){var n,t=null==qo?void 0:qo.getEntriesByType("navigation")[0];return null!=(n=null==t?void 0:t[e])?n:-1}function jo(e,n){var t=void 0===n?{}:n,r=t.startMark,o=t.endMark,i=t.repeat;if(qo){if(-1!==Wo(e)){if(!i)return;qo.clearMeasures(Bo(e)),qo.clearMarks(Bo(e))}window.document.documentMode||Boolean(window.navigator&&window.navigator.userAgent&&/Edge|MSIE|rv:11/i.test(window.navigator.userAgent))?qo.measure(Bo(e)):qo.measure(Bo(e),r?Bo(r):void 0,o?Bo(o):void 0),qo.mark(Bo(e))}}var Zo=Gr((function(){var e=window.document.body.appendChild(window.document.createElement("div"));e.setAttribute("class","pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads text-ad-links"),e.style.setProperty("width","1px","important"),e.style.setProperty("height","1px","important"),e.style.setProperty("position","absolute","important"),e.style.setProperty("left","-10000px","important"),e.style.setProperty("top","-1000px","important");var n=void 0!==window.getComputedStyle?window.getComputedStyle(e):void 0;return new h((function(t){!function r(o){return o<=0?(window.document.body.removeChild(e),t(!1)):null!==window.document.body.getAttribute("abp")||n&&("none"===n.getPropertyValue("display")||"hidden"===n.getPropertyValue("visibility"))||null===e.offsetParent||0===e.offsetHeight||0===e.offsetLeft||0===e.offsetTop||0===e.offsetWidth||0===e.clientHeight||0===e.clientWidth?(window.document.body.removeChild(e),t(!0)):setTimeout((function(){r(o-1)}),50)}(5)}))})),Ko=function(e){return Math.round(e).toString()};function zo(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}}wr()||No.then((function(){var e={et:"CLIENT_IMPRESSION",event_type:"page_loaded",script_load_delay:Ko(Wo("scriptLoadDelay")),dom_load_delay:Ko(Go("domContentLoadedEventStart")),page_load_delay:Ko(Go("loadEventStart"))};To.track(e)}));var Yo=Gr((function(e,n){return To.warn("invalid_option_value",{description:n,location:e,help_url:Ro("GENERAL")})})),Vo=function(e,n,t){var r=Array.isArray(t)?"array":typeof t;Yo(e,'Expected type "'+n.toLowerCase()+'" but instead received "'+r+'" ('+JSON.stringify(t)+").")};function Jo(e,n){if(!zo("STRING",e))throw Vo("offer","STRING",e),new Error("offer_validation_error");if(!n.includes(e))throw Yo("offer","Ensure valid offer type."),new Error("offer_validation_error")}var Qo,Xo,$o,ei={account:function(e){var n=e.props.account;if(zo("STRING",n)){if(13===n.length||10===n.length||n.startsWith("client-id:"))return n;Yo("account","Ensure the correct Merchant Account ID has been entered.")}else Vo("account","STRING",n)},merchantId:function(e){var n=e.props.merchantId;if(void 0!==n){if(zo("STRING",n))return n.split(",").some((function(e){return 13!==e.length&&10!==e.length}))&&Yo("merchantId","Ensure the correct Merchant ID has been entered."),n;Vo("merchantId","STRING",n)}},customerId:function(e){var n=e.props.customerId;if(void 0!==n)if(zo("STRING",n)){if(13===n.length||10===n.length)return n;Yo("customerId","Ensure the correct Merchant ID has been entered.")}else Vo("customerId","STRING",n)},amount:function(e){var n=e.props.amount;if(void 0!==n){var t=Number(n);if(zo("NUMBER",t)){if(!(t<0))return t;Yo("amount","Ensure value is a positive number.")}else Vo("amount","NUMBER",n)}},offer:function(e){var n=e.props.offer,t=[].concat(Object.values(ar),["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 Yo("offer","Ensure valid offer length"),new Error("offer_validation_error: offers cannot exceed 2");var o=r.map((function(e){return Jo(e,t),e}));return o[0]===o[1]?o[0]:o.sort().join()}return Jo(n,t),n}return n},style:function(e){var n=e.props.style;if(zo("OBJECT",n)){var t=null!=n&&n.layout?n:i({},n,{layout:"text"});if(zo("STRING",t.layout))return t;if(Vo("style.layout","STRING",t.layout),zo("STRING",t.preset))return i({layout:"text"},t)}else void 0!==n&&Vo("style","OBJECT",n);return{layout:"text"}},currency:function(e){var n=e.props.currency;if(void 0!==n){if(zo("STRING",n))return n;Vo("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(zo("STRING",n)){if(t.includes(n))return n;!function(e,n,t){Yo("pageType",'Expected one of ["'+n.join('", "').replace(/\|[\w|]+/g,"")+'"] but received "'+t+'".')}(0,t,n)}else Vo("pageType","STRING",n)}},buyerCountry:function(e){var n=e.props.buyerCountry;if(void 0!==n){if(zo("STRING",n))return n;Vo("buyerCountry","STRING",n)}},language:function(e){var n=e.props.language;if(void 0!==n){if(zo("STRING",n))return n;Vo("language","STRING",n)}},locale:function(e){var n=e.props.locale;if(void 0!==n){if(zo("STRING",n))return n;Vo("locale","STRING",n)}},ignoreCache:function(e){var n=e.props.ignoreCache;if(void 0!==n){if(zo("BOOLEAN",n))return n;Vo("ignoreCache","BOOLEAN",n)}},channel:function(e){var n=e.props.channel;if(void 0!==n){if(zo("STRING",n))return/^[A-Z0-9_]+$/.test(n)?n:void 0;Vo("channel","STRING",n)}},ecToken:function(e){var n=e.props.ecToken;if(void 0!==n){if(zo("STRING",n))return n;Vo("ecToken","STRING",n)}},buttonSessionId:function(e){var n=e.props.buttonSessionId;if(void 0!==n){if(zo("STRING",n))return n;Vo("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 Vo("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(",");Yo("contextualComponents","Ensure only one type of mark value is provided.")}else Yo("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(zo("STRING",n))return n;Vo("cspNonce","STRING",n)}},merchantConfig:function(e){var n=e.props.merchantConfig;if(void 0!==n){if(!zo("STRING",n))return;return n}},features:function(e){var n=e.props.features;if(void 0!==n){if(zo("STRING",n))return n;Vo("features","STRING",n)}}},ni=mo(),ti=function(e){var n,t=e.uid,r=e.frame,o=e.prerenderFrame,i=e.doc,a=e.event,u=e.props,c=e.container,s=c,d=function(e){var n;if("text"!==(null==e?void 0:e.layout))return null;var t=null==e||null==(n=e.text)?void 0:n.size,r="number"==typeof t?t:Number(t),o=Number.isFinite(r)&&r>=10&&r<=16?r:14;return Math.round(1.3*o*1*10)/10}(u.style);!d||null==s||!s.style||null!=(n=s.dataset)&&n.ppPlaceholderApplied||(s.dataset.ppPlaceholderMinHeight=s.style.minHeight||"",s.dataset.ppPlaceholderApplied="true",s.style.minHeight=d+"px"),a.on("zoid-rendered",(function(){o.parentNode.removeChild(o)}));var l="\n #"+t+" > iframe {\n width: 100%;\n height: 0;\n }\n\n #"+t+" > iframe:nth-of-type(2) {\n display: none;\n }\n ";a.on("styles",(function(e){var n=e.styles;"string"==typeof n&&(c.querySelector("#"+t+" style").textContent="\n "+l+"\n "+n.replace(/\.pp-flex[^\s:,.#]*/g,"#"+t)+"\n ")}));var f=ni(r.title);return Lr("span",{id:t},Lr("style",{nonce:u.cspNonce},l),Lr("node",{el:r,title:f,onRender:function(e){a.on("zoid-resize",(function(n){var t,r=n.width,o=n.height;null!=s&&null!=(t=s.dataset)&&t.ppPlaceholderApplied&&(s.style.minHeight=s.dataset.ppPlaceholderMinHeight||"",delete s.dataset.ppPlaceholderMinHeight,delete s.dataset.ppPlaceholderApplied),0===r&&0===o||("flex"===u.style.layout?(e.style.setProperty("height",null),e.setAttribute("data-width",0),e.setAttribute("data-height",0)):(e.setAttribute("data-width",r),e.setAttribute("data-height",o),"number"==typeof o&&e.style.setProperty("height",o+"px")),e.__hasResizedBefore__?a.once("styles",(function(){Do().then((function(n){n.observe(e)}))})):(e.__hasResizedBefore__=!0,Do().then((function(n){n.observe(e)}))))}))}}),Lr("node",{el:o,title:"Prerender "+f})).render(Wr({doc:i}))},ri=["styles","warnings"],oi=yo("__paypal_credit_message__",(function(){var e;return Ft({tag:ur.MESSAGE,url:vo("MESSAGE"),domain:/\.paypal\.com(:\d+)?$/,containerTemplate:ti,autoResize:{width:!0,height:!0,element:"button"},attributes:{iframe:{title:"PayPal Message",scrolling:"no"}},props:{account:{type:"string",queryParam:!1,required:!0,value:ei.account},merchantId:{type:"string",queryParam:"merchant_id",required:!1,value:ei.merchantId},customerId:{type:"string",queryParam:"customer_id",required:!1,value:ei.customerId},amount:{type:"number",queryParam:!0,required:!1,value:ei.amount},currency:{type:"string",queryParam:!0,required:!1,value:ei.currency},pageType:{type:"string",queryParam:"page_type",required:!1,value:ei.pageType},style:{type:"object",serialization:"json",queryParam:!0,required:!1,value:ei.style},offer:{type:"string",queryParam:"credit_type",required:!1,value:ei.offer},buyerCountry:{type:"string",queryParam:"buyer_country",required:!1,value:ei.buyerCountry},language:{type:"string",queryParam:!0,required:!1,value:ei.language},locale:{type:"string",queryParam:!0,required:!1,value:ei.locale},ignoreCache:{type:"boolean",queryParam:"ignore_cache",required:!1,value:ei.ignoreCache},channel:{type:"string",queryParam:"channel",required:!1,default:function(){return"UPSTREAM"},value:ei.channel},ecToken:{type:"string",queryParam:"ec_token",required:!1,value:ei.ecToken},contextualComponents:{type:"string",queryParam:"contextual_components",required:!1,value:ei.contextualComponents},onClick:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onClick;return function(e){var r=e.meta,o=n.modal,i=n.index,a=n.account,u=n.merchantId,c=n.currency,s=n.amount,d=n.buyerCountry,l=n.language,f=n.locale,p=n.onApply,h=r.offerType,m=r.offerCountry,v=r.messageRequestId,y=r.lander,w=r.prequalExperience;"PURCHASE_PROTECTION"===h?null==function(e,n){try{var t=new URL(e),r="https:"===t.protocol,o=/\.paypal\.com$/i.test(t.hostname);return r&&o?window.open(e,n,"width=460,height=900"):null}catch(e){return null}}(y,h)&&To.warn("Blocked unsafe lander URL",{lander:y,help_url:Ro("GENERAL")}):o.show({account:a,merchantId:u,currency:c,amount:s,buyerCountry:d,language:l,locale:f,onApply:p,offer:h,offerCountry:m,prequalExperience:w,refId:v,refIndex:i,page_view_link_source:"message_click"}),To.track({index:i,et:"CLICK",event_type:"MORS"}),To.track({index:i,et:"CLICK",event_type:"message_clicked",page_view_link_name:"Banner Wrapper"}),"function"==typeof t&&t({meta:r})}}},onHover:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.index,r=n.onHover,o=!1;return function(e){var n=e.meta;o||(o=!0,To.track({index:t,et:"CLIENT_IMPRESSION",event_type:"message_hovered"})),"function"==typeof r&&r({meta:n})}}},onReady:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onReady;return function(e){var r=e.meta,o=e.activeTags,a=e.ts,u=e.requestDuration,c=e.messageRequestId,s=e.globalSessionID,d=n.account,l=n.merchantId,f=n.index,p=n.modal,h=n.getContainer,m=n.pageType,v=n.language,y=n.locale,w=r.trackingDetails,g=r.offerType,E=r.ppDebugId,_=r.language,N=l&&d.slice(10);w.PAGE_TYPE=m,Qr("Message Correlation ID: "+E);var S=void 0!==a?a:Jr();Nr({ts:S}),To.addMetaBuilder((function(e){var n;delete e[f];var t=e.global,r=void 0===t?{}:t;return delete e.global,(n={global:i({},r,{ts:S,deviceID:_r(),sessionID:Er(),globalSessionID:s})})[f]={type:"message",messageRequestId:c,account:l||d,partnerClientId:N,trackingDetails:w,language_requested:(null==y?void 0:y.replace("_","-"))||v,language_rendered:null!=_?_:"undefined"},n})),function(e){var n=e.container,t=e.activeTags,r=e.index,o=e.requestDuration,a=fo().messagesMap.get(n).state,u=Math.round(zr()-a.renderStart).toString(),c=Wo("firstRenderDelay");ao(n)||xo().then((function(e){return e.observe(n)})),function(e){var n=e.container,t=e.activeTags,r=e.index,o=e.requestDuration,i=e.renderDuration,a=n.getBoundingClientRect(),u=to(),c={},s=function(e){return e.split("::").map((function(e){return e.split(":")[1]}))}(t),d=s[0],l=s[1],f=s[2];return Zo().then((function(e){return{index:r,ad_blocker:e.toString(),blocked:uo(n).toString(),partner_attribution_id:c["data-partner-attribution-id"],position_in_page_x:Math.round(a.left).toString(),position_in_page_y:Math.round(a.top).toString(),browser_width:String(null==u?void 0:u.innerWidth),browser_height:String(null==u?void 0:u.innerHeight),in_viewport:ao(n).toString(),headline:d,sub_headline:l,disclaimer:f,request_duration:Ko(o),render_duration:i}}))}({container:n,activeTags:t,index:r,requestDuration:o,renderDuration:u}).then((function(e){!function(e,n){To.addMetaBuilder((function(t){var r,o=i({},t[e],n);return delete t[e],(r={})[e]=o,r}))}(r,{type:"message",stats:e}),To.track({index:r,et:"CLIENT_IMPRESSION",event_type:"message_rendered",first_render_delay:Math.round(c).toString()})}))}({container:h(),activeTags:o,index:f,requestDuration:u}),p.updateProps({refIndex:f,offer:g}),To.track({index:f,et:"CLIENT_IMPRESSION",event_type:"MORS"}),"function"==typeof t&&t({meta:r})}}},onMarkup:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=e.event,r=n.onMarkup;return function(e){var o=e.styles,a=e.warnings,u=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n.indexOf(t=i[r])>=0||(o[t]=e[t]);return o}(e,ri),c=n.getContainer;return void 0!==o&&t.trigger("styles",{styles:o}),a&&a.forEach((function(e){To.warn("render_warning",{description:e,container:c(),help_url:Ro("RENDERING")})})),r&&r(i({styles:o,warnings:a},u))}}},onDestroy:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onDestroy;return function(){var e=n.getContainer,r=fo().messagesMap,o=e();h.delay(0).then((function(){if(o&&o.ownerDocument.body.contains(o)){var e=r.get(o).clone(),n=e.render,t=e.state,i=e.updateProps,a=e.clone;t.renderStart=zr(),r.set(o,{render:n,updateProps:i,state:t,clone:a}),n(o)}})),"function"==typeof t&&t()}}},payerId:{type:"string",queryParam:"payer_id",decorate:function(e){var n=e.props;return 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},merchantConfigHash:{type:"string",queryParam:"merchant_config",required:!1,value:dr,debug:Qr("Merchant Config Hash: "+void 0)},treatmentsHash:{type:"string",queryParam:"treatments",required:!1,value:Uo,debug:Qr("Treatments Hash: "+Uo())},sdkMeta:{type:"string",queryParam:!0,sendToChild:!1,required:!1,value:hr,debug:Qr("SDK Meta: "+void 0)},env:{type:"string",queryParam:!0,value:sr,debug:Qr("Environment: sandbox")},version:{type:"string",queryParam:!0,value:yr,debug:Qr("Library Version: 1.86.0")},integrationType:{type:"string",queryParam:!0,value:function(){return"STANDALONE"},debug:Qr("Library Integration: STANDALONE")},deviceID:{type:"string",queryParam:!0,value:_r,debug:Qr("Device ID: "+_r())},sessionID:{type:"string",queryParam:!0,value:Er,debug:Qr("Session ID: "+Er())},scriptUID:{type:"string",queryParam:!0,value:un,debug:Qr("ScriptUID: "+un())},messageRequestId:{type:"string",queryParam:"message_request_id",value:function(e){var n=e.state;return n.messageRequestId||(n.messageRequestId=oe()),Qr("Message Request ID: "+n.messageRequestId),n.messageRequestId}},debug:{type:"boolean",queryParam:"pp_debug",required:!1,value:function(){return!!/(\?|&)pp_debug=true(&|$)/.test(window.location.search)||void 0}},messageLocation:{type:"string",queryParam:!1,value:function(){return window.location.href},debug:Qr("Message Location: "+window.location.href)},stageTag:{type:"string",queryParam:!0,required:!1,value:Sr},partnerAttributionId:{type:"string",queryParam:!0,required:!1,value:function(){var e,n;return null!=(e=(null!=(n={})?n:{})["data-partner-attribution-id"])?e:null},debug:Qr("Partner Attribution ID: "+(null!=(e={})?e:{})["data-partner-attribution-id"])},devTouchpoint:{type:"boolean",queryParam:!0,required:!1,value:br},cspNonce:{type:"string",required:!1,default:lr,value:ei.cspNonce},disableSetCookie:{type:"boolean",queryParam:!0,required:!1,value:cr},features:{type:"string",queryParam:"features",required:!1,value:function(e){return Tr(ei.features({props:e.props}))}}}})})),ii=t(2),ai=mo(),ui=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,l=null!=s&&s.includes("new-checkout-design")?0:5,f=Yr(),p=f[0],m=f[1],v={HIDDEN:n+"-hide",MODAL_SHOW:n+"-show",TRANSITION:n+"-transition"},y=ai(t.title);return Lr("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()}))}},Lr("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("+l+"%);\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 "),Lr("div",null,Lr("node",{el:t,title:y}),Lr("node",{el:r,title:"Prerender "+y}))).render(Wr({doc:o}))}},ci=t(3),si=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",l="\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 ",f=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()}))}))})),Lr("html",{lang:"en"},Lr("head",null,Lr("meta",{httpEquiv:"X-UA-Compatible",content:"IE=edge"}),Lr("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})),Lr("style",{nonce:o},l),Lr("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||f()}},Lr("div",{class:"modal","aria-errormessage":"modal-status"},Lr("div",{class:"overlay",onClick:f,"aria-keyshortcuts":"escape"}),Lr("div",{class:"top-overlay"}),Lr("div",{class:"modal-content"},Lr("div",{class:"close-button"},Lr("button",{id:"prerender-close-btn",onClick:f,type:"button","aria-label":"Close",tabindex:"0"},"true"===d?Lr("svg",{width:"24",height:"24",viewBox:"0 0 48 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Lr("rect",{x:"4",width:"40",height:"40",rx:"20",fill:"#EDF0F2"}),Lr("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"})):Lr("svg",{"aria-hidden":"true",width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Lr("path",{d:"M12 0L0 12",transform:"translate(12 12)",stroke:"white","stroke-width":"2","stroke-linecap":"round"}),Lr("path",{d:"M0 0L12 12",transform:"translate(12 12)",stroke:"white","stroke-width":"2","stroke-linecap":"round"})))),Lr("span",{id:"modal-status","aria-label":"modal-status","aria-live":"polite"},"Loading Modal"),Lr(ci.Spinner,{nonce:o}))))).render(Wr({doc:t}))},di=yo("__paypal_credit_modal__",(function(){return Ft({tag:ur.MODAL,url:vo("MODAL"),domain:/\.paypal\.com(:\d+)?$/,containerTemplate:ui,prerenderTemplate:si,dimensions:{width:"460px",height:"900px"},attributes:{iframe:{title:"PayPal Modal",scrolling:"no"}},props:{account:{type:"string",queryParam:!1,required:!0,value:ei.account},merchantId:{type:"string",queryParam:"merchant_id",required:!1,value:ei.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:ei.customerId},currency:{type:"string",queryParam:!0,required:!1,value:ei.currency},amount:{type:"number",queryParam:!0,required:!1,value:ei.amount},buyerCountry:{type:"string",queryParam:"buyer_country",required:!1,value:ei.buyerCountry},language:{type:"string",queryParam:!0,required:!1,value:ei.language},locale:{type:"string",queryParam:!0,required:!1,value:ei.locale},offer:{type:"string",queryParam:"credit_type",required:!1,decorate:function(e){return Vr(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:ei.ignoreCache},channel:{type:"string",queryParam:"channel",required:!1,default:function(){return"UPSTREAM"},value:ei.channel},ecToken:{type:"string",queryParam:"ec_token",required:!1,value:ei.ecToken},buttonSessionId:{type:"string",queryParam:"button_session_id",required:!1,value:ei.buttonSessionId},pageType:{type:"string",queryParam:"page_type",required:!1,value:ei.pageType},contextualComponents:{type:"string",queryParam:"contextual_components",required:!1,value:ei.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;To.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;To.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;To.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;To.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"),To.track({index:i,refIndex:a,et:"CLICK",event_type:"modal_close",page_view_link_name:o}),"function"==typeof r&&r({linkName:o})}}}},onReady:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=e.state,r=e.event,o=n.onReady,a=n.buttonSessionId;return function(e){var u=e.products,c=e.meta,s=e.ts,d=n.index,l=n.offer,f=n.merchantId,p=n.account,h=n.refIndex,m=n.messageRequestId,v=n.language,y=n.locale,w=t.renderStart,g=t.show,E=t.hide,_=c.trackingDetails,N=c.ppDebugId,S=c.language,b=f&&p.slice(10);Qr("Modal Correlation ID: "+N),To.addMetaBuilder((function(e){var n;delete e[d];var t=e.global,r=void 0===t?{}:t;return delete e.global,(n={global:i({},r,{ts:void 0!==s?s:Jr(),deviceID:_r(),sessionID:Er()})})[d]={type:"modal",messageRequestId:m,buttonSessionId:a,account:f||p,partnerClientId:b,trackingDetails:_,language_requested:(null==y?void 0:y.replace("_","-"))||v,language_rendered:null!=S?S:"undefined"},n}));var T=Wo("firstModalRenderDelay");To.info("modal_render",{index:d,refIndex:h,duration:zr()-w}),To.track({index:d,refIndex:h,et:"CLIENT_IMPRESSION",event_type:"modal_rendered",modal:u.join("_").toLowerCase()+":"+(l?l.toLowerCase():u[0]),partner_attribution_id:{}[ii.SDK_SETTINGS.PARTNER_ATTRIBUTION_ID],first_modal_render_delay:Math.round(T).toString(),render_duration:Math.round(zr()-w).toString()}),"function"!=typeof o||t.products&&JSON.stringify(u)===JSON.stringify(t.products)||o({products:u,show:g,hide:E}),t.products=Array.isArray(u)&&u.map(Vr),r.trigger("ready")}}},index:{type:"string",queryParam:!1,value:function(e){var n=e.state;return n.index||(n.index=ho().toString()),n.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:hr},env:{type:"string",queryParam:!0,value:sr},version:{type:"string",queryParam:!0,value:yr},deviceID:{type:"string",queryParam:!0,value:_r},sessionID:{type:"string",queryParam:!0,value:Er},scriptUID:{type:"string",queryParam:!0,value:un},messageRequestId:{type:"string",queryParam:"message_request_id",value:oe,decorate:function(e){var n=e.props;return Qr("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:Sr},devTouchpoint:{type:"boolean",queryParam:!0,required:!1,value:br},integrationType:{type:"string",queryParam:!0,required:!1,value:function(){return"STANDALONE"}},cspNonce:{type:"string",required:!1,default:lr,value:ei.cspNonce},disableSetCookie:{type:"boolean",queryParam:!0,required:!1,value:cr},features:{type:"string",queryParam:"features",required:!1,value:function(e){return Tr(ei.features({props:e.props}))}},experimentExperience:{type:"string",queryParam:"experiment_experience",required:!1},experimentName:{type:"string",queryParam:"experiment_name",required:!1}}})})),li=(Qo=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,l=e.onReady,f=e.onCalculate,p=e.onError,m=e.onApply,v=e.onShow,y=e.onClose,w=e.channel,g=e.ecToken,E=e.contextualComponents,_=e.cspNonce,N=e.integrationIdentifier,S=e.features,b=e.buttonSessionId;jo("firstModalRenderDelay");var T,A=di()({account:n,merchantId:t,customerId:r,currency:o,amount:i,buyerCountry:a,language:u,locale:c,ignoreCache:s,offer:d,onReady:l,onCalculate:f,onError:p,onApply:m,onShow:v,onClose:y,channel:w,ecToken:g,contextualComponents:E,cspNonce:_,integrationIdentifier:N,features:S,buttonSessionId:b}),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)||to()!==window&&!(null==S?void 0:S.includes("new-checkout-design"))?"popup":"iframe";if(T&&"popup"!==r)return T.then((function(){return n&&A.updateProps(n)}));T&&"popup"===r&&Object.assign(A,A.clone());var o=new h((function(e){return A.event.once("ready",e)}));A.state.renderStart=zr();var i="show"===t.intent?h.resolve():No.then((function(){return h.delay(0)}));return T=i.then((function(){return h.all([n&&A.updateProps(n),A.render(e,r),o])})).then((function(){return wo.trigger("modal-render")}))},P=function(e){var n;void 0===e&&(e={});var t,r,o,i,a=ro(e)?oo(e):e;ro(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"),T=R("body",a,{intent:"show"});var u=Vr(e.offer),c="DE"===(null==(n=e)?void 0:n.offerCountry)?["PAY_LATER_LONG_TERM","PAY_LATER_PAY_IN_1","PAY_LATER_SHORT_TERM"]:A.state.products;return void 0!==u&&"NONE"!==u&&Array.isArray(A.state.products)&&Array.isArray(c)&&!c.find((function(e){return e===u}))?(To.warn("invalid_option_value",{location:"offer",description:'Expected one of ["'+A.state.products.join('", "')+'"] but received "'+e.offer+'".',help_url:Ro("GENERAL")}),h.resolve()):(A.state.open=!0,A.event.trigger("modal-show"),T)},O=function(){return T=R("body"),A.event.trigger("modal-hide"),T};return A.state.show=P,A.state.hide=O,{render:R,show:P,hide:O,updateProps:function(e){A.updateProps(e)}}},Xo=["account","merchantId","buyerCountry","language","locale"],$o=new Map,function(e,n){void 0===n&&(n=!1);var t=JSON.stringify(Xo.map((function(n){return e[n]})));return $o.has(t)&&!n||$o.set(t,Qo(e)),$o.get(t)}),fi=function(e){return li($r(fo().config,e))},pi=function(e){return void 0===e&&(e={}),{render:function(n){void 0===n&&(n="[data-pp-message]"),jo("firstRenderDelay");var t=zr(),r=fo().messagesMap,o=co(n);if(0===o.length)return e._auto||To.warn("invalid_selector",{description:'No elements were found with the following selector: "'+n+'"',selector:n,help_url:Ro("RENDERING")}),h.resolve();var a=o.filter((function(n){return n.ownerDocument.body.contains(n)?!e._auto||!n.hasAttribute("data-pp-id"):(To.warn("not_in_document",{description:"Container must be in the document.",container:n,help_url:Ro("RENDERING")}),!1)}));return Eo.then((function(){return h.all(a.map((function(n,o){return new h((function(a,u){var c=function(){try{var o=function(e,n){var t=fo().config,r=oo(n),o=i({},t,e,r,{pageType:r.pageType||e.pageType||r.placement||e.placement});return delete o.placement,o}(e,n);n.hasAttribute("data-pp-id")||n.setAttribute("data-pp-id",ho());var c=n.getAttribute("data-pp-id"),s=o.account,d=o.merchantId,l=o.customerId,f=o.currency,p=o.amount,h=o.pageType,m=o.style,v=o.offer,y=o.buyerCountry,w=o.language,g=o.locale,E=o.ignoreCache,_=o.onClick,N=o.onRender,S=o.onApply,b=o.channel,T=o.ecToken,A=o.contextualComponents,R={account:s,merchantId:d,customerId:l,currency:f,amount:p,buyerCountry:y,language:w,locale:g,ignoreCache:E,channel:b,ecToken:T,contextualComponents:A,cspNonce:o.cspNonce,features:o.features},P=i({},R,{onApply:S}),O=i({},R,{index:c,pageType:h,style:m,offer:v,onClick:_,onApply:S,onReady:function(){"function"==typeof N&&N.apply(void 0,arguments)},getContainer:function(){return n}});if(s&&(O.modal=fi(P)),!r.has(n)){var I=oi()(O),C=I.render,x=I.state,D=I.updateProps,M=I.clone;return x.renderStart=t,x.style=O.style,r.set(n,{render:C,updateProps:D,state:x,clone:M}),Io().observe(n,{attributes:!0}),Qr("{\n clientID: "+s+",\n merchantID: "+d+",\n customerID: "+l+",\n offer: "+v+",\n currency: "+f+",\n ignoreCache: "+E+",\n channel: "+b+",\n ecToken: "+T+",\n contextualComponents: "+A+',\n \n index: data-pp-id="'+c+'",\n style: '+JSON.stringify(m)+",\n amount: "+p+",\n buyerCountry: "+y+",\n language: "+w+",\n locale: "+g+",\n pageType: "+h+",\n \n renderStart: "+new Date(t).toLocaleString()+",\n renderMessageTime: "+(new Date).toLocaleString()+"\n }"),C(n).then((function(){return wo.trigger("render")})).then(a)}var L=r.get(n),F=L.updateProps,H=L.state;if(H.renderComplete&&(H.renderStart=t),H.style&&O.style){var k=$r(H.style,O.style);H.style=k,O.style=k}return F(Object.entries(O).reduce((function(e,n){var t,r=n[1];return void 0===r?e:Object.assign(e,((t={})[n[0]]=r,t))}),{})).then((function(){return wo.trigger("render")})).then(a)}catch(e){return"offer_validation_error"===e.message?a():u(e)}};0!==o?window.requestIdleCallback?window.requestIdleCallback(c):setTimeout(c,20*o):c()}))})))}))}}};Object.assign(pi,{render:function(e,n){return pi(e).render(n)},setGlobalConfig:function(e){return void 0===e&&(e={}),po({config:i({},fo().config,e)})}});var hi=pi;jo("scriptLoadDelay"),function(){Ho(),oi(),Do(),go();var e,n=vr();if(window[n]=null!=(e=window[n])?e:{},window[n].Messages=hi,window[n].Message=hi,!wr()){var t=function(){!Uo()&&qe()?ko():wo.trigger("treatments"),fo().config.account&&hi.render({_auto:!0}),Po().observe(document.body,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-pp-message"]}),Qr("DOMContentLoaded at "+(new Date).toLocaleString())};"loading"===document.readyState?window.addEventListener("DOMContentLoaded",t):t()}}(),function(){di(),go();var e,n=vr();window[n]=null!=(e=window[n])?e:{},window[n].MessagesModal=fi,wr()||So.then((function(){if(fo().config.account){var e=co("[data-pp-messagesmodal]");if(e.length>0){var n=$r(fo().config,oo(e[0])),t=fi(n);e.forEach((function(e){e.setAttribute("tabindex",0),e.addEventListener("click",(function(){return t.show(e)}))}))}}}))}()}]);
|
|
3
|
+
//# sourceMappingURL=messaging@1.86.0.js.map
|