PageSourceSearch

https://www.thingstodo.co.uk/_next/static/chunks/77059039-e3fbdba82931abf5.js

js thingstodo.co.uk collected 2026-10-09 22:18:12 UTC 68,706 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[77059039],{66156408:function(e){e.exports=function(){var e;return function(){function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};t[a][0].call(u.exports,(function(e){return i(t[a][1][e]||e)}),u,u.exports,e,t,n,r)}return n[a].exports}for(var o=void 0,a=0;a<r.length;a++)i(r[a]);return i}return e}()({1:[function(e,t,n){"use strict";var r={};function i(e){var t,n=JSON.stringify(e);if(!e.forceScriptReload&&(t=r[n]))return t;var i=document.createElement("script"),o=e.dataAttributes||{},a=e.container||document.head;return i.src=e.src,i.id=e.id||"",i.async=!0,e.type&&i.setAttribute("type","".concat(e.type)),e.crossorigin&&i.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&i.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEach((function(e){i.setAttribute("data-".concat(e),"".concat(o[e]))})),t=new Promise((function(t,n){i.addEventListener("load",(function(){t(i)})),i.addEventListener("error",(function(){n(new Error("".concat(e.src," failed to load.")))})),i.addEventListener("abort",(function(){n(new Error("".concat(e.src," has aborted.")))})),a.appendChild(i)})),r[n]=t,t}i.clearCache=function(){r={}},t.exports=i},{}],2:[function(e,t,n){t.exports=e("./dist/load-script")},{"./dist/load-script":1}],3:[function(e,t,n){"use strict";function r(){if("undefined"!==typeof crypto&&"function"===typeof crypto.randomUUID)try{return crypto.randomUUID()}catch(r){}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),n=0;n<256;n++)t[n]=(n<16?"0":"")+n.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")}t.exports=r},{}],4:[function(e,t,n){"use strict";function r(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(n){console.log("Error in callback function"),console.log(n)}}),1)}}Object.defineProperty(n,"__esModule",{value:!0}),n.deferred=r},{}],5:[function(e,t,n){"use strict";function r(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))}}Object.defineProperty(n,"__esModule",{value:!0}),n.once=r},{}],6:[function(e,t,n){"use strict";function r(e,t){if(!t)return e;e.then((function(e){return t(null,e)})).catch((function(e){return t(e)}))}Object.defineProperty(n,"__esModule",{value:!0}),n.promiseOrCallback=r},{}],7:[function(e,t,n){"use strict";var r=e("./lib/deferred"),i=e("./lib/once"),o=e("./lib/promise-or-callback");function a(e){return function(){for(var t,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return"function"===typeof n[n.length-1]&&(t=n.pop(),t=i.once(r.deferred(t))),o.promiseOrCallback(e.apply(this,n),t)}}a.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 i,o="constructor"!==t&&"function"===typeof e.prototype[t],a=-1===n.indexOf(t);return i=!!r||"_"!==t.charAt(0),o&&i&&a})).forEach((function(t){var n=e.prototype[t];e.prototype[t]=a(n)})),e},t.exports=a},{"./lib/deferred":4,"./lib/once":5,"./lib/promise-or-callback":6}],8:[function(t,n,r){var i,o;i=this,o=function(e){"use strict";function t(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function s(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){e.done?n(e.value):i(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function n(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}
1var r={},i={};function o(e){var t,n=JSON.stringify(e);if(!e.forceScriptReload&&(t=i[n]))return t;var r=document.createElement("script"),o=e.dataAttributes||{},a=e.container||document.head;return r.src=e.src,r.id=e.id||"",r.async=!0,e.type&&r.setAttribute("type","".concat(e.type)),e.crossorigin&&r.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(o).forEach((function(e){r.setAttribute("data-".concat(e),"".concat(o[e]))})),t=new Promise((function(t,n){r.addEventListener("load",(function(){t(r)})),r.addEventListener("error",(function(){n(new Error("".concat(e.src," failed to load.")))})),r.addEventListener("abort",(function(){n(new Error("".concat(e.src," has aborted.")))})),a.appendChild(r)})),i[n]=t,t}o.clearCache=function(){i={}};var a=o,s=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)};Object.defineProperty(r,"__esModule",{value:!0}),r.loadStylesheet=u=r.loadScript=void 0;var c=a,u=r.loadScript=c,d=s;r.loadStylesheet=d;var l,p,f="https://www.paypalobjects.com",h="fastlane",E="connect-boba",m={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:E,LOCALE_PATH:"".concat(E,"/locales/"),CDNX_PROD:f},I={BT:"BT",PPCP:"PPCP"};function y(){return"function"===typeof window.define&&!!window.define.amd}function _(){return y()&&"function"===typeof window.requirejs&&"function"===typeof window.requirejs.config}function A(e,r,i){var o,a;return void 0===i&&(i=!0),t(this,void 0,void 0,(function(){var t,s;return n(this,(function(n){if((t=T())&&t[e.module]){if(r&&(null===(o=t[e.module])||void 0===o?void 0:o.VERSION)!==r)throw s=null===(a=t[e.module])||void 0===a?void 0:a.VERSION,new Error("".concat(e.module," already loaded with version ").concat(s," cannot load version ").concat(r));return[2,!0]}if(!r)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,g(e,r,i)]}))}))}function g(e,t,n){if(void 0===n&&(n=!0),y()){var r=n?e.amdModule.minified:e.amdModule.unminified;return new Promise((function(e,t){window.require([r],e,t)}))}var i=n?e.script.minified:e.script.unminified;return u({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(i)})}function T(){return null===window||void 0===window?void 0:window.braintree}var N={Client:"client",HostedCardFields:"hostedFields"},b="braintree",C=((l={})[N.Client]="client",l[N.HostedCardFields]="hosted-fields",l),v=((p={})[N.Client]={id:"client",module:N.Client,amdModule:{unminified:"".concat(b,"/").concat(C[N.Client]),minified:"".concat(b,"/").concat(C[N.Client],".min")},script:{unminified:"".concat(C[N.Client],".js"),minified:"".concat(C[N.Client],".min.js")}},p[N.HostedCardFields]={id:"hcf",module:N.HostedCardFields,amdModule:{unminified:"".concat(b,"/").concat(C[N.HostedCardFields]),minified:"".concat(b,"/").concat(C[N.HostedCardFields],".min")},script:{unminified:"".concat(C[N.HostedCardFields],".js"),minified:"".concat(C[N.HostedCardFields],".min.js")}},p);function O(e){return t(this,void 0,void 0,(function(){var t,r,i,o;return n(this,(function(n){switch(n.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,r=e.minified,i=w(e),o=L(e),e.platform!==I.BT?[3,2]:[4,Promise.all([A(v.hostedFields,t,r),R(i,r)])];case 1:case 3:return n.sent(),[3,5];case 2:return e.platform!==I.PPCP?[3,4]:[4,Promise.all([A(v.client,t,r),A(v.hostedFields,t,r),R(i,r)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:o}}]}}))}))}function R(e,t){var n;if(void 0===t&&(t=!0),y()){_()&&requirejs.config({paths:(n={},n[h]=e,n)});var r="".concat(h,"/").concat(t?m.AXO_ASSET_NAME.minified:m.AXO_ASSET_NAME.unminified);return new Promise((function(e,t){window.require([r],e,t)}))}return u({id:"axo-id",src:e,forceScriptReload:!0})}function S(e){var t=e.assetUrl,n=e.bundleId;return n?"https://cdn-".concat(n,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(m.CDNX_PROD,"/").concat(t)}function w(e){var t,n=!1!==(null===e||void 0===e?void 0:e.minified)?m.AXO_ASSET_NAME.minified:m.AXO_ASSET_NAME.unminified;return S({assetUrl:y()?m.AXO_ASSET_PATH:"".concat(m.AXO_ASSET_PATH,"/").concat(n,".js"),bundleId:null===(t=null===e||void 0===e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function L(e){var t;return S({assetUrl:m.LOCALE_PATH,bundleId:null===(t=null===e||void 0===e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}e.constants=m,e.loadAxo=O},"object"===typeof r&&"undefined"!==typeof n?o(r):"function"===typeof e&&e.amd?e(["exports"],o):o((i="undefined"!==typeof globalThis?globalThis:i||self).loadAxo={})},{}],9:[function(e,t,n){"use strict";var r=e("./constants").BRAINTREE_VERSION,i=e("./request/graphql"),o=e("./request"),a=e("../lib/is-verified-domain"),s=e("../lib/braintree-error"),c=e("../lib/convert-to-braintree-error"),u=e("./get-configuration").getConfiguration,d=e("../lib/create-authorization-data"),l=e("../lib/add-metadata"),p=e("@braintree/wrap-promise"),f=e("../lib/once"),h=e("../lib/deferred"),E=e("../lib/assign").assign,m=e("../lib/analytics"),I=e("./errors"),y=e("../lib/constants").VERSION,_=e("../lib/constants").GRAPHQL_URLS,A=e("../lib/methods"),g=e("../lib/convert-methods-to-error"),T=e("../lib/assets"),N=e("../lib/constants").FRA
1UDNET_FNCLS,b=e("../lib/constants").FRAUDNET_SOURCE,C=e("../lib/constants").FRAUDNET_URL,v={};function O(e){var t,n;if(e=e||{},t=JSON.stringify(e),!(n=e.gatewayConfiguration))throw new s(I.CLIENT_MISSING_GATEWAY_CONFIGURATION);if(["assetsUrl","clientApiUrl","configUrl"].forEach((function(e){if(e in n&&!a(n[e]))throw new s({type:I.CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN.type,code:I.CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN.code,message:e+" property is on an invalid domain."})})),this.getConfiguration=function(){return JSON.parse(t)},this._request=o,this._configuration=this.getConfiguration(),this._clientApiBaseUrl=n.clientApiUrl+"/v1/",n.graphQL){if(!a(n.graphQL.url))throw new s({type:I.CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN.type,code:I.CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN.code,message:"graphQL.url property is on an invalid domain."});this._graphQL=new i({graphQL:n.graphQL})}}function R(e,t){var n;if(-1===e?n=new s(I.CLIENT_REQUEST_TIMEOUT):401===e?n=new s(I.CLIENT_AUTHORIZATION_INVALID):403===e?n=new s(I.CLIENT_AUTHORIZATION_INSUFFICIENT):429===e?n=new s(I.CLIENT_RATE_LIMITED):e>=500?n=new s(I.CLIENT_GATEWAY_NETWORK):(e<200||e>=400)&&(n=c(t,{type:I.CLIENT_REQUEST_ERROR.type,code:I.CLIENT_REQUEST_ERROR.code,message:I.CLIENT_REQUEST_ERROR.message})),n)return n.details=n.details||{},n.details.httpStatus=e,n}function S(e){return{Authorization:"Bearer "+(e.authorizationFingerprint||e.authorization),"Braintree-Version":r}}O.initialize=function(e){var t,n,r=v[e.authorization];if(r)return m.sendEvent(r,"custom.client.load.cached"),r;try{n=d(e.authorization)}catch(i){return Promise.reject(new s(I.CLIENT_INVALID_AUTHORIZATION))}return r=u(n,e.sessionId).then((function(n){return e.debug&&(n.isDebug=!0),n.authorization=e.authorization,t=new O(n)})),v[e.authorization]=r,m.sendEvent(r,"custom.client.load.initialized"),r.then((function(e){return m.sendEvent(t,"custom.client.load.succeeded"),e})).catch((function(t){return delete v[e.authorization],Promise.reject(t)}))},O.clearCache=function(){v={}},O.prototype._findOrCreateFraudnetJSON=function(e){var t,n,r,i,o=document.querySelector('script[fncls="'+N+'"]');o||((o=document.body.appendChild(document.createElement("script"))).type="application/json",o.setAttribute("fncls",N)),t=this.getConfiguration(),n={rda_tenant:"bt_card",mid:t.gatewayConfiguration.merchantId},(r=t.authorizationFingerprint)&&r.split("&").forEach((function(e){var t=e.split("=");"customer_id"===t[0]&&t.length>1&&(n.cid=t[1])})),i={f:e.substr(0,32),fp:n,bu:!1,s:b},o.text=JSON.stringify(i)},O.prototype.request=function(e,t){var n=this,r=new Promise((function(t,r){var i,o,a,u,d=Boolean("payment_methods/credit_cards"===e.endpoint&&n.getConfiguration().gatewayConfiguration.creditCards.collectDeviceData);if("graphQLApi"!==e.api&&(e.method?e.endpoint||(i="options.endpoint"):i="options.method"),i)throw new s({type:I.CLIENT_OPTION_REQUIRED.type,code:I.CLIENT_OPTION_REQUIRED.code,message:i+" is required when making a request."});if(o="api"in e?e.api:"clientApi",u={method:e.method,graphQL:n._graphQL,timeout:e.timeout,metadata:n._configuration.analyticsMetadata},"clientApi"===o)a=n._clientApiBaseUrl,u.data=l.addMetadata(n._configuration,e.data);
1else{if("graphQLApi"!==o)throw new s({type:I.CLIENT_OPTION_INVALID.type,code:I.CLIENT_OPTION_INVALID.code,message:"options.api is invalid."});a=_[n._configuration.gatewayConfiguration.environment],e.endpoint="",u.method="post",u.data=E({clientSdkMetadata:{platform:n._configuration.analyticsMetadata.platform,source:n._configuration.analyticsMetadata.source,integration:n._configuration.analyticsMetadata.integration,sessionId:n._configuration.analyticsMetadata.sessionId,version:y}},e.data),u.headers=S(n._configuration)}u.url=a+e.endpoint,u.sendAnalyticsEvent=function(e,t){t?m.sendEventPlus(n,e,t):m.sendEvent(n,e)},n._request(u,(function(e,i,a){var s,u;(u=R(a,e))?r(u):"graphQLApi"===o&&i.errors?r(c(i.errors,{type:I.CLIENT_GRAPHQL_REQUEST_ERROR.type,code:I.CLIENT_GRAPHQL_REQUEST_ERROR.code,message:I.CLIENT_GRAPHQL_REQUEST_ERROR.message})):(s=E({_httpStatus:a},i),d&&s.creditCards&&s.creditCards.length>0&&(n._findOrCreateFraudnetJSON(s.creditCards[0].nonce),T.loadScript({src:C,forceScriptReload:!0})),t(s))}))}));return"function"===typeof t?(t=f(h(t)),void r.then((function(e){t(null,e,e._httpStatus)})).catch((function(e){var n=e&&e.details&&e.details.httpStatus;t(e,null,n)}))):r},O.prototype.toJSON=function(){return this.getConfiguration()},O.prototype.getVersion=function(){return y},O.prototype.teardown=p((function(){var e=this;return delete v[e.getConfiguration().authorization],g(e,A(O.prototype)),Promise.resolve()})),t.exports=O},{"../lib/add-metadata":29,"../lib/analytics":30,"../lib/assets":31,"../lib/assign":32,"../lib/braintree-error":33,"../lib/constants":34,"../lib/convert-methods-to-error":35,"../lib/convert-to-braintree-error":36,"../lib/create-authorization-data":37,"../lib/deferred":38,"../lib/is-verified-domain":43,"../lib/methods":45,"../lib/once":46,"./constants":10,"./errors":11,"./get-configuration":12,"./request":25,"./request/graphql":23,"@braintree/wrap-promise":7}],10:[function(e,t,n){"use strict";t.exports={BRAINTREE_VERSION:"2018-05-10"}},{}],11:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN:{type:r.types.MERCHANT,code:"CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN"},CLIENT_OPTION_REQUIRED:{type:r.types.MERCHANT,code:"CLIENT_OPTION_REQUIRED"}
1,CLIENT_OPTION_INVALID:{type:r.types.MERCHANT,code:"CLIENT_OPTION_INVALID"},CLIENT_MISSING_GATEWAY_CONFIGURATION:{type:r.types.INTERNAL,code:"CLIENT_MISSING_GATEWAY_CONFIGURATION",message:"Missing gatewayConfiguration."},CLIENT_INVALID_AUTHORIZATION:{type:r.types.MERCHANT,code:"CLIENT_INVALID_AUTHORIZATION",message:"Authorization is invalid. Make sure your client token or tokenization key is valid."},CLIENT_GATEWAY_NETWORK:{type:r.types.NETWORK,code:"CLIENT_GATEWAY_NETWORK",message:"Cannot contact the gateway at this time."},CLIENT_REQUEST_TIMEOUT:{type:r.types.NETWORK,code:"CLIENT_REQUEST_TIMEOUT",message:"Request timed out waiting for a reply."},CLIENT_REQUEST_ERROR:{type:r.types.NETWORK,code:"CLIENT_REQUEST_ERROR",message:"There was a problem with your request."},CLIENT_GRAPHQL_REQUEST_ERROR:{type:r.types.NETWORK,code:"CLIENT_GRAPHQL_REQUEST_ERROR",message:"There was a problem with your request."},CLIENT_RATE_LIMITED:{type:r.types.MERCHANT,code:"CLIENT_RATE_LIMITED",message:"You are being rate-limited; please try again in a few minutes."},CLIENT_AUTHORIZATION_INSUFFICIENT:{type:r.types.MERCHANT,code:"CLIENT_AUTHORIZATION_INSUFFICIENT",message:"The authorization used has insufficient privileges."},CLIENT_AUTHORIZATION_INVALID:{type:r.types.MERCHANT,code:"CLIENT_AUTHORIZATION_INVALID",message:"Either the client token has expired and a new one should be generated or the tokenization key has been deactivated or deleted."}}},{"../lib/braintree-error":33}],12:[function(e,t,n){"use strict";var r=e("../lib/braintree-error"),i=e("@braintree/wrap-promise"),o=e("./request"),a=e("@braintree/uuid"),s=e("../lib/constants"),c=e("./errors"),u=e("./request/graphql"),d=e("../lib/constants").GRAPHQL_URLS,l=e("../lib/is-date-string-before-or-on"),p=e("./constants").BRAINTREE_VERSION;function f(e,t){return new Promise((function(n,i){var f,h,E,m,I=t||a(),y={merchantAppId:window.location.host,platform:s.PLATFORM,sdkVersion:s.VERSION,source:s.SOURCE,integration:s.INTEGRATION,integrationType:s.INTEGRATION,sessionId:I};h=e.attrs,E=e.configUrl,h._meta=y,h.braintreeLibraryVersion=s.BRAINTREE_LIBRARY_VERSION,h.configVersion="3",m={url:E,method:"GET",data:h},h.authorizationFingerprint&&e.graphQL?(l(e.graphQL.date,p)&&(m.graphQL=new u({graphQL:{url:e.graphQL.url,features:["configuration"]}})),m.metadata=y):h.tokenizationKey&&(m.graphQL=new u({graphQL:{url:d[e.environment],features:["configuration"]}}),m.metadata=y),o(m,(function(e,t,o){var a;if(e)return a=403===o?c.CLIENT_AUTHORIZATION_INSUFFICIENT:401===o?c.CLIENT_AUTHORIZATION_INVALID:c.CLIENT_GATEWAY_NETWORK,void i(new r({type:a.type,code:a.code,message:a.message,details:{originalError:e}}));f={authorizationType:h.tokenizationKey?"TOKENIZATION_KEY":"CLIENT_TOKEN",authorizationFingerprint:h.authorizationFingerprint,analyticsMetadata:y,gatewayConfiguration:t},n(f)}))}))}t.exports={getConfiguration:i(f)}},{"../lib/braintree-error":33,"../lib/constants":34,"../lib/is-date-string-before-or-on":41,"./constants":10,"./errors":11,"./request":25,"./request/graphql":23,"@braintree/uuid":3,"@braintree/wrap-promise":7}],13:[function(e,t,n){"use strict";var r=e("../lib/braintree-error"),i=e("./client"),o="3.138.0",a=e("@braintree/wrap-promise"),s=e("../lib/errors");function c(e){return e.authorization?i.initialize(e):Promise.reject(new r({type:s.INSTANTIATION_OPTION_REQUIRED.type,code:s.INSTANTIATION_OPTION_REQUIRED.code,message:"options.authorization is required when instantiating a client."}))}t.exports={create:a(c),VERSION:o}},{"../lib/braintree-error":33,"../lib/errors":40,"./client":9,"@braintree/wrap-promise":7}],14:[function(e,t,n){"use strict";var r=e("../../lib/querystring"),i=e("../../lib/assign").assign,o=e("./prep-body"),a=e("./parse-body"),s=e("./xhr"),c=s.isAvailable,u=e("./graphql/request"),d=e("./default-request"),l=1,p=408,f=/\/merchants\/[A-Za-z0-9_-]+\/client_api/,h=/payment_methods\/.*\/three_d_secure/;function E(e){return!e||e===p}function m(e,t){var n,r,i,o,a,s,c,u,d,l,p,E;try{n=(o=new URL(e)).hostname,r=o.pathname}catch(m){n=(e.match(/^https?:\/\/([^\/]+)/)||[])[1]||"",r=(e.match(/^https?:\/\/[^\/]+(\/.*)$/)||[])[1]||e}"/v1/tracking/batch/events"!==(i=r.replace(f,"").replace(h,"payment_methods/three_d_secure"))&&(a=e.replace(/:443(\/|$)/,"$1"),"undefined"!==typeof window&&window.performance&&window.performance.getEntriesByName&&(p=window.performance.getEntriesByName(a))&&p.length>0&&(s=(E=p[p.length-1]).connectStart?Math.round(E.connectStart):null,c=E.requestStart?Math.round(E.requestStart):null,d=Math.round(E.startTime),u=Math.round(E.responseEnd),l=E.duration?Math.round(E.duration):null,t.sendAnalyticsEvent("core.api-request-latency",{connection_start_time:s,domain:n,duration:l,endpoint:i,end_time:u,request_start_time:c,start_time:d})))}function I(e){var t=!e.data&&e.errors&&e.errors[0]&&e.errors[0].extensions&&e.errors[0].extensions.errorClass;return"UNKNOWN"===t||"INTERNAL"===t}function y(e,t,n){var p,f,h,_,A,g,T,N=e.url,b=e.graphQL,C=e.timeout,v=s.getRequestObject(),O=n,R=Boolean(b&&b.isGraphQLRequest(N,e.data));e.headers=i({"Content-Type":"application/json"},e.headers),h=R?new u(e):new d(e),N=h.getUrl(),_=h.getBody(),A=h.getMethod(),g=h.getHeaders(),"GET"===A&&(N=r.queryify(N,_),_=null),c?v.onreadystatechange=function(){if(4===v.readyState){if(0===v.status&&R)return delete e.graphQL,void y(e,t,n);if(T=a(v.responseText),f=h.adaptResponseBody(T),p=h.determineStatus(v.status,T),e.sendAnalyticsEvent&&m(N,e),p>=400||p<200){if(R&&I(T))return delete e.graphQL,void y(e,t,n);if(t<l&&E(p))return t++,void y(e,t,n);O(f||"error",null,p||500)}else O(null,f,p)}}:(e.headers&&(N=r.queryify(N,g)),v.onload=function(){O(null,a(v.responseText),v.status)},v.onerror=function(){O("error",null,500)}
1,v.onprogress=function(){},v.ontimeout=function(){O("timeout",null,-1)});try{v.open(A,N,!0)}catch(S){if(!R)throw S;return delete e.graphQL,void y(e,t,n)}v.timeout=C,c&&Object.keys(g).forEach((function(e){v.setRequestHeader(e,g[e])}));try{v.send(o(A,_))}catch(w){}}function _(e,t){y(e,0,t)}t.exports={request:_}},{"../../lib/assign":32,"../../lib/querystring":47,"./default-request":15,"./graphql/request":24,"./parse-body":26,"./prep-body":27,"./xhr":28}],15:[function(e,t,n){"use strict";function r(e){this._url=e.url,this._data=e.data,this._method=e.method,this._headers=e.headers}r.prototype.getUrl=function(){return this._url},r.prototype.getBody=function(){return this._data},r.prototype.getMethod=function(){return this._method},r.prototype.getHeaders=function(){return this._headers},r.prototype.adaptResponseBody=function(e){return e},r.prototype.determineStatus=function(e){return e},t.exports=r},{}],16:[function(e,t,n){"use strict";var r=e("./error"),i=e("../../../../lib/assign").assign,o={creditCard:{AMERICAN_EXPRESS:"American Express",DISCOVER:"Discover",INTERNATIONAL_MAESTRO:"Maestro",JCB:"JCB",MASTERCARD:"MasterCard",SOLO:"Solo",UK_MAESTRO:"UK Maestro",UNION_PAY:"UnionPay",VISA:"Visa",ELO:"Elo",HIPER:"Hiper",HIPERCARD:"Hipercard"},applePayWeb:{VISA:"visa",MASTERCARD:"mastercard",DISCOVER:"discover",AMERICAN_EXPRESS:"amex",INTERNATIONAL_MAESTRO:"maestro",ELO:"elo"},visaCheckout:{VISA:"Visa",MASTERCARD:"MasterCard",DISCOVER:"Discover",AMERICAN_EXPRESS:"American Express"},googlePay:{VISA:"visa",MASTERCARD:"mastercard",DISCOVER:"discover",AMERICAN_EXPRESS:"amex",INTERNATIONAL_MAESTRO:"maestro",ELO:"elo"},masterpass:{VISA:"visa",MASTERCARD:"master",DISCOVER:"discover",AMERICAN_EXPRESS:"amex",DINERS:"diners",INTERNATIONAL_MAESTRO:"maestro",JCB:"jcb"}};function a(e,t){return e.data&&!e.errors?s(e,t):r(e)}function s(e,t){var n,r=e.data.clientConfiguration;return n={environment:r.environment.toLowerCase(),clientApiUrl:r.clientApiUrl,assetsUrl:r.assetsUrl,analytics:{url:r.analyticsUrl},merchantId:r.merchantId,venmo:"off"},r.supportedFeatures&&(n.graphQL={url:t._graphQL._config.url,features:r.supportedFeatures.map((function(e){return e.toLowerCase()}))}),r.braintreeApi&&(n.braintreeApi=r.braintreeApi),r.applePayWeb&&(n.applePayWeb=r.applePayWeb,n.applePayWeb.supportedNetworks=c(r.applePayWeb.supportedCardBrands,o.applePayWeb),delete n.applePayWeb.supportedCardBrands),r.fastlane&&(n.fastlane=r.fastlane),r.ideal&&(n.ideal=r.ideal),r.creditCard?(n.challenges=r.creditCard.challenges.map((function(e){return e.toLowerCase()})),n.creditCards={supportedCardTypes:c(r.creditCard.supportedCardBrands,o.creditCard)},n.threeDSecureEnabled=r.creditCard.threeDSecureEnabled,n.threeDSecure=r.creditCard.threeDSecure):(n.challenges=[],n.creditCards={supportedCardTypes:[]},n.threeDSecureEnabled=!1),r.googlePay&&(n.androidPay={displayName:r.googlePay.displayName,enabled:!0,environment:r.googlePay.environment.toLowerCase(),googleAuthorizationFingerprint:r.googlePay.googleAuthorization,paypalClientId:r.googlePay.paypalClientId,supportedNetworks:c(r.googlePay.supportedCardBrands,o.googlePay)}),r.venmo&&(n.payWithVenmo={merchantId:r.venmo.merchantId,accessToken:r.venmo.accessToken,environment:r.venmo.environment.toLowerCase(),enrichedCustomerDataEnabled:r.venmo.enrichedCustomerDataEnabled}),r.paypal?(n.paypalEnabled=!0,n.paypal=i({},r.paypal),n.paypal.currencyIsoCode=n.paypal.currencyCode,n.paypal.environment=n.paypal.environment.toLowerCase(),delete n.paypal.currencyCode):n.paypalEnabled=!1,r.unionPay&&(n.unionPay={enabled:!0,merchantAccountId:r.unionPay.merchantAccountId}),r.visaCheckout&&(n.visaCheckout={apikey:r.visaCheckout.apiKey,encryptionKey:r.visaCheckout.encryptionKey,externalClientId:r.visaCheckout.externalClientId,supportedCardTypes:c(r.visaCheckout.supportedCardBrands,o.visaCheckout)}),r.masterpass&&(n.masterpass={merchantCheckoutId:r.masterpass.merchantCheckoutId,supportedNetworks:c(r.masterpass.supportedCardBrands,o.masterpass)}),r.usBankAccount&&(n.usBankAccount={routeId:r.usBankAccount.routeId,plaid:{publicKey:r.usBankAccount.plaidPublicKey}}),r.openBanking&&(n.openBanking={businessNames:r.openBanking.businessNames,allowListedDomains:r.openBanking.allowListedDomains,profileId:r.openBanking.profileId}),n}function c(e,t){return e.reduce((function(e,n){return t.hasOwnProperty(n)?e.concat(t[n]):e}),[])}t.exports=a},{"../../../../lib/assign":32,"./error":19}],17:[function(e,t,n){"use strict";var r=e("./error"),i={AMERICAN_EXPRESS:"American Express",DINERS:"Discover",DISCOVER:"Discover",ELO:"Elo",HIPER:"Hiper",HIPERCARD:"Hipercard",INTERNATIONAL_MAESTRO:"Maestro",JCB:"JCB",MASTERCARD:"MasterCard",UK_MAESTRO:"Maestro",UNION_PAY:"UnionPay",VISA:"Visa"},o={YES:"Yes",NO:"No",UNKNOWN:"Unknown"},a={PSDTWO:"psd2"};function s(e){return e.data&&!e.errors?c(e):r(e)}function c(e){var t,n,r=e.data.tokenizeCreditCardForPayPalConnect,s=r.paymentMethod.details,c=s.last4?s.last4.substr(2,4):"",u=s.binData;return u&&(["commercial","debit","durbinRegulated","healthcare","payroll","prepaid"].forEach((function(e){u[e]?u[e]=o[u[e]]:u[e]="Unknown"})),["issuingBank","countryOfIssuance","productId","business","consumer","purchase","corporate"].forEach((function(e){u[e]||(u[e]="Unknown")}
1))),t={creditCards:[{binData:u,consumed:!1,description:c?"ending in "+c:"",nonce:r.paymentMethod.id,details:{cardholderName:s.cardholderName,expirationMonth:s.expirationMonth,expirationYear:s.expirationYear,bin:s.bin||"",cardType:i[s.brandCode]||"Unknown",lastFour:s.last4||"",lastTwo:c},type:"CreditCard",threeDSecureInfo:null}]},r.authenticationInsight&&(n=r.authenticationInsight.customerAuthenticationRegulationEnvironment,t.creditCards[0].authenticationInsight={regulationEnvironment:a[n]||n.toLowerCase()}),t}t.exports=s},{"./error":19}],18:[function(e,t,n){"use strict";var r=e("./error"),i={AMERICAN_EXPRESS:"American Express",DINERS:"Discover",DISCOVER:"Discover",ELO:"Elo",HIPER:"Hiper",HIPERCARD:"Hipercard",INTERNATIONAL_MAESTRO:"Maestro",JCB:"JCB",MASTERCARD:"MasterCard",UK_MAESTRO:"Maestro",UNION_PAY:"UnionPay",VISA:"Visa"},o={YES:"Yes",NO:"No",UNKNOWN:"Unknown"},a={PSDTWO:"psd2"};function s(e){return e.data&&!e.errors?c(e):r(e)}function c(e){var t,n,r=e.data.tokenizeCreditCard,s=r.creditCard,c=s.last4?s.last4.substr(2,4):"",u=s.binData;return u&&(["commercial","debit","durbinRegulated","healthcare","payroll","prepaid"].forEach((function(e){u[e]?u[e]=o[u[e]]:u[e]="Unknown"})),["issuingBank","countryOfIssuance","productId","business","consumer","purchase","corporate"].forEach((function(e){u[e]||(u[e]="Unknown")}
1))),t={creditCards:[{binData:u,consumed:!1,description:c?"ending in "+c:"",nonce:r.token,details:{cardholderName:s.cardholderName,expirationMonth:s.expirationMonth,expirationYear:s.expirationYear,bin:s.bin||"",cardType:i[s.brandCode]||"Unknown",lastFour:s.last4||"",lastTwo:c},type:"CreditCard",threeDSecureInfo:null}]},r.authenticationInsight&&(n=r.authenticationInsight.customerAuthenticationRegulationEnvironment,t.creditCards[0].authenticationInsight={regulationEnvironment:a[n]||n.toLowerCase()}),t}t.exports=s},{"./error":19}],19:[function(e,t,n){"use strict";function r(e){var t=e.errors&&e.errors[0]&&e.errors[0].extensions&&e.errors[0].extensions.errorClass;return"VALIDATION"===t?o(e):t?i(e):{error:{message:"There was a problem serving your request"},fieldErrors:[]}}function i(e){return{error:{message:e.errors[0].message},fieldErrors:[]}}function o(e){var t=a(e.errors);return 0===t.length?{error:{message:e.errors[0].message}}:{error:{message:c(t)},fieldErrors:t}}function a(e){var t=[];return e.forEach((function(e){e.extensions&&e.extensions.inputPath&&s(e.extensions.inputPath.slice(1),e,t)})),t}function s(e,t,n){var r,i=t.extensions.legacyCode,o=e[0];1!==e.length?(n.forEach((function(e){e.field===o&&(r=e)})),r||(r={field:o,fieldErrors:[]},n.push(r)),s(e.slice(1),t,r.fieldErrors)):n.push({code:i,field:o,message:t.message})}function c(e){return{creditCard:"Credit card is invalid"}[e[0].field]}t.exports=r},{}],20:[function(e,t,n){"use strict";var r="query ClientConfiguration {   clientConfiguration {     analyticsUrl     environment     merchantId     assetsUrl     clientApiUrl     creditCard {       supportedCardBrands       challenges       threeDSecureEnabled       threeDSecure {         cardinalAuthenticationJWT         cardinalSongbirdUrl         cardinalSongbirdIdentityHash       }     }     applePayWeb {       countryCode       currencyCode       merchantIdentifier       supportedCardBrands     }     fastlane {       enabled       tokensOnDemand {         enabled         tokenExchange {           enabled         }       }     }     googlePay {       displayName       supportedCardBrands       environment       googleAuthorization       paypalClientId     }     ideal {       routeId       assetsUrl     }     masterpass {       merchantCheckoutId       supportedCardBrands     }     openBanking {       businessNames       allowListedDomains       profileId     }     paypal {       displayName       clientId       assetsUrl       environment       environmentNoNetwork       unvettedMerchant       braintreeClientId       billingAgreementsEnabled       merchantAccountId       currencyCode       payeeEmail     }     unionPay {       merchantAccountId     }     usBankAccount {       routeId       plaidPublicKey     }     venmo {       merchantId       accessToken       environment       enrichedCustomerDataEnabled    }     visaCheckout {       apiKey       externalClientId       supportedCardBrands     }     braintreeApi {       accessToken       url     }     supportedFeatures   } }";function i(){return{query:r,operationName:"ClientConfiguration"}}t.exports=i},{}],21:[function(e,t,n){"use strict";var r=e("../../../../lib/assign").assign;function i(e){var t=e.hasAuthenticationInsight,n="mutation TokenizeCreditCardForPayPalConnect($input: TokenizeCreditCardForPayPalConnectInput!";return t&&(n+=", $authenticationInsightInput: AuthenticationInsightInput!"),n+=") {   tokenizeCreditCardForPayPalConnect(input: $input) {     clientMutationId     paymentMethod {       id       details {         ... on CreditCardDetails {       bin       brandCode       last4       cardholderName       expirationMonth      expirationYear      binData {         prepaid         healthcare         debit         durbinRegulated         commercial         payroll         issuingBank         countryOfIssuance         productId         business         consumer         purchase         corporate       }         }       }     }",t&&(n+="    authenticationInsight(input: $authenticationInsightInput) {      customerAuthenticationRegulationEnvironment    }"),n+="  } }"}function o(e,t){var n=e.creditCard,i=n.fastlane||{},o="fastlane"in n&&"termsAndConditionsVersion"in n.fastlane&&n.fastlane.termsAndConditionsVersion,s="fastlane"in n&&"termsAndConditionsCountry"in n.fastlane&&n.fastlane.termsAndConditionsCountry,c=n.email,u="hasBuyerConsent"in i&&i.hasBuyerConsent,d=n.shippingAddress,l=a(e,t),p=r({},l.input,{email:c,optIn:u,phone:n.phone});return o&&(p.termsAndConditionsVersion=o),s&&(p.termsAndConditionsCountry=s),"authAssertion"in i&&(p.authAssertion=i.authAssertion),d&&(p.shippingAddress=d),{input:p}}function a(e,t){var n=e.creditCard,r=n&&n.billingAddress,i=n&&n.expirationDate,o=n&&(n.expirationMonth||i&&i.split("/")[0].trim()),a=n&&(n.expirationYear||i&&i.split("/")[1].trim()),c={input:{credit
1Card:{number:n&&n.number,expirationMonth:o,expirationYear:a,cvv:n&&n.cvv,cardholderName:n&&n.cardholderName},options:{}}};return t.hasAuthenticationInsight&&(c.authenticationInsightInput={merchantAccountId:e.merchantAccountId}),r&&(c.input.creditCard.billingAddress=r),c.input=s(e,c.input),c}function s(e,t){var n;return e.creditCard&&e.creditCard.options&&"boolean"===typeof e.creditCard.options.validate?n=e.creditCard.options.validate:e.authorizationFingerprint&&e.tokenizationKey||e.authorizationFingerprint?n=!0:e.tokenizationKey&&(n=!1),"boolean"===typeof n&&(t.options=r({validate:n},t.options)),t}function c(e){var t={hasAuthenticationInsight:Boolean(e.authenticationInsight&&e.merchantAccountId)};return{query:i(t),variables:o(e,t),operationName:"TokenizeCreditCardForPayPalConnect"}}t.exports=c},{"../../../../lib/assign":32}],22:[function(e,t,n){"use strict";var r=e("../../../../lib/assign").assign;function i(e){var t=e.hasAuthenticationInsight,n="mutation TokenizeCreditCard($input: TokenizeCreditCardInput!";return t&&(n+=", $authenticationInsightInput: AuthenticationInsightInput!"),n+=") {   tokenizeCreditCard(input: $input) {     token     creditCard {       bin       brandCode       last4       cardholderName       expirationMonth      expirationYear      binData {         prepaid         healthcare         debit         durbinRegulated         commercial         payroll         issuingBank         countryOfIssuance         productId         business         consumer         purchase         corporate       }     } ",t&&(n+="    authenticationInsight(input: $authenticationInsightInput) {      customerAuthenticationRegulationEnvironment    }"),n+="  } }"}function o(e,t){var n=e.creditCard,r=n&&n.billingAddress,i=n&&n.expirationDate,o=n&&(n.expirationMonth||i&&i.split("/")[0].trim()),s=n&&(n.expirationYear||i&&i.split("/")[1].trim()),c={input:{creditCard:{number:n&&n.number,expirationMonth:o,expirationYear:s,cvv:n&&n.cvv,cardholderName:n&&n.cardholderName},options:{}}};return t.hasAuthenticationInsight&&(c.authenticationInsightInput={merchantAccountId:e.merchantAccountId}),r&&(c.input.creditCard.billingAddress=r),c.input=a(e,c.input),c}function a(e,t){var n;
1return e.creditCard&&e.creditCard.options&&"boolean"===typeof e.creditCard.options.validate?n=e.creditCard.options.validate:e.authorizationFingerprint&&e.tokenizationKey||e.authorizationFingerprint?n=!0:e.tokenizationKey&&(n=!1),"boolean"===typeof n&&(t.options=r({validate:n},t.options)),t}function s(e){var t={hasAuthenticationInsight:Boolean(e.authenticationInsight&&e.merchantAccountId)};return{query:i(t),variables:o(e,t),operationName:"TokenizeCreditCard"}}t.exports=s},{"../../../../lib/assign":32}],23:[function(e,t,n){"use strict";var r={tokenize_credit_cards:"payment_methods/credit_cards",configuration:"configuration"},i=["creditCard.options.unionPayEnrollment"];function o(e){this._config=e.graphQL}function a(e){return i.some((function(t){return void 0!==t.split(".").reduce((function(e,t){return e&&e[t]}),e)}))}o.prototype.getGraphQLEndpoint=function(){return this._config.url},o.prototype.isGraphQLRequest=function(e,t){var n,i=this.getClientApiPath(e);return!(!this._isGraphQLEnabled()||!i)&&(n=this._config.features.some((function(e){return r[e]===i})),!a(t)&&n)},o.prototype.getClientApiPath=function(e){var t,n="/client_api/v1/",r=e.split(n);return r.length>1&&(t=r[1].split("?")[0]),t},o.prototype._isGraphQLEnabled=function(){return Boolean(this._config)},t.exports=o},{}],24:[function(e,t,n){"use strict";var r=e("../../constants").BRAINTREE_VERSION,i=e("../../../lib/assign").assign,o=e("../../../lib/snake-case-to-camel-case"),a=e("../../../lib/is-fastlane-checkout"),s=e("./generators/credit-card-tokenization"),c=e("./adapters/credit-card-tokenization"),u=e("./adapters/credit-card-tokenization-fastlane"),d=e("./generators/credit-card-for-fastlane-tokenization"),l=e("./generators/configuration"),p=e("./adapters/configuration"),f={"payment_methods/credit_cards":function(e,t){return t?d(e):s(e)},configuration:l},h={"payment_methods/credit_cards":function(e,t,n){return n?u(e,t):c(e,t)},configuration:p};function E(e){var t=e.graphQL.getClientApiPath(e.url);this._graphQL=e.graphQL,this._data=e.data,this._method=e.method,this._headers=e.headers,this._clientSdkMetadata={source:e.metadata.source,integration:e.metadata.integration,sessionId:e.metadata.sessionId},this._sendAnalyticsEvent=e.sendAnalyticsEvent||Function.prototype,this._generator=f[t],this._adapter=h[t],this._sendAnalyticsEvent("graphql.init")}function m(e,t){return!e&&t.errors[0].message}function I(e){var t={};return Object.keys(e).forEach((function(n){var r=o(n);"object"===typeof e[n]?t[r]=I(e[n]):"number"===typeof e[n]?t[r]=String(e[n]):t[r]=e[n]})),t}E.prototype.getUrl=function(){return this._graphQL.getGraphQLEndpoint()},E.prototype.getBody=function(){var e=I(this._data),t=this._generator(e,a(this._data.creditCard)),n=i({clientSdkMetadata:this._clientSdkMetadata},t);return JSON.stringify(n)},E.prototype.getMethod=function(){return"POST"},E.prototype.getHeaders=function(){var e,t;return this._data.authorizationFingerprint?(this._sendAnalyticsEvent("graphql.authorization-fingerprint"),e=this._data.authorizationFingerprint):(this._sendAnalyticsEvent("graphql.tokenization-key"),e=this._data.tokenizationKey),t={Authorization:"Bearer "+e,"Braintree-Version":r},i({},this._headers,t)},E.prototype.adaptResponseBody=function(e){return this._adapter(e,this,"creditCard"in this._data&&a(this._data.creditCard))},E.prototype.determineStatus=function(e,t){var n,r;return 200===e?(r=t.errors&&t.errors[0]&&t.errors[0].extensions&&t.errors[0].extensions.errorClass,n=t.data&&!t.errors?200:"VALIDATION"===r?422:"AUTHORIZATION"===r?403:"AUTHENTICATION"===r?401:m(r,t)?403:500):n=e||500,this._sendAnalyticsEvent("graphql.status."+e),this._sendAnalyticsEvent("graphql.determinedStatus."+n),n},t.exports=E},{"../../../lib/assign":32,"../../../lib/is-fastlane-checkout":42,"../../../lib/snake-case-to-camel-case":48,"../../constants":10,"./adapters/configuration":16,"./adapters/credit-card-tokenization":18,"./adapters/credit-card-tokenization-fastlane":17,"./generators/configuration":20,"./generators/credit-card-for-fastlane-tokenization":21,"./generators/credit-card-tokenization":22}],25:[function(e,t,n){"use strict";var r=e("../../lib/once"),i=e("./ajax-driver");t.exports=function(e,t){t=r(t||Function.prototype),e.method=(e.method||"GET").toUpperCase(),e.timeout=null==e.timeout?6e4:e.timeout,e.data=e.data||{},i.request(e,t)}},{"../../lib/once":46,"./ajax-driver":14}],26:[function(e,t,n){"use strict";
1t.exports=function(e){try{e=JSON.parse(e)}catch(t){}return e}},{}],27:[function(e,t,n){"use strict";t.exports=function(e,t){if("string"!==typeof e)throw new Error("Method must be a string");return"get"!==e.toLowerCase()&&null!=t&&(t="string"===typeof t?t:JSON.stringify(t)),t}},{}],28:[function(e,t,n){"use strict";var r="undefined"!==typeof window&&window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest;function i(){return r?new window.XMLHttpRequest:new window.XDomainRequest}t.exports={isAvailable:r,getRequestObject:i}},{}],29:[function(e,t,n){"use strict";var r=e("./create-authorization-data"),i=e("./json-clone"),o=e("./constants");function a(e,t){var n,a=t?i(t):{},s=r(e.authorization).attrs,c=i(e.analyticsMetadata);for(n in a.braintreeLibraryVersion=o.BRAINTREE_LIBRARY_VERSION,a._meta)a._meta.hasOwnProperty(n)&&(c[n]=a._meta[n]);return a._meta=c,s.tokenizationKey?a.tokenizationKey=s.tokenizationKey:a.authorizationFingerprint=s.authorizationFingerprint,a}function s(e){var t=e.getConfiguration(),n=r(t.authorization).attrs,i="production"===t.gatewayConfiguration.environment,a={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:o.VERSION,component:"braintreeclientsdk",merchant_sdk_env:i?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:o.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?a.tokenization_key=n.tokenizationKey:a.auth_fingerprint=n.authorizationFingerprint,a}t.exports={addMetadata:a,addEventMetadata:s}},{"./constants":34,"./create-authorization-data":37,"./json-clone":44}],30:[function(e,t,n){"use strict";var r=e("./constants"),i=e("./add-metadata"),o=e("./assign").assign;function a(e,t,n){return s(e,t,{},n)}function s(e,t,n,a){var s=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 u=e._request,d=r.ANALYTICS_URL,l=r.ANALYTICS_PREFIX+t,p="production"===e.getConfiguration().gatewayConfiguration.environment,f={events:[],tracking:[]},h=i.addEventMetadata(e,f);return h.event_name=l,h.t=s,f.events=[{level:"info",event:l,payload:o({env:p?"production":"sandbox",timestamp:s},n)}],f.tracking=[h],n&&"object"===typeof n&&(f.tracking=[c(h,n)]),u({url:d,method:"post",data:f,timeout:r.ANALYTICS_REQUEST_TIMEOUT_MS},a)})).catch((function(e){a&&a(e)}))}function c(e,t){var n=o({},t);return Object.keys(n).forEach((function(e){-1===r.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete n[e]})),o(e,n)}t.exports={sendEvent:a,sendEventPlus:s}},{"./add-metadata":29,"./assign":32,"./constants":34}],31:[function(e,t,n){"use strict";var r=e("@braintree/asset-loader/load-script"),i=e("@paypal/accelerated-checkout-loader");t.exports={loadScript:r,loadFastlane:i.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/accelerated-checkout-loader":8}],32:[function(e,t,n){"use strict";var r="function"===typeof Object.assign?Object.assign:i;function i(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])n.hasOwnProperty(r)&&(e[r]=n[r]);return e}t.exports={assign:r,_assign:i}},{}],33:[function(e,t,n){"use strict";var r=e("./enumerate");function i(e){if(!i.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}i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i.types=r(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),i.findRootError=function(e){return e instanceof i&&e.details&&e.details.originalError?i.findRootError(e.details.originalError):e},t.exports=i},{"./enumerate":39}],34:[function(e,t,n){"use strict";var r="3.138.0",i="web",o={production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},a={production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},s={production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"};t.exports={ANALYTICS_PREFIX:i+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:a,CLIENT_API_URLS:o,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:s,INTEGRATION_TIMEOUT_MS:6e4,VERSION:r,INTEGRATION:"custom",SOURCE:"client",PLATFORM:i,BRAINTREE_LIBRARY_VERSION:"braintree/"+i+"/"+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","connectionStartTime","domain","endpoint","endTime","requestStartTime","startTime"]}},{}],35:[function(e,t,n){"use strict";var r=e("./braintree-error"),i=e("./errors");t.exports=function(e,t){t.forEach((function(t){e[t]=function(){throw new r({type:i.METHOD_CALLED_AFTER_TEARDOWN.type,code:i.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}}))}},{"./braintree-error":33,"./errors":40}],36:[function(e,t,n){"use strict";var r=e("./braintree-error");function i(e,t){return e instanceof r?e:new r({type:t.type,code:t.code,message:t.message,details:{originalError:e}})}t.exports=i},{"./braintree-error":33}],37:[function(e,t,n){"use strict";var r=e("../lib/vendor/polyfill").atob,i=e("../lib/constants").CLIENT_API_URLS;function o(e){return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)}function a(e){var t=e.split("_"),n=t[0];return{merchantId:t.slice(2).join("_"),environment:n}}function s(e){var t,n,s={attrs:{},configUrl:""};return o(e)?(n=a(e),s.environment=n.environment,s.attrs.tokenizationKey=e,s.configUrl=i[n.environment]+"/merchants/"+n.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(r(e)),s.environment=t.environment,s.attrs.authorizationFingerprint=t.authorizationFingerprint,s.configUrl=t.configUrl,s.graphQL=t.graphQL),s}t.exports=s},{"../lib/constants":34,"../lib/vendor/polyfill":49}],38:[function(e,t,n){"use strict";
1t.exports=function(e){return function(){var t=arguments;setTimeout((function(){e.apply(null,t)}),1)}}},{}],39:[function(e,t,n){"use strict";function r(e,t){return t=null==t?"":t,e.reduce((function(e,n){return e[n]=t+n,e}),{})}t.exports=r},{}],40:[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":33}],41:[function(e,t,n){"use strict";function r(e){var t=e.split("-");return new Date(t[0],t[1],t[2])}function i(e,t){return r(e)<=r(t)}t.exports=i},{}],42:[function(e,t,n){"use strict";t.exports=function(e){return e&&e.hasOwnProperty("fastlane")&&e.fastlane}},{}],43:[function(e,t,n){"use strict";var r,i={"paypal.com":1,"braintreepayments.com":1,"braintreegateway.com":1,"braintree-api.com":1};function o(e){return e.split(".").slice(-2).join(".")}function a(e){var t;return e=e.toLowerCase(),!!/^https:/.test(e)&&((r=r||document.createElement("a")).href=e,t=o(r.hostname),i.hasOwnProperty(t))}t.exports=a},{}],44:[function(e,t,n){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],45:[function(e,t,n){"use strict";t.exports=function(e){return Object.keys(e).filter((function(t){return"function"===typeof e[t]}))}},{}],46:[function(e,t,n){"use strict";function r(e){var t=!1;return function(){t||(t=!0,e.apply(null,arguments))}}t.exports=r},{}],47:[function(e,t,n){"use strict";function r(e){var t;for(t in e)if(e.hasOwnProperty(t))return!0;return!1}function i(e){return e&&"object"===typeof 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 a(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]),i=decodeURIComponent(n[1]);return e[r]=i,e}),{}):{}}function s(e,t){var n,r,o,a=[];for(o in e)e.hasOwnProperty(o)&&(r=e[o],n=t?i(e)?t+"[]":t+"["+o+"]":o,"object"===typeof r?a.push(s(r,n)):a.push(encodeURIComponent(n)+"="+encodeURIComponent(r)));return a.join("&")}function c(e,t){return e=e||"",null!=t&&"object"===typeof t&&r(t)&&(e+=-1===e.indexOf("?")?"?":"",e+=-1!==e.indexOf("=")?"&":"",e+=s(t)),e}t.exports={parse:a,stringify:s,queryify:c,hasQueryParams:o}},{}],48:[function(e,t,n){"use strict";t.exports=function(e){return-1===e.indexOf("_")?e:e.toLowerCase().replace(/(\_\w)/g,(function(e){return e[1].toUpperCase()}))}},{}],49:[function(e,t,n){"use strict";var r="function"===typeof atob?atob:i;function i(e){var t,n,r,i,o,a,s="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");a=0;do{t=(63&s.indexOf(e.charAt(a++)))<<2|(i=s.indexOf(e.charAt(a++)))>>4&3,n=(15&i)<<4|(o=s.indexOf(e.charAt(a++)))>>2&15,r=(3&o)<<6|63&s.indexOf(e.charAt(a++)),c+=String.fromCharCode(t)+(n?String.fromCharCode(n):"")+(r?String.fromCharCode(r):"")}while(a<e.length);return c}t.exports={atob:function(e){return r.call(window,e)},_atob:i}},{}]},{},[13])(13)}()},65856154:function(e){e.exports=function(){var e;return function(){function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};t[a][0].call(u.exports,(function(e){return i(t[a][1][e]||e)}),u,u.exports,e,t,n,r)}return n[a].exports}for(var o=void 0,a=0;a<r.length;a++)i(r[a]);return i}return e}()({1:[function(e,t,n){"use strict";var r={};function i(e){var t,n=JSON.stringify(e);if(!e.forceScriptReload&&(t=r[n]))return t;var i=document.createElement("script"),o=e.dataAttributes||{},a=e.container||document.head;return i.src=e.src,i.id=e.id||"",i.async=!0,e.type&&i.setAttribute("type","".concat(e.type)),e.crossorigin&&i.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&i.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEac
1h((function(e){i.setAttribute("data-".concat(e),"".concat(o[e]))})),t=new Promise((function(t,n){i.addEventListener("load",(function(){t(i)})),i.addEventListener("error",(function(){n(new Error("".concat(e.src," failed to load.")))})),i.addEventListener("abort",(function(){n(new Error("".concat(e.src," has aborted.")))})),a.appendChild(i)})),r[n]=t,t}i.clearCache=function(){r={}},t.exports=i},{}],2:[function(e,t,n){t.exports=e("./dist/load-script")},{"./dist/load-script":1}],3:[function(e,t,n){"use strict";function r(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(n){console.log("Error in callback function"),console.log(n)}}),1)}}Object.defineProperty(n,"__esModule",{value:!0}),n.deferred=r},{}],4:[function(e,t,n){"use strict";function r(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))}}Object.defineProperty(n,"__esModule",{value:!0}),n.once=r},{}],5:[function(e,t,n){"use strict";function r(e,t){if(!t)return e;e.then((function(e){return t(null,e)})).catch((function(e){return t(e)}))}Object.defineProperty(n,"__esModule",{value:!0}),n.promiseOrCallback=r},{}],6:[function(e,t,n){"use strict";var r=e("./lib/deferred"),i=e("./lib/once"),o=e("./lib/promise-or-callback");function a(e){return function(){for(var t,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return"function"===typeof n[n.length-1]&&(t=n.pop(),t=i.once(r.deferred(t))),o.promiseOrCallback(e.apply(this,n),t)}}a.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 i,o="constructor"!==t&&"function"===typeof e.prototype[t],a=-1===n.indexOf(t);return i=!!r||"_"!==t.charAt(0),o&&i&&a})).forEach((function(t){var n=e.prototype[t];e.prototype[t]=a(n)})),e},t.exports=a},{"./lib/deferred":3,"./lib/once":4,"./lib/promise-or-callback":5}],7:[function(t,n,r){var i,o;i=this,o=function(e){"use strict";function t(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function s(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){e.done?n(e.value):i(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function n(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}var r={},i={};function o(e){var t,n=JSON.stringify(e);if(!e.forceScriptReload&&(t=i[n]))return t;var r=document.createElement("script"),o=e.dataAttributes||{},a=e.container||document.head;return r.src=e.src,r.id=e.id||"",r.async=!0,e.type&&r.setAttribute("type","".concat(e.type)),e.crossorigin&&r.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(o).forEach((function(e){r.setAttribute("data-".concat(e),"".concat(o[e]))})),t=new Promise((function(t,n){r.addEventListener("load",(function(){t(r)})),r.addEventListener("error",(function(){n(new Error("".concat(e.src," failed to load.")))})),r.addEventListener("abort",(function(){n(new Error("".concat(e.src," has aborted.")))})),a.appendChild(r)})),i[n]=t,t}o.clearCache=function(){i={}};var a=o,s=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)};
1Object.defineProperty(r,"__esModule",{value:!0}),r.loadStylesheet=u=r.loadScript=void 0;var c=a,u=r.loadScript=c,d=s;r.loadStylesheet=d;var l,p,f="https://www.paypalobjects.com",h="fastlane",E="connect-boba",m={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:E,LOCALE_PATH:"".concat(E,"/locales/"),CDNX_PROD:f},I={BT:"BT",PPCP:"PPCP"};function y(){return"function"===typeof window.define&&!!window.define.amd}function _(){return y()&&"function"===typeof window.requirejs&&"function"===typeof window.requirejs.config}function A(e,r,i){var o,a;return void 0===i&&(i=!0),t(this,void 0,void 0,(function(){var t,s;return n(this,(function(n){if((t=T())&&t[e.module]){if(r&&(null===(o=t[e.module])||void 0===o?void 0:o.VERSION)!==r)throw s=null===(a=t[e.module])||void 0===a?void 0:a.VERSION,new Error("".concat(e.module," already loaded with version ").concat(s," cannot load version ").concat(r));return[2,!0]}if(!r)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,g(e,r,i)]}))}))}function g(e,t,n){if(void 0===n&&(n=!0),y()){var r=n?e.amdModule.minified:e.amdModule.unminified;return new Promise((function(e,t){window.require([r],e,t)}))}var i=n?e.script.minified:e.script.unminified;return u({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(i)})}function T(){return null===window||void 0===window?void 0:window.braintree}var N={Client:"client",HostedCardFields:"hostedFields"},b="braintree",C=((l={})[N.Client]="client",l[N.HostedCardFields]="hosted-fields",l),v=((p={})[N.Client]={id:"client",module:N.Client,amdModule:{unminified:"".concat(b,"/").concat(C[N.Client]),minified:"".concat(b,"/").concat(C[N.Client],".min")},script:{unminified:"".concat(C[N.Client],".js"),minified:"".concat(C[N.Client],".min.js")}},p[N.HostedCardFields]={id:"hcf",module:N.HostedCardFields,amdModule:{unminified:"".concat(b,"/").concat(C[N.HostedCardFields]),minified:"".concat(b,"/").concat(C[N.HostedCardFields],".min")},script:{unminified:"".concat(C[N.HostedCardFields],".js"),minified:"".concat(C[N.HostedCardFields],".min.js")}},p);function O(e){return t(this,void 0,void 0,(function(){var t,r,i,o;return n(this,(function(n){switch(n.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,r=e.minified,i=w(e),o=L(e),e.platform!==I.BT?[3,2]:[4,Promise.all([A(v.hostedFields,t,r),R(i,r)])];case 1:case 3:return n.sent(),[3,5];case 2:return e.platform!==I.PPCP?[3,4]:[4,Promise.all([A(v.client,t,r),A(v.hostedFields,t,r),R(i,r)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:o}}]}}))}))}function R(e,t){var n;if(void 0===t&&(t=!0),y()){_()&&requirejs.config({paths:(n={},n[h]=e,n)});var r="".concat(h,"/").concat(t?m.AXO_ASSET_NAME.minified:m.AXO_ASSET_NAME.unminified);return new Promise((function(e,t){window.require([r],e,t)}))}return u({id:"axo-id",src:e,forceScriptReload:!0})}function S(e){var t=e.assetUrl,n=e.bundleId;return n?"https://cdn-".concat(n,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(m.CDNX_PROD,"/").concat(t)}function w(e){var t,n=!1!==(null===e||void 0===e?void 0:e.minified)?m.AXO_ASSET_NAME.minified:m.AXO_ASSET_NAME.unminified;return S({assetUrl:y()?m.AXO_ASSET_PATH:"".concat(m.AXO_ASSET_PATH,"/").concat(n,".js"),bundleId:null===(t=null===e||void 0===e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function L(e){var t;return S({assetUrl:m.LOCALE_PATH,bundleId:null===(t=null===e||void 0===e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}e.constants=m,e.loadAxo=O},"object"===typeof r&&"undefined"!==typeof n?o(r):"function"===typeof e&&e.amd?e(["exports"],o):o((i="undefined"!==typeof globalThis?globalThis:i||self).loadAxo={})},{}],8:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={DATA_COLLECTOR_REQUIRES_CREATE_OPTIONS:{type:r.types.MERCHANT,code:"DATA_COLLECTOR_REQUIRES_CREATE_OPTIONS",message:"Data Collector must be created with Kount and/or PayPal."}}},{"../lib/braintree-error":13}],9:[function(e,t,n){"use strict";
1var r,i=e("../lib/constants").FRAUDNET_FNCLS,o=e("../lib/constants").FRAUDNET_SOURCE,a=e("../lib/constants").FRAUDNET_URL,s=e("../lib/assets").loadScript,c=32;function u(e){var t=new l;return!(e=e||{}).sessionId&&r?(t.sessionId=r,Promise.resolve(t)):t.initialize(e)}function d(){r=null}function l(){}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function f(e){return"https://b.stats.paypal.com/counter.cgi?i=127.0.0.1&p="+e+"&t="+(new Date).getTime()/1e3+"&a=14"}function h(e,t){var n=document.body.appendChild(document.createElement("script"));return"production"!==t&&(e.sandbox=!0),n.type="application/json",n.setAttribute("fncls",i),n.text=JSON.stringify(e),n}l.prototype.initialize=function(e){var t=this;this.sessionId=e.sessionId||e.clientSessionId,this.sessionId&&(this.sessionId=this.sessionId.substring(0,c)),e.sessionId||(r=this.sessionId);var n={f:this.sessionId,s:o};return e.hasOwnProperty("beacon")&&!0!==e.beacon?n.bu=!1:n.b=f(this.sessionId),e.hasOwnProperty("cb1")&&(n.cb1=e.cb1),this._parameterBlock=h(n,e.environment),s({src:a}).then((function(e){return t._thirdPartyBlock=e,t})).catch((function(){return null}))},l.prototype.teardown=function(){p(document.querySelector('iframe[title="ppfniframe"]')),p(document.querySelector('iframe[title="pbf"]')),p(this._parameterBlock),p(this._thirdPartyBlock)},t.exports={setup:u,clearSessionIdCache:d}},{"../lib/assets":11,"../lib/constants":14}],10:[function(e,t,n){"use strict";var r=e("./fraudnet"),i=e("../lib/braintree-error"),o=e("../lib/basic-component-verification"),a=e("../lib/create-deferred-client"),s=e("../lib/create-assets-url"),c=e("../lib/methods"),u=e("../lib/convert-methods-to-error"),d="3.138.0",l=e("@braintree/wrap-promise"),p=e("./errors");function f(e){var t="Data Collector",n={_instances:[]},c={};return o.verify({name:t,client:e.client,authorization:e.authorization}).then((function(){return n._instantiatedWithAClient=!e.useDeferredClient,n._createPromise=a.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:s.create(e.authorization),name:t}).then((function(t){var i=t.getConfiguration(),o={sessionId:e.riskCorrelationId||e.clientMetadataId||e.correlationId,clientSessionId:i.analyticsMetadata.sessionId,environment:i.gatewayConfiguration.environment,cb1:e.cb1};return e.hasOwnProperty("beacon")&&(o.beacon=e.beacon),r.setup(o).then((function(e){e&&(c.correlation_id=e.sessionId,n._instances.push(e))}))})).then((function(){return 0===n._instances.length?Promise.reject(new i(p.DATA_COLLECTOR_REQUIRES_CREATE_OPTIONS)):(n.deviceData=JSON.stringify(c),n.rawDeviceData=c,n)})),n.teardown=h(n),n.getDeviceData=E(n),n._instantiatedWithAClient?n._createPromise:n}))}function h(e){return l((function(){return e._createPromise.then((function(){e._instances.forEach((function(e){e&&e.teardown()})),u(e,c(e))}))}))}function E(e){return l((function(t){return t=t||{},e._createPromise.then((function(){return t.raw?Promise.resolve(e.rawDeviceData):Promise.resolve(e.deviceData)}))}))}t.exports={create:l(f),VERSION:d}},{"../lib/basic-component-verification":12,"../lib/braintree-error":13,"../lib/convert-methods-to-error":15,"../lib/create-assets-url":16,"../lib/create-deferred-client":17,"../lib/methods":20,"./errors":8,"./fraudnet":9,"@braintree/wrap-promise":6}],11:[function(e,t,n){"use strict";var r=e("@braintree/asset-loader/load-script"),i=e("@paypal/accelerated-checkout-loader");t.exports={loadScript:r,loadFastlane:i.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/accelerated-checkout-loader":7}],12:[function(e,t,n){"use strict";var r=e("./braintree-error"),i=e("./errors"),o="3.138.0";function a(e){var t,n,a;return e?(a=e.name,t=e.client,n=e.authorization,t||n?n||t.getVersion()===o?Promise.resolve():Promise.reject(new r({type:i.INCOMPATIBLE_VERSIONS.type,code:i.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+a+" (version "+o+") components must be from the same SDK version."})):Promise.reject(new r({type:i.INSTANTIATION_OPTION_REQUIRED.type,code:i.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+a+"."}))):Promise.reject(new r({type:i.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:i.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}t.exports={verify:a}},{"./braintree-error":13,"./errors":19}],13:[function(e,t,n){"use strict";var r=e("./enumerate");function i(e){if(!i.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");
1if(!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}i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i.types=r(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),i.findRootError=function(e){return e instanceof i&&e.details&&e.details.originalError?i.findRootError(e.details.originalError):e},t.exports=i},{"./enumerate":18}],14:[function(e,t,n){"use strict";var r="3.138.0",i="web",o={production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},a={production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},s={production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"};t.exports={ANALYTICS_PREFIX:i+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:a,CLIENT_API_URLS:o,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:s,INTEGRATION_TIMEOUT_MS:6e4,VERSION:r,INTEGRATION:"custom",SOURCE:"client",PLATFORM:i,BRAINTREE_LIBRARY_VERSION:"braintree/"+i+"/"+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","connectionStartTime","domain","endpoint","endTime","requestStartTime","startTime"]}},{}],15:[function(e,t,n){"use strict";var r=e("./braintree-error"),i=e("./errors");t.exports=function(e,t){t.forEach((function(t){e[t]=function(){throw new r({type:i.METHOD_CALLED_AFTER_TEARDOWN.type,code:i.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}}))}},{"./braintree-error":13,"./errors":19}],16:[function(e,t,n){"use strict";var r=e("./constants").ASSETS_URLS;function i(e){return r.production}t.exports={create:i}},{"./constants":14}],17:[function(e,t,n){"use strict";var r=e("./braintree-error"),i=e("./assets"),o=e("./errors"),a="3.138.0";function s(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=i.loadScript({src:e.assetsUrl+"/web/"+a+"/js/client.min.js"}).catch((function(e){return Promise.reject(new r({type:o.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:o.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:o.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))}))),t.then((function(){return window.braintree.client.VERSION!==a?Promise.reject(new r({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+a+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})})))}t.exports={create:s}},{"./assets":11,"./braintree-error":13,"./errors":19}],18:[function(e,t,n){"use strict";function r(e,t){return t=null==t?"":t,e.reduce((function(e,n){return e[n]=t+n,e}),{})}t.exports=r},{}],19:[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":13}],20:[function(e,t,n){"use strict";t.exports=function(e){return Object.keys(e).filter((function(t){return"function"===typeof e[t]}))}},{}]},{},[10])(10)}()},48210107:function(e){e.exports=function(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}},16639693:function(e){e.exports=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i}},90435161:function(e,t,n){var r=n(74829932),i=n(55267206),o=n(89269199),a=n(56701469);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},84354061:function(e,t,n){var r=n(27062663),i=n(37989881),o=n(55267206),a=n(48210107),s=n(56701469);e.exports=function(e,t,n){var c=s(e)?r:a,u=arguments.length<3;return c(e,o(t,4),n,u,i)}}}]);

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.