1/*! For license information please see LICENSES */ 2(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{3268:function(e,t,n){var r,o,c,d,l=n(102);n(8),n(33),n(44),n(17),n(9),n(45),n(50),n(24),n(23),n(81),n(166),n(167),n(168),n(14),n(15),n(110),n(11),n(4),n(21),n(32),n(25),n(114),n(51),n(169),n(170),n(171),n(172),n(173),n(174),n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(93),n(12),n(29),n(47),d=function(){return function e(t,n,r){function o(i,c){if(!n[i]){if(!t[i]){if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};t[i][0].call(p.exports,function(e){return o(t[i][1][e]||e)},p,p.exports,e,t,n,r)}return n[i].exports}for(var u=!1,i=0;i<r.length;i++)o(r[i]);return o}({1:[function(e,t,n){"use strict";var r={};function o(e,t,n){var r="abort"===t?"has aborted.":"failed to load.",o=new Error("".concat(e," ").concat(r));return o.src=e,o.failureKind=t,o.timing=performance.now()-n,o.onLine=navigator.onLine,o}function c(e){var t,n=JSON.stringify(e);if(!e.forceScriptReload&&(t=r[n]))return t;var script=document.createElement("script"),c=e.dataAttributes||{},d=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&script.setAttribute("integrity","".concat(e.integrity)),Object.keys(c).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(c[e]))}),t=new Promise(function(t,n){var r=performance.now();script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){n(o(e.src,"error",r))}),script.addEventListener("abort",function(){n(o(e.src,"abort",r))}),d.appendChild(script)}),r[n]=t,t}c.clearCache=function(){r={}},t.exports=c},{}],2:[function(e,t,n){t.exports=e("./dist/load-script")},{"./dist/load-script":1}],3:[function(e,t,n){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/Android/i.test(e)}},{}],4:[function(e,t,n){"use strict";var r=e("./is-edge"),o=e("./is-samsung"),c=e("./is-duckduckgo"),d=e("./is-opera"),l=e("./is-silk");t.exports=function(e){return!(-1===(e=e||window.navigator.userAgent).indexOf("Chrome")&&-1===e.indexOf("CriOS")||r(e)||o(e)||c(e)||d(e)||l(e))}},{"./is-duckduckgo":5,"./is-edge":6,"./is-opera":13,"./is-samsung":14,"./is-silk":15}],5:[function(e,t,n){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("DuckDuckGo/")}},{}],6:[function(e,t,n){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("Edge/")||-1!==e.indexOf("Edg/")}},{}],7:[function(e,t,n){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/FxiOS/i.test(e)}},{}],8:[function(e,t,n){"use strict";var r=e("./is-ios");t.exports=function(e){return e=e||window.navigator.userAgent,r(e)&&function(e){return/\bGSA\b/.test(e)}(e)}},{"./is-ios":11}],9:[function(e,t,n){"use strict";var r=e("./is-ios"),o=e("./is-ios-google-search-app");t.exports=function(e){return e=e||window.navigator.userAgent,!!r(e)&&(!!o(e)||/.+AppleWebKit(?!.*Safari)/i.test(e))}},{"./is-ios":11,"./is-ios-google-search-app":8}],10:[function(e,t,n){"use strict";var r=e("./is-ios-webview");t.exports=function(e,t){return t=void 0!==t?t:window.statusbar.visible,r(e)&&t}},{"./is-ios-webview":9}],11:[function(e,t,n){"use strict";var r=e("./is-ipados");t.exports=function(e,t,n){void 0===t&&(t=!0),e=e||window.navigator.userAgent;var o=/iPhone|iPod|iPad/i.test(e);return t?o||r(e,n):o}},{"./is-ipados":12}],12:[function(e,t,n){"use strict";t.exports=function(e,t){return e=e||window.navigator.userAgent,t=t||window.document,/Mac|iPad/i.test(e)&&"ontouchend"in t}},{}],13:[function(e,t,n){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("OPR/")||-1!==e.indexOf("Opera/")||-1!==e.indexOf("OPT/")}},{}],14:[function(e,t,n){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/SamsungBrowser/i.test(e)}},{}],15:[function(e,t,n){"use strict";
2t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("Silk/")}},{}],16:[function(e,t,n){"use strict";var r=e("./is-android"),o=e("./is-ios-firefox"),c=e("./is-ios-webview"),d=e("./is-chrome"),l=e("./is-samsung"),f=e("./is-duckduckgo");function _(e){return(e=e||window.navigator.userAgent).indexOf("Opera Mini")>-1}t.exports=function(e){return e=e||window.navigator.userAgent,!(c(e)||o(e)||function(e){return e=e||window.navigator.userAgent,!!r(e)&&/Version\/[\d.]+/i.test(e)&&!_(e)&&!f(e)}(e)||_(e)||function(e){var t=(e=e||window.navigator.userAgent).match(/CriOS\/(\d+)\./);return!!t&&parseInt(t[1],10)<48}(e)||function(e){return!d(e)&&!l(e)&&/samsung/i.test(e)}(e))}},{"./is-android":3,"./is-chrome":4,"./is-duckduckgo":5,"./is-ios-firefox":7,"./is-ios-webview":9,"./is-samsung":14}],17:[function(e,t,n){t.exports=e("./dist/is-ios-wkwebview")},{"./dist/is-ios-wkwebview":10}],18:[function(e,t,n){t.exports=e("./dist/is-ios")},{"./dist/is-ios":11}],19:[function(e,t,n){t.exports=e("./dist/supports-popups")},{"./dist/supports-popups":16}],20:[function(e,t,n){"use strict";var r=e("./lib/set-attributes"),o=e("./lib/default-attributes"),c=e("./lib/assign");t.exports=function(e){void 0===e&&(e={});var iframe=document.createElement("iframe"),t=(0,c.assign)({},o.defaultAttributes,e);return t.style&&"string"!=typeof t.style&&((0,c.assign)(iframe.style,t.style),delete t.style),(0,r.setAttributes)(iframe,t),iframe.getAttribute("id")||(iframe.id=iframe.name),iframe}},{"./lib/assign":21,"./lib/default-attributes":22,"./lib/set-attributes":23}],21:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.assign=void 0,n.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach(function(t){"object"===l(t)&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}},{}],22:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.defaultAttributes=void 0,n.defaultAttributes={src:"about:blank",frameBorder:0,allowtransparency:!0,scrolling:"no"}},{}],23:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.setAttributes=void 0,n.setAttributes=function(element,e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];null==n?element.removeAttribute(t):element.setAttribute(t,n)}}},{}],24:[function(e,t,n){"use strict";t.exports=function(){if("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID)try{return crypto.randomUUID()}catch(e){}if("undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues){var e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128;for(var t=new Array(256),i=0;i<256;i++)t[i]=(i<16?"0":"")+i.toString(16);return t[e[0]]+t[e[1]]+t[e[2]]+t[e[3]]+"-"+t[e[4]]+t[e[5]]+"-"+t[e[6]]+t[e[7]]+"-"+t[e[8]]+t[e[9]]+"-"+t[e[10]]+t[e[11]]+t[e[12]]+t[e[13]]+t[e[14]]+t[e[15]]}throw new Error("@braintree/uuid: No secure random source available")}},{}],25:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.deferred=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];setTimeout(function(){try{e.apply(void 0,t)}catch(e){console.log("Error in callback function"),console.log(e)}},1)}}},{}],26:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.once=function(e){var t=!1;return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t||(t=!0,e.apply(void 0,n))}}},{}],27:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.promiseOrCallback=function(e,t){if(!t)return e;e.then(function(data){return t(null,data)}).catch(function(e){return t(e)})}},{}],28:[function(e,t,n){"use strict";var r=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function d(e){return function(){for(var t,n=[],d=0;d<arguments.length;d++)n[d]=arguments[d];return"function"==typeof n[n.length-1]&&(t=n.pop(),t=o.once(r.deferred(t))),c.promiseOrCallback(e.apply(this,n),t)}}d.wrapPrototype=function(e,t){void 0===t&&(t={});var n=t.ignoreMethods||[],r=!0===t.transformPrivateMethods;return Object.getOwnPropertyNames(e.prototype).filter(function(t){var o,c="constructor"!==t&&"function"==typeof e.prototype[t],d=-1===n.indexOf(t);return o=!!r||"_"!==t.charAt(0),c&&o&&d}
2).forEach(function(t){var n=e.prototype[t];e.prototype[t]=d(n)}),e},t.exports=d},{"./lib/deferred":25,"./lib/once":26,"./lib/promise-or-callback":27}],29:[function(e,t,n){var r,o;r=this,o=function(e){"use strict";function t(e,t,n,r){return new(n||(n=Promise))(function(o,c){function d(e){try{f(r.next(e))}catch(e){c(e)}}function l(e){try{f(r.throw(e))}catch(e){c(e)}}function f(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(d,l)}f((r=r.apply(e,t||[])).next())})}function n(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(d){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,d])}}}
2var r={},o={};function c(e){var t,n=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[n]))return t;var script=document.createElement("script"),r=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(r).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(r[e]))}),t=new Promise(function(t,n){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){n(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){n(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),o[n]=t,t}c.clearCache=function(){o={}};var d=c;Object.defineProperty(r,"__esModule",{value:!0}),r.loadStylesheet=f=r.loadScript=void 0;var l=d,f=r.loadScript=l,_=function(e){var t=document.querySelector('link[href="'.concat(e.href,'"]'));if(t)return Promise.resolve(t);t=document.createElement("link");var n=e.container||document.head;return t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("href",e.href),t.setAttribute("id",e.id),n.firstChild?n.insertBefore(t,n.firstChild):n.appendChild(t),Promise.resolve(t)};r.loadStylesheet=_;var h,m,y="connect-boba",v={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:y,LOCALE_PATH:"".concat(y,"/locales/"),CDNX_PROD:"https://www.paypalobjects.com"},E="BT",A="PPCP";function w(){return"function"==typeof window.define&&!!window.define.amd}function O(e,r,o){var c,d;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,l;return n(this,function(n){if((t=null===window||void 0===window?void 0:window.braintree)&&t[e.module]){if(r&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==r)throw l=null===(d=t[e.module])||void 0===d?void 0:d.VERSION,new Error("".concat(e.module," already loaded with version ").concat(l," cannot load version ").concat(r));return[2,!0]}if(!r)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,I(e,r,o)]})})}function I(e,t,n){if(void 0===n&&(n=!0),w()){var r=n?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([r],e,t)})}var script=n?e.script.minified:e.script.unminified;return f({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}var P="client",T="hostedFields",N="braintree",S=((h={})[P]="client",h[T]="hosted-fields",h),L=((m={})[P]={id:"client",module:P,amdModule:{unminified:"".concat(N,"/").concat(S[P]),minified:"".concat(N,"/").concat(S[P],".min")},script:{unminified:"".concat(S[P],".js"),minified:"".concat(S[P],".min.js")}},m[T]={id:"hcf",module:T,amdModule:{unminified:"".concat(N,"/").concat(S[T]),minified:"".concat(N,"/").concat(S[T],".min")},script:{unminified:"".concat(S[T],".js"),minified:"".concat(S[T],".min.js")}},m);function R(e,t){if(void 0===t&&(t=!0),w()){w()&&"function"==typeof window.requirejs&&window.requirejs.config;var n="".concat("fastlane","/").concat(t?v.AXO_ASSET_NAME.minified:v.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([n],e,t)})}return f({id:"axo-id",src:e,forceScriptReload:!0})}function C(e){var t=e.assetUrl,n=e.bundleId;return n?"https://cdn-".concat(n,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(v.CDNX_PROD,"/").concat(t)}e.constants=v,e.loadAxo=function(e){return t(this,void 0,void 0,function(){var t,r,o,c;return n(this,function(n){switch(n.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,r=e.minified,o=function(e){var t,n=!1!==(null==e?void 0:e.minified)?v.AXO_ASSET_NAME.minified:v.AXO_ASSET_NAME.unminified,r=w()?v.AXO_ASSET_PATH:"".concat(v.AXO_ASSET_PATH,"/").concat(n,".js");return C({assetUrl:r,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}(e),c=function(e){var t;return C({assetUrl:v.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}(e),e.platform!==E?[3,2]:[4,Promise.all([O(L.hostedFields,t,r),R(o,r)])];case 1:case 3:return n.sent(),[3,5];case 2:return e.platform!==A?[3,4]:[4,Promise.all([O(L.client,t,r),O(L.hostedFields,t,r),R(o,r)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}})})}},"object"===l(n)&&void 0!==t?o(n):o((r="undefined"!=typeof globalThis?globalThis:r||self).loadAxo={})},{}],30:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Framebus=void 0;var r=e("./lib"),o="undefined"!=typeof window&&window.Promise,c=function(){function e(e){void 0===e&&(e={}),this.origin=e.origin||"*",this.channel=e.channel||"",this.verifyDomain=e.verifyDomain,this.targetFrames=e.targetFrames||[],this.limitBroadcastToFramesArray=Boolean(e.targetFrames),this.isDestroyed=!1,this.listeners=[],this.hasAdditionalChecksForOnListeners=Boolean(this.verifyDomain||this.limitBroadcastToFramesArray)}return e.setPromise=function(t){e.Promise=t},e.target=function(t){return new e(t)},e.prototype.addTargetFrame=function(e){this.limitBroadcastToFramesArray&&this.targetFrames.push(e)},e.prototype.include=function(e){return null!=e&&null!=e.Window&&e.constructor===e.Window&&(r.childWindows.push(e),!0)},e.prototype.target=function(t){return e.target(t)},e.prototype.emit=function(e,data,t){if(this.isDestroyed)return!1;var n=this.origin;if(e=this.namespaceEvent(e),(0,r.isntString)(e))return!1;if((0,r.isntString)(n))return!1;"function"==typeof data&&(t=data,data=void 0);var o=this.limitBroadcastToFramesArray?this.targetFrames:void 0,c=(0,r.packagePayload)(e,n,data,t,this.verifyDomain,o);return!!c&&(this.limitBroadcastToFramesArray?this.targetFramesAsWindows().forEac
2h(function(e){(0,r.sendMessage)(e,c,n)}):(0,r.broadcast)(c,{origin:n,frame:window.top||window.self}),!0)},e.prototype.emitAsPromise=function(t,data){var n=this;return new e.Promise(function(e,r){n.emit(t,data,function(t){e(t)})||r(new Error('Listener not added for "'.concat(t,'"')))})},e.prototype.on=function(e,t){if(this.isDestroyed)return!1;var n=this,o=this.origin,c=t;return e=this.namespaceEvent(e),!(0,r.subscriptionArgsInvalid)(e,c,o)&&(this.hasAdditionalChecksForOnListeners&&(c=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.passesVerifyDomainCheck(this&&this.origin)&&n.hasMatchingTargetFrame(this&&this.source)&&t.apply(void 0,e)}),this.listeners.push({eventName:e,handler:c,originalHandler:t}),r.subscribers[o]=r.subscribers[o]||{},r.subscribers[o][e]=r.subscribers[o][e]||[],r.subscribers[o][e].push(c),!0)},e.prototype.off=function(e,t){var n=t;if(this.isDestroyed)return!1;if(this.hasAdditionalChecksForOnListeners)for(var i=0;i<this.listeners.length;i++){var o=this.listeners[i];o.originalHandler===t&&(n=o.handler)}e=this.namespaceEvent(e);var c=this.origin;if((0,r.subscriptionArgsInvalid)(e,n,c))return!1;var d=r.subscribers[c]&&r.subscribers[c][e];if(!d)return!1;for(i=0;i<d.length;i++)if(d[i]===n)return d.splice(i,1),!0;return!1},e.prototype.teardown=function(){if(!this.isDestroyed){this.isDestroyed=!0;for(var i=0;i<this.listeners.length;i++){var e=this.listeners[i];this.off(e.eventName,e.handler)}this.listeners.length=0}},e.prototype.passesVerifyDomainCheck=function(e){return!this.verifyDomain||this.checkOrigin(e)},e.prototype.targetFramesAsWindows=function(){return this.limitBroadcastToFramesArray?this.targetFrames.map(function(e){return e instanceof HTMLIFrameElement?e.contentWindow:e}).filter(function(e){return e}):[]},e.prototype.hasMatchingTargetFrame=function(source){if(!this.limitBroadcastToFramesArray)return!0;var e=this.targetFramesAsWindows().find(function(e){return e===source});return Boolean(e)},e.prototype.checkOrigin=function(e){var t,a=document.createElement("a");return a.href=location.href,t="https:"===a.protocol?a.host.replace(/:443$/,""):"http:"===a.protocol?a.host.replace(/:80$/,""):a.host,a.protocol+"//"+t===e||!this.verifyDomain||this.verifyDomain(e)},e.prototype.namespaceEvent=function(e){return this.channel?"".concat(this.channel,":").concat(e):e},e.Promise=o,e}();n.Framebus=c},{"./lib":38}],31:[function(e,t,n){"use strict";var r=e("./lib"),o=e("./framebus");(0,r.attach)(),t.exports=o.Framebus},{"./framebus":30,"./lib":38}],32:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.detach=n.attach=void 0;var r=e("./"),o=!1;n.attach=function(){o||"undefined"==typeof window||(o=!0,window.addEventListener("message",r.onMessage,!1))},n.detach=function(){o=!1,window.removeEventListener("message",r.onMessage,!1)}},{"./":38}],33:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.broadcastToChildWindows=void 0;var r=e("./");n.broadcastToChildWindows=function(e,t,source){for(var i=r.childWindows.length-1;i>=0;i--){var n=r.childWindows[i];n.closed?r.childWindows.splice(i,1):source!==n&&(0,r.broadcast)(e,{origin:t,frame:n.top})}}},{"./":38}],34:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.broadcast=void 0;var r=e("./");n.broadcast=function e(t,n){var o,i=0,c=n.origin,d=n.frame;try{for(d.postMessage(t,c),(0,r.hasOpener)(d)&&d.opener.top!==window.top&&e(t,{origin:c,frame:d.opener.top});o=d.frames[i];)e(t,{origin:c,frame:o}),i++}catch(e){}}},{"./":38}],35:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.subscribers=n.childWindows=n.prefix=void 0,n.prefix="/*framebus*/",n.childWindows=[],n.subscribers={}},{}],36:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.dispatch=void 0;var r=e("./");n.dispatch=function(e,t,data,n,o){if(r.subscribers[e]&&r.subscribers[e][t]){var c=[];data&&c.push(data),n&&c.push(n);for(var i=0;i<r.subscribers[e][t].length;i++)r.subscribers[e][t][i].apply(o,c)}}},{"./":38}],37:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.hasOpener=void 0,n.hasOpener=function(e){return e.top===e&&null!=e.opener&&e.opener!==e&&!0!==e.opener.closed}},{}],38:[function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var desc=Object.getOwnPropertyDescriptor(t,n);
2desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,desc)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var p in e)"default"===p||Object.prototype.hasOwnProperty.call(t,p)||r(t,e,p)};Object.defineProperty(n,"__esModule",{value:!0}),o(e("./attach"),n),o(e("./broadcast-to-child-windows"),n),o(e("./broadcast"),n),o(e("./constants"),n),o(e("./dispatch"),n),o(e("./has-opener"),n),o(e("./is-not-string"),n),o(e("./message"),n),o(e("./package-payload"),n),o(e("./send-message"),n),o(e("./subscribe-replier"),n),o(e("./subscription-args-invalid"),n),o(e("./types"),n),o(e("./unpack-payload"),n)},{"./attach":32,"./broadcast":34,"./broadcast-to-child-windows":33,"./constants":35,"./dispatch":36,"./has-opener":37,"./is-not-string":39,"./message":40,"./package-payload":41,"./send-message":42,"./subscribe-replier":43,"./subscription-args-invalid":44,"./types":45,"./unpack-payload":46}],39:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isntString=void 0,n.isntString=function(e){return"string"!=typeof e}},{}],40:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.onMessage=void 0;var r=e("./");n.onMessage=function(e){if(!(0,r.isntString)(e.data)){var t=(0,r.unpackPayload)(e);if(t){var data=t.eventData,n=t.reply;(0,r.dispatch)("*",t.event,data,n,e),(0,r.dispatch)(e.origin,t.event,data,n,e),(0,r.broadcastToChildWindows)(e.data,t.origin,e.source)}}}},{"./":38}],41:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.packagePayload=void 0;var r=e("./");n.packagePayload=function(e,t,data,n,o,c){var d,l={event:e,origin:t};"function"==typeof n&&(l.reply=(0,r.subscribeReplier)(n,t,o,c)),l.eventData=data;try{d=r.prefix+JSON.stringify(l)}catch(e){throw new Error("Could not stringify event: ".concat(e.message))}return d}},{"./":38}],42:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.sendMessage=void 0,n.sendMessage=function(e,t,n){try{e.postMessage(t,n)}catch(e){}}},{}],43:[function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.subscribeReplier=void 0;var o=e("../framebus"),c=r(e("@braintree/uuid"));n.subscribeReplier=function(e,t,n,r){var d=(0,c.default)(),l=o.Framebus.target({origin:t,verifyDomain:n,targetFrames:r});return l.on(d,function t(data,n){e(data,n),l.off(d,t)}),d}},{"../framebus":30,"@braintree/uuid":24}],44:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.subscriptionArgsInvalid=void 0;var r=e("./");n.subscriptionArgsInvalid=function(e,t,n){return!!(0,r.isntString)(e)||"function"!=typeof t||(0,r.isntString)(n)}},{"./":38}],45:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},{}],46:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.unpackPayload=void 0;var r=e("./");n.unpackPayload=function(e){var t;if(e.data.slice(0,r.prefix.length)!==r.prefix)return!1;try{t=JSON.parse(e.data.slice(r.prefix.length))}catch(e){return!1}if(t.reply){var n=e.origin,o=e.source,c=t.reply;t.reply=function(e){if(o){var t=(0,r.packagePayload)(c,n,e);t&&o.postMessage(t,n)}}}return t}},{"./":38}],47:[function(e,t,n){"use strict";var r=e("./create-authorization-data"),o=e("./json-clone"),c=e("./constants");t.exports={addMetadata:function(e,data){var t,n=data?o(data):{},d=r(e.authorization).attrs,l=o(e.analyticsMetadata);for(t in n.braintreeLibraryVersion=c.BRAINTREE_LIBRARY_VERSION,n._meta)n._meta.hasOwnProperty(t)&&(l[t]=n._meta[t]);return n._meta=l,d.tokenizationKey?n.tokenizationKey=d.tokenizationKey:n.authorizationFingerprint=d.authorizationFingerprint,n},addEventMetadata:function(e){var t=e.getConfiguration(),n=r(t.authorization).attrs,o="production"===t.gatewayConfiguration.environment,d={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:c.VERSION,component:"braintreeclientsdk",merchant_sdk_env:o?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:c.PLATFORM,platform_version:window.navigator.userAgent,session_id:t.analyticsMetadata.sessionId,client_session_id:t.analyticsMetadata.sessionId,tenant_name:"braintree",product_name:"BT_DCC",space_key:"SKDUYK"};return n.tokenizationKey?d.tokenization_key=n.tokenizationKey:d.auth_fingerprint=n.authorizationFingerprint,d}}},{"./constants":54,"./create-authorization-data":58,"./json-clone":76}],48:[function(e,t,n){"use strict";var r=e("./constants"),o=e("./add-metadata"),c=e("./assign").assign;function d(e,t,n,d){var _=Date.now();return"vault"===n.flow?n.context_type="BA_Token":"checkout"===n.flow&&(n.context_type="EC_Token"),Promise.resolve(e).then(function(e){var h=e._request,m=r.ANALYTICS_URL,y=r.ANALYTICS_PREFIX+t,v="production"===e.getConfiguration().gatewayConfiguration.environment,data={events:[],tracking:[]},E=o.addEventMetadata(e,data);return E.event_name=y,E.t=_,data.events=[{level:"info",event:y,payload:c({env:v?"production":"sandbox",timestamp:_},n)}],data.tracking=[E],n&&"object"===l(n)&&(data.tracking=[f(E,n)]),h({url:m,method:"post",data:data,timeout:r.ANALYTICS_REQUEST_TIMEOUT_MS},d)}).catch(function(e){d&&d(e)})}function f(e,t){var n=c({},t);
2return Object.keys(n).forEach(function(e){-1===r.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete n[e]}),c(e,n)}t.exports={sendEvent:function(e,t,n){return d(e,t,{},n)},sendEventPlus:d}},{"./add-metadata":47,"./assign":51,"./constants":54}],49:[function(e,t,n){"use strict";t.exports=function(e){return{src:(e=e||{}).src,failure_kind:e.failureKind,timing:e.timing,on_line:e.onLine,description:e.message}}},{}],50:[function(e,t,n){"use strict";var r=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:r,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":29}],51:[function(e,t,n){"use strict";var r="function"==typeof Object.assign?Object.assign:o;function o(e){var i,source,t;for(i=1;i<arguments.length;i++)for(t in source=arguments[i])source.hasOwnProperty(t)&&(e[t]=source[t]);return e}t.exports={assign:r,_assign:o}},{}],52:[function(e,t,n){"use strict";var r=e("./braintree-error"),o=e("./errors"),c="3.146.0";t.exports={verify:function(e){var t,n,d;return e?(d=e.name,t=e.client,n=e.authorization,t||n?n||t.getVersion()===c?Promise.resolve():Promise.reject(new r({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+d+" (version "+c+") components must be from the same SDK version."})):Promise.reject(new r({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+d+"."}))):Promise.reject(new r({type:o.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:o.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}}},{"./braintree-error":53,"./errors":63}],53:[function(e,t,n){"use strict";var r=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=r(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":62}],54:[function(e,t,n){"use strict";var r="3.146.0",o="web";t.exports={CREATE_BILLING_AGREEMENT_JWT_MUTATION:"mutation CreateBillingAgreementJwt($input: CreateBillingAgreementJwtInput!) { createBillingAgreementJwt(input: $input) { jwt } }",ANALYTICS_PREFIX:o+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:{production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},CLIENT_API_URLS:{production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},FRAUDNET_SOURCE:"BRAINTREE_SIGNIN",FRAUDNET_FNCLS:"fnparams-dede7cc5-15fd-4c75-a9f4-36c430ee3a99",FRAUDNET_URL:"https://c.paypal.com/da/r/fb.js",BUS_CONFIGURATION_REQUEST_EVENT:"BUS_CONFIGURATION_REQUEST",GRAPHQL_URLS:{production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"},INTEGRATION_TIMEOUT_MS:6e4,VERSION:r,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/web/"+r,ALLOWED_EXTRA_EVENT_FIELDS:["context_id","context_type","payment_ready_button_order","payment_ready_experiment_type","payment_ready_page_type","payment_ready_session_id","button_type","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],55:[function(e,t,n){"use strict";var r=e("./braintree-error"),o=e("./errors");t.exports=function(e,t){t.forEach(function(t){e[t]=function(){throw new r({type:o.METHOD_CALLED_AFTER_TEARDOWN.type,code:o.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}})}},{"./braintree-error":53,"./errors":63}],56:[function(e,t,n){"use strict";var r=e("./braintree-error");t.exports=function(e,t){return e instanceof r?e:new r({type:t.type,code:t.code,message:t.message,details:{originalError:e}})}},{"./braintree-error":53}],57:[function(e,t,n){"use strict";var r=e("./constants").ASSETS_URLS;t.exports={create:function(e){return r.production}}},{"./constants":54}],58:[function(e,t,n){"use strict";var r=e("../lib/vendor/polyfill").atob,o=e("../lib/constants").CLIENT_API_URLS;t.exports=function(e){var t,n,c,d,data={attrs:{},configUrl:""};return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)?(c=e.split("_"),d=c[0],n={merchantId:c.slice(2).join("_"),environment:d},data.environment=n.environment,data.attrs.tokenizationKey=e,data.configUrl=o[n.environment]+"/merchants/"+n.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(r(e)),data.environment=t.environment,data.attrs.authorizationFingerprint=t.authorizationFingerprint,data.paymentMethodIdJwt=t.paymentMethodIdJwt,data.configUrl=t.configUrl,data.graphQL=t.graphQL),data}},{"../lib/constants":54,"../lib/vendor/polyfill":81}],59:[function(e,t,n){"use strict";var r=e("./braintree-error"),o=e("./assets"),c=e("./analytics"),d=e("./asset-load-detail"),l=e("./errors"),f="3.146.0";function _(e,t){var n={src:e};return t&&(n.forceScriptReload=!0),o.loadScript(n)}t.exports={create:function(e){var t,n,o=!1,h=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(h=_(n=e.assetsUrl+"/web/"+f+"/js/client.min.js",!1).catch(function(e){return o=!0,t=e,_(n,!0)}).catch(function(e){return Promise.reject(new r({type:l.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:l.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:"Braintree client script failed to load ("+(e&&e.failureKind?e.failureKind:"error")+").",details:{originalError:e}}))}
2)),h.then(function(){return window.braintree.client.VERSION!==f?Promise.reject(new r({type:l.INCOMPATIBLE_VERSIONS.type,code:l.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+f+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}).then(function(n){return o&&c.sendEventPlus(n,e.name+".deferred-client.load-recovered",d(t)),n}))}}},{"./analytics":48,"./asset-load-detail":49,"./assets":50,"./braintree-error":53,"./errors":63}],60:[function(e,t,n){"use strict";t.exports=function(e){return function(){var t=arguments;setTimeout(function(){e.apply(null,t)},1)}}},{}],61:[function(e,t,n){"use strict";t.exports={getVisibilityChangeEventName:function(){return void 0!==window.document.hidden?"visibilitychange":void 0!==window.document.msHidden?"msvisibilitychange":void 0!==window.document.webkitHidden?"webkitvisibilitychange":"visibilitychange"},isDocumentHidden:function(){return Boolean(window.document.hidden||window.document.msHidden||window.document.webkitHidden)}}},{}],62:[function(e,t,n){"use strict";t.exports=function(e,t){return t=null==t?"":t,e.reduce(function(e,n){return e[n]=t+n,e},{})}},{}],63:[function(e,t,n){"use strict";var r=e("./braintree-error");t.exports={INVALID_USE_OF_INTERNAL_FUNCTION:{type:r.types.INTERNAL,code:"INVALID_USE_OF_INTERNAL_FUNCTION"},INSTANTIATION_OPTION_REQUIRED:{type:r.types.MERCHANT,code:"INSTANTIATION_OPTION_REQUIRED"},INCOMPATIBLE_VERSIONS:{type:r.types.MERCHANT,code:"INCOMPATIBLE_VERSIONS"},CLIENT_SCRIPT_FAILED_TO_LOAD:{type:r.types.NETWORK,code:"CLIENT_SCRIPT_FAILED_TO_LOAD",message:"Braintree client script could not be loaded."},METHOD_CALLED_AFTER_TEARDOWN:{type:r.types.MERCHANT,code:"METHOD_CALLED_AFTER_TEARDOWN"},INSTANTIATION_OPTION_INVALID:{type:r.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":53}],64:[function(e,t,n){"use strict";var r=e("./strategies/popup"),o=e("./strategies/popup-bridge"),c=e("./strategies/modal"),d=e("framebus"),l=e("../shared/events"),f=e("../shared/errors"),_=e("../shared/constants"),h=e("@braintree/uuid"),m=e("@braintree/iframer"),y=e("../../braintree-error"),v=e("../shared/browser-detection"),E=e("./../../assign").assign,A=e("../../document-visibility"),w=e("../../constants").BUS_CONFIGURATION_REQUEST_EVENT,O=e("../../is-verified-domain"),I=["name","dispatchFrameUrl","openFrameUrl"];function P(){}function T(e){!function(e){if(!e)throw new Error("Valid configuration is required");if(I.forEach(function(t){if(!e.hasOwnProperty(t))throw new Error("A valid frame "+t+" must be provided")}),!/^[\w_]+$/.test(e.name))throw new Error("A valid frame name must be provided")}(e),this._serviceId=h().replace(/-/g,""),this._options={name:e.name+"_"+this._serviceId,dispatchFrameUrl:e.dispatchFrameUrl,openFrameUrl:e.openFrameUrl,height:e.height,width:e.width,top:e.top,left:e.left},this.state=e.state||{},this._bus=new d({channel:this._serviceId,verifyDomain:O,targetFrames:[]}),this._setBusEvents()}T.prototype.initialize=function(e){var t=function(){e(),this._bus.off(l.DISPATCH_FRAME_READY,t)}.bind(this);this._bus.on(l.DISPATCH_FRAME_READY,t),this._writeDispatchFrame()},T.prototype._writeDispatchFrame=function(){var e=_.DISPATCH_FRAME_NAME+"_"+this._serviceId,t=this._options.dispatchFrameUrl;this._dispatchFrame=m({"aria-hidden":!0,name:e,title:e,src:t,class:_.DISPATCH_FRAME_CLASS,height:0,width:0,style:{position:"absolute",left:"-9999px"}}),document.body.appendChild(this._dispatchFrame),this._bus.addTargetFrame(this._dispatchFrame)},T.prototype._setBusEvents=function(){this._bus.on(l.DISPATCH_FRAME_REPORT,function(e,t){this._onCompleteCallback&&this._onCompleteCallback.call(null,e.err,e.payload),this._frame.close(),this._onCompleteCallback=null,this._cleanupFrame(),t&&t()}.bind(this)),this._bus.on(w,function(e){e(this.state)}.bind(this))},T.prototype.open=function(e,t){if(e=e||{},this._frame=this._getFrameForEnvironment(e),this._frame.initialize(t),!(this._frame instanceof o)){if(E(this.state,e.state),this._onCompleteCallback=t,this._onSuspend=e.onSuspend,this._onResume=e.onResume,this._frame.open(),this.isFrameClosed())return this._cleanupFrame(),void(t&&t(ne
2w y(f.FRAME_SERVICE_FRAME_OPEN_FAILED)));this._pollForPopupClose(),this._addVisibilityListeners()}},T.prototype.redirect=function(e){this._frame&&!this.isFrameClosed()&&this._frame.redirect(e)},T.prototype.close=function(){this.isFrameClosed()||this._frame.close()},T.prototype.focus=function(){this.isFrameClosed()||this._frame.focus()},T.prototype.createHandler=function(e){return e=e||{},{close:function(){e.beforeClose&&e.beforeClose(),this.close()}.bind(this),focus:function(){e.beforeFocus&&e.beforeFocus(),this.focus()}.bind(this)}},T.prototype.createNoopHandler=function(){return{close:P,focus:P}},T.prototype.teardown=function(){this.close(),this._dispatchFrame.parentNode.removeChild(this._dispatchFrame),this._dispatchFrame=null,this._cleanupFrame()},T.prototype.isFrameClosed=function(){return null==this._frame||this._frame.isClosed()},T.prototype._cleanupFrame=function(){this._frame=null,clearInterval(this._popupInterval),this._popupInterval=null,this._removeVisibilityListeners()},T.prototype._reportFrameClosed=function(){var e=this._onCompleteCallback;this._onCompleteCallback=null,this._cleanupFrame(),e&&e(new y(f.FRAME_SERVICE_FRAME_CLOSED))},T.prototype._pollForPopupClose=function(){return this._popupInterval=setInterval(function(){this.isFrameClosed()&&this._reportFrameClosed()}.bind(this),_.POPUP_POLL_INTERVAL),this._popupInterval},T.prototype._addVisibilityListeners=function(){var e=this;this._onVisibilityChange=function(){A.isDocumentHidden()?e._handleSuspend():e._handleResume()},this._onPageShow=function(t){t&&t.persisted&&e._handleResume()},this._visibilityInstallTimeout=setTimeout(function(){window.document.addEventListener(A.getVisibilityChangeEventName(),e._onVisibilityChange),window.addEventListener("pageshow",e._onPageShow)},_.VISIBILITY_CHANGE_LISTENER_INSTALL_DELAY)},T.prototype._removeVisibilityListeners=function(){clearTimeout(this._visibilityInstallTimeout),this._visibilityInstallTimeout=null,clearTimeout(this._resumeRecheckTimeout),this._resumeRecheckTimeout=null,this._backgrounded=!1,this._onVisibilityChange&&(window.document.removeEventListener(A.getVisibilityChangeEventName(),this._onVisibilityChange),this._onVisibilityChange=null),this._onPageShow&&(window.removeEventListener("pageshow",this._onPageShow),this._onPageShow=null)},T.prototype._handleSuspend=function(){this._backgrounded||(this._backgrounded=!0,this._onSuspend&&this._onSuspend())},T.prototype._handleResume=function(){var e=this;this._backgrounded&&(this._backgrounded=!1,this._onResume&&this._onResume(),clearTimeout(this._resumeRecheckTimeout),this._resumeRecheckTimeout=setTimeout(function(){e.isFrameClosed()&&e._reportFrameClosed()},_.RESUME_PROCESS_DELAY))},T.prototype._getFrameForEnvironment=function(e){var t=v.supportsPopups(),n=Boolean(window.popupBridge),d=E({},this._options,e);return n?new o(d):t?new r(d):new c(d)},t.exports=T},{"../../braintree-error":53,"../../constants":54,"../../document-visibility":61,"../../is-verified-domain":75,"../shared/browser-detection":71,"../shared/constants":72,"../shared/errors":73,"../shared/events":74,"./../../assign":51,"./strategies/modal":66,"./strategies/popup":69,"./strategies/popup-bridge":67,"@braintree/iframer":20,"@braintree/uuid":24,framebus:31}],65:[function(e,t,n){"use strict";var r=e("./frame-service");t.exports={create:function(e,t){var n=new r(e);n.initialize(function(){t(n)})}}},{"./frame-service":64}],66:[function(e,t,n){"use strict";var r=e("@braintree/iframer"),o=e("../../../assign").assign,c=e("../../shared/browser-detection"),d={position:"fixed",top:0,left:0,bottom:0,padding:0,margin:0,border:0,outline:"none",zIndex:20001,background:"#FFFFFF"};function l(){}function f(e){this._closed=null,this._frame=null,this._options=e||{},this._container=this._options.container||document.body}f.prototype.initialize=l,f.prototype.open=function(){var e={src:this._options.openFrameUrl,name:this._options.name,scrolling:"yes",height:"100%",width:"100%",style:o({},d),title:"Lightbox Frame"};c.isIos()?(c.isIosWKWebview()&&(this._lockScrolling(),e.style={}),this._el=document.createElement("div"),o(this._el.style,d,{height:"100%",width:"100%",overflow:"auto","-webkit-overflow-scrolling":"touch"}),this._frame=r(e),this._el.appendChild(this._frame)):this._el=this._frame=r(e),this._closed=!1,this._container.appendChild(this._el)}
2,f.prototype.focus=l,f.prototype.close=function(){this._container.removeChild(this._el),this._frame=null,this._closed=!0,c.isIosWKWebview()&&this._unlockScrolling()},f.prototype.isClosed=function(){return Boolean(this._closed)},f.prototype.redirect=function(e){this._frame.src=e},f.prototype._unlockScrolling=function(){document.body.style.overflow=this._savedBodyProperties.overflowStyle,document.body.style.position=this._savedBodyProperties.positionStyle,window.scrollTo(this._savedBodyProperties.left,this._savedBodyProperties.top),delete this._savedBodyProperties},f.prototype._lockScrolling=function(){var e=document.documentElement;this._savedBodyProperties={left:(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0),top:(window.pageYOffset||e.scrollTop)-(e.clientTop||0),overflowStyle:document.body.style.overflow,positionStyle:document.body.style.position},document.body.style.overflow="hidden",document.body.style.position="fixed",window.scrollTo(0,0)},t.exports=f},{"../../../assign":51,"../../shared/browser-detection":71,"@braintree/iframer":20}],67:[function(e,t,n){"use strict";var r=e("../../../braintree-error"),o=e("../../shared/errors");function c(){}function d(e){this._closed=null,this._options=e}d.prototype.initialize=function(e){var t=this;window.popupBridge.onComplete=function(n,c){var d=!c&&!n;t._closed=!0,n||d?e(new r(o.FRAME_SERVICE_FRAME_CLOSED)):e(null,c)}},d.prototype.open=function(e){var t;t=(e=e||{}).openFrameUrl||this._options.openFrameUrl,this._closed=!1,window.popupBridge.open(t)},d.prototype.focus=c,d.prototype.close=c,d.prototype.isClosed=function(){return Boolean(this._closed)},d.prototype.redirect=function(e){this.open({openFrameUrl:e})},t.exports=d},{"../../../braintree-error":53,"../../shared/errors":73}],68:[function(e,t,n){"use strict";var r=e("../../../shared/constants"),o=e("./position");function c(e,t,n){return void 0!==t?t:o[e](n)}t.exports=function(e){var t=e.height||r.DEFAULT_POPUP_HEIGHT,n=e.width||r.DEFAULT_POPUP_WIDTH,o=c("top",e.top,t),d=c("left",e.left,n);return[r.POPUP_BASE_OPTIONS,"height="+t,"width="+n,"top="+o,"left="+d].join(",")}},{"../../../shared/constants":72,"./position":70}],69:[function(e,t,n){"use strict";var r=e("./compose-options");function o(e){this._frame=null,this._options=e||{}}o.prototype.initialize=function(){},o.prototype.open=function(){this._frame=window.open(this._options.openFrameUrl,this._options.name,r(this._options))},o.prototype.focus=function(){this._frame.focus()},o.prototype.close=function(){this._frame.closed||this._frame.close()},o.prototype.isClosed=function(){return!this._frame||Boolean(this._frame.closed)},o.prototype.redirect=function(e){this._frame.location.href=e},t.exports=o},{"./compose-options":68}],70:[function(e,t,n){"use strict";function r(e,t,n){return(e-t)/2+n}t.exports={top:function(e){return r(window.outerHeight||document.documentElement.clientHeight,e,null==window.screenY?window.screenTop:window.screenY)},left:function(e){return r(window.outerWidth||document.documentElement.clientWidth,e,null==window.screenX?window.screenLeft:window.screenX)},center:r}},{}],71:[function(e,t,n){"use strict";t.exports={isIos:e("@braintree/browser-detection/is-ios"),isIosWKWebview:e("@braintree/browser-detection/is-ios-wkwebview"),supportsPopups:e("@braintree/browser-detection/supports-popups")}},{"@braintree/browser-detection/is-ios":18,"@braintree/browser-detection/is-ios-wkwebview":17,"@braintree/browser-detection/supports-popups":19}],72:[function(e,t,n){"use strict";t.exports={DISPATCH_FRAME_NAME:"dispatch",DISPATCH_FRAME_CLASS:"braintree-dispatch-frame",POPUP_BASE_OPTIONS:"resizable,scrollbars",DEFAULT_POPUP_WIDTH:450,DEFAULT_POPUP_HEIGHT:535,POPUP_POLL_INTERVAL:100,POPUP_CLOSE_TIMEOUT:100,VISIBILITY_CHANGE_LISTENER_INSTALL_DELAY:500,RESUME_PROCESS_DELAY:1e3}},{}],73:[function(e,t,n){"use strict";var r=e("../../braintree-error");t.exports={FRAME_SERVICE_FRAME_CLOSED:{type:r.types.INTERNAL,code:"FRAME_SERVICE_FRAME_CLOSED",message:"Frame closed before tokenization could occur."},FRAME_SERVICE_FRAME_OPEN_FAILED:{type:r.types.INTERNAL,code:"FRAME_SERVICE_FRAME_OPEN_FAILED",message:"Frame failed to open."}}},{"../../braintree-error":53}],74:[function(e,t,n){"use strict";var r=e("../../enumerate");t.exports=r(["DISPATCH_FRAME_READY","DISPATCH_FRAME_REPORT"],"frameService:")},{"../../enumerate":62}],75:[function(e,t,n){"use strict";var r,o={"paypal.com":1,"braintreepayments.com":1,"braintreegateway.com":1,"braintree-api.com":1};t.exports=function(e){var t;return e=e.toLowerCase(),!!/^https:/.test(e)&&((r=r||document.createElement("a")).href=e,t=r.hostname.split(".").slice(-2).join("."),o.hasOwnProperty(t))}},{}],76:[function(e,t,n){"use strict";
2t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],77:[function(e,t,n){"use strict";t.exports=function(e){return Object.keys(e).filter(function(t){return"function"==typeof e[t]})}},{}],78:[function(e,t,n){"use strict";t.exports=function(e){var t=!1;return function(){t||(t=!0,e.apply(null,arguments))}}},{}],79:[function(e,t,n){"use strict";function r(e){return e&&"object"===l(e)&&"number"==typeof e.length&&"[object Array]"===Object.prototype.toString.call(e)||!1}function o(e){return e=e||window.location.href,/\?/.test(e)}function c(e,t){var n,o,p,d=[];for(p in e)e.hasOwnProperty(p)&&(o=e[p],n=t?r(e)?t+"[]":t+"["+p+"]":p,"object"===l(o)?d.push(c(o,n)):d.push(encodeURIComponent(n)+"="+encodeURIComponent(o)));return d.join("&")}t.exports={parse:function(e){return o(e=e||window.location.href)?(e.split("?")[1]||"").replace(/#.*$/,"").split("&").reduce(function(e,t){var n=t.split("="),r=decodeURIComponent(n[0]),o=decodeURIComponent(n[1]);return e[r]=o,e},{}):{}},stringify:c,queryify:function(e,t){return e=e||"",null!=t&&"object"===l(t)&&function(e){var t;for(t in e)if(e.hasOwnProperty(t))return!0;return!1}(t)&&(e+=-1===e.indexOf("?")?"?":"",e+=-1!==e.indexOf("=")?"&":"",e+=c(t)),e},hasQueryParams:o}},{}],80:[function(e,t,n){"use strict";t.exports=function(e){return e?"":".min"}},{}],81:[function(e,t,n){"use strict";var r="function"==typeof atob?atob:o;function o(e){var a,b,t,n,r,i,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="";if(!/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})([=]{1,2})?$/.test(e))throw new Error("Non base64 encoded input passed to window.atob polyfill");i=0;do{a=(63&o.indexOf(e.charAt(i++)))<<2|(n=o.indexOf(e.charAt(i++)))>>4&3,b=(15&n)<<4|(r=o.indexOf(e.charAt(i++)))>>2&15,t=(3&r)<<6|63&o.indexOf(e.charAt(i++)),c+=String.fromCharCode(a)+(b?String.fromCharCode(b):"")+(t?String.fromCharCode(t):"")}while(i<e.length);return c}t.exports={atob:function(e){return r.call(window,e)},_atob:o}},{}],82:[function(e,t,n){"use strict";var r=e("../../lib/frame-service/external"),o=e("../../lib/braintree-error"),c=e("../../lib/convert-to-braintree-error"),d=e("../../lib/use-min"),l=e("../../lib/once"),f="3.146.0",_=e("../shared/constants"),h=e("../../lib/constants").INTEGRATION_TIMEOUT_MS,m=e("../../lib/analytics"),y=e("../../lib/methods"),v=e("../../lib/deferred"),E=e("../shared/errors"),A=e("../../lib/convert-methods-to-error"),w=e("../../lib/querystring"),O=e("@braintree/wrap-promise");function I(e){this._client=e.client,this._assetsUrl=e.client.getConfiguration().gatewayConfiguration.paypal.assetsUrl+"/web/"+f,this._isDebug=e.client.getConfiguration().isDebug,this._loadingFrameUrl=this._assetsUrl+"/html/paypal-landing-frame"+d(this._isDebug)+".html",this._authorizationInProgress=!1}I.prototype._initialize=function(){var e=this,t=this._client,n=setTimeout(function(){m.sendEvent(t,"paypal.load.timed-out")},h);return new Promise(function(o){r.create({name:_.LANDING_FRAME_NAME,dispatchFrameUrl:e._assetsUrl+"/html/dispatch-frame"+d(e._isDebug)+".html",openFrameUrl:e._loadingFrameUrl},function(r){e._frameService=r,clearTimeout(n),m.sendEvent(t,"paypal.load.succeeded"),o(e)})})},I.prototype.tokenize=function(e,t){var n,r,c=this,d=this._client;return t&&(t=l(v(t))),e&&_.FLOW_ENDPOINTS.hasOwnProperty(e.flow)?(n=new Promise(function(t,n){c._authorizationInProgress?(m.sendEvent(d,"paypal.tokenization.error.already-opened"),n(new o(E.PAYPAL_TOKENIZATION_REQUEST_ACTIVE))):(c._authorizationInProgress=!0,window.popupBridge||m.sendEvent(d,"paypal.tokenization.opened"),!0===e.offerCredit&&m.sendEvent(d,"paypal.credit.offered"),!0===e.offerPayLater&&m.sendEvent(d,"paypal.paylater.offered"),c._navigateFrameToAuth(e).catch(n),c._frameService.open({},c._createFrameServiceCallback(e,t,n)))}),t?(n.then(function(e){t(null,e)}).catch(t),this._frameService.createHandler({beforeClose:function(){m.sendEvent(d,"paypal.tokenization.closed.by-merchant")}})):n):(r=new o(E.PAYPAL_FLOW_OPTION_REQUIRED),t?(t(r),this._frameService.createNoopHandler()):Promise.reject(r))},I.prototype._createFrameServiceCallback=function(e,t,n){var r=this,c=this._client;return window.popupBridge?function(d,l){var f=l&&l.path&&"/cancel"===l.path.substring(0,7);r._authorizationInProgress=!1,d||f?(m.sendEvent(c,"popup-bridge:paypal:canceled"),n(new o(E.PAYPAL_POPUP_CLOSED))):l&&r._tokenizePayPal(e,l.queryItems).then(t).cat
2ch(n)}:function(d,l){r._authorizationInProgress=!1,d?"FRAME_SERVICE_FRAME_CLOSED"===d.code?(m.sendEvent(c,"paypal.tokenization.closed.by-user"),n(new o(E.PAYPAL_POPUP_CLOSED))):d.code&&d.code.indexOf("FRAME_SERVICE_FRAME_OPEN_FAILED")>-1&&n(new o({code:E.PAYPAL_POPUP_OPEN_FAILED.code,type:E.PAYPAL_POPUP_OPEN_FAILED.type,message:E.PAYPAL_POPUP_OPEN_FAILED.message,details:{originalError:d}})):l&&r._tokenizePayPal(e,l).then(t).catch(n)}},I.prototype._tokenizePayPal=function(e,t){var n=this,r=this._client;return window.popupBridge||this._frameService.redirect(this._loadingFrameUrl),r.request({endpoint:"payment_methods/paypal_accounts",method:"post",data:this._formatTokenizeData(e,t)}).then(function(e){var t=n._formatTokenizePayload(e);return window.popupBridge?m.sendEvent(r,"popup-bridge:paypal:succeeded"):m.sendEvent(r,"paypal.tokenization.success"),t.creditFinancingOffered&&m.sendEvent(r,"paypal.credit.accepted"),n._frameService.close(),t}).catch(function(e){return window.popupBridge?m.sendEvent(r,"popup-bridge:paypal:failed"):m.sendEvent(r,"paypal.tokenization.failed"),n._frameService.close(),Promise.reject(c(e,{type:E.PAYPAL_ACCOUNT_TOKENIZATION_FAILED.type,code:E.PAYPAL_ACCOUNT_TOKENIZATION_FAILED.code,message:E.PAYPAL_ACCOUNT_TOKENIZATION_FAILED.message}))})},I.prototype._formatTokenizePayload=function(e){var t,n={};return e.paypalAccounts&&(n=e.paypalAccounts[0]),t={nonce:n.nonce,details:{},type:n.type},n.details&&n.details.payerInfo&&(t.details=n.details.payerInfo),n.details&&n.details.creditFinancingOffered&&(t.creditFinancingOffered=n.details.creditFinancingOffered),t},I.prototype._formatTokenizeData=function(e,t){var n=this._client.getConfiguration(),r=n.gatewayConfiguration,o="TOKENIZATION_KEY"===n.authorizationType,data={paypalAccount:{correlationId:t.ba_token||t.token,options:{validate:"vault"===e.flow&&!o}}};return t.ba_token?data.paypalAccount.billingAgreementToken=t.ba_token:(data.paypalAccount.paymentToken=t.paymentId,data.paypalAccount.payerId=t.PayerID,data.paypalAccount.unilateral=r.paypal.unvettedMerchant,e.hasOwnProperty("intent")&&(data.paypalAccount.intent=e.intent)),data},I.prototype._navigateFrameToAuth=function(e){var t=this,n=this._client,r="paypal_hermes/"+_.FLOW_ENDPOINTS[e.flow];return n.request({endpoint:r,method:"post",data:this._formatPaymentResourceData(e)}).then(function(r){var o;o="checkout"===e.flow?r.paymentResource.redirectUrl:r.agreementSetup.approvalUrl,"commit"===e.useraction&&(o=w.queryify(o,{useraction:"commit"})),window.popupBridge&&m.sendEvent(n,"popup-bridge:paypal:started"),t._frameService.redirect(o)}).catch(function(e){var n=e.details&&e.details.httpStatus;return t._frameService.close(),t._authorizationInProgress=!1,422===n?Promise.reject(new o({type:E.PAYPAL_INVALID_PAYMENT_OPTION.type,code:E.PAYPAL_INVALID_PAYMENT_OPTION.code,message:E.PAYPAL_INVALID_PAYMENT_OPTION.message,details:{originalError:e}})):Promise.reject(c(e,{type:E.PAYPAL_FLOW_FAILED.type,code:E.PAYPAL_FLOW_FAILED.code,message:E.PAYPAL_FLOW_FAILED.message}))})},I.prototype._formatPaymentResourceData=function(e){var t,n=this._client.getConfiguration().gatewayConfiguration,r=this._frameService._serviceId,o={returnUrl:n.paypal.assetsUrl+"/web/"+f+"/html/redirect-frame"+d(this._isDebug)+".html?channel="+r,cancelUrl:n.paypal.assetsUrl+"/web/"+f+"/html/cancel-frame"+d(this._isDebug)+".html?channel="+r,offerPaypalCredit:!0===e.offerCredit,offerPayLater:!0===e.offerPayLater,experienceProfile:{brandName:e.displayName||n.paypal.displayName,localeCode:e.locale,noShipping:(!e.enableShippingAddress).toString(),addressOverride:!1===e.shippingAddressEditable,landingPageType:e.landingPageType}};if(window.popupBridge&&"function"==typeof window.popupBridge.getReturnUrlPrefix&&(o.returnUrl=window.popupBridge.getReturnUrlPrefix()+"return",o.cancelUrl=window.popupBridge.getReturnUrlPrefix()+"cancel"),"checkout"===e.flow)for(t in o.amount=e.amount,o.currencyIsoCode=e.currency,e.hasOwnProperty("intent")&&(o.intent=e.intent),e.shippingAddressOverride)e.shippingAddressOverride.hasOwnProperty(t)&&(o[t]=e.shippingAddressOverride[t]);else o.shippingAddress=e.shippingAddressOverride,e.billingAgreementDescription&&(o.description=e.billingAgreementDescription);return o},I.prototype.closeWindow=function(){this._authorizationInProgress&&m.sendEvent(this._client,"paypal.tokenize.closed.by-merchant"),this._frameService.close()}
2,I.prototype.focusWindow=function(){this._frameService.focus()},I.prototype.teardown=O(function(){var e=this;return e._frameService.teardown(),A(e,y(I.prototype)),m.sendEvent(e._client,"paypal.teardown-completed"),Promise.resolve()}),t.exports=I},{"../../lib/analytics":48,"../../lib/braintree-error":53,"../../lib/constants":54,"../../lib/convert-methods-to-error":55,"../../lib/convert-to-braintree-error":56,"../../lib/deferred":60,"../../lib/frame-service/external":65,"../../lib/methods":77,"../../lib/once":78,"../../lib/querystring":79,"../../lib/use-min":80,"../shared/constants":84,"../shared/errors":85,"@braintree/wrap-promise":28}],83:[function(e,t,n){"use strict";var r=e("../lib/analytics"),o=e("../lib/basic-component-verification"),c=e("../lib/create-deferred-client"),d=e("../lib/create-assets-url"),l=e("../lib/braintree-error"),f=e("./shared/errors"),_=e("./external/paypal"),h=e("@braintree/wrap-promise");t.exports={create:h(function(e){var t="PayPal";return o.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){return c.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:d.create(e.authorization),name:t})}).then(function(t){var n=t.getConfiguration();return e.client=t,!0!==n.gatewayConfiguration.paypalEnabled?Promise.reject(new l(f.PAYPAL_NOT_ENABLED)):(r.sendEvent(e.client,"paypal.initialized"),new _(e)._initialize())})}),isSupported:function(){return!0},VERSION:"3.146.0"}},{"../lib/analytics":48,"../lib/basic-component-verification":52,"../lib/braintree-error":53,"../lib/create-assets-url":57,"../lib/create-deferred-client":59,"./external/paypal":82,"./shared/errors":85,"@braintree/wrap-promise":28}],84:[function(e,t,n){"use strict";var r=e("../../lib/constants");t.exports={LANDING_FRAME_NAME:"braintreepaypallanding",FLOW_ENDPOINTS:{checkout:"create_payment_resource",vault:"setup_billing_agreement"},REQUIRED_OPTIONS:["paymentId","currency"],ENVIRONMENT:{stage:"https://www.msmaster.qa.paypal.com/sdk/js?",sandbox:"https://www.sandbox.paypal.com/sdk/js?",teBraintree:"https://www.braintree.stage.paypal.com/sdk/js?"},BT_INTEGRATION_SOURCE:"BRAINTREE_WEB_SDK",CREATE_BILLING_AGREEMENT_JWT_MUTATION:r.CREATE_BILLING_AGREEMENT_JWT_MUTATION}},{"../../lib/constants":54}],85:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error");t.exports={PAYPAL_NOT_ENABLED:{type:r.types.MERCHANT,code:"PAYPAL_NOT_ENABLED",message:"PayPal is not enabled for this merchant."},PAYPAL_TOKENIZATION_REQUEST_ACTIVE:{type:r.types.MERCHANT,code:"PAYPAL_TOKENIZATION_REQUEST_ACTIVE",message:"Another tokenization request is active."},PAYPAL_ACCOUNT_TOKENIZATION_FAILED:{type:r.types.NETWORK,code:"PAYPAL_ACCOUNT_TOKENIZATION_FAILED",message:"Could not tokenize user's PayPal account."},PAYPAL_FLOW_FAILED:{type:r.types.NETWORK,code:"PAYPAL_FLOW_FAILED",message:"Could not initialize PayPal flow."},PAYPAL_FLOW_OPTION_REQUIRED:{type:r.types.MERCHANT,code:"PAYPAL_FLOW_OPTION_REQUIRED",message:"PayPal flow property is invalid or missing."},PAYPAL_POPUP_OPEN_FAILED:{type:r.types.MERCHANT,code:"PAYPAL_POPUP_OPEN_FAILED",message:"PayPal popup failed to open, make sure to tokenize in response to a user action."},PAYPAL_POPUP_CLOSED:{type:r.types.CUSTOMER,code:"PAYPAL_POPUP_CLOSED",message:"Customer closed PayPal popup before authorizing."},PAYPAL_INVALID_PAYMENT_OPTION:{type:r.types.MERCHANT,code:"PAYPAL_INVALID_PAYMENT_OPTION",message:"PayPal payment options are invalid."}}},{"../../lib/braintree-error":53}]},{},[83])(83)},"object"===l(t)&&void 0!==e?e.exports=d():(o=[],void 0===(c="function"==typeof(r=d)?r.apply(t,o):r)||(e.exports=c))},3279:function(e,t,n){var r,o,c,d,l=n(102);n(8),n(33),n(44),n(17),n(9),n(50),n(23),n(14),n(110),n(11),n(4),n(21),n(25),n(93),n(12),n(29),n(47),d=function(){return function e(t,n,r){function o(i,c){if(!n[i]){if(!t[i]){if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};t[i][0].call(p.exports,function(e){return o(t[i][1][e]||e)},p,p.exports,e,t,n,r)}return n[i].exports}for(var u=!1,i=0;i<r.length;i++)o(r[i]);return o}({1:[function(e,t,n){"use strict";var r={};function o(e,t,n){var r="abort"===t?"has aborted.":"failed to load.",o=new Error("".concat(e," ").concat(r));return o.src=e,o.failureKind=t,o.timing=performance.now()-n,o.onLine=navigator.onLine,o}function c(e){var t,n=JSON.stringify(e);if(!e.forceScriptReload&&(t=r[n]))return t;var script=document.createElement("script"),c=e.dataAttributes||{},d=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&script.setAttribute("integrity","".concat(e.integrity)),Object.keys(c).forEac
2h(function(e){script.setAttribute("data-".concat(e),"".concat(c[e]))}),t=new Promise(function(t,n){var r=performance.now();script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){n(o(e.src,"error",r))}),script.addEventListener("abort",function(){n(o(e.src,"abort",r))}),d.appendChild(script)}),r[n]=t,t}c.clearCache=function(){r={}},t.exports=c},{}],2:[function(e,t,n){t.exports=e("./dist/load-script")},{"./dist/load-script":1}],3:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.deferred=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];setTimeout(function(){try{e.apply(void 0,t)}catch(e){console.log("Error in callback function"),console.log(e)}},1)}}},{}],4:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.once=function(e){var t=!1;return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t||(t=!0,e.apply(void 0,n))}}},{}],5:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.promiseOrCallback=function(e,t){if(!t)return e;e.then(function(data){return t(null,data)}).catch(function(e){return t(e)})}},{}],6:[function(e,t,n){"use strict";var r=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function d(e){return function(){for(var t,n=[],d=0;d<arguments.length;d++)n[d]=arguments[d];return"function"==typeof n[n.length-1]&&(t=n.pop(),t=o.once(r.deferred(t))),c.promiseOrCallback(e.apply(this,n),t)}}d.wrapPrototype=function(e,t){void 0===t&&(t={});var n=t.ignoreMethods||[],r=!0===t.transformPrivateMethods;return Object.getOwnPropertyNames(e.prototype).filter(function(t){var o,c="constructor"!==t&&"function"==typeof e.prototype[t],d=-1===n.indexOf(t);return o=!!r||"_"!==t.charAt(0),c&&o&&d}).forEach(function(t){var n=e.prototype[t];e.prototype[t]=d(n)}),e},t.exports=d},{"./lib/deferred":3,"./lib/once":4,"./lib/promise-or-callback":5}],7:[function(e,t,n){var r,o;r=this,o=function(e){"use strict";function t(e,t,n,r){return new(n||(n=Promise))(function(o,c){function d(e){try{f(r.next(e))}catch(e){c(e)}}function l(e){try{f(r.throw(e))}catch(e){c(e)}}function f(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(d,l)}f((r=r.apply(e,t||[])).next())})}function n(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(d){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,d])}}}
2var r={},o={};function c(e){var t,n=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[n]))return t;var script=document.createElement("script"),r=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(r).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(r[e]))}),t=new Promise(function(t,n){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){n(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){n(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),o[n]=t,t}c.clearCache=function(){o={}};var d=c;Object.defineProperty(r,"__esModule",{value:!0}),r.loadStylesheet=f=r.loadScript=void 0;var l=d,f=r.loadScript=l,_=function(e){var t=document.querySelector('link[href="'.concat(e.href,'"]'));if(t)return Promise.resolve(t);t=document.createElement("link");var n=e.container||document.head;return t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("href",e.href),t.setAttribute("id",e.id),n.firstChild?n.insertBefore(t,n.firstChild):n.appendChild(t),Promise.resolve(t)};r.loadStylesheet=_;var h,m,y="connect-boba",v={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:y,LOCALE_PATH:"".concat(y,"/locales/"),CDNX_PROD:"https://www.paypalobjects.com"},E="BT",A="PPCP";function w(){return"function"==typeof window.define&&!!window.define.amd}function O(e,r,o){var c,d;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,l;return n(this,function(n){if((t=null===window||void 0===window?void 0:window.braintree)&&t[e.module]){if(r&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==r)throw l=null===(d=t[e.module])||void 0===d?void 0:d.VERSION,new Error("".concat(e.module," already loaded with version ").concat(l," cannot load version ").concat(r));return[2,!0]}if(!r)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,I(e,r,o)]})})}function I(e,t,n){if(void 0===n&&(n=!0),w()){var r=n?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([r],e,t)})}var script=n?e.script.minified:e.script.unminified;return f({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}var P="client",T="hostedFields",N="braintree",S=((h={})[P]="client",h[T]="hosted-fields",h),L=((m={})[P]={id:"client",module:P,amdModule:{unminified:"".concat(N,"/").concat(S[P]),minified:"".concat(N,"/").concat(S[P],".min")},script:{unminified:"".concat(S[P],".js"),minified:"".concat(S[P],".min.js")}},m[T]={id:"hcf",module:T,amdModule:{unminified:"".concat(N,"/").concat(S[T]),minified:"".concat(N,"/").concat(S[T],".min")},script:{unminified:"".concat(S[T],".js"),minified:"".concat(S[T],".min.js")}},m);function R(e,t){if(void 0===t&&(t=!0),w()){w()&&"function"==typeof window.requirejs&&window.requirejs.config;var n="".concat("fastlane","/").concat(t?v.AXO_ASSET_NAME.minified:v.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([n],e,t)})}return f({id:"axo-id",src:e,forceScriptReload:!0})}function C(e){var t=e.assetUrl,n=e.bundleId;return n?"https://cdn-".concat(n,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(v.CDNX_PROD,"/").concat(t)}e.constants=v,e.loadAxo=function(e){return t(this,void 0,void 0,function(){var t,r,o,c;return n(this,function(n){switch(n.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,r=e.minified,o=function(e){var t,n=!1!==(null==e?void 0:e.minified)?v.AXO_ASSET_NAME.minified:v.AXO_ASSET_NAME.unminified,r=w()?v.AXO_ASSET_PATH:"".concat(v.AXO_ASSET_PATH,"/").concat(n,".js");return C({assetUrl:r,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}(e),c=function(e){var t;return C({assetUrl:v.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}(e),e.platform!==E?[3,2]:[4,Promise.all([O(L.hostedFields,t,r),R(o,r)])];case 1:case 3:return n.sent(),[3,5];case 2:return e.platform!==A?[3,4]:[4,Promise.all([O(L.client,t,r),O(L.hostedFields,t,r),R(o,r)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}})})}},"object"===l(n)&&void 0!==t?o(n):o((r="undefined"!=typeof globalThis?globalThis:r||self).loadAxo={})},{}],8:[function(e,t,n){"use strict";var r=e("./create-authorization-data"),o=e("./json-clone"),c=e("./constants");t.exports={addMetadata:function(e,data){var t,n=data?o(data):{},d=r(e.authorization).attrs,l=o(e.analyticsMetadata);for(t in n.braintreeLibraryVersion=c.BRAINTREE_LIBRARY_VERSION,n._meta)n._meta.hasOwnProperty(t)&&(l[t]=n._meta[t]);return n._meta=l,d.tokenizationKey?n.tokenizationKey=d.tokenizationKey:n.authorizationFingerprint=d.authorizationFingerprint,n},addEventMetadata:function(e){var t=e.getConfiguration(),n=r(t.authorization).attrs,o="production"===t.gatewayConfiguration.environment,d={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:c.VERSION,component:"braintreeclientsdk",merchant_sdk_env:o?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:c.PLATFORM,platform_version:window.navigator.userAgent,session_id:t.analyticsMetadata.sessionId,client_session_id:t.analyticsMetadata.sessionId,tenant_name:"braintree",product_name:"BT_DCC",space_key:"SKDUYK"};return n.tokenizationKey?d.tokenization_key=n.tokenizationKey:d.auth_fingerprint=n.authorizationFingerprint,d}}},{"./constants":15,"./create-authorization-data":17,"./json-clone":21}],9:[function(e,t,n){"use strict";var r=e("./constants"),o=e("./add-metadata"),c=e("./assign").assign;function d(e,t,n,d){var _=Date.now();return"vault"===n.flow?n.context_type="BA_Token":"checkout"===n.flow&&(n.context_type="EC_Token"),Promise.resolve(e).then(function(e){var h=e._request,m=r.ANALYTICS_URL,y=r.ANALYTICS_PREFIX+t,v="production"===e.getConfiguration().gatewayConfiguration.environment,data={events:[],tracking:[]},E=o.addEventMetadata(e,data);return E.event_name=y,E.t=_,data.events=[{level:"info",event:y,payload:c({env:v?"production":"sandbox",timestamp:_},n)}],data.tracking=[E],n&&"object"===l(n)&&(data.tracking=[f(E,n)]),h({url:m,method:"post",data:data,timeout:r.ANALYTICS_REQUEST_TIMEOUT_MS},d)}).catch(function(e){d&&d(e)})}function f(e,t){var n=c({},t);
2return Object.keys(n).forEach(function(e){-1===r.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete n[e]}),c(e,n)}t.exports={sendEvent:function(e,t,n){return d(e,t,{},n)},sendEventPlus:d}},{"./add-metadata":8,"./assign":12,"./constants":15}],10:[function(e,t,n){"use strict";t.exports=function(e){return{src:(e=e||{}).src,failure_kind:e.failureKind,timing:e.timing,on_line:e.onLine,description:e.message}}},{}],11:[function(e,t,n){"use strict";var r=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:r,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":7}],12:[function(e,t,n){"use strict";var r="function"==typeof Object.assign?Object.assign:o;function o(e){var i,source,t;for(i=1;i<arguments.length;i++)for(t in source=arguments[i])source.hasOwnProperty(t)&&(e[t]=source[t]);return e}t.exports={assign:r,_assign:o}},{}],13:[function(e,t,n){"use strict";var r=e("./braintree-error"),o=e("./errors"),c="3.146.0";t.exports={verify:function(e){var t,n,d;return e?(d=e.name,t=e.client,n=e.authorization,t||n?n||t.getVersion()===c?Promise.resolve():Promise.reject(new r({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+d+" (version "+c+") components must be from the same SDK version."})):Promise.reject(new r({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+d+"."}))):Promise.reject(new r({type:o.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:o.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}}},{"./braintree-error":14,"./errors":20}],14:[function(e,t,n){"use strict";var r=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=r(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":19}],15:[function(e,t,n){"use strict";var r="3.146.0",o="web";t.exports={CREATE_BILLING_AGREEMENT_JWT_MUTATION:"mutation CreateBillingAgreementJwt($input: CreateBillingAgreementJwtInput!) { createBillingAgreementJwt(input: $input) { jwt } }",ANALYTICS_PREFIX:o+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:{production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},CLIENT_API_URLS:{production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},FRAUDNET_SOURCE:"BRAINTREE_SIGNIN",FRAUDNET_FNCLS:"fnparams-dede7cc5-15fd-4c75-a9f4-36c430ee3a99",FRAUDNET_URL:"https://c.paypal.com/da/r/fb.js",BUS_CONFIGURATION_REQUEST_EVENT:"BUS_CONFIGURATION_REQUEST",GRAPHQL_URLS:{production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"},INTEGRATION_TIMEOUT_MS:6e4,VERSION:r,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/web/"+r,ALLOWED_EXTRA_EVENT_FIELDS:["context_id","context_type","payment_ready_button_order","payment_ready_experiment_type","payment_ready_page_type","payment_ready_session_id","button_type","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],16:[function(e,t,n){"use strict";var r=e("./constants").ASSETS_URLS;t.exports={create:function(e){return r.production}}},{"./constants":15}],17:[function(e,t,n){"use strict";var r=e("../lib/vendor/polyfill").atob,o=e("../lib/constants").CLIENT_API_URLS;t.exports=function(e){var t,n,c,d,data={attrs:{},configUrl:""};return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)?(c=e.split("_"),d=c[0],n={merchantId:c.slice(2).join("_"),environment:d},data.environment=n.environment,data.attrs.tokenizationKey=e,data.configUrl=o[n.environment]+"/merchants/"+n.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(r(e)),data.environment=t.environment,data.attrs.authorizationFingerprint=t.authorizationFingerprint,data.paymentMethodIdJwt=t.paymentMethodIdJwt,data.configUrl=t.configUrl,data.graphQL=t.graphQL),data}},{"../lib/constants":15,"../lib/vendor/polyfill":22}],18:[function(e,t,n){"use strict";var r=e("./braintree-error"),o=e("./assets"),c=e("./analytics"),d=e("./asset-load-detail"),l=e("./errors"),f="3.146.0";function _(e,t){var n={src:e};return t&&(n.forceScriptReload=!0),o.loadScript(n)}t.exports={create:function(e){var t,n,o=!1,h=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(h=_(n=e.assetsUrl+"/web/"+f+"/js/client.min.js",!1).catch(function(e){return o=!0,t=e,_(n,!0)}).catch(function(e){return Promise.reject(new r({type:l.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:l.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:"Braintree client script failed to load ("+(e&&e.failureKind?e.failureKind:"error")+").",details:{originalError:e}}))}
2)),h.then(function(){return window.braintree.client.VERSION!==f?Promise.reject(new r({type:l.INCOMPATIBLE_VERSIONS.type,code:l.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+f+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}).then(function(n){return o&&c.sendEventPlus(n,e.name+".deferred-client.load-recovered",d(t)),n}))}}},{"./analytics":9,"./asset-load-detail":10,"./assets":11,"./braintree-error":14,"./errors":20}],19:[function(e,t,n){"use strict";t.exports=function(e,t){return t=null==t?"":t,e.reduce(function(e,n){return e[n]=t+n,e},{})}},{}],20:[function(e,t,n){"use strict";var r=e("./braintree-error");t.exports={INVALID_USE_OF_INTERNAL_FUNCTION:{type:r.types.INTERNAL,code:"INVALID_USE_OF_INTERNAL_FUNCTION"},INSTANTIATION_OPTION_REQUIRED:{type:r.types.MERCHANT,code:"INSTANTIATION_OPTION_REQUIRED"},INCOMPATIBLE_VERSIONS:{type:r.types.MERCHANT,code:"INCOMPATIBLE_VERSIONS"},CLIENT_SCRIPT_FAILED_TO_LOAD:{type:r.types.NETWORK,code:"CLIENT_SCRIPT_FAILED_TO_LOAD",message:"Braintree client script could not be loaded."},METHOD_CALLED_AFTER_TEARDOWN:{type:r.types.MERCHANT,code:"METHOD_CALLED_AFTER_TEARDOWN"},INSTANTIATION_OPTION_INVALID:{type:r.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":14}],21:[function(e,t,n){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],22:[function(e,t,n){"use strict";var r="function"==typeof atob?atob:o;function o(e){var a,b,t,n,r,i,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="";if(!/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})([=]{1,2})?$/.test(e))throw new Error("Non base64 encoded input passed to window.atob polyfill");i=0;do{a=(63&o.indexOf(e.charAt(i++)))<<2|(n=o.indexOf(e.charAt(i++)))>>4&3,b=(15&n)<<4|(r=o.indexOf(e.charAt(i++)))>>2&15,t=(3&r)<<6|63&o.indexOf(e.charAt(i++)),c+=String.fromCharCode(a)+(b?String.fromCharCode(b):"")+(t?String.fromCharCode(t):"")}while(i<e.length);return c}t.exports={atob:function(e){return r.call(window,e)},_atob:o}},{}],23:[function(e,t,n){"use strict";var r=e("@braintree/wrap-promise"),o=e("../lib/basic-component-verification"),c=e("./preferred-payment-methods");t.exports={create:r(function(e){return o.verify({name:"PreferredPaymentMethods",client:e.client,authorization:e.authorization}).then(function(){return(new c).initialize(e)})}),VERSION:"3.146.0"}},{"../lib/basic-component-verification":13,"./preferred-payment-methods":24,"@braintree/wrap-promise":6}],24:[function(e,t,n){"use strict";var r=e("@braintree/wrap-promise"),o=e("../lib/analytics"),c=e("../lib/create-assets-url"),d=e("../lib/create-deferred-client");function l(){}l.prototype.initialize=function(e){var t=this;return this._clientPromise=d.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:c.create(e.authorization),name:"PreferredPaymentMethods"}).catch(function(e){return t._setupError=e,Promise.reject(e)}),o.sendEvent(this._clientPromise,"preferred-payment-methods.initialized"),Promise.resolve(this)},l.prototype.fetchPreferredPaymentMethods=function(){var e,t=this;return this._clientPromise.then(function(t){return(e=t).request({api:"graphQLApi",data:{query:"query PreferredPaymentMethods { preferredPaymentMethods { paypalPreferred venmoPreferred } }"}})}).then(function(t){var n=t.data.preferredPaymentMethods.paypalPreferred,r=t.data.preferredPaymentMethods.venmoPreferred;return o.sendEvent(e,"preferred-payment-methods.paypal.api-detected."+n),o.sendEvent(e,"preferred-payment-methods.venmo.api-detected."+r),{paypalPreferred:n,venmoPreferred:r}}).catch(function(){return t._setupError?Promise.reject(t._setupError):(o.sendEvent(e,"preferred-payment-methods.api-error"),{paypalPreferred:!1,venmoPreferred:!1})})},t.exports=r.wrapPrototype(l)},{"../lib/analytics":9,"../lib/create-assets-url":16,"../lib/create-deferred-client":18,"@braintree/wrap-promise":6}]},{},[23])(23)},"object"===l(t)&&void 0!==e?e.exports=d():(o=[],void 0===(c="function"==typeof(r=d)?r.apply(t,o):r)||(e.exports=c))}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.