PageSourceSearch

https://cannaffex.ca/core/modules/3cdb50a488/assets/js/paysafe/paysafe.checkout.min.js?rnd=21300

js cannaffex.ca collected 2026-10-04 19:11:49 UTC 150,408 bytes, 1 lines download raw bytes

1var paysafe_v1="object"==typeof paysafe_v1?paysafe_v1:{};paysafe_v1.checkout=function(e){var t={};function r(n){var i;return(t[n]||(i=t[n]={i:n,l:!1,exports:{}},e[n].call(i.exports,i,i.exports,r),i.l=!0,i)).exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=89)}([function(e,t,r){r=[r,t,r(19),r(78),r(79),r(51),r(82),r(152),r(157),r(158),r(28),r(83),r(20),r(80),r(52),r(53),r(55),r(163),r(85),r(50),r(84),r(164),r(165),r(166),r(88),r(86),r(54),r(81)],void 0!==(t=function(e,t,r,n,i,o,a,s,u,c,l,d,f,p,h,y,g,v,E,m,S,I,A,T,C,D,b,O){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u=r.u,t.LogMessage=n.LogMessage,t.ThreeDSv2Validation=i.ThreeDSv2Validation,t.CardValidation=o.CardValidation,t.Environment=a.Environment,t.FormatterFactory=s.FormatterFactory,t.PaymentInstrumentValidation=u.PaymentInstrumentValidation,t.StringNormalization=c.StringNormalization,t.catchUnexpectedError=l.catchUnexpectedError,t.generateGUID=l.generateGUID,t.loadJsFile=l.loadJsFile,t.PAYSAFE_JS=l.PAYSAFE_JS,t.PAYSAFE_CHECKOUT=l.PAYSAFE_CHECKOUT,t.PAYSAFE_REQUEST=l.PAYSAFE_REQUEST,t.PAYSAFE_JS_TRANSACTION_SOURCE=l.PAYSAFE_JS_TRANSACTION_SOURCE,t.PAYSAFE_JS_V1_TRANSACTION_SOURCE=l.PAYSAFE_JS_V1_TRANSACTION_SOURCE,t.PAYSAFE_CHECKOUT_V1_TRANSACTION_SOURCE=l.PAYSAFE_CHECKOUT_V1_TRANSACTION_SOURCE,t.PAYSAFE_CHECKOUT_V2=l.PAYSAFE_CHECKOUT_V2,t.UtilsInstance=l.UtilsInstance,t.Communication=d.Communication,t.getCommunication=d.getCommunication,t.h=f.h,t.HostedErrorEntity=p.HostedErrorEntity,t.Ajax=h.Ajax,t.AjaxRequest=y.AjaxRequest,t.AUTHENTICATE_URI=y.AUTHENTICATE_URI,t.TOKENIZE_URI=y.TOKENIZE_URI,t.StyleHelper=g.StyleHelper,t.ThreeDSHtmlUtil=v.ThreeDSHtmlUtil,t.Logger=E.Logger,t.LogType=m.LogType,t.LogMessageEntity=m.LogMessageEntity,t.iosHelper=S.iosHelper,t.InputField=I.InputField,t.AmountFormatter=A.AmountFormatter,t.ThreeDSecureUtil=T.ThreeDSecureUtil,t.TokenizationHandler=C.TokenizationHandler,t.AuthenticationHandler=D.AuthenticationHandler,t.Singleton=b.Singleton,t.PaymentTypes=O.PaymentTypes}.apply(t,r))&&(e.exports=t)},function(e,t,r){var n=r(5),i=r(60).f,o=r(10),a=r(21),s=r(37),u=r(96),c=r(62);e.exports=function(e,t){var r,l,d,f=e.target,p=e.global,h=e.stat,y=p?n:h?n[f]||s(f,{}):(n[f]||{}).prototype;if(y)for(r in t){if(l=t[r],d=e.noTargetGet?(d=i(y,r))&&d.value:y[r],!c(p?r:f+(h?".":"#")+r,e.forced)&&void 0!==d){if(typeof l==typeof d)continue;u(l,d)}(e.sham||d&&d.sham)&&o(l,"sham",!0),a(y,r,l,e)}}},function(e,t,r){var n=r(5),i=r(30),o=r(41),a=r(102),s=n.Symbol,u=i("wks");e.exports=function(e){return u[e]||(u[e]=a&&s[e]||(a?s:o)("Symbol."+e))}},function(e,t,r){var n=r(17),i=Math.min;e.exports=function(e){return 0<e?i(n(e),9007199254740991):0}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){(function(t){function r(e){return e&&e.Math==Math&&e}var n="object";e.exports=r(typeof globalThis==n&&globalThis)||r(typeof window==n&&window)||r(typeof self==n&&self)||r(typeof t==n&&t)||Function("return this")()}).call(this,r(94))},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,r){var n=r(36);e.exports=function(e){return Object(n(e))}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){"use strict";var n=r(4);e.exports=function(e,t){var r=[][e];return!r||!n((function(){r.call(null,t||function(){throw 1},1)}))}},function(e,t,r){var n=r(13),i=r(11),o=r(31);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}}
1,function(e,t,r){var n=r(13),i=r(58),o=r(14),a=r(38),s=Object.defineProperty;t.f=n?s:function(e,t,r){if(o(e),t=a(t,!0),o(r),i)try{return s(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(2),i=r(48),o=(r=r(10),n("unscopables")),a=Array.prototype;null==a[o]&&r(a,o,i(null)),e.exports=function(e){a[o][e]=!0}},function(e,t,r){r=r(4),e.exports=!r((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,r){var n=r(6);e.exports=function(e){if(n(e))return e;throw TypeError(String(e)+" is not an object")}},function(e,t,r){var n=r(33),i=r(36);e.exports=function(e){return n(i(e))}},function(e,t,r){function n(e){var t=1==e,r=2==e,n=3==e,l=4==e,d=6==e,f=5==e||d;return function(p,h,y,g){for(var v,E,m=a(p),S=o(m),I=i(h,y,3),A=s(S.length),T=0,C=(h=g||u,t?h(p,A):r?h(p,0):void 0);T<A;T++)if((f||T in S)&&(E=I(v=S[T],T,m),e))if(t)C[T]=E;else if(E)switch(e){case 3:return!0;case 5:return v;case 6:return T;case 2:c.call(C,v)}else if(l)return!1;return d?-1:n||l?l:C}}var i=r(24),o=r(33),a=r(7),s=r(3),u=r(26),c=[].push;e.exports={forEach:n(0),map:n(1),filter:n(2),some:n(3),every:n(4),find:n(5),findIndex:n(6)}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?n:r)(e)}},function(e,t,r){var n=r(43);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){void 0!==(r=function(e,t){"use strict";function r(){}Object.defineProperty(t,"__esModule",{value:!0}),r.isString=function(e){return"string"==typeof e},r.isOptionalString=function(e){return!r.isProvided(e)||r.isString(e)},r.isOptionalStringInRange=function(e,t,n){return void 0===n&&(n=0),r.isProvided(e)&&(!r.isString(e)||e.length>t||e.length<n)},r.isStringInvalid=function(e,t){return!r.isProvided(e)||!r.isString(e)||e.length>t},r.isNumber=function(e){return"number"==typeof e},r.isOptionalNumber=function(e){return!r.isProvided(e)||r.isNumber(e)},r.isFunction=function(e){return"function"==typeof e},r.isOptionalFunction=function(e){return!r.isProvided(e)||r.isFunction(e)},r.isObject=function(e){return"object"==typeof e&&null!==e&&"[object Array]"!==Object.prototype.toString.call(e)},r.isOptionalObject=function(e){return!r.isProvided(e)||r.isObject(e)},r.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},r.isOptionalArray=function(e){return!r.isProvided(e)||r.isArray(e)},r.isProvided=function(e){return null!=e},r.isBoolean=function(e){return"boolean"==typeof e},r.isOptionalBoolean=function(e){return!r.isProvided(e)||r.isBoolean(e)},r.isApiKey=function(e){try{return r.isString(e)&&!r.isFunction(window.atob)||-1!==window.atob(e).indexOf(":")}catch(e){return!1}},r.isSingleUseProfileToken=function(e){try{return/^[0-9a-zA-Z]{16}$/.test(e)}catch(e){return!1}},r.isNumberInRange=function(e,t,n){return r.isNumber(e)&&r.isNumber(t)&&r.isNumber(n)&&t<=e&&e<=n},r.isMaxNineDigits=function(e){return/^\d{0,9}$/.test(e.toString(10))},r.isCountryValid=function(e){return r.isString(e)&&e.match("^[A-Z]{2}$")&&-1<r.countries.indexOf(e)},r.isCurrencyValid=function(e){return r.isString(e)&&e.match("^[A-Z]{3}$")},r.isDateValid=function(e){return r.isString(e)&&/^\d{4}-\d{2}-\d{2}$/.test(e)&&!isNaN(Date.parse(e))},r.isDateTimeValid=function(e){return!r.isProvided(e)||r.isString(e)&&/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$/.test(e)&&!isNaN(Date.parse(e))},r.containsString=function(e,t){return r.isString(t)&&-1!==e.indexOf(t)},r.isOptionalArrayElement=function(e,t){return!r.isProvided(t)||r.containsString(e,t)},r.isOptionalNumberInRange=function(e,t,n){return!r.isProvided(e)||r.isNumberInRange(e,t,n)},r.isOptionalDateValid=function(e){return!r.isProvided(e)||r.isDateV
1alid(e)},r.isAmountValid=function(e,t){return r.isNumber(e)&&t<=e&&r.isMaxNineDigits(e)},r.isOptionalAddressFieldValid=function(e,t,n){return void 0===n&&(n=0),!r.isProvided(e)||!this.isOptionalStringInRange(e,t,n)&&!/[";^*<[\]\\]/.test(e)},r.isHostedSessionFieldValid=function(e){return new RegExp("^[a-zA-Z0-9]{16}$").test(e)},r.isPayPalLanguageValid=function(e){return r.containsString(r.paypalSupportedLanguages,e)},r.isStringEmpty=function(e){return!e||0===e.trim().length},r.isEmailValid=function(e){return!r.isStringInvalid(e,240)&&/^[a-zA-Z0-9]\w*?([.+-]\w+)*@\w+(?:[.-]\w+)*(?:\.[a-zA-Z]{2,15})$/.test(e)},r.countries=["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KP","KR","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","SS","ES","LK","PM","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","NL","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VA","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],r.paypalSupportedLanguages=["AT","AU","BE","BR","CA","CH","CN","DE","ES","FR","GB","IT","NL","PL","PT","RU","US","da_DK","he_IL","id_ID","ja_JP","no_NO","pt_BR","ru_RU","sv_SE","th_TH","zh_CN","zh_HK","zh_TW"],t.u=r}.apply(t,[r,t]))&&(e.exports=r)},function(e,t,r){r=[r,t,r(80),r(81),r(28)],void 0!==(t=function(e,t,r,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="9120",a="9121",s="9124",u="9125";function c(){}c.createInvalidCallbackError=function(e){return new r.HostedErrorEntity(c.getCheckoutErrorCode("9001","9004"),"Callback should be function.",void 0,e)},c.createInvalidNumberOfArgumentsError=function(e){return new r.HostedErrorEntity(c.getCheckoutErrorCode("9002","9012"),"Invalid number of arguments.",void 0,e)},c.createInvalidApiKeyError=function(){return new r.HostedErrorEntity(c.getCheckoutErrorCode("9003","9013"),"Invalid apiKey parameter.")},c.createUnhandledErrorError=function(){return new r.HostedErrorEntity(c.getCheckoutErrorCode("9004","9014"),"Unhandled error occurred.")},c.createAccountConfigurationError=function(){return new r.HostedErrorEntity("9073","Account not configured correctly.")},c.createInvalidOptionsArgumentError=function(){return new r.HostedErrorEntity(c.getCheckoutErrorCode("9006","9015"),"Invalid options argument.")},c.createInvalidEnvironmentOptionsError=function(){return new r.HostedErrorEntity(c.getCheckoutErrorCode("9007","9017"),"Environment options is not a string neither an object.")},c.createEnvironmentDoesntMatchError=function(e){return new r.HostedErrorEntity(c.getCheckoutErrorCode("9008","9018"),"Environment doesn't match any of the predefined values (possible: TEST, LIVE; actual: "+e+").")},c.createEnvironmentUrlShouldNotBeEmptyStringError=function(){return new r.HostedErrorEntity(c.getCheckoutErrorCode("9009","9019"),"Environment url should be non empty string.")},c.createEnvironmentAssetsUrlShouldNotBeEmptyStringError=function(){return new r.HostedErrorEntity(c.getCheckoutErrorCode("9010","9020"),"Environment assetsUrl should be non empty string.")},c.createInvalidHolderNameError=function(){return new r.HostedErrorEntity("9043","HolderName should be valid.")},c.createInvalidBillingAddressCountryError=function(){return new r.HostedErrorEntity(c.getCheckoutErrorCode("9012","9044"),"BillingAddress country should be valid country code.")},c.createInvalidBillingAddressZipError=function(){return new r.HostedErrorEntity(c.getCheckoutErrorCode("9013","9045"),"BillingAddress zip should be valid zip code.")},c.createInvalidBillingAddressStateError=function(){return new r.HostedErrorEntity(c.getCheckoutErrorCode("9014","9046"),"BillingAddress state should be valid state.")},c.createInvalidBillingAddressCityError=function(){return new r.HostedErrorEntity(c.getCheckoutErrorCode("9015","9047"),"BillingAddress city should be valid city.")},c.createInvalidBillingAddressStreetError=function(){return new r.HostedErrorEntity(c.getCheckoutErrorCode("9017","9048"),"BillingAddress street should be valid street.")},c.createInvalidBillingAddressStreet2Error=function(){return new r.HostedErrorEntity(c.getCheckoutErrorCode("9018","9049"),"BillingAddress street2 should be valid street.")},c.createInvalidBillingAddressUseAsShippingAddressError=function(){return new r.HostedErrorEntity("9183","BillingAddress useAsShippingAddress should be valid boolean.")},c.createInvalidBillingAddress=function(){return new r.HostedErrorEntity(c.getCheckoutErrorCode("9019","9052"),"BillingAddress should be object.")},c.createInvalidShippingAddress=function(){return new r.HostedErrorEntity("9115","ShippingAddress should be an object.")},c.createShippingAddressRecipientName=function(){return new r.HostedErrorEntity("9116","ShippingAddress recipientName should be a valid recipient name.")},c.createInvalidShippingAddressStreetError=function(){return new r.HostedErrorEntity("9117","ShippingAddress street should be a valid street.")},c.createInvalidShippingAddressStreet2Error=function(){return new r.HostedErrorEntity("9118","ShippingAddress street2 should be a valid street.")},c.createInvalidShippingAddressCityError=function(){return new r.HostedErrorEntity("9119","ShippingAddress city should be a valid city.")},c.createInvalidShippingAddressStateError=function(){return new r.HostedErrorEntity(o,"ShippingAddress state should be a valid state.")},c.createInvalidShippingAddressCountryError=function(){return new r.HostedErrorEntity(a,"ShippingAddress country should be a valid country.")},c.createInvalidShippingAddressZipError=function(){return new r.HostedErrorEntity("9122","ShippingAddress zip should be a valid zip code.")},c.createInvalidShippingAddressShipMethodError=function(e){return new r.HostedErrorEntity("9185","ShippingAddress shipMethod doesn't match any of the predefined values.(possible: N, T, C, O, S; actual: "+e+")")},c.createInvalidShippingAddressOperation=function(){return new r.HostedErrorEntity("9186","BillingAddress.useAsShippingAddress and shippingAddress cannot be passed in the same time.")},c.createCustomerVaultError=function(e,t){return"7508"!==e?new r.HostedErrorEntity(e,t):c.createTokenizeInvalidFieldsError([{field:"card number",message:"invalid value"}])},c.createNoResponseFromServerError=function(){var e="No connection to server.";return new r.HostedErrorEntity("9001",e,e)},c.createInvalidResponseError=function(){var e="Error communicating with server.";return new r.HostedErrorEntity("9002",e,e)},c.createTokenizeInvalidFieldsError=function(e){var t="Invalid fields: "+e.map((function(e){return e.field})).toString()+".";return(t=new r.HostedErrorEntity("9003",t,t)).fieldErrors=e,t},c.createEventsShouldBeStringError=function(e){return new r.HostedErrorEntity("9005","Events should be string.",void 0,e)},c.createFieldNotSupportedError=function(e,t){return new r.HostedErrorEntity("9006","Field with name '"+e+"' is not supported.",void 0,t)},c.createFieldNotSupportedForInstanceError=function(e,t){return new r.HostedErrorEntity("9007","Field with name '"+e+"' is not available in this instance.",void 0,t)},c.createMissingEventsError=function(e){return new r.HostedErrorEntity("9008","Missing events configuration.",void 0,e)},c.createEventWithNameNotSupportedError=function(e,t){return new r.HostedErrorEntity("9009","
1Event with name "+e+" is not supported.",void 0,t)},c.createMethodNotSupportedForMultipleFieldsError=function(e){return new r.HostedErrorEntity("9010","Method not supported for multiple fields.",void 0,e)},c.createNoFieldsSpecifiedError=function(e){return new r.HostedErrorEntity("9011","No fields specified, at least one should be present.",void 0,e)},c.createInvalidStyleOptionsError=function(){return new r.HostedErrorEntity("9016","Invalid style options.")},c.createCssSelectorValueNotAnObject=function(e){return new r.HostedErrorEntity("9021","CSS selector value for "+e+" is not an object.")},c.createCssPropertyShouldStringOrNumber=function(e,t){return new r.HostedErrorEntity("9022","The CSS property "+e+"."+t+" should be string or number.")},c.createNoContainerElementFoundError=function(e){return new r.HostedErrorEntity("9023","No container element was found using "+e+" selector.")},c.createMoreThanOneContainerFoundError=function(e){return new r.HostedErrorEntity("9024","More than one container element was found using "+e+" selector.")},c.createSameContainerFoundForError=function(e,t){return new r.HostedErrorEntity("9025","The same container was found for both "+e+" and "+t+".")},c.createMixedExpiryDateConfigurationError=function(){return new r.HostedErrorEntity("9026","Wrong expiry date field configuration! Either expiryDate or both expiryMonth and expiryYear should be set.")},c.createSelectorsShouldBeStringError=function(e){return new r.HostedErrorEntity("9027","Selectors should be string.",void 0,e)},c.createFailedToInitializeIframesError=function(){return new r.HostedErrorEntity("9028","Failed to initialize Paysafe.js iframes.")},c.createPlaceholderShouldBeStringError=function(e){return new r.HostedErrorEntity("9029",e+" placeholder should be string.")},c.createAccessibilityLabelShouldBeStringError=function(e){return new r.HostedErrorEntity("9032",e+" accessibilityLabel should be string.")},c.createAccessibilityErrorMessageShouldBeStringError=function(e){return new r.HostedErrorEntity("9072",e+" accessibilityErrorMessage should be string.")},c.createIframeTitleShouldBeStringError=function(e){return new r.HostedErrorEntity("9097",e+" iframeTitle should be string.")},c.createCardNumberSeparatorShouldBeStringError=function(){return new r.HostedErrorEntity("9030","Card number separator should be string.")},c.createInvalidCardNumberSeparatorError=function(){return new r.HostedErrorEntity("9031","Invalid card number separator.")},c.createInvalidSelectorsConfigurationError=function(){return new r.HostedErrorEntity("9033","Selector should be set either on all fields or on none.")},c.createInvalidThreeDSAmountError=function(){return new r.HostedErrorEntity("9034","ThreeDS amount should be number.")},c.createInvalidThreeDSCurrencyError=function(){return new r.HostedErrorEntity("9035","ThreeDS currency should be valid currency code.")},c.createInvalidThreeDSAccountIdError=function(){return new r.HostedErrorEntity("9036","ThreeDS accountId should be number.")},c.createNoPaResReturnedFromThreeDSError=function(){return new r.HostedErrorEntity("9041")},c.createAbortedAuthenticationError=function(){var e="User aborted authentication.";return new r.HostedErrorEntity("9042",e,e)},c.createInvalidThreeDS=function(){return new r.HostedErrorEntity("9050","ThreeDS should be object.")},c.createInvalidVault=function(){return new r.HostedErrorEntity("9051","Vault should be object.")},c.createInvalidInitializationTimeout=function(){return new r.HostedErrorEntity("9082","initializationTimeout should be number greater than zero.")},c.createInvalidOptionalFieldError=function(e){return new r.HostedErrorEntity("9078","Invalid optional "+e+" parameter.")},c.createInvalidFieldParameterError=function(e,t){return new r.HostedErrorEntity("9079",e+" cannot have "+t+" parameter.")},c.createFailedToPerformBinLookup=function(){return new r.HostedErrorEntity("9102","Failed to perform a BIN lookup request.")},c.createInvalidCompanyNameError=function(){return new r.HostedErrorEntity("9053","Invalid companyName parameter.")},c.createInvalidAmountError=function(){var e=i.UtilsInstance.getSDK()===i.PAYSAFE_CHECKOUT_V2?["9059","Invalid amount parameter."]:["9054","Amount should be a number greater than 0 no longer than 11 characters."];return new r.HostedErrorEntity(e[0],e[1])},c.createInvalidCurrencyError=function(){return new r.HostedErrorEntity(c.getCheckoutErrorCode("9061","9055"),"Invalid currency parameter.")},c.createInvalidDetailsError=function(e){return new r.HostedErrorEntity(c.getCheckoutErrorCode("9062","9056"),"Details should be string no longer than 200 characters.",void 0,e)},c.createInvalidPaymentDetailsError=function(e){return new r.HostedErrorEntity("9037","Payment Details should be string no longer than 100 characters.",void 0,e)},c.createInvalidTitleError=function(e){return new r.HostedErrorEntity(s,"Title should be string no longer than 50 characters.",void 0,e)},c.createInvalidLocaleError=function(){return new r.HostedErrorEntity(c.getCheckoutErrorCode("9063","9057"),"Invalid locale parameter.")},c.createInvalidImageUrlError=function(){return new r.HostedErrorEntity("9058","Invalid imageUrl parameter.")},c.createInvalidAccountsError=function(){return new r.HostedErrorEntity("9059","Accounts should be object.")},c.createInvalidCloseCallbackError=function(e){return new r.HostedErrorEntity(c.getCheckoutErrorCode("9066","9060"),"Close callback should be function.",void 0,e)},c.createInvalidModifySavedCardCallbackError=function(e){return new r.HostedErrorEntity("9098","Event callback should be a function.",void 0,e)},c.createInvalidAccountIdError=function(e){return new r.HostedErrorEntity("9061","Invalid account ID for "+e+".")},c.createInvalidAccountId=function(){return new r.HostedErrorEntity("9101","Invalid accountId parameter.")},c.createCheckoutAlreadyOpenedError=function(){return new r.HostedErrorEntity(c.getCheckoutErrorCode("9068","9062"),"Paysafe Checkout already opened.")},c.createInvalidButtonColorError=function(){return new r.HostedErrorEntity("9063","Invalid buttonColor parameter.")},c.createInvalidButtonLabelError=function(){return new r.HostedErrorEntity("9106","Invalid buttonLabel parameter.")},c.createFailedToInitializeCheckoutError=function(){return new r.HostedErrorEntity(c.getCheckoutErrorCode("9070","9064"),"Failed to initialize Paysafe Checkout iframe.")},c.createInvalidPaymentMethodError=function(e){return new r.HostedErrorEntity("9065","Invalid payment method: "+e+".")},c.createInvalidDisplayPaymentMethodsError=function(){return new r.HostedErrorEntity(c.getCheckoutErrorCode("9072","9094"),"Invalid displayPaymentMethods parameter.")},c.createDuplicatePaymentMethodsError=function(){return new r.HostedErrorEntity(c.getCheckoutErrorCode("9073","9095"),"Duplicate entries in displayPaymentMethods parameter are not allowed.")},c.createDisplayPaymentMethodsNotSupportedError=function(e){return new r.HostedErrorEntity("9096","Your account is not configured for the passed displayPaymentMethods. Supported payment methods: ["+e.join(", ")+"].")},c.createInvalidSingleUseProfileTokenError=function(){return new r.HostedErrorEntity("9107","Invalid singleUseProfileToken parameter.")},c.createInvalidShowSaveCardCheckboxesValue=function(){return new r.HostedErrorEntity("9108","Invalid showSaveCardCheckboxes value.")},c.createInvalidHideAmountValue=function(){return new r.HostedErrorEntity("9109","Invalid hideAmount value.")},c.createThreeDSecureLoadingError=function(){var e="Unable to initiate ThreeDs SDK.";return new r.HostedErrorEntity("9110",e,e)},c.createThreeDSecureMerchantConfigurationError=function(){var e="Invalid merchant configuration setup.";return new r.HostedErrorEntity("9111",e,e)},c.createThreeDSecureVersion2NotEnabled=function(){return new r.HostedErrorEntity("9113","The accountId provided is not enabled for 3DS version 2.")},c.createThreeDSecureChallengeError=function(){var e="Unable to initiate ThreeDs SDK challenge.";return new r.HostedErrorEntity("9114",e,e)},c.createInvalidLabelError=function(){return new r.HostedErrorEntity("9066","Invalid label parameter.")},c.createPaysafeRequestNotInitialized=function(){return new r.HostedErrorEntity("9067","Paysafe Request not initialized.")},c.createInvalidCountryError=function(){return new r.HostedErrorEntity("9068","Invalid country parameter.")},c.createInvalidRequestShippingAddressProvidedError=function(){return new r.HostedErrorEntity("9069","Invalid requestShippingAddress parameter.")},c.createInvalidRequestBillingAddressProvidedError=function(){return new r.HostedErrorEntity("9070","Invalid requestBillingAddress parameter.")},c.createPaysafeRequestAlreadyInitialized=function(){return new r.HostedErrorEntity("9071","Paysafe Request is already initialized.")},c.createInvalidSimulatorParameterError=function(){return new r.HostedErrorEntity("9074","Invalid simulator parameter.")},c.createInvalidPaysafecardConsumerIdParameterError=function(){return new r.HostedErrorEntity("9081","Invalid Paysafecard consumer id parameter.")},c.createInvalidPayPalShippingPreferenceParameterError=function(){return new r.HostedErrorEntity("9123","Invalid PayPal shipping preference parameter.")},c.createCurrencyNotSupportedError=function(e,t){return new r.HostedErrorEntity("9077","Requested currency: ["+e+"] but Supported: ["+t.join(",")+"]")},c.createFailedToLoadAvailablePaymentMethods=function(){return new r.HostedErrorEntity("9084","Failed to load available payment methods.")},c.createNoAvailablePaymentMethodsError=function(){return new r.HostedErrorEntity(c.getCheckoutErrorCode("9101","9085"),"There are no available payment methods for this api key.")},c.createNoBrowserSupportOrNoActiveCardError=function(){var e="The browser does not support the payment methods, the user has no active card in the wallet, or the merchant domain is not val
1idated with Apple.";return new r.HostedErrorEntity("9086",e,e)},c.createUnparseablePaymentDataError=function(){return new r.HostedErrorEntity("9083","There was a problem while parsing Apple Pay payment data. Please try again.")},c.createInvalidApplePaySupportedCountries=function(){return new r.HostedErrorEntity("9153","supportedCountries should be array.")},c.createInvalidApplePaySupportedCountyValues=function(e){return new r.HostedErrorEntity("9154","Invalid country values "+e.join()+". Should be in ISO 3166 format")},c.createInvalidApplePayMerchantCapabilities=function(){return new r.HostedErrorEntity("9165","merchantCapabilities should be an array.")},c.createApplePayMerchantCapabilitiesInvalidValues=function(e,t){return new r.HostedErrorEntity("9166","invalid merchantCapabilities "+e+". supported "+t+".")},c.createInvalidContainerIdError=function(){return new r.HostedErrorEntity("9087","Invalid html element id parameter.")},c.createUnableToShowButtonsError=function(e,t){return t=t||["NONE"],new r.HostedErrorEntity("9088","Unable to show buttons. Requested: ["+(e=e||["NONE"]).join(",")+"] but Supported: ["+t.join(",")+"]")},c.createAppleMerchantValidationError=function(){return new r.HostedErrorEntity("9089","Merchant validation at Apple failed")},c.createInvalidButtonTypeError=function(){return new r.HostedErrorEntity("9091","Invalid buttonType parameter.")},c.createTokenizationCallbackNotProvidedError=function(){return new r.HostedErrorEntity("9092","Tokenization callback is not provided.")},c.createEnvironmentCantBeChangedError=function(){return new r.HostedErrorEntity("9093","Invalid environment. Can not be changed after setting.")},c.createInsecurePageError=function(){return new r.HostedErrorEntity("9080","Insecure page. The page should be served over HTTPS and have a valid certificate.")},c.createInvalidThreshold=function(){return new r.HostedErrorEntity("9099","Invalid threshold parameter.")},c.createUnsupportedCardBrand=function(e){return new r.HostedErrorEntity(u,"Unsupported card brand used: "+e)},c.createPaymentHandleSessionExpired=function(){return new r.HostedErrorEntity("9126","Payment handle session has expired.")},c.createSuphError=function(e){return new r.HostedErrorEntity("9131","Status of the payment handle is "+e)},c.createUnsupportedFunctionCallError=function(){return new r.HostedErrorEntity("9137","Unsupported function call.")},c.createInvalidStatusError=function(){return new r.HostedErrorEntity("9138","Invalid status parameter.")},c.createAbortedPaymentError=function(){return new r.HostedErrorEntity("9152","User aborted payment.")},c.createInstanceMethodIsLockedError=function(e){return new r.HostedErrorEntity("9100","Payment methods are not initialized. Please invoke show() before any operation on the instance.",void 0,e)},c.createAlreadyActiveTokenizationError=function(e){return new r.HostedErrorEntity("9136","Tokenization is already in progress.",void 0,e)},c.createResetCardDetailsNotAvailable=function(e){return new r.HostedErrorEntity("9127","resetCardDetails is available only when card fields are initialized.",void 0,e)},c.createInvalidDeviceChannelError=function(){return new r.HostedErrorEntity("9126","Invalid ThreeDs DeviceChannel value.")},c.createMultiplePaymentMethodsError=function(){return new r.HostedErrorEntity("9131","Failed to launch checkout. Please contact website support for assistance.")},c.createMissingAccountIdsForSharedAPIKeyError=function(){return new r.HostedErrorEntity("9132","Missing accountIds while launching with Shared API Key.")},c.createPaymentHandleStatusError=function(e){return new r.HostedErrorEntity("9140","Payment handle failed with status: "+e)},c.createInvalidThreeDsMerchantUrlError=function(){return new r.HostedErrorEntity(u,"Invalid ThreeDs MerchantUrl value.")},c.createInvalidMessageCategoryError=function(){return new r.HostedErrorEntity("9127","Invalid ThreeDs MessageCategory value.")},c.createInvalidAuthenticationPurposeError=function(){return new r.HostedErrorEntity("9128","Invalid ThreeDs AuthenticationPurpose value.")},c.createInvalidBrowserDetailsError=function(){return new r.HostedErrorEntity("9129","Invalid or missing ThreeDs browserDetails properties.")},c.createInvalidTravelDetailsError=function(){return new r.HostedErrorEntity("9130","Invalid or missing ThreeDs travelDetails properties.")}
1,c.createInvalidCanEditAmountError=function(){return new r.HostedErrorEntity(a,"Invalid canEditAmount value.")},c.createInvalidSkinError=function(){return new r.HostedErrorEntity(o,"Invalid skin value.")},c.createInvalidLiveModeError=function(){return new r.HostedErrorEntity(s,"Invalid liveMode value.")},c.createInvalidSimulatorError=function(){return new r.HostedErrorEntity("9123","Invalid simulator value.")},c.createInvalidCustomerIdError=function(){return new r.HostedErrorEntity("9110","Customer Id should be a valid string.")},c.createInvalidAmountParameter=function(e){return new r.HostedErrorEntity(s,"amount should be a valid value and it should not be less than "+e)},c.createInvalidSkrillEmailSubjectError=function(){return new r.HostedErrorEntity("9093","setupOptions.paymentMethodDetails.skrill.emailSubject should be provided when payout is true.")},c.createInvalidSkrillEmailMessageError=function(){return new r.HostedErrorEntity("9095","setupOptions.paymentMethodDetails.skrill.emailMessage should be provided when payout is true.")},c.createInvalidPayPalRecipientTypeError=function(){return new r.HostedErrorEntity("9096","setupOptions.paymentMethodDetails.paypal.reciepientType should be provided when payout is true.")},c.createInvalidInstantAchEmailSubjectError=function(){return new r.HostedErrorEntity("9092","setupOptions.paymentMethodDetails.instantach.emailSubject should be provided when payout is true.")},c.createInvalidInstantACHPaymentIdParameterError=function(){return new r.HostedErrorEntity("9097","setupOptions.paymentMethodDetails.instantach.paymentId is required when payout is true.")},c.createInvalidInstantAchEmailMessageError=function(){return new r.HostedErrorEntity("9094","setupOptions.paymentMethodDetails.instantach.emailMessage should be provided when payout is true.")},c.createInvalidSightlineSSNParameterError=function(){return new r.HostedErrorEntity("9088","Invalid Sightline ssn parameter.")},c.createInvalidSightlineLast4SSNParameterError=function(){return new r.HostedErrorEntity("9089","Invalid Sightline last4ssn parameter")},c.createInvalidMerchantRefNumberError=function(){return new r.HostedErrorEntity("9122","Invalid merchantRefNum value.")},c.createInvalidAmountConfiguration=function(){return new r.HostedErrorEntity("9060","Cannot have canEditAmount set to false, when no amount is provided.")},c.createInvalidBillingAddressNickNameError=function(){return new r.HostedErrorEntity("9016","BillingAddress nickName should be valid nickName.")},c.createInvalidDynamicDescriptorInMerchantDescriptorError=function(){return new r.HostedErrorEntity("9098","Invalid parameter in merchantDescriptor.dynamicDescriptor")},c.createInvalidPhoneInMerchantDescriptorError=function(){return new r.HostedErrorEntity("9099","Invalid parameter in merchantDescriptor.phone")},c.createInvalidCustomerOptionsError=function(){return new r.HostedErrorEntity("9111","Customer options is not an object.")},c.createInvalidCustomerFirstNameError=function(){return new r.HostedErrorEntity("9112","Customer firstName should be valid.")},c.createInvalidCustomerLastNameError=function(){return new r.HostedErrorEntity("9113","Customer lastName should be valid.")},c.createInvalidCustomerEmailError=function(){return new r.HostedErrorEntity("9119","Customer email should be valid.")},c.createInvalidCustomerDateOfBirthDayError=function(){return new r.HostedErrorEntity("9115","Customer dateOfBirth.day should be valid.")},c.createInvalidCustomerDateOfBirthMonthError=function(){return new r.HostedErrorEntity("9116","Customer dateOfBirth.month should be valid.")},c.createInvalidCustomerDateOfBirthYearError=function(){return new r.HostedErrorEntity("9117","Customer dateOfBirth.year should be valid.")},c.createInvalidCustomerDateOfBirthLimitError=function(){return new r.HostedErrorEntity("9118","Customer dateOfBirth should be less than current date.")},c.createInvalidPayoutType=function(){return new r.HostedErrorEntity(o,"payout should be a boolean.")},c.createInvalidPayoutConfigAmountParameters=function(){return new r.HostedErrorEntity(u,"amount cannot be greater than payoutConfig.maximumAmount")},c.createRequiredPayoutConfigParameter=function(){return new r.HostedErrorEntity(a,"payoutConfig must be provided if payout is passed as true")},c.createInvalidPayoutConfigType=function(){return new r.HostedErrorEntity("9022","payoutConfig should be an object.")},c.createInvalidMaximumAmountParameter=function(e){return new r.HostedErrorEntity("9023","payoutConfig.maximumAmount should be a valid value and it should not be less than "+e)},c.createInvalidAmountOptionsError=function(){return new r.HostedErrorEntity("9133","Invalid Amount Options parameter.")},c.createInvalidAmountOptionsCountError=function(){return new r.HostedErrorEntity("9136","Amount Options must not Exceed 3.")},c.createDuplicateAmountOptionsError=function(){return new r.HostedErrorEntity("9134","Duplicate entries in Amount Options parameter are not allowed.")},c.createDecimalErrorAmountOptionsError=function(){return new r.HostedErrorEntity("9138","Amount Options cannot contain decimal.")},c.createInvalidRangeAmountOptionsError=function(){return new r.HostedErrorEntity("9137","Amount Options must be a number between 1 and 9999.")},c.createInvalidPayPalConsumerMessage=function(){return new r.HostedErrorEntity("9157","PayPal consumerMessage should be a string with a length of less than 165.")},c.createInvalidPayPalOrderDescription=function(){return new r.HostedErrorEntity("9158","PayPal orderDescription should be a string with a length of less than 127.")},c.createInvalidPayPalLanguageError=function(){return new r.HostedErrorEntity("9159","Invalid PayPal language.")},c.createInvalidPayPalRecipientDescriptionError=function(){return new r.HostedErrorEntity("9160","PayPal recipientDescription should be a string with a length of less than 127")},c.createInvalidWebSiteIdError=function(){return new r.HostedErrorEntity(c.getPaymentMethodErrorCode(n.PaymentTypes.Ideal),"Ideal webSiteId should be a valid value and it should not be less than 50")},c.createInvalidConsumerIdParameterError=function(e){return new r.HostedErrorEntity(c.getPaymentMethodErrorCode(e),"Invalid "+e+" consumer id parameter.")},c.createInvalidHostedSessionToken=function(){return new r.HostedErrorEntity("9187","Hosted session token must be alpha numeric and length 16.")},c.createLayoutCollectCustomerDetails=function(){return new r.HostedErrorEntity("9167","Layout collectCustomerDetails should be valid boolean.")},c.createLayoutCollectBillingAddress=function(){return new r.HostedErrorEntity("9168","Layout collectBillingAddress should be valid boolean.")},c.getPaymentMethodErrorCode=function(e){switch(e){case n.PaymentTypes.InteracEtransfer:return"9149";
1case n.PaymentTypes.Pagoefectivo:return"9141";case n.PaymentTypes.Khipu:return"9146";case n.PaymentTypes.BoletoBancario:return"9145";case n.PaymentTypes.SafetyPayCash:return"9147";case n.PaymentTypes.SafetyPayBankTransfer:return"9148";case n.PaymentTypes.Paysafecash:return"9082";case n.PaymentTypes.Paysafecard:return"9081";case n.PaymentTypes.Pix:return"9142";case n.PaymentTypes.Mach:return"9143";case n.PaymentTypes.Spei:return"9144";case n.PaymentTypes.Skrill:return"9083";case n.PaymentTypes.Paypal:return"9084";case n.PaymentTypes.Mazooma:return"9139";case n.PaymentTypes.InstantACH:return"9085";case n.PaymentTypes.Neteller:return"9086";case n.PaymentTypes.VIPPreferred:return"9090";case n.PaymentTypes.Sightline:return"9087";case n.PaymentTypes.Ideal:return"9162";default:return}},c.createInvalidCorrelationId=function(){return new r.HostedErrorEntity("9155","CorrelationId should be uuid string with length of 36")},c.getCheckoutErrorCode=function(e,t){return i.UtilsInstance.getSDK()===i.PAYSAFE_CHECKOUT_V2?e:t},t.h=c}.apply(t,r))&&(e.exports=t)},function(e,t,r){var n=r(5),i=r(30),o=r(10),a=r(8),s=r(37),u=r(57),c=(r=r(29)).get,l=r.enforce,d=String(u).split("toString");i("inspectSource",(function(e){return u.call(e)})),(e.exports=function(e,t,r,i){var u=!!i&&!!i.unsafe,c=!!i&&!!i.enumerable;i=!!i&&!!i.noTargetGet;"function"==typeof r&&("string"!=typeof t||a(r,"name")||o(r,"name",t),l(r).source=d.join("string"==typeof t?t:"")),e===n?c?e[t]=r:s(t,r):(u?!i&&e[t]&&(c=!0):delete e[t],c?e[t]=r:o(e,t,r))})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||u.call(this)}))},function(e,t,r){var n=r(17),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=n(e))<0?i(e+t,0):o(e,t)}},function(e,t){e.exports={}},function(e,t,r){var n=r(34);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){"use strict";var n=r(38),i=r(11),o=r(31);e.exports=function(e,t,r){(t=n(t))in e?i.f(e,t,o(0,r)):e[t]=r}},function(e,t,r){var n=r(6),i=r(18),o=r(2)("species");e.exports=function(e,t){var r;return new(void 0===(r=i(e)&&("function"==typeof(r=e.constructor)&&(r===Array||i(r.prototype))||n(r)&&null===(r=r[o]))?void 0:r)?Array:r)(0===t?0:t)}},function(e,t,r){var n=r(4),i=r(2)("species");e.exports=function(e){return!n((function(){var t=[];return(t.constructor={})[i]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,r){void 0!==(r=function(e,t){"use strict";function r(){}Object.defineProperty(t,"__esModule",{value:!0}),t.generateGUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},t.loadJsFile=function(e,t){return new Promise((function(r,n){var i=document.querySelector('script[src="'+e+'"]'),o=document.getElementsByTagName("head")[0];if(i){if(!t||t())return r(i)}else(i=document.createElement("script")).src=e,o.insertAdjacentElement("afterbegin",i);i.onerror=function(e){return o.removeChild(i),n(e)},i.onload=function(){return r(i)}}))},t.catchUnexpectedError=function(e,t,r){(r=r||window).onerror=function(r,n,i,o,a){return n&&-1<n.indexOf(e)&&(a="object"==typeof a?{message:a.message,errorType:"ERROR",stack:a.stack}:{message:a||r,errorType:"ERROR",source:n,lineNo:i,colNo:o},t(a)),!1},r.addEventListener("unhandledrejection",(function(r){var n=r.reason&&r.reason.stack;r.promise&&n&&-1<n.split(/\r?\n/)[1].indexOf(e)&&(n={message:r.reason.message,errorType:"PROMISE_REJECTION",stack:r.reason.stack},t(n))}),!1)},r.initializeSDK=function(e){r.SDK=e},r.getSDK=function(){return r.SDK},t.UtilsInstance=r,t.PAYSAFE_JS="paysafe.js",t.PAYSAFE_CHECKOUT="paysafe.checkout",t.PAYSAFE_CHECKOUT_V2="paysafe.checkout.V2",t.PAYSAFE_REQUEST="paysafe.request",t.PAYSAFE_JS_TRANSACTION_SOURCE="PaysafeJSV2",t.PAYSAFE_JS_V1_TRANSACTION_SOURCE="PaysafeJSV1",t.PAYSAFE_CHECKOUT_V1_TRANSACTION_SOURCE="CheckoutV1"}.apply(t,[r,t]))&&(e.exports=r)},function(e,t,r){var n,i,o,a,s,u,c,l,d=r(93),f=r(5),p=r(6),h=r(10),y=r(8),g=r(40);r=r(32),f=f.WeakMap;c=d?(n=new f,i=n.get,o=n.has,a=n.set,s=function(e,t){return a.call(n,e,t),t},u=function(e){return i.call(n,e)||{}},function(e){return o.call(n,e)}):(r[l=g("state")]=!0,s=function(e,t){return h(e,l,t),t},u=function(e){return y(e,l)?e[l]:{}},function(e){return y(e,l)}),e.exports={set:s,get:u,has:c,enforce:function(e){return c(e)?u(e):s(e,{})},getterFor:function(e){return function(t){if(p(t)&&(t=u(t)).type===e)return t;throw TypeError("Incompatible receiver, "+e+" required")}}}},function(e,t,r){var n=r(5),i=r(37),o=(r=r(39),"__core-js_shared__"),a=n[o]||i(o,{});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.1.3",mode:r?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports={}},function(e,t,r){var n=r(4),i=r(43),o="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,r){void 0!==(r=function(e,t){"use strict";function r(){}
1Object.defineProperty(t,"__esModule",{value:!0}),r.formatToSize=function(e,t,n,i,o){return e=r.adjustValue(e,t,n,i),{value:r.cutToSize(e,o),offset:t.length}},r.adjustValue=function(e,t,r,n){return e.substr(0,r)+t+e.substr(n)},r.cutToSize=function(e,t){return e.length>t?e.substring(0,t):e},r.count=function(e,t,r,n){for(var i=0,o=r;o<n;++o)e[o]===t&&(i+=1);return i},t.FormatterUtils=r}.apply(t,[r,t]))&&(e.exports=r)},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(5),i=r(10);e.exports=function(e,t){try{i(n,e,t)}catch(r){n[e]=t}return t}},function(e,t,r){var n=r(6);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e))||"function"==typeof(r=e.valueOf)&&!n(i=r.call(e))||!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=!1},function(e,t,r){var n=r(30),i=r(41),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},function(e,t,r){"use strict";function n(){return this}var i=r(1),o=r(100),a=r(64),s=r(65),u=r(49),c=r(10),l=r(21),d=r(2),f=r(39),p=r(23),h=(r=r(63)).IteratorPrototype,y=r.BUGGY_SAFARI_ITERATORS,g=d("iterator"),v="values",E="entries";e.exports=function(e,t,r,d,m,S,I){function A(e){if(e===m&&P)return P;if(!y&&e in b)return b[e];switch(e){case"keys":case v:case E:return function(){return new r(this,e)}}return function(){return new r(this)}}o(r,t,d);d=t+" Iterator";var T,C,D=!1,b=e.prototype,O=b[g]||b["@@iterator"]||m&&b[m],P=!y&&O||A(m),w="Array"==t&&b.entries||O;if(w&&(w=a(w.call(new e)),h!==Object.prototype)&&w.next&&(f||a(w)===h||(s?s(w,h):"function"!=typeof w[g]&&c(w,g,n)),u(w,d,!0,!0),f)&&(p[d]=n),m==v&&O&&O.name!==v&&(D=!0,P=function(){return O.call(this)}),f&&!I||b[g]===P||c(b,g,P),p[t]=P,m)if(T={values:A(v),keys:S?P:A("keys"),entries:A(E)},I)for(C in T)!y&&!D&&C in b||l(b,C,T[C]);else i({target:t,proto:!0,forced:y||D},T);return T}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,r){function n(e){return"function"==typeof e?e:void 0}var i=r(45),o=r(5);e.exports=function(e,t){return arguments.length<2?n(i[e])||n(o[e]):i[e]&&i[e][t]||o[e]&&o[e][t]}},function(e,t,r){e.exports=r(5)},function(e,t,r){function n(e){return function(t,r,n){var s,u=i(t),c=o(u.length),l=a(n,c);if(e&&r!=r){for(;l<c;)if((s=u[l++])!=s)return!0}else for(;l<c;l++)if((e||l in u)&&u[l]===r)return e||l||0;return!e&&-1}}var i=r(15),o=r(3),a=r(22);e.exports={includes:n(!0),indexOf:n(!1)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,r){function n(){}var i=r(14),o=r(103),a=r(47),s=r(32),u=r(105),c=r(59),l=r(40)("IE_PROTO"),d="prototype",f=function(){var e=c("iframe"),t=a.length;for(e.style.display="none",u.appendChild(e),e.src=String("javascript:"),(e=e.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),f=e.F;t--;)delete f[d][a[t]];return f()};e.exports=Object.create||function(e,t){var r;return null!==e?(n[d]=i(e),r=new n,n[d]=null,r[l]=e):r=f(),void 0===t?r:o(r,t)},s[l]=!0},function(e,t,r){var n=r(11).f,i=r(8),o=r(2)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},function(e,t,r){void 0!==(r=function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),(r=t.LogType||(t.LogType={}))[r.ERROR=0]="ERROR",r[r.CONVERSION=1]="CONVERSION",r[r.WARN=2]="WARN",t.LogMessageEntity=function(e,t,r){this.type=e,this.message=t,this.data=r}}.apply(t,[r,t]))&&(e.exports=r)},function(e,t,r){var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};void 0!==(r=function(e,t){"use strict";function r(){}
1Object.defineProperty(t,"__esModule",{value:!0}),r.getPatterns=function(){return r.patterns},r.getCardBrandNameByCardNumber=function(e){return(e=r.getCardBrandValidationPatternByCardValue(e))?e.name:void 0},r.getCardBrandValidationPatternByCardValue=function(e){return(e=r.getCardBrandValidationPatternNameByCardValue(e))?r.patterns[e]:void 0},r.isCardBrandSupportedByMerchant=function(e,t){return e=r.getCardBrandValidationPatternNameByCardValue(e),-1!==t.indexOf(e)},r.getCardBrandValidationPatternByName=function(e){if(e)for(var t in r.patterns)if(r.patterns[t].name===e)return r.patterns[t]},r.getCardNameByAbbreviation=function(e){var t=[],r=this.getCardBrandAndAbbreviationFromPatterns();return Object.keys(e).forEach((function(e){e in r&&t.push(r[e])})),t},r.getCardBrandAndAbbreviationFromPatterns=function(){return Object.keys(r.patterns).reduce((function(e,t){return e[r.patterns[t].abbreviation]=r.patterns[t].name,n({},e)}),{})},r.getCardBrandValidationPatternNameByCardValue=function(e){return r.getCardBrand(e,r.patterns)},r.getCardBrand=function(e,t,n){if(!e||!t)return n;for(var i in t){i=r.patterns[i]?i:t[parseInt(i,10)];var o=r.patterns[i].overridenBy;if((n=new RegExp(r.patterns[i].pattern).test(e)?i:n)&&!o)return n}return o?r.getCardBrand(e,o,n):n},r.patterns={VISA:{name:"Visa",pattern:"^4\\d*$",lengths:[16],codeLength:3,abbreviation:"VI"},MASTERCARD:{name:"MasterCard",pattern:"^(5[1-5]|222[1-8]|2229[0-9]|22[3-9]|2[3-6]|27[01]|2720[0-8]|27209)\\d*$",lengths:[16],codeLength:3,abbreviation:"MC"},AMERICAN_EXPRESS:{name:"American Express",pattern:"^3[47]\\d*$",lengths:[15],codeLength:4,abbreviation:"AM"},DINERS_CLUB:{name:"Diners Club",pattern:"^(3(0([0-5]))|3095|36|38|39)\\d*$",lengths:[14],codeLength:3,abbreviation:"DC"},DISCOVER:{name:"Discover",pattern:"^6(011(0[0-3]|0[5-9]|2|3|4|7[47]|8[6-9]|9)|4[4-9]|5[0-9])\\d*$",lengths:[16,19],codeLength:3,abbreviation:"DI"},JCB:{name:"JCB",pattern:"^3(0(8[89]|9[0-4]|9[6-9])|1(0[0-2]|1[2-9]|20|5[8-9])|3(3[7-9]|34)|5(28|29[0-8]|299|[3-8]))\\d*$",lengths:[16],codeLength:3,abbreviation:"JC"},MAESTRO:{name:"Maestro",pattern:"^(5((0[0-9])|[5-9])|6[0-9])\\d*$",lengths:[12,13,14,15,16,17,18,19],overridenBy:["DINERS_CLUB","DISCOVER","UNIONPAY","JCB"],codeLength:3,abbreviation:"MD"},UNIONPAY:{name:"UnionPay",pattern:"^(624|625|626|628[2-8]|81[0-6]|817[0-1]|62212[6-9]|6221[3-9]|622[2-8]|6229[01]|62292[0-5])\\d*$",lengths:[16,17,18,19],codeLength:3,abbreviation:"UP"}},t.CardValidation=r}.apply(t,[r,t]))&&(e.exports=r)},function(e,t,r){r=[r,t,r(19)],void 0!==(t=function(e,t,r){"use strict";function n(e,t,n,i,o){try{var a,s=new XMLHttpRequest;for(a in s.open(e,t,!0),s.onreadystatechange=function(){4===s.readyState&&i(s.status,s.responseText)},n){var u=n[a];s.setRequestHeader(a,u)}s.timeout=4e4,s.send(r.u.isProvided(o)?o:void 0)}catch(e){e&&/Access is denied/.test(e.message)?i(0,void 0):i(0,JSON.stringify(e))}}Object.defineProperty(t,"__esModule",{value:!0}),(t=t.Ajax||(t.Ajax={})).post=function(e,t,r,i){n("POST",e,r,i,t)},t.get=function(e,t,r){n("GET",e,t,r)},t.sendRequest=n}.apply(t,r))&&(e.exports=t)},function(e,t,r){r=[r,t,r(52),r(160)],void 0!==(t=function(e,t,r,n){"use strict";function i(){}Object.defineProperty(t,"__esModule",{value:!0}),t.TOKENIZE_URI="hosted/api/v1/tokenize",t.AUTHENTICATE_URI="hosted/api/v1/three-d-secure/authentications/",t.HTTP_SUCCESS_CODES=[200,201,202,203,204,205,206,207,208,226],i.send=function(e,t,n,o,a){void 0===a&&(a=i.isCardsResponseValid);var s=i.prepareHeaders(t);s["Content-Type"]="application/json",t.body.clientInfo=i.prepareClientInfo(t),r.Ajax.post(e,JSON.stringify(t.body),s,(function(e,t){return i.handleResponse(e,t,n,o,a)}))},i.get=function(e,t,n,o,a){var s=i.prepareHeaders(t);s.invocationId=t.clientInfo.invocationId,r.Ajax.get(e,s,(function(e,t){return i.handleResponse(e,t,n,o,a)}))},i.handleResponse=function(e,t,r,n,o){if(void 0===o&&(o=function(){return!0}),0!==e||t){var a=void 0;try{a=JSON.parse(t)}catch(e){}i.isStatusNoContent(e)&&!a&&o(a)||i.isStatusSuccessful(e)&&a&&o(a)?n(a,e):a&&a.error&&a.error.code&&a.error.message?r(a.error,void 0,e):r(void 0,t,e)}else r(void 0,void 0,e)},i.prepareHeaders=function(e){return n.AjaxRequestFactory.getAjaxRequest(e.isPaymentHub).prepareHeaders(e)},i.prepareClientInfo=function(e){return n.AjaxRequestFactory.getAjaxRequest(e.isPaymentHub).prepareClientInfo(e)},i.isStatusSuccessful=function(e){return 0<=t.HTTP_SUCCESS_CODES.indexOf(e)},i.isStatusNoContent=function(e){return 204===e},i.isCardsResponseValid=function(e){return e.threeDSecure||e.paymentToken},t.AjaxRequest=i}.apply(t,r))&&(e.exports=t)},function(e,t,r){void 0!==(r=function(e,t){"use strict";function r(){}
1Object.defineProperty(t,"__esModule",{value:!0}),r.prototype.setParams=function(){for(var e=0;e<arguments.length;e++);},r.getInstance=function(){return this.instance=this.instance||new this,this.instance},t.Singleton=r}.apply(t,[r,t]))&&(e.exports=r)},function(e,t,r){void 0!==(r=function(e,t){"use strict";function r(){}Object.defineProperty(t,"__esModule",{value:!0}),r.applyStyle=function(e){var t,n=r.createStyleSheet(),i=(n.disabled=!0,0);for(t in e){var o=r.convertToString(t,e[t]),a=n;a.insertRule?(a.insertRule(t+"{"+o+"}",i),i++):!r.isSelectorMediaQuery(t)&&a.addRule&&(a.addRule(t,o,i),i++)}return n.disabled=!1,n},r.createStyleSheet=function(){var e=document.createStyleSheet?document.createStyleSheet():(e=document.createElement("style"),document.getElementsByTagName("head")[0].appendChild(e),e.sheet);return e},r.convertToString=function(e,t){return r.isSelectorMediaQuery(e)?r.convertMediaQueryToString(t):r.convertCssPropertiesToString(t)},r.convertMediaQueryToString=function(e){var t,n="";for(t in e)n+=t+"{"+r.convertCssPropertiesToString(e[t])+"}";return n},r.convertCssPropertiesToString=function(e){var t,r="";for(t in e)r+=t+":"+e[t]+";";return r},r.isSelectorMediaQuery=function(e){return-1!==e.indexOf("@media")},t.StyleHelper=r}.apply(t,[r,t]))&&(e.exports=r)},function(e,t,r){"use strict";var n=r(92).charAt,i=r(29),o=(r=r(42),"String Iterator"),a=i.set,s=i.getterFor(o);r(String,"String",(function(e){a(this,{type:o,string:String(e),index:0})}),(function(){var e=s(this),t=e.string,r=e.index;return r>=t.length?{value:void 0,done:!0}:(t=n(t,r),e.index+=t.length,{value:t,done:!1})}))},function(e,t,r){r=r(30),e.exports=r("native-function-to-string",Function.toString)},function(e,t,r){var n=r(13),i=r(4),o=r(59);e.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(e,t,r){var n=r(5),i=(r=r(6),n.document),o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,r){var n=r(13),i=r(95),o=r(31),a=r(15),s=r(38),u=r(8),c=r(58),l=Object.getOwnPropertyDescriptor;t.f=n?l:function(e,t){if(e=a(e),t=s(t,!0),c)try{return l(e,t)}catch(e){}if(u(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,r){var n=r(8),i=r(15),o=r(46).indexOf,a=r(32);e.exports=function(e,t){var r,s=i(e),u=0,c=[];for(r in s)!n(a,r)&&n(s,r)&&c.push(r);for(;t.length>u;)!n(s,r=t[u++])||~o(c,r)||c.push(r);return c}},function(e,t,r){function n(e,t){return(e=s[a(e)])==c||e!=u&&("function"==typeof t?i(t):!!t)}var i=r(4),o=/#|\.prototype\./,a=n.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=n.data={},u=n.NATIVE="N",c=n.POLYFILL="P";e.exports=n},function(e,t,r){"use strict";var n,i,o=r(64),a=r(10),s=r(8),u=r(2),c=(r=r(39),u=u("iterator"),!1);[].keys&&("next"in(i=[].keys())?(o=o(o(i)))!==Object.prototype&&(n=o):c=!0),null==n&&(n={}),r||s(n,u)||a(n,u,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:c}},function(e,t,r){var n=r(8),i=r(7),o=r(40),a=(r=r(101),o("IE_PROTO")),s=Object.prototype;e.exports=r?Object.getPrototypeOf:function(e){return e=i(e),n(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,r){var n=r(14),i=r(106);
1e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(r){}return function(r,o){return n(r),i(o),t?e.call(r,o):r.__proto__=o,r}}():void 0)},function(e,t,r){var n=r(14);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){throw void 0!==(i=e.return)&&n(i.call(e)),t}}},function(e,t,r){var n=r(2),i=r(23),o=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},function(e,t,r){var n=r(69),i=r(23),o=r(2)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[n(e)]}},function(e,t,r){var n=r(43),i=r(2)("toStringTag"),o="Arguments"==n(function(){return arguments}());e.exports=function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=Object(e),i))?t:o?n(e):"Object"==(t=n(e))&&"function"==typeof e.callee?"Arguments":t}},function(e,t,r){var n=r(2)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},e(o)}catch(e){}return r}},function(e,t,r){"use strict";var n=r(18),i=r(3),o=r(24);e.exports=function e(t,r,a,s,u,c,l,d){for(var f,p=u,h=0,y=!!l&&o(l,d,3);h<s;){if(h in a){if(f=y?y(a[h],h,r):a[h],0<c&&n(f))p=e(t,r,f,i(f.length),p,c-1)-1;else{if(9007199254740991<=p)throw TypeError("Exceed the acceptable array length");t[p]=f}p++}h++}return p}},function(e,t,r){"use strict";var n=r(15),i=r(12),o=r(23),a=r(29),s=(r=r(42),"Array Iterator"),u=a.set,c=a.getterFor(s);e.exports=r(Array,"Array",(function(e,t){u(this,{type:s,target:n(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?{value:e.target=void 0,done:!0}:"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,r){function n(e){return function(t,r,n,u){i(r);var c=o(t),l=a(c),d=s(c.length),f=e?d-1:0,p=e?-1:1;if(n<2)for(;;){if(f in l){u=l[f],f+=p;break}if(f+=p,e?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;e?0<=f:f<d;f+=p)f in l&&(u=r(u,l[f],f,c));return u}}var i=r(34),o=r(7),a=r(33),s=r(3);e.exports={left:n(!1),right:n(!0)}},function(e,t,r){"use strict";var n=r(44),i=r(11),o=r(2),a=r(13),s=o("species");e.exports=function(e){e=n(e);var t=i.f;a&&e&&!e[s]&&t(e,s,{configurable:!0,get:function(){return this}})}},function(e,t,r){function n(e){s(e,l,{value:{objectID:"O"+ ++d,weakData:{}}})}var i=r(32),o=r(6),a=r(8),s=r(11).f,u=r(41),c=r(143),l=u("meta"),d=0,f=Object.isExtensible||function(){return!0},p=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,l)){if(!f(e))return"F";if(!t)return"E";n(e)}return e[l].objectID},getWeakData:function(e,t){if(!a(e,l)){if(!f(e))return!0;if(!t)return!1;n(e)}return e[l].weakData},onFreeze:function(e){return c&&p.REQUIRED&&f(e)&&!a(e,l)&&n(e),e}};i[l]=!0},function(e,t,r){function n(e,t){this.stopped=e,this.result=t}var i=r(14),o=r(67),a=r(3),s=r(24),u=r(68),c=r(66);(e.exports=function(e,t,r,l,d){var f,p,h,y,g,v=s(t,r,l?2:1);if(d)f=e;else{if("function"!=typeof(t=u(e)))throw TypeError("Target is not iterable");if(o(t)){for(p=0,h=a(e.length);p<h;p++)if((y=l?v(i(g=e[p])[0],g[1]):v(e[p]))&&y instanceof n)return y;return new n(!1)}f=t.call(e)}for(;!(g=f.next()).done;)if((y=c(f,v,g.value,l))&&y instanceof n)return y;return new n(!1)}).stop=function(e){return new n(!0,e)}},function(e,t){e.exports=function(e,t,r){if(e instanceof t)return e;throw TypeError("Incorrect "+(r?r+" ":"")+"invocation")}},function(e,t,r){var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};r=[r,t,r(50)];void 0!==(t=function(e,t,r){"use strict";function i(){}
1Object.defineProperty(t,"__esModule",{value:!0}),i.createNoPaResFromAcsMessage=function(){return new r.LogMessageEntity(r.LogType.CONVERSION,"No paRes returned from the 3DS page.")},i.createTokenizeFunctionCallMessage=function(){return new r.LogMessageEntity(r.LogType.CONVERSION,"Tokenize function call.")},i.createPaymentHandleTokenizationFunctionCallMessage=function(){return new r.LogMessageEntity(r.LogType.CONVERSION,"Payment Handle Tokenize function call.")},i.createTokenizeWith3dsFunctionCallMessage=function(){return new r.LogMessageEntity(r.LogType.CONVERSION,"Tokenize function call with 3DS.")},i.createReceivedTokenMessage=function(){return new r.LogMessageEntity(r.LogType.CONVERSION,"Successful receiving of payment token.")},i.createSuccessfulRedirectToAcsServerMessage=function(){return new r.LogMessageEntity(r.LogType.CONVERSION,"Successful redirect to ACS server page.")},i.createSuccessfulReceivingOfPaResMessage=function(){return new r.LogMessageEntity(r.LogType.CONVERSION,"Successful receiving of paRes from ACS server.")},i.createUnhandledErrorMessage=function(e){return new r.LogMessageEntity(r.LogType.ERROR,"Unhandled error occurred."+e)},i.createParsingResponseErrorMessage=function(e){return new r.LogMessageEntity(r.LogType.ERROR,"Error parsing response: "+e)},i.createSuccessfulReceivingOfDetailsConfiguration=function(e){return new r.LogMessageEntity(r.LogType.CONVERSION,"Payment method and saved cards configuration was successfully loaded for "+e+" ms")},i.createFailToReceiveDetails=function(e){return new r.LogMessageEntity(r.LogType.WARN,"Fail to load saved cards and payment methods for "+e+" ms")},i.createSuccessfulReceivingOfPaymentMethodConfiguration=function(e){return new r.LogMessageEntity(r.LogType.CONVERSION,"Payment method configuration was successfully loaded for "+e+" ms")},i.createFailedToReceivePaymentMethodConfiguration=function(e){return new r.LogMessageEntity(r.LogType.CONVERSION,"Payment method configuration failed to load for "+e+" ms")},i.createSuccessfulReceivingOfDeviceFingerprintingConfiguration=function(){return new r.LogMessageEntity(r.LogType.CONVERSION,"Device fingerprinting configuration was successfully loaded.")},i.createFailedToReceiveDeviceFingerprintingConfiguration=function(){return new r.LogMessageEntity(r.LogType.CONVERSION,"Device fingerprinting configuration failed to load.")},i.createAutofillEvent=function(){return new r.LogMessageEntity(r.LogType.CONVERSION,"Autofill detected for card details.")},i.createPaymentMethodForCurrencyNotFound=function(e){return new r.LogMessageEntity(r.LogType.ERROR,"Unable to find a payment method configuration for currency: "+e)},i.createInvalidMerchantConfigurationAccount=function(e){return new r.LogMessageEntity(r.LogType.ERROR,"Merchant configuration for accountId: "+e+" is invalid")},i.createFailedToLoadMerchantConfiguration=function(e){return new r.LogMessageEntity(r.LogType.ERROR,"Failed to load merchant configuration",e)},i.createFailedToLoadAvailablePaymentMethods=function(e){return new r.LogMessageEntity(r.LogType.ERROR,"Failed to load available payment methods",e)},i.createInvalidPaymentMethodAccount=function(e,t){return new r.LogMessageEntity(r.LogType.ERROR,"Payment method for "+t+" accountId: "+e+" is invalid")},i.createSetupFunctionInvokationMessage=function(e,t){return new r.LogMessageEntity(r.LogType.CONVERSION,"Invocation of hosted fields setup with id: "+e+" and version: "+t)},i.createUnexpectedFramesSetErrorMessage=function(e,t){return new r.LogMessageEntity(r.LogType.ERROR,"Expected to find "+e+" fields but found "+t)},i.createAllFieldsInitializedMessage=function(){return new r.LogMessageEntity(r.LogType.CONVERSION,"All fields initialized.")},i.createHostedFieldsInitializeTimeoutPassedError=function(){return new r.LogMessageEntity(r.LogType.ERROR,"Hosted fields setup failed! One or more iFrames didn't initialize.")},i.createMultipleTokenizeFunctionInvokationMessage=function(){return new r.LogMessageEntity(r.LogType.WARN,"Multiple invocation of tokenize function.")},i.createFailedToPerformBinLookupMessage=function(){return new r.LogMessageEntity(r.LogType.ER
1ROR,"Failed to perform a BIN lookup request.")},i.createCheckoutFunctionInvocationMessage=function(){return new r.LogMessageEntity(r.LogType.CONVERSION,"Invocation of paysafe checkout setup.")},i.createCheckoutIframeInitializedMessage=function(){return new r.LogMessageEntity(r.LogType.CONVERSION,"Checkout iframe initialized.")},i.createSuccessfulUpdateSavedCardMessage=function(){return new r.LogMessageEntity(r.LogType.CONVERSION,"Successful update of saved card.")},i.createSuccessfulDeleteSavedCardMessage=function(){return new r.LogMessageEntity(r.LogType.CONVERSION,"Successful delete of saved card.")},i.createSuccessfulReceivedTokenForSavedCardMessage=function(){return new r.LogMessageEntity(r.LogType.CONVERSION,"Successful receiving of payment token for saved card.")},i.createFailedToUpdateSavedCardMessage=function(){return new r.LogMessageEntity(r.LogType.ERROR,"Failed to update saved card.")},i.createFailedToDeleteSavedCardMessage=function(){return new r.LogMessageEntity(r.LogType.ERROR,"Failed to delete saved card.")},i.createFailedToReceiveTokenForSavedCardMessage=function(){return new r.LogMessageEntity(r.LogType.ERROR,"Failed to receive payment token for saved card.")},i.createRequestInitFunctionInvocationMessage=function(){return new r.LogMessageEntity(r.LogType.CONVERSION,"Invocation of paysafe request init function.")},i.createRequestCanMakePaymentFunctionInvocationMessage=function(){return new r.LogMessageEntity(r.LogType.CONVERSION,"Invocation of paysafe request canMakePayment function.")},i.createRequestUpdateFunctionInvocationMessage=function(){return new r.LogMessageEntity(r.LogType.CONVERSION,"Invocation of paysafe request update function.")},i.createSuccessfulCreationOfButtonMessage=function(e){return new r.LogMessageEntity(r.LogType.CONVERSION,"Successful creation of "+e+" button.")},i.createCompletedValidationMessage=function(){return new r.LogMessageEntity(r.LogType.CONVERSION,"Completed merchant session validation.")},i.createFailedToCompleteValidationMessage=function(e){return new r.LogMessageEntity(r.LogType.WARN,"Failed to complete merchant session validation."+(e=e?" "+e:""))},i.createThreeDSecureSdkLoadingFailed=function(e,t){var n="Unable to load 3DS SDK.";return e&&t&&(n+=" 3DS SDK thrown an error: ("+e+") - "+t),new r.LogMessageEntity(r.LogType.ERROR,n)},i.createThreeDSecureSdkChallengeError=function(e,t){return new r.LogMessageEntity(r.LogType.ERROR,"Unsuccessful 3DS challenge. 3DS SDK thrown an error: ("+e+") - "+t)},i.createAbortedAuthenticationError=function(){return new r.LogMessageEntity(r.LogType.WARN,"User aborted authentication.")},i.createUnhandledJsError=function(e){return new r.LogMessageEntity(r.LogType.ERROR,n({},e))},i.createOptionsMessage=function(e,t){return new r.LogMessageEntity(r.LogType.CONVERSION,"Options object passed on "+e+": "+JSON.stringify(t))},i.createInvalidNetellerConfiguration=function(e){return i.sendInvalidApmConfiguration("neteller",e)},i.createInvalidSkrillConfiguration=function(e){return i.sendInvalidApmConfiguration("skrill",e)},i.createInvalidPaypalConfiguration=function(e){return i.sendInvalidApmConfiguration("Paypal",e)},i.createInvalidPaysafeCardConfiguration=function(e){return i.sendInvalidApmConfiguration("paysafecard",e)},i.createInvalidPaysafeCashConfiguration=function(e){return i.sendInvalidApmConfiguration("paysafecash",e)},i.createInvalidSightlineConfiguration=function(e){return i.sendInvalidApmConfiguration("sightline",e)},i.createInvalidVippreferredConfiguration=function(e){return i.sendInvalidApmConfiguration("vippreferred",e)},i.createInvalidInstantAchConfiguration=function(e){return new r.LogMessageEntity(r.LogType.ERROR,"No instantach config was passed in SDK Configurationparameter setupOptions.paymentMethodDetails.instantach. However the payment methodhas been configured in Smart Routing Payments Methods API.",e)},i.createApplePayLoadedMessage=function(e,t){return new r.LogMessageEntity(r.LogType.CONVERSION,"Is AppplePay supported: "+e+". ApplePay paymentMethod: "+JSON.stringify(t))},i.createFailedToLoadCheckoutConfig=function(e){return new r.LogMessageEntity(r.LogType.ER
1ROR,"Failed to initialize Checkout, due to failed loading of config.",e)},i.createNoAvailablePaymentMethods=function(){return new r.LogMessageEntity(r.LogType.ERROR,"There are no available payment methods for this api key.")},i.createMissingAccountIdsForSharedAPIKey=function(){return new r.LogMessageEntity(r.LogType.ERROR,"Missing accountIds while launching with Shared API Key.")},i.createMultiplePaymentMethodsError=function(e){return new r.LogMessageEntity(r.LogType.ERROR,"Duplicate payment method/s for the same currency with different account ids. Merchant should provide specific account id for "+e+" to continue.")},i.createCollectingBillingAddress=function(e){return new r.LogMessageEntity(r.LogType.CONVERSION,"Collecting Billing Address for "+e+" flow.")},i.createCollectingCustomerContacts=function(e){return new r.LogMessageEntity(r.LogType.CONVERSION,"Collecting Customer Contacts for "+e+" flow.")},i.createPrefillingBillingAddress=function(e){return new r.LogMessageEntity(r.LogType.CONVERSION,"Prefilling Billing Address",e)},i.createPrefillingCustomerContacts=function(e){return new r.LogMessageEntity(r.LogType.CONVERSION,"Prefilling Customer Contacts",e)},i.createCollectedBillingAddress=function(e){return new r.LogMessageEntity(r.LogType.CONVERSION,"Collected Billing Address",e)},i.createCollectedCustomerContacts=function(e){return new r.LogMessageEntity(r.LogType.CONVERSION,"Collected Customer Contacts",e)},i.sendInvalidApmConfiguration=function(e,t){return new r.LogMessageEntity(r.LogType.ERROR,"No consumerId was passed in SDK Configuration parameter setupOptions.paymentMethodDetails."+e+".consumerId, however the payment Method has been configured in Smart Routing Payments Methods API.",{paymentMethodDetails:t})},t.LogMessage=i}.apply(t,r))&&(e.exports=t)},function(e,t,r){r=[r,t,r(19),r(20),r(151)],void 0!==(t=function(e,t,r,n,i){"use strict";function o(){}Object.defineProperty(t,"__esModule",{value:!0}),o.authenticationPurposeValues=["PAYMENT_TRANSACTION","RECURRING_TRANSACTION","INSTALMENT_TRANSACTION","ADD_CARD","MAINTAIN_CARD","EMV_TOKEN_VERIFICATION"],o.messageCategoryValues=["PAYMENT","NON_PAYMENT"],o.requestorChallengePreferenceValues=["NO_PREFERENCE","CHALLENGE_REQUESTED","CHALLENGE_MANDATED"],o.transactionIntentValues=["GOODS_OR_SERVICE_PURCHASE","CHECK_ACCEPTANCE","ACCOUNT_FUNDING","QUASI_CASH_TRANSACTION","PREPAID_ACTIVATION"],o.preOrderPurchaseIndicatorValues=["MERCHANDISE_AVAILABLE","FUTURE_AVAILABILITY"],o.reorderItemsIndicatorValues=["FIRST_TIME_ORDER","REORDER"],o.shippingIndicatorValues=["SHIP_TO_BILLING_ADDRESS","SHIP_TO_VERIFIED_ADDRESS","SHIP_TO_DIFFERENT_ADDRESS","SHIP_TO_STORE","DIGITAL_GOODS","TRAVEL_AND_EVENT_TICKETS","OTHER"],o.validObjectMessage="should be object",o.validBooleanMessage="should be a valid boolean",o.validDateMessage="should be a valid ISO 8601 date format YYYY-MM-DD",o.validateOptions=function(e){if(r.u.isProvided(e))return o.runValidations(e)},o.runValidations=function(e){var t;return r.u.isObject(e)?(t=new Array,r.u.isOptionalBoolean(e.useThreeDSecureVersion2)||t.push({field:"threeDS.useThreeDSecureVersion2",message:o.validBooleanMessage}),r.u.isOptionalBoolean(e.force3DS1)||t.push({field:"threeDS.force3DS1",message:o.validBooleanMessage}),r.u.isProvided(e.authenticationPurpose)&&!o.isAuthenticationPurposeValid(e.authenticationPurpose)&&t.push({field:"threeDS.authenticationPurpose",message:"doesn't match any of the predefined values (possible: INSTALMENT_TRANSACTION, PAYMENT_TRANSACTION; actual: "+e.authenticationPurpose+")"}),t.push.apply(t,o.runMaxAuthorizationsForInstalmentPaymentValidation(e)),t.push.apply(t,o.runBillingCycleValidation(e)),t.push.apply(t,o.runElectronicDeliveryValidation(e.electronicDelivery)),t.push.apply(t,o.runProfileValidation(e)),r.u.isProvided(e.messageCategory)&&!o.isMessageCategoryValid(e.messageCategory)&&t.push({field:"threeDS.messageCategory",message:"doesn't match any of the predefined values (possible: PAYMENT, NON_PAYMENT; actual: "+e.messageCategory+")"}),r.u.isProvided(e.requestorChallengePreference)&&!o.isRequestorChallengePreferenceValid(e.requestorChallengePreference)&&t.push({field:"threeDS.requestorChallengePreference",message:"doesn't match any of the predefined values (possible: NO_PREFERENCE, CHALLENGE_REQUESTED, CHALLENGE_MANDATED; actual: "+e.requestorChallengePreference+")"}),r.u.isProvided(e.transactionIntent)&&!o.isTransactionIntentValid(e.transactionIntent)&&t.push({field:"threeDS.transactionIntent",message:"doesn't match any of the predefined values (possible: GOODS_OR_SERVICE_PURCHASE, CHECK_ACCEPTANCE, ACCOUNT_FUNDING, QUASI_CASH_TRANSACTION, PREPAID_ACTIVATION; actual: "+e.transactionIntent+")"}),t.push.apply(t,o.runInitialPurchaseTimeValidation(e)),t.push.apply(t,o.runOrderItemDetailsValidation(e)),t.push.apply(t,o.runPurchasedGiftCardDetail
1sValidation(e)),r.u.isProvided(e.userAccountDetails)&&t.push.apply(t,i.ThreeDSv2UserValidation.runUserAccountDetails(e.userAccountDetails)),0<t.length?n.h.createTokenizeInvalidFieldsError(t):void 0):n.h.createInvalidThreeDS()},o.runElectronicDeliveryValidation=function(e){var t=new Array;return r.u.isProvided(e)&&(r.u.isObject(e)?(r.u.isProvided(e.email)&&!r.u.isEmailValid(e.email)&&t.push({field:"threeDS.electronicDelivery.email",message:"should be a valid email"}),r.u.isOptionalBoolean(e.isElectronicDelivery)||t.push({field:"threeDS.electronicDelivery.isElectronicDelivery",message:o.validBooleanMessage})):t.push({field:"threeDS.electronicDelivery",message:o.validObjectMessage})),t},o.runProfileValidation=function(e){var t=new Array;return r.u.isProvided(e.profile)&&(r.u.isObject(e.profile)?(r.u.isProvided(e.profile.email)&&!r.u.isEmailValid(e.profile.email)&&t.push({field:"threeDS.profile.email",message:"should be a valid email"}),r.u.isProvided(e.profile.cellPhone)&&r.u.isStringInvalid(e.profile.cellPhone,40)&&t.push({field:"threeDS.profile.cellPhone",message:"size must be between 0 and 40"}),r.u.isProvided(e.profile.phone)&&r.u.isStringInvalid(e.profile.phone,40)&&t.push({field:"threeDS.profile.phone",message:"size must be between 0 and 40"})):t.push({field:"threeDS.profile",message:o.validObjectMessage})),t},o.isInstalmentTransaction=function(e){return o.isAuthenticationPurposeValid(e)&&"INSTALMENT_TRANSACTION"===e},o.isMaxAuthorizationsForInstalmentPaymentValid=function(e){return r.u.isNumberInRange(e,1,999)},o.isAuthenticationPurposeValid=function(e){return r.u.containsString(o.authenticationPurposeValues,e)},o.isMessageCategoryValid=function(e){return r.u.containsString(o.messageCategoryValues,e)},o.isRequestorChallengePreferenceValid=function(e){return r.u.containsString(o.requestorChallengePreferenceValues,e)},o.isTransactionIntentValid=function(e){return r.u.containsString(o.transactionIntentValues,e)},o.runOrderItemDetailsValidation=function(e){var t=new Array;return r.u.isProvided(e.orderItemDetails)&&(r.u.isObject(e.orderItemDetails)?(r.u.isOptionalDateValid(e.orderItemDetails.preOrderItemAvailabilityDate)||t.push({field:"threeDS.orderItemDetails.preOrderItemAvailabilityDate",message:o.validDateMessage}),r.u.isOptionalArrayElement(o.preOrderPurchaseIndicatorValues,e.orderItemDetails.preOrderPurchaseIndicator)||t.push({field:"threeDS.orderItemDetails.preOrderPurchaseIndicator",message:"doesn't match any of the predefined values (possible: MERCHANDISE_AVAILABLE, FUTURE_AVAILABILITY; actual: "+e.orderItemDetails.preOrderPurchaseIndicator+")"}),r.u.isOptionalArrayElement(o.reorderItemsIndicatorValues,e.orderItemDetails.reorderItemsIndicator)||t.push({field:"threeDS.orderItemDetails.reorderItemsIndicator",message:"doesn't match any of the predefined values (possible: FIRST_TIME_ORDER, REORDER; actual: "+e.orderItemDetails.reorderItemsIndicator+")"}),r.u.isOptionalArrayElement(o.shippingIndicatorValues,e.orderItemDetails.shippingIndicator)||t.push({field:"threeDS.orderItemDetails.shippingIndicator",message:"doesn't match any of the predefined values (possible: SHIP_TO_BILLING_ADDRESS, SHIP_TO_VERIFIED_ADDRESS, SHIP_TO_DIFFERENT_ADDRESS, SHIP_TO_STORE, DIGITAL_GOODS, TRAVEL_AND_EVENT_TICKETS, OTHER; actual: "+e.orderItemDetails.shippingIndicator+")"})):t.push({field:"threeDS.orderItemDetails",message:o.validObjectMessage})),t},o.runPurchasedGiftCardDetailsValidation=function(e){var t=new Array;return r.u.isProvided(e.purchasedGiftCardDetails)&&(r.u.isObject(e.purchasedGiftCardDetails)?(r.u.isProvided(e.purchasedGiftCardDetails.amount)&&!r.u.isNumberInRange(e.purchasedGiftCardDetails.amount,0,99999999999)&&t.push({field:"threeDS.purchasedGiftCardDetails.amount",message:"has to be a number between 0 and 99999999999"}),r.u.isProvided(e.purchasedGiftCardDetails.count)&&!r.u.isNumberInRange(e.purchasedGiftCardDetails.count,0,99)&&t.push({field:"threeDS.purchasedGiftCardDetails.count",message:"has to be a number between 0 and 99"}),r.u.isProvided(e.purchasedGiftCardDetails.currency)&&!r.u.isCurrencyValid(e.purchasedGiftCardDetail
1s.currency)&&t.push({field:"threeDS.purchasedGiftCardDetails.currency",message:"should be a valid currency"})):t.push({field:"threeDS.purchasedGiftCardDetails",message:o.validObjectMessage})),t},o.runBillingCycleValidation=function(e){var t=new Array;return o.isInstalmentTransaction(e.authenticationPurpose)&&!r.u.isObject(e.billingCycle)&&t.push({field:"threeDS.billingCycle",message:"required when authenticationPurpose is INSTALMENT_TRANSACTION"}),o.isInstalmentTransaction(e.authenticationPurpose)&&r.u.isObject(e.billingCycle)&&!r.u.isOptionalDateValid(e.billingCycle.endDate)&&t.push({field:"threeDS.billingCycle.endDate",message:o.validDateMessage}),o.isInstalmentTransaction(e.authenticationPurpose)&&r.u.isObject(e.billingCycle)&&!o.isFrequencyValid(e.billingCycle.frequency)&&t.push({field:"threeDS.billingCycle.frequency",message:"has to be a number between 0 and 9999"}),o.isInstalmentTransaction(e.authenticationPurpose)||!r.u.isObject(e.billingCycle)||r.u.isDateValid(e.billingCycle.endDate)||t.push({field:"threeDS.billingCycle.endDate",message:o.validDateMessage}),!o.isInstalmentTransaction(e.authenticationPurpose)&&r.u.isObject(e.billingCycle)&&r.u.isProvided(e.billingCycle.frequency)&&!o.isFrequencyValid(e.billingCycle.frequency)&&t.push({field:"threeDS.billingCycle.frequency",message:"has to be a number between 0 and 9999"}),t},o.runInitialPurchaseTimeValidation=function(e){var t=new Array;return o.isInstalmentTransaction(e.authenticationPurpose)&&o.isMessageNonPayment(e.messageCategory)&&!r.u.isProvided(e.initialPurchaseTime)&&t.push({field:"threeDS.initialPurchaseTime",message:"required when authenticationPurpose is INSTALMENT_TRANSACTION and messageCategory is NON_PAYMENT"}),r.u.isDateTimeValid(e.initialPurchaseTime)||t.push({field:"threeDS.initialPurchaseTime",message:"should be a valid ISO 8601 date time format, i.e., YYYY-MM-DDTHH:MM:SSZ"}),t},o.runMaxAuthorizationsForInstalmentPaymentValidation=function(e){var t=new Array;return o.isInstalmentTransaction(e.authenticationPurpose)&&!r.u.isProvided(e.maxAuthorizationsForInstalmentPayment)&&t.push({field:"threeDS.maxAuthorizationsForInstalmentPayment",message:"required when authenticationPurpose is INSTALMENT_TRANSACTION"}),r.u.isProvided(e.maxAuthorizationsForInstalmentPayment)&&!o.isMaxAuthorizationsForInstalmentPaymentValid(e.maxAuthorizationsForInstalmentPayment)&&t.push({field:"threeDS.maxAuthorizationsForInstalmentPayment",message:"has to be a number between 1 and 999"}),t},o.isFrequencyValid=function(e){return r.u.isNumberInRange(e,0,9999)},o.isMessageNonPayment=function(e){return o.isMessageCategoryValid(e)&&"NON_PAYMENT"===e},t.ThreeDSv2Validation=o}.apply(t,r))&&(e.exports=t)},function(e,t,r){void 0!==(r=function(e,t){"use strict";function r(e,t,r,n){void 0===t&&(t="There was an error ("+e+"), please contact our support."),void 0===r&&(r="There was an error ("+e+"), please contact our support."),this.code=e,this.detailedMessage=t,this.displayMessage=r,this.correlationId=n,this.name="HostedErrorEntity",this.message=this.displayMessage}Object.defineProperty(t,"__esModule",{value:!0}),r.prototype.toString=function(){return JSON.stringify(this)},t.HostedErrorEntity=r}.apply(t,[r,t]))&&(e.exports=r)},function(e,t,r){void 0!==(r=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(t=t.PaymentTypes||(t.PaymentTypes={})).InteracEtransfer="InteracEtransfer",t.Pagoefectivo="Pagoefectivo",t.Khipu="Khipu",t.BoletoBancario="BoletoBancario",t.SafetyPayCash="SafetyPayCash",t.SafetyPayBankTransfer="SafetyPayBankTransfer",t.Paysafecash="Paysafecash",t.Paysafecard="Paysafecard",t.Pix="Pix",t.Mach="Mach",t.Spei="Spei",t.Skrill="Skrill",t.Paypal="Paypal",t.Mazooma="Mazooma",t.InstantACH="Instant ACH",t.Neteller="Neteller",t.VIPPreferred="VIP Preferred",t.Sightline="Sightline",t.Ideal="Ideal"}.apply(t,[r,t]))&&(e.exports=r)},function(e,t,r){r=[r,t,r(19),r(20)],void 0!==(t=function(e,t,r,n){"use strict";var i;function o(e){if(!r.u.isString(e)&&!r.u.isObject(e))throw n.h.createInvalidEnvironmentOptionsError();if(r.u.isString(e)&&"TEST"!==e&&"LIVE"!==e)throw n.h.createEnvironmentDoesntMatchError(e)}function a(e){if("string"==typeof e&&i[e])return i[e];if(r.u.isObject(e)){var t,n=e;for(t in n){var o=n[t];"/"!==o.charAt(o.length-1)&&(n[t]+="/")}return e}return i.LIVE}
1Object.defineProperty(t,"__esModule",{value:!0}),t=t.Environment||(t.Environment={}),i={LIVE:{assetsUrl:"https://hosted.paysafe.com/",url:"https://api.paysafe.com/"},TEST:{assetsUrl:"https://hosted.test.paysafe.com/",url:"https://api.test.paysafe.com/"}},t.LIVE=i.LIVE,t.validate=function(e){if(r.u.isProvided(e)&&(o(e),r.u.isObject(e))){if(!r.u.isString(e.url)||0===e.url.length)throw n.h.createEnvironmentUrlShouldNotBeEmptyStringError();if(!r.u.isString(e.assetsUrl)||0===e.assetsUrl.length)throw n.h.createEnvironmentAssetsUrlShouldNotBeEmptyStringError()}},t.validateRequest=function(e){if(r.u.isProvided(e)&&(o(e),r.u.isObject(e))&&(!r.u.isString(e.url)||0===e.url.length))throw n.h.createEnvironmentUrlShouldNotBeEmptyStringError()},t.resolveEnvironmentUrl=function(e){return a(e).url},t.unresolveEnvironmentUrl=function(e){for(var t in i)if(i[t].url===e)return t;return e},t.resolveAssetsUrl=function(e){return a(e).assetsUrl},t.resolveInternalUrl=function(e){return e||window.location.protocol+"//"+window.location.host+"/"}}.apply(t,r))&&(e.exports=t)},function(e,t,r){r=[r,t,r(28),r(159)],void 0!==(t=function(e,t,r,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),a.prototype.send=function(e,t,n,i){return this.sendId(r.generateGUID(),e,t,n,i)},a.prototype.on=function(e,t,r){n.EventSubscriber.add(e,t,r,n.SubscriptionType.Single)},a.prototype.subscribe=function(e,t,r){n.EventSubscriber.add(e,t,r,n.SubscriptionType.Permanent)},a.prototype.unsubscribeForAllEvents=function(e){n.EventSubscriber.removeFrameReference(e)},a.prototype.sendId=function(e,t,r,n,i){if(n={message:n,event:t,replyEvent:i?this.subscribeReplier(e,r,i):void 0},r)try{return r.postMessage(JSON.stringify(n),"*"),!0}catch(e){console.log("Error sending message: "+e)}return!1},a.prototype.subscribeReplier=function(e,t,r){var i=this;return this.on(e,t,(function o(a){r(a,i.prepareReply(t,e)),n.EventSubscriber.remove(e,t,o)})),e},a.prototype.onMessage=function(e){var t={};try{t=JSON.parse(e.data)}catch(e){return}for(var r=t.event,i=t.message,o=(t=t.replyEvent,e.source),a=this.prepareReply(o,t),s=0,u=n.EventSubscriber.get(r,o);s<u.length;s++){var c=u[s],l=c.callback;l.call(null,i,a),c.type===n.SubscriptionType.Single&&n.EventSubscriber.remove(r,o,l)}},a.prototype.addEventListener=function(){function e(e){n.EventSubscriber.isKnownSource(e.source)&&t.onMessage.call(t,e)}var t=this;window.addEventListener?window.addEventListener("message",e,!1):window.attachEvent?window.attachEvent("onmessage",e):null===window.onmessage&&(window.onmessage=e)},a.prototype.prepareReply=function(e,t){var r=this;return t?function(n,i){return r.sendId(t,t,e,n,i)}:void 0};var i,o=a;function a(){this.addEventListener()}t.Communication=o,t.getCommunication=function(){return i=i||new o}}.apply(t,r))&&(e.exports=t)},function(e,t,r){r=[r,t,r(55)],void 0!==(t=function(e,t,r){"use strict";function n(){}Object.defineProperty(t,"__esModule",{value:!0}),n.prototype.isDeviceIos=function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)},n.prototype.appendElement=function(e){var t=document.getElementsByTagName("html")[0];t.insertBefore(e,t.firstChild)},n.prototype.resolveIosStyles=function(){this.savePosition(),this.bodyStyle=r.StyleHelper.applyStyle({"html body":{position:"fixed !important",transform:"translate3d(-"+this.leftPosition+"px,-"+this.topPosition+"px,0px) !important",right:"0 !important",left:"0 !important"}}).ownerNode},n.prototype.removeBodyStyles=function(){this.bodyStyle.parentNode.removeChild(this.bodyStyle)},n.prototype.scrollToDefaultPosition=function(){window.scrollTo(this.leftPosition,this.topPosition)},n.prototype.registerForTouchStartEvent=function(){document.addEventListener("touchstart",{})},n.prototype.savePosition=function(){this.leftPosition=document.body.scrollLeft,this.topPosition=document.body.scrollTop};var i=new n;t.iosHelper=i}.apply(t,r))&&(e.exports=t)},function(e,t,r){r=[r,t,r(52),r(50)],void 0!==(t=function(e,t,r,n){"use strict";function i(){}Object.defineProperty(t,"__esModule",{value:!0}),i.log=function(e,t){var o=t.environmentUrl+i.PREFIX_MAPPING[t.clientInfo.appName]+i.LOGGING_URI;e=i.prepareLogRequest(n.LogType[e.type].toLowerCase(),t.clientInfo,e),t=i.prepareHeaders(t.clientInfo.correlationId);r.Ajax.post(o,e,t,(function(){}))},i.prepareLogRequest=function(e,t,r){return e={type:e,clientInfo:t,payload:{message:r.message,data:r.data}},JSON.stringify(new Array(e))},i.prepareHeaders=function(e){return{correlationId:e,"Content-Type":"application/json; charset=utf-8"}},i.PREFIX_MAPPING={"paysafe.js":"js/","paysafe.checkout":"checkout/","paysafe.request":"request/","paysafe.checkout.V2":"checkout/"},i.LOGGING_URI="api/v1/log",t.Logger=i}.apply(t,r))&&(e.exports=t)},function(e,t,r){r=[r,t,r(87),r(53)],void 0!==(t=function(e,t,r,n){"use strict";function i(){}
1Object.defineProperty(t,"__esModule",{value:!0}),i.authenticate=function(e){return i.sendAuthentication(e,i.AUTHENTICATE_3DS_V2_URI)},i.authenticateSavedCard=function(e){return i.sendAuthentication(e,i.AUTHENTICATE_SAVE_CARD_3DS_V2_URI)},i.sendAuthentication=function(e,t){var o=e.environmentUrl+i.PREFIX_MAPPING[e.clientInfo.appName]+t,a={apiKey:e.apiKey,clientInfo:e.clientInfo,body:e.authenticationRequest};return new Promise((function(e,t){n.AjaxRequest.send(o,a,(function(e,n,i){t(r.ErrorHandler.handleBackendError(e,n,i))}),(function(t){e(t.paymentToken)}))}))},i.PREFIX_MAPPING={"paysafe.js":"js/","paysafe.checkout":"checkout/"},i.AUTHENTICATE_3DS_V2_URI="api/v1/three-d-secure/authentications",i.AUTHENTICATE_SAVE_CARD_3DS_V2_URI="api/v1/card/three-d-secure/authentications",t.AuthenticationHandler=i}.apply(t,r))&&(e.exports=t)},function(e,t,r){r=[r,t,r(20)],void 0!==(t=function(e,t,r){"use strict";function n(){}Object.defineProperty(t,"__esModule",{value:!0}),n.handleBackendError=function(e,t,r){return e&&n.ERROR_CODES_MAPPING[e.code]?{hostedError:n.ERROR_CODES_MAPPING[e.code]()}:{customerVaultError:e,originalData:t,status:r}},n.ERROR_CODES_MAPPING={5e3:r.h.createInvalidApiKeyError,5275:r.h.createInvalidApiKeyError,5276:r.h.createInvalidApiKeyError,5277:r.h.createInvalidApiKeyError,5278:r.h.createInvalidApiKeyError,5279:r.h.createInvalidApiKeyError,5280:r.h.createInvalidApiKeyError,5001:r.h.createInvalidCurrencyError,5003:r.h.createInvalidAmountError,5010:r.h.createInvalidCountryError},t.ErrorHandler=n}.apply(t,r))&&(e.exports=t)},function(e,t,r){r=[r,t,r(87),r(53)],void 0!==(t=function(e,t,r,n){"use strict";function i(){}Object.defineProperty(t,"__esModule",{value:!0}),i.tokenizeWithoutThreeDS=function(e){return i.tokenize(e,i.TOKENIZE_URI)},i.tokenizeSavedCardWithoutThreeDS=function(e){return i.tokenize(e,i.TOKENIZE_SAVED_CARD_URI)},i.tokenizeWithThreeDS=function(e,t){return i.tokenizeThreeDS(e,t,i.TOKENIZE_3DS_V2_URI)},i.tokenizeSavedCardWithThreeDS=function(e,t){return i.tokenizeThreeDS(e,t,i.TOKENIZE_SAVED_CARD_3DS_V2_URI)},i.createRequestData=function(e){return{apiKey:e.apiKey,clientInfo:e.clientInfo,body:e.tokenizeRequest}},i.tokenize=function(e,t){delete e.tokenizeRequest.threeDSecure,e.tokenizeRequest.useThreeDSecureVersion2=!0;var r=e.environment+i.PREFIX_MAPPING[e.clientInfo.appName]+t,o=i.createRequestData(e);return new Promise((function(e,t){n.AjaxRequest.send(r,o,(function(e,r,n){t({customerVaultError:e,originalData:r,status:n})}),(function(t){e(t.paymentToken)}))}))},i.tokenizeThreeDS=function(e,t,o){e.tokenizeRequest.threeDSecure.deviceFingerprintingId=t;var a=e.environment+i.PREFIX_MAPPING[e.clientInfo.appName]+o,s=i.createRequestData(e);return new Promise((function(e,t){n.AjaxRequest.send(a,s,(function(e,n,i){t(r.ErrorHandler.handleBackendError(e,n,i))}),(function(t){e(t)}))}))},i.PREFIX_MAPPING={"paysafe.js":"js/","paysafe.checkout":"checkout/"},i.TOKENIZE_3DS_V2_URI="api/v1/three-d-secure/tokenize",i.TOKENIZE_SAVED_CARD_3DS_V2_URI="api/v1/card/three-d-secure/tokenize",i.TOKENIZE_URI="api/v1/tokenize",i.TOKENIZE_SAVED_CARD_URI="api/v1/card/tokenize",t.TokenizationHandler=i}.apply(t,r))&&(e.exports=t)},function(e,t,r){r(90),e.exports=r(167)},function(e,t,r){"use strict";r.r(t),r(91),r(140)},function(e,t,r){r(56),r(107),r(109),r(110),r(111),r(112),r(114),r(115),r(117),r(118),r(119),r(120),r(121),r(122),r(124),r(125),r(72),r(126),r(127),r(129),r(130),r(131),r(132),r(133),r(134),r(135),r(136),r(137),r(138),r(139),r=r(45),e.exports=r.Array},function(e,t,r){function n(e){return function(t,r){t=String(o(t)),r=i(r);var n,a=t.length;return r<0||a<=r?e?"":void 0:(n=t.charCodeAt(r))<55296||56319<n||r+1===a||(a=t.charCodeAt(r+1))<56320||57343<a?e?t.charAt(r):n:e?t.slice(r,r+2):a-56320+(n-55296<<10)+65536}}var i=r(17),o=r(36);e.exports={codeAt:n(!1),charAt:n(!0)}},function(e,t,r){var n=r(5);r=r(57),n=n.WeakMap;e.exports="function"==typeof n&&/native code/.test(r.call(n))},function(e,t){var r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);t.f=o?function(e){return!!(e=i(this,e))&&e.enumerable}:n},function(e,t,r){var n=r(8),i=r(97),o=r(60),a=r(11);e.exports=function(e,t){for(var r=i(t),s=a.f,u=o.f,c=0;c<r.length;c++){var l=r[c];n(e,l)||s(e,l,u(t,l))}}},function(e,t,r){var n=r(44),i=r(98),o=r(99),a=r(14);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?t.concat(r(e)):t}},function(e,t,r){var n=r(61),i=r(47).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){"use strict";function n(){return this}var i=r(63).IteratorPrototype,o=r(48),a=r(31),s=r(49),u=r(23);e.exports=function(e,t,r){return t+=" Iterator",e.prototype=o(i,{next:a(1,r)}),s(e,t,!1,!0),u[t]=n,e}},function(e,t,r){r=r(4),e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,r){r=r(4),e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))}
1,function(e,t,r){var n=r(13),i=r(11),o=r(14),a=r(104);e.exports=n?Object.defineProperties:function(e,t){o(e);for(var r,n=a(t),s=n.length,u=0;u<s;)i.f(e,r=n[u++],t[r]);return e}},function(e,t,r){var n=r(61),i=r(47);e.exports=Object.keys||function(e){return n(e,i)}},function(e,t,r){r=r(44),e.exports=r("document","documentElement")},function(e,t,r){var n=r(6);e.exports=function(e){if(n(e)||null===e)return e;throw TypeError("Can't set "+String(e)+" as a prototype")}},function(e,t,r){var n=r(1),i=r(108);n({target:"Array",stat:!0,forced:!r(70)((function(e){Array.from(e)}))},{from:i})},function(e,t,r){"use strict";var n=r(24),i=r(7),o=r(66),a=r(67),s=r(3),u=r(25),c=r(68);e.exports=function(e){var t,r,l,d,f=i(e),p=(e="function"==typeof this?this:Array,arguments.length),h=1<p?arguments[1]:void 0,y=void 0!==h,g=0,v=c(f);if(y&&(h=n(h,2<p?arguments[2]:void 0,2)),null==v||e==Array&&a(v))for(r=new e(t=s(f.length));g<t;g++)u(r,g,y?h(f[g],g):f[g]);else for(d=v.call(f),r=new e;!(l=d.next()).done;g++)u(r,g,y?o(d,h,[l.value,g],!0):l.value);return r.length=g,r}},function(e,t,r){r(1)({target:"Array",stat:!0},{isArray:r(18)})},function(e,t,r){"use strict";var n=r(1),i=r(4),o=r(25);n({target:"Array",stat:!0,forced:i((function(){function e(){}return!(Array.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,r=new("function"==typeof this?this:Array)(t);e<t;)o(r,e,arguments[e++]);return r.length=t,r}})},function(e,t,r){"use strict";var n=r(1),i=r(4),o=r(18),a=r(6),s=r(7),u=r(3),c=r(25),l=r(26),d=r(27),f=r(2)("isConcatSpreadable"),p=9007199254740991,h="Maximum allowed index exceeded";r=!i((function(){var e=[];return e[f]=!1,e.concat()[0]!==e})),i=d("concat");n({target:"Array",proto:!0,forced:!r||!i},{concat:function(e){for(var t,r,n,i,d,y=s(this),g=l(y,0),v=0,E=-1,m=arguments.length;E<m;E++)if(d=void 0,a(i=n=-1===E?y:arguments[E])&&(void 0!==(d=i[f])?d:o(i))){if(r=u(n.length),p<v+r)throw TypeError(h);for(t=0;t<r;t++,v++)t in n&&c(g,v,n[t])}else{if(p<=v)throw TypeError(h);c(g,v++,n)}return g.length=v,g}})},function(e,t,r){var n=r(1),i=r(113);r=r(12);n({target:"Array",proto:!0},{copyWithin:i}),r("copyWithin")},function(e,t,r){"use strict";var n=r(7),i=r(22),o=r(3),a=Math.min;e.exports=[].copyWithin||function(e,t){var r=n(this),s=o(r.length),u=i(e,s),c=i(t,s),l=a((void 0===(e=2<arguments.length?arguments[2]:void 0)?s:i(e,s))-c,s-u),d=1;for(c<u&&u<c+l&&(d=-1,c+=l-1,u+=l-1);0<l--;)c in r?r[u]=r[c]:delete r[u],u+=d,c+=d;return r}},function(e,t,r){"use strict";var n=r(1),i=r(16).every;n({target:"Array",proto:!0,forced:r(9)("every")},{every:function(e){return i(this,e,1<arguments.length?arguments[1]:void 0)}})},function(e,t,r){var n=r(1),i=r(116);r=r(12);n({target:"Array",proto:!0},{fill:i}),r("fill")},function(e,t,r){"use strict";var n=r(7),i=r(22),o=r(3);e.exports=function(e){for(var t,r=n(this),a=o(r.length),s=i(1<(t=arguments.length)?arguments[1]:void 0,a),u=void 0===(t=2<t?arguments[2]:void 0)?a:i(t,a);s<u;)r[s++]=e;return r}},function(e,t,r){"use strict";var n=r(1),i=r(16).filter;n({target:"Array",proto:!0,forced:!r(27)("filter")},{filter:function(e){return i(this,e,1<arguments.length?arguments[1]:void 0)}})},function(e,t,r){"use strict";var n=r(1),i=r(16).find,o=(r=r(12),"find"),a=!0;o in[]&&Array(1)[o]((function(){a=!1})),n({target:"Array",proto:!0,forced:a},{find:function(e){return i(this,e,1<arguments.length?arguments[1]:void 0)}}),r(o)},function(e,t,r){"use strict";var n=r(1),i=r(16).findIndex,o=(r=r(12),"findIndex"),a=!0;o in[]&&Array(1)[o]((function(){a=!1})),n({target:"Array",proto:!0,forced:a},{findIndex:function(e){return i(this,e,1<arguments.length?arguments[1]:void 0)}}),r(o)},function(e,t,r){"use strict";var n=r(1),i=r(71),o=r(7),a=r(3),s=r(17),u=r(26);n({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=o(this),r=a(t.length),n=u(t,0);return n.length=i(n,t,t,r,0,void 0===e?1:s(e)),n}})},function(e,t,r){"use strict";var n=r(1),i=r(71),o=r(7),a=r(3),s=r(34),u=r(26);n({target:"Array",proto:!0},{flatMap:function(e){var t,r=o(this),n=a(r.length);return s(e),(t=u(r,0)).length=i(t,r,r,n,0,1,e,1<arguments.length?arguments[1]:void 0),t}})},function(e,t,r){"use strict";var n=r(1);r=r(123);n({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},function(e,t,r){"use strict";
1var n=r(16).forEach;r=r(9);e.exports=r("forEach")?function(e){return n(this,e,1<arguments.length?arguments[1]:void 0)}:[].forEach},function(e,t,r){"use strict";var n=r(1),i=r(46).includes;r=r(12);n({target:"Array",proto:!0},{includes:function(e){return i(this,e,1<arguments.length?arguments[1]:void 0)}}),r("includes")},function(e,t,r){"use strict";var n=r(1),i=r(46).indexOf,o=(r=r(9),[].indexOf),a=!!o&&1/[1].indexOf(1,-0)<0;r=r("indexOf");n({target:"Array",proto:!0,forced:a||r},{indexOf:function(e){return a?o.apply(this,arguments)||0:i(this,e,1<arguments.length?arguments[1]:void 0)}})},function(e,t,r){"use strict";var n=r(1),i=r(33),o=r(15),a=(r=r(9),[].join);i=i!=Object,r=r("join",",");n({target:"Array",proto:!0,forced:i||r},{join:function(e){return a.call(o(this),void 0===e?",":e)}})},function(e,t,r){r(1)({target:"Array",proto:!0,forced:(r=r(128))!==[].lastIndexOf},{lastIndexOf:r})},function(e,t,r){"use strict";var n=r(15),i=r(17),o=r(3),a=(r=r(9),Math.min),s=[].lastIndexOf,u=!!s&&1/[1].lastIndexOf(1,-0)<0;r=r("lastIndexOf");e.exports=u||r?function(e){if(u)return s.apply(this,arguments)||0;var t=n(this),r=o(t.length),c=r-1;for((c=1<arguments.length?a(c,i(arguments[1])):c)<0&&(c=r+c);0<=c;c--)if(c in t&&t[c]===e)return c||0;return-1}:s},function(e,t,r){"use strict";var n=r(1),i=r(16).map;n({target:"Array",proto:!0,forced:!r(27)("map")},{map:function(e){return i(this,e,1<arguments.length?arguments[1]:void 0)}})},function(e,t,r){"use strict";var n=r(1),i=r(73).left;n({target:"Array",proto:!0,forced:r(9)("reduce")},{reduce:function(e){return i(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}})},function(e,t,r){"use strict";var n=r(1),i=r(73).right;n({target:"Array",proto:!0,forced:r(9)("reduceRight")},{reduceRight:function(e){return i(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}})},function(e,t,r){"use strict";var n=r(1),i=r(18),o=[].reverse;r=[1,2];n({target:"Array",proto:!0,forced:String(r)===String(r.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),o.call(this)}})},function(e,t,r){"use strict";var n=r(1),i=r(6),o=r(18),a=r(22),s=r(3),u=r(15),c=r(25),l=r(27),d=r(2)("species"),f=[].slice,p=Math.max;n({target:"Array",proto:!0,forced:!l("slice")},{slice:function(e,t){var r,n,l,h=u(this),y=s(h.length),g=a(e,y),v=a(void 0===t?y:t,y);if(o(h)&&((r="function"==typeof(r=h.constructor)&&(r===Array||o(r.prototype))||i(r)&&null===(r=r[d])?void 0:r)===Array||void 0===r))return f.call(h,g,v);for(n=new(void 0===r?Array:r)(p(v-g,0)),l=0;g<v;g++,l++)g in h&&c(n,l,h[g]);return n.length=l,n}})},function(e,t,r){"use strict";var n=r(1),i=r(16).some;n({target:"Array",proto:!0,forced:r(9)("some")},{some:function(e){return i(this,e,1<arguments.length?arguments[1]:void 0)}})},function(e,t,r){"use strict";var n=r(1),i=r(34),o=r(7),a=r(4),s=(r=r(9),[].sort),u=[1,2,3],c=a((function(){u.sort(void 0)}));a=a((function(){u.sort(null)})),r=r("sort");n({target:"Array",proto:!0,forced:c||!a||r},{sort:function(e){return void 0===e?s.call(o(this)):s.call(o(this),i(e))}})},function(e,t,r){r(74)("Array")},function(e,t,r){"use strict";var n=r(1),i=r(22),o=r(17),a=r(3),s=r(7),u=r(26),c=r(25),l=(r=r(27),Math.max),d=Math.min;n({target:"Array",proto:!0,forced:!r("splice")},{splice:function(e,t){var r,n,f,p,h,y,g=s(this),v=a(g.length),E=i(e,v);if(0===(e=arguments.length)?r=n=0:n=1===e?(r=0,v-E):(r=e-2,d(l(o(t),0),v-E)),9007199254740991<v+r-n)throw TypeError("Maximum allowed length exceeded");for(f=u(g,n),p=0;p<n;p++)(h=E+p)in g&&c(f,p,g[h]);if(r<(f.length=n)){for(p=E;p<v-n;p++)y=p+r,(h=p+n)in g?g[y]=g[h]:delete g[y];for(p=v;v-n+r<p;p--)delete g[p-1]}else if(n<r)for(p=v-n;E<p;p--)y=p+r-1,(h=p+n-1)in g?g[y]=g[h]:delete g[y];for(p=0;p<r;p++)g[p+E]=arguments[p+2];return g.length=v-n+r,f}})},function(e,t,r){r(12)("flat")},function(e,t,r){r(12)("flatMap")},function(e,t,r){r(141),r(147),r(56),r(149),r=r(45),e.exports=r.Map},function(e,t,r){"use strict";var n=r(142);r=r(145);e.exports=n("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r,!0)},function(e,t,r){"use strict";var n=r(1),i=r(5),o=r(62),a=r(21),s=r(75),u=r(76),c=r(77),l=r(6),d=r(4),f=r(70),p=r(49),h=r(144);e.exports=function(e,t,r,y,g){function v(e){var t=C[e];a(C,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(g&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!l(e))&&t.call(this,0===e?0:e)}:function(e,r){return t.call(this,0===e?0:e,r),this})}var E,m,S,I,A,T=i[e],C=T&&T.prototype,D=T,b=y?"set":"add",O={};
1return o(e,"function"!=typeof T||!(g||C.forEach&&!d((function(){(new T).entries().next()}))))?(D=r.getConstructor(t,e,y,b),s.REQUIRED=!0):o(e,!0)&&(m=(E=new D)[b](g?{}:-0,1)!=E,S=d((function(){E.has(1)})),I=f((function(e){new T(e)})),A=!g&&d((function(){for(var e=new T,t=5;t--;)e[b](t,t);return!e.has(-0)})),I||(((D=t((function(t,r){return c(t,D,e),t=h(new T,t,D),null!=r&&u(r,t[b],t,y),t}))).prototype=C).constructor=D),(S||A)&&(v("delete"),v("has"),y)&&v("get"),(A||m)&&v(b),g)&&C.clear&&delete C.clear,n({global:!0,forced:(O[e]=D)!=T},O),p(D,e),g||r.setStrong(D,e,y),D}},function(e,t,r){r=r(4),e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,r){var n=r(6),i=r(65);e.exports=function(e,t,r){return i&&"function"==typeof(t=t.constructor)&&t!==r&&n(t=t.prototype)&&t!==r.prototype&&i(e,t),e}},function(e,t,r){"use strict";var n=r(11).f,i=r(48),o=r(146),a=r(24),s=r(77),u=r(76),c=r(42),l=r(74),d=r(13),f=r(75).fastKey,p=(r=r(29)).set,h=r.getterFor;e.exports={getConstructor:function(e,t,r,c){function l(e,t,r){var n,i=v(e),o=y(e,t);return o?o.value=r:(i.last=o={index:n=f(t,!0),key:t,value:r,previous:t=i.last,next:void 0,removed:!1},i.first||(i.first=o),t&&(t.next=o),d?i.size++:e.size++,"F"!==n&&(i.index[n]=o)),e}function y(e,t){e=v(e);var r,n=f(t);if("F"!==n)return e.index[n];for(r=e.first;r;r=r.next)if(r.key==t)return r}var g=e((function(e,n){s(e,g,t),p(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),d||(e.size=0),null!=n&&u(n,e[c],e,r)})),v=h(t);return o(g.prototype,{clear:function(){for(var e=v(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,d?e.size=0:this.size=0},delete:function(e){var t,r,n=v(this);return(e=y(this,e))&&(t=e.next,r=e.previous,delete n.index[e.index],e.removed=!0,r&&(r.next=t),t&&(t.previous=r),n.first==e&&(n.first=t),n.last==e&&(n.last=r),d?n.size--:this.size--),!!e},forEach:function(e){for(var t,r=v(this),n=a(e,1<arguments.length?arguments[1]:void 0,3);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),o(g.prototype,r?{get:function(e){return(e=y(this,e))&&e.value},set:function(e,t){return l(this,0===e?0:e,t)}}:{add:function(e){return l(this,e=0===e?0:e,e)}}),d&&n(g.prototype,"size",{get:function(){return v(this).size}}),g},setStrong:function(e,t,r){var n=t+" Iterator",i=h(t),o=h(n);c(e,t,(function(e,t){p(this,{type:n,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:{value:e.target=void 0,done:!0}}),r?"entries":"values",!r,!0),l(t)}}},function(e,t,r){var n=r(21);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},function(e,t,r){var n=r(21),i=(r=r(148),Object.prototype);r!==i.toString&&n(i,"toString",r,{unsafe:!0})},function(e,t,r){"use strict";var n=r(69),i={};i[r(2)("toStringTag")]="z",e.exports="[object z]"!==String(i)?function(){return"[object "+n(this)+"]"}:i.toString},function(e,t,r){var n,i=r(5),o=r(150),a=r(72),s=r(10),u=(r=r(2))("iterator"),c=r("toStringTag"),l=a.values;for(n in o){var d=i[n],f=d&&d.prototype;if(f){if(f[u]!==l)try{s(f,u,l)}catch(e){f[u]=l}if(f[c]||s(f,c,n),o[n])for(var p in a)if(f[p]!==a[p])try{s(f,p,a[p])}catch(e){f[p]=a[p]}}}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,r){r=[r,t,r(19),r(79)],void 0!==(t=function(e,t,r,n){"use strict";function i(){}
1Object.defineProperty(t,"__esModule",{value:!0}),i.changedRangeValues=["DURING_TRANSACTION","LESS_THAN_THIRTY_DAYS","THIRTY_TO_SIXTY_DAYS","MORE_THAN_SIXTY_DAYS"],i.createdRangeValues=["NO_ACCOUNT","DURING_TRANSACTION","LESS_THAN_THIRTY_DAYS","THIRTY_TO_SIXTY_DAYS","MORE_THAN_SIXTY_DAYS"],i.passwordChangedRangeValues=["NO_CHANGE","DURING_TRANSACTION","LESS_THAN_THIRTY_DAYS","THIRTY_TO_SIXTY_DAYS","MORE_THAN_SIXTY_DAYS"],i.initialUsageRangeValues=["CURRENT_TRANSACTION","LESS_THAN_THIRTY_DAYS","THIRTY_TO_SIXTY_DAYS","MORE_THAN_SIXTY_DAYS"],i.authentionMethodValues=["NO_LOGIN","INTERNAL_CREDENTIALS","FEDERATED_ID","ISSUER_CREDENTIALS","THIRD_PARTY_AUTHENTICATION","FIDO_AUTHENTICATOR"],i.threeDsAuthenticationMethods=["FRICTIONLESS_AUTHENTICATION","ACS_CHALLENGE","AVS_VERIFIED","OTHER_ISSUER_METHOD"],i.validRangeMessage="must be greater than or equal to 0 and less than or equal to 999",i.runUserAccountDetails=function(e){var t=new Array;return r.u.isObject(e)?(r.u.isOptionalNumberInRange(e.addCardAttemptsForLastDay,0,999)||t.push({field:"threeDS.userAccountDetails.addCardAttemptsForLastDay",message:i.validRangeMessage}),r.u.isOptionalDateValid(e.changedDate)||t.push({field:"threeDS.userAccountDetails.changedDate",message:n.ThreeDSv2Validation.validDateMessage}),r.u.isOptionalArrayElement(i.changedRangeValues,e.changedRange)||t.push({field:"threeDS.userAccountDetails.changedRange",message:"doesn't match any of the predefined values (possible: DURING_TRANSACTION, LESS_THAN_THIRTY_DAYS, THIRTY_TO_SIXTY_DAYS, MORE_THAN_SIXTY_DAYS; actual: "+e.changedRange+")"}),r.u.isOptionalDateValid(e.createdDate)||t.push({field:"threeDS.userAccountDetails.createdDate",message:n.ThreeDSv2Validation.validDateMessage}),r.u.isOptionalArrayElement(i.createdRangeValues,e.createdRange)||t.push({field:"threeDS.userAccountDetails.createdRange",message:"doesn't match any of the predefined values (possible: DURING_TRANSACTION, LESS_THAN_THIRTY_DAYS, THIRTY_TO_SIXTY_DAYS, MORE_THAN_SIXTY_DAYS; actual: "+e.createdRange+")"}),r.u.isOptionalDateValid(e.passwordChangedDate)||t.push({field:"threeDS.userAccountDetails.passwordChangedDate",message:n.ThreeDSv2Validation.validDateMessage}),r.u.isOptionalArrayElement(i.passwordChangedRangeValues,e.passwordChangedRange)||t.push({field:"threeDS.userAccountDetails.passwordChangedRange",message:"doesn't match any of the predefined values (possible: NO_CHANGE, DURING_TRANSACTION, LESS_THAN_THIRTY_DAYS, THIRTY_TO_SIXTY_DAYS, MORE_THAN_SIXTY_DAYS; actual: "+e.passwordChangedRange+")"}),r.u.isOptionalNumberInRange(e.totalPurchasesSixMonthCount,0,9999)||t.push({field:"threeDS.userAccountDetails.totalPurchasesSixMonthCount",message:"must be greater than or equal to 0 and less than or equal to 9999"}),r.u.isOptionalNumberInRange(e.transactionCountForPreviousDay,0,999)||t.push({field:"threeDS.userAccountDetails.transactionCountForPreviousDay",message:i.validRangeMessage}),r.u.isOptionalNumberInRange(e.transactionCountForPreviousYear,0,999)||t.push({field:"threeDS.userAccountDetails.transactionCountForPreviousYear",message:i.validRangeMessage}),r.u.isOptionalBoolean(e.suspiciousAccountActivity)||t.push({field:"threeDS.userAccountDetails.suspiciousAccountActivity",message:n.ThreeDSv2Validation.validBooleanMessage}),t.push.apply(t,i.runThreeDsShippingDetailsUsageValidation(e)),t.push.apply(t,i.runPaymentAccountDetailsValidation(e)),t.push.apply(t,i.runUserLoginValidation(e)),t.push.apply(t,i.runTravelDetailsValidation(e)),t.push.apply(t,i.runPriorThreeDSAuthenticationValidation(e))):t.push({field:"threeDS.userAccountDetails",message:n.ThreeDSv2Validation.validObjectMessage}),t},i.runThreeDsShippingDetailsUsageValidation=function(e){var t=new Array;return r.u.isProvided(e.shippingDetailsUsage)&&(r.u.isObject(e.shippingDetailsUsage)?(r.u.isOptionalDateValid(e.shippingDetailsUsage.initialUsageDate)||t.push({field:"threeDS.userAccountDetails.shippingDetailsUsage.initialUsageDate",message:n.ThreeDSv2Validation.validDateMessage}),r.u.isOptionalArrayElement(i.initialUsageRangeValues,e.shippingDetailsUsage.initialUsageRange)||t.push({field:"threeDS.userAccountDetails.shippingDetailsUsage.initialUsageRange",message:"doesn't match any of the predefined values (possible: CURRENT_TRANSACTION, LESS_THAN_THIRTY_DAYS, THIRTY_TO_SIXTY_DAYS, MORE_THAN_SIXTY_DAYS; actual: "+e.shippingDetailsUsage.initialUsageRange+")"}),r.u.isOptionalBoolean(e.shippingDetailsUsage.cardHolderNameMatch)||t.pu
1sh({field:"threeDS.userAccountDetails.shippingDetailsUsage.cardHolderNameMatch",message:n.ThreeDSv2Validation.validBooleanMessage})):t.push({field:"threeDS.userAccountDetails.shippingDetailsUsage",message:n.ThreeDSv2Validation.validObjectMessage})),t},i.runPaymentAccountDetailsValidation=function(e){var t=new Array;return r.u.isProvided(e.paymentAccountDetails)&&(r.u.isObject(e.paymentAccountDetails)?(r.u.isOptionalArrayElement(i.createdRangeValues,e.paymentAccountDetails.createdRange)||t.push({field:"threeDS.userAccountDetails.paymentAccountDetails.createdRange",message:"doesn't match any of the predefined values (possible: NO_ACCOUNT, DURING_TRANSACTION, LESS_THAN_THIRTY_DAYS, THIRTY_TO_SIXTY_DAYS, MORE_THAN_SIXTY_DAYS; actual: "+e.paymentAccountDetails.createdRange+")"}),r.u.isOptionalDateValid(e.paymentAccountDetails.createdDate)||t.push({field:"threeDS.userAccountDetails.paymentAccountDetails.createdDate",message:n.ThreeDSv2Validation.validDateMessage})):t.push({field:"threeDS.userAccountDetails.paymentAccountDetails",message:n.ThreeDSv2Validation.validObjectMessage})),t},i.runUserLoginValidation=function(e){var t=new Array;return r.u.isProvided(e.userLogin)&&(r.u.isObject(e.userLogin)?(r.u.isProvided(e.userLogin.data)&&r.u.isStringInvalid(e.userLogin.data,2048)&&t.push({field:"threeDS.userAccountDetails.userLogin.data",message:"should be string with size must be between 0 and 2048"}),r.u.isOptionalArrayElement(i.authentionMethodValues,e.userLogin.authenticationMethod)||t.push({field:"threeDS.userAccountDetails.userLogin.authenticationMethod",message:"doesn't match any of the predefined values (possible: NO_LOGIN, INTERNAL_CREDENTIALS, FEDERATED_ID, ISSUER_CREDENTIALS, THIRD_PARTY_AUTHENTICATION, FIDO_AUTHENTICATOR; actual: "+e.userLogin.authenticationMethod+")"}),r.u.isDateTimeValid(e.userLogin.time)||t.push({field:"threeDS.userAccountDetails.userLogin.time",message:"should be a valid ISO 8601 date time format, i.e., YYYY-MM-DDTHH:MM:SSZ"})):t.push({field:"threeDS.userAccountDetails.userLogin",message:n.ThreeDSv2Validation.validObjectMessage})),t},i.runTravelDetailsValidation=function(e){var t=new Array;return r.u.isProvided(e.travelDetails)&&(r.u.isObject(e.travelDetails)?(r.u.isOptionalDateValid(e.travelDetails.departureDate)||t.push({field:"threeDS.userAccountDetails.travelDetails.departureDate",message:n.ThreeDSv2Validation.validDateMessage}),r.u.isProvided(e.travelDetails.passengerFirstName)&&r.u.isStringInvalid(e.travelDetails.passengerFirstName,99)&&t.push({field:"threeDS.userAccountDetails.travelDetails.passengerFirstName",message:"should be string with size must be between 0 and 99"}),r.u.isProvided(e.travelDetails.passengerLastName)&&r.u.isStringInvalid(e.travelDetails.passengerLastName,99)&&t.push({field:"threeDS.userAccountDetails.travelDetails.passengerLastName",message:"should be string with size must be between 0 and 99"}),r.u.isProvided(e.travelDetails.origin)&&r.u.isStringInvalid(e.travelDetails.origin,5)&&t.push({field:"threeDS.userAccountDetails.travelDetails.origin",message:"should be string with size must be between 0 and 5"}),r.u.isProvided(e.travelDetails.destination)&&r.u.isStringInvalid(e.travelDetails.destination,5)&&t.push({field:"threeDS.userAccountDetails.travelDetails.destination",message:"should be string with size must be between 0 and 5"}),r.u.isProvided(e.travelDetails.airlineCarrier)&&r.u.isStringInvalid(e.travelDetails.airlineCarrier,256)&&t.push({field:"threeDS.userAccountDetails.travelDetails.airlineCarrier",message:"should be string with size must be between 0 and 256"}),r.u.isOptionalBoolean(e.travelDetails.isAirTravel)||t.push({field:"threeDS.userAccountDetails.travelDetails.isAirTravel",message:n.ThreeDSv2Validation.validBooleanMessage})):t.push({field:"threeDS.userAccountDetails.travelDetails",message:n.ThreeDSv2Validation.validObjectMessage})),t},i.runPriorThreeDSAuthenticationValidation=function(e){var t=new Array;return r.u.isProvided(e.priorThreeDSAuthentication)&&(r.u.isObject(e.priorThreeDSAuthentication)?(r.u.isProvided(e.priorThreeDSAuthentication.data)&&r.u.isStringInvalid(e.priorThreeDSAuthentication.data,2048)&&t.push({field:"threeDS.userAccountDetails.priorThreeDSAuthentication.data",message:"should be string with size must be between 0 and 2048"}),r.u.isOptionalArrayElement(i.threeDsAuthenticationMethods,e.priorThreeDSAuthentication.method)||t.pu
1sh({field:"threeDS.userAccountDetails.priorThreeDSAuthentication.method",message:"doesn't match any of the predefined values (possible: FRICTIONLESS_AUTHENTICATION, ACS_CHALLENGE, AVS_VERIFIED, OTHER_ISSUER_METHOD; actual: "+e.priorThreeDSAuthentication.method+")"}),r.u.isProvided(e.priorThreeDSAuthentication.id)&&r.u.isStringInvalid(e.priorThreeDSAuthentication.id,36)&&t.push({field:"threeDS.userAccountDetails.priorThreeDSAuthentication.id",message:"should be string with size must be between 0 and 36"}),r.u.isProvided(e.priorThreeDSAuthentication.time)&&!r.u.isDateTimeValid(e.priorThreeDSAuthentication.time)&&t.push({field:"threeDS.userAccountDetails.priorThreeDSAuthentication.time",message:"should be a valid ISO 8601 date time format, i.e., YYYY-MM-DDTHH:MM:SSZ"})):t.push({field:"threeDS.userAccountDetails.priorThreeDSAuthentication",message:n.ThreeDSv2Validation.validObjectMessage})),t},t.ThreeDSv2UserValidation=i}.apply(t,r))&&(e.exports=t)},function(e,t,r){r=[r,t,r(153),r(154),r(155),r(156)],void 0!==(t=function(e,t,r,n,i,o){"use strict";function a(){}Object.defineProperty(t,"__esModule",{value:!0}),a.newCardNumber=function(e){return new r.CardNumberFormatter(e)},a.newExpiryDate=function(){return new n.ExpiryDateFormatter},a.newExpiryMonth=function(){return new i.ExpiryMonthFormatter},a.newGeneral=function(){return new o.GeneralFormatter},t.FormatterFactory=a}.apply(t,r))&&(e.exports=t)},function(e,t,r){r=[r,t,r(35)],void 0!==(t=function(e,t,r){"use strict";function n(e){this.separator=e}Object.defineProperty(t,"__esModule",{value:!0}),n.prototype.add=function(e,t,n,i,o){return 0===this.separator.length?r.FormatterUtils.formatToSize(e,t,n,i,o):this.processAddition(e,t,n,i,o)},n.prototype.format=function(e,t){var n=new RegExp(this.separator,"g");e=e.replace(n,""),n=r.FormatterUtils.cutToSize(e,t);return{value:this.formatValue(n),offset:void 0}},n.prototype.processAddition=function(e,t,n,i,o){var a=new RegExp(this.separator,"g");return t=t.replace(a,""),e=r.FormatterUtils.adjustValue(e,t,n,i).replace(a,""),i=r.FormatterUtils.cutToSize(e,o),a=this.formatValue(i),e=r.FormatterUtils.count(a,this.separator,n,n+t.length),{value:a,offset:t.length+e}},n.prototype.formatValue=function(e){for(var t="",r=0;r<e.length;)t+=e[r],++r%4==0&&r<e.length&&(t+=this.separator);return t},t.CardNumberFormatter=n}.apply(t,r))&&(e.exports=t)},function(e,t,r){r=[r,t,r(35)],void 0!==(t=function(e,t,r){"use strict";function n(){}Object.defineProperty(t,"__esModule",{value:!0}),n.prototype.add=function(e,t,n,i){return i=r.FormatterUtils.adjustValue(e,t,n,i),{value:this.formatValue(i),offset:this.resolveOffset(e,t,n)}},n.prototype.format=function(e){return{value:this.formatValue(e),offset:void 0}},n.prototype.formatValue=function(e){var t=(e=/^(\d{0,})\D{0,}(\d{0,})/.exec(e))[1]||"",r=(e=e[2]||"","");return/^([2-9]|1[3-9])\d{0,}$/.test(t)?(r=t.substr(1)||"",t="0"+t.charAt(0)):/^(0[1-9]|1[0-2])\d{0,}$/.test(t)?(r=t.substr(2)||"",t=t.substr(0,2)):/^00\d{0,}$/.test(t)&&(r=t.substr(1)||"",t="0"),0<(e=(e=r+e).substr(0,2)).length||2===t.length?t+" / "+e:t},n.prototype.resolveOffset=function(e,t,r){var n=e[r];if(n&&/\D/.test(n)&&0!==r){for(var i=0,o=r;e[o]&&!/\d/.test(e[o]);++o)i+=1;return t.length+i}return 0===r?this.resolveOffsetBeginZero(t):1===r?this.resolveOffsetBeginOne(t,e):t.length},n.prototype.resolveOffsetBeginZero=function(e){return/^([2-9]|1[3-9])\d{0,}$/.test(e)?e.length+4:/^(0[1-9]|1[0-2])\d{0,}$/.test(e)||/^00\d{0,}$/.test(e)?e.length+3:e.length},n.prototype.resolveOffsetBeginOne=function(e,t){return/^[3-9]\d{0,}$/.test(e)&&"1"===t[0]?e.length+4:"0"===t[0]||/^[0-2]\d{0,}$/.test(e)?e.length+3:e.length},t.ExpiryDateFormatter=n}.apply(t,r))&&(e.exports=t)},function(e,t,r){r=[r,t,r(35)],void 0!==(t=function(e,t,r){"use strict";function n(){}Object.defineProperty(t,"__esModule",{value:!0}),n.prototype.add=function(e,t,r,n){return this.processAddition(e,t,r,n)},n.prototype.format=function(e){return{value:this.formatValue(e),offset:void 0}},n.prototype.processAddition=function(e,t,n,i){return e=r.FormatterUtils.adjustValue(e,t,n,i),{value:this.formatValue(e),offset:/^[2-9]\d{0,}$/.test(t)?2:t.length}},n.prototype.formatValue=function(e){return/^([2-9]|1[3-9])\d{0,}$/.test(e)?"0"+e.charAt(0):/^00\d{0,}$/.test(e)?"0":r.FormatterUtils.cutToSize(e,2)},t.ExpiryMonthFormatter=n}.apply(t,r))&&(e.exports=t)},function(e,t,r){r=[r,t,r(35)],void 0!==(t=function(e,t,r){"use strict";function n(){}
1Object.defineProperty(t,"__esModule",{value:!0}),n.prototype.add=function(e,t,n,i,o){return r.FormatterUtils.formatToSize(e,t,n,i,o)},n.prototype.format=function(e,t){return{value:r.FormatterUtils.cutToSize(e,t),offset:void 0}},t.GeneralFormatter=n}.apply(t,r))&&(e.exports=t)},function(e,t,r){r=[r,t,r(19),r(51)],void 0!==(t=function(e,t,r,n){"use strict";function i(){}Object.defineProperty(t,"__esModule",{value:!0}),i.validateCardHolderName=function(e){return r.u.isProvided(e)&&1<e.length&&/^[A-Za-z]+?([A-Za-z.\-'\s]+?)?$/.test(e)},i.validateCardNumber=function(e){return i.hasValidCardPattern(e)&&i.performLuhnCheck(e)},i.validateCvv=function(e,t){return(t=n.CardValidation.getCardBrandValidationPatternByName(t))?t.codeLength===e.length:/^\d{3,4}$/.test(e)},i.validateExpiryDate=function(e){return!!/^\d{2}\s\/\s\d{2}$/.test(e)&&(e=e.split(" / "),i.validateExpiryYear(e[1]))&&i.validateExpiryMonth(e[0],e[1])},i.validateExpiryMonth=function(e,t){var r,n;return!!/^(0[1-9]|1[0-2])$/.test(e)&&(!t||(r=(n=new Date).getFullYear()%1e3,n=n.getMonth()+1,parseInt(t,10)!==r)||parseInt(e,10)>=n)},i.validateExpiryYear=function(e){var t;return!!/^\d{2}$/.test(e)&&(t=(new Date).getFullYear()%1e3,parseInt(e,10)>=t)},i.contains=function(e,t){for(var r=0,n=e;r<n.length;r++)if(n[r]===t)return!0;return!1},i.performLuhnCheck=function(e){for(var t=0,r=!1,n=e.length-1;0<=n;n--){var i=Number(e[n]);t+=i=r&&9<(i*=2)?i%10+1:i,r=!r}return t%10==0},i.hasValidCardPattern=function(e){var t,r=n.CardValidation.getCardBrandValidationPatternByCardValue(e);return r?(t=new RegExp(r.pattern),r=r.lengths,t.test(e)&&i.contains(r,e.length)):/^\d{10,20}$/.test(e)},t.PaymentInstrumentValidation=i}.apply(t,r))&&(e.exports=t)},function(e,t,r){void 0!==(r=function(e,t){"use strict";function r(){}Object.defineProperty(t,"__esModule",{value:!0}),r.normalize=function(e){return r.mapSpecialCharacters(e).replace(/[^\u
10000-\u007F]|[\u0300-\u036f]/g,"")},r.mapSpecialCharacters=function(e){for(var t="",n=0,i=e;n<i.length;n++){var o=i[n];t+=r.characterMapping[o]||o}return t},r.characterMapping={"ø":"o","¢":"o","æ":"e","Æ":"E","ß":"s","ṩ":"s","ḋ":"d","ḍ̇":"d","q̣̇":"q","Æ’":"f","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Ã…":"A","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","ÃŒ":"I","Í":"I","ÃŽ":"I","Ï":"I","Ð":"D","Ñ":"N","Ã’":"O","Ó":"O","Ô":"O","ô":"o","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à ":"a","á":"a","â":"a","ã":"a","ä":"a","Ã¥":"a","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ñ":"n","ò":"o","ó":"o","õ":"o","ö":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ä€":"A","ā":"a","Ä‚":"A","ă":"a","Ä„":"A","Ä…":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","ÄŠ":"C","Ä‹":"c","ÄŒ":"C","č":"c","ÄŽ":"D","ď":"d","Đ":"D","Ä‘":"d","Ä’":"E","Ä“":"e","Ä”":"E","Ä•":"e","Ä–":"E","Ä—":"e","Ę":"E","Ä™":"e","Äš":"E","Ä›":"e","Äœ":"G","ĝ":"g","Äž":"G","ÄŸ":"g","Ä ":"G","Ä¡":"g","Ä¢":"G","Ä£":"g","Ĥ":"H","Ä¥":"h","Ħ":"H","ħ":"h","Ĩ":"I","Ä©":"i","Ī":"I","Ä«":"i","Ĭ":"I","Ä­":"i","Ä®":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ä´":"J","ĵ":"j","Ķ":"K","Ä·":"k","ĸ":"k","Ĺ":"L","ĺ":"l","Ä»":"L","ļ":"l","Ľ":"L","ľ":"l","Ä¿":"L","Å€":"l","Ł":"L","Å‚":"l","Ń":"N","Å„":"n","Å…":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","ÅŠ":"N","Å‹":"n","ÅŒ":"O","ō":"o","ÅŽ":"O","ŏ":"o","Ő":"O","Å‘":"o","Å’":"OI","Å“":"oi","Å”":"R","Å•":"r","Å–":"R","Å—":"r","Ř":"R","Å™":"r","Åš":"S","Å›":"s","Åœ":"S","ŝ":"s","Åž":"S","ÅŸ":"s","Å ":"S","Å¡":"s","Å¢":"T","Å£":"t","Ť":"T","Å¥":"t","Ŧ":"T","ŧ":"t","Ũ":"U","Å©":"u","Ū":"U","Å«":"u","Ŭ":"U","Å­":"u","Å®":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Å´":"W","ŵ":"w","Ŷ":"Y","Å·":"y","Ÿ":"Y","Ź":"Z","ź":"z","Å»":"Z","ż":"z","Ž":"Z","ž":"z","Å¿":"s"},t.StringNormalization=r}.apply(t,[r,t]))&&(e.exports=r)},function(e,t,r){void 0!==(r=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(n=r=r||{})[n.Single=0]="Single",n[n.Permanent=1]="Permanent",t.SubscriptionType=r,i.get=function(e,t){return t=i.getFrameReference(t),(i.frameCallbacks.get(t)||[]).filter((function(t){return t.eventId===e})).map((function(e){return e.callbackWrapper}))},i.add=function(e,t,r,n){t=i.getFrameReference(t),(i.frameCallbacks.get(t)||i.frameCallbacks.set(t,[]).get(t)).push({eventId:e,callbackWrapper:{callback:r,type:n}})},i.remove=function(e,t,r){t=i.getFrameReference(t);for(var n=i.frameCallbacks.get(t)||[],o=n.length-1;0<=o;o--){var a=(s=n[o]).eventId,s=s.callbackWrapper.callback;a===e&&s===r&&n.splice(o,1)}n.length<1&&i.frameCallbacks.delete(t)},i.isKnownSource=function(e){return e=i.getFrameReference(e),i.frameCallbacks.has(e)},i.removeFrameReference=function(e){e=i.getFrameReference(e),i.frameCallbacks.delete(e)},i.getFrameReference=function(e){return Array.from(i.frameCallbacks.keys()).find((function(t){return t.reference===e}))||{reference:e}},i.frameCallbacks=new Map;var r,n=i;function i(){}t.EventSubscriber=n}.apply(t,[r,t]))&&(e.exports=r)},function(e,t,r){r=[r,t,r(161),r(162)],void 0!==(t=function(e,t,r,n){"use strict";function i(){}Object.defineProperty(t,"__esModule",{value:!0}),i.getAjaxRequest=function(e){return(e?n.PaymentHubAjaxRequest:r.HostedAjaxRequest).getInstance()},t.AjaxRequestFactory=i}.apply(t,r))&&(e.exports=t)},function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}))(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};r=[r,t,r(54),r(28)];void 0!==(t=function(e,t,r,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),a=r.Singleton,i(s,a),s.prototype.prepareHeaders=function(e){var t=o({"X-Internal-Correlation-Id":e.clientInfo.correlationId,"X-Paysafe-Credentials":"Basic "+e.apiKey,"X-App-Version":e.clientInfo.version},this.getTransactionSourceFromAppName(e)&&{"X-TransactionSource":this.getTransactionSourceFromAppName(e)});return e.clientInfo&&e.clientInfo.paymentMethodHeaders&&(t["Payment-Method-Headers"]=JSON.stringify(e.clientInfo.paymentMethodHeaders)),t},s.prototype.prepareClientInfo=function(e){return e.clientInfo},s.prototype.getTransactionSourceFromAppName=function(e){return(e=e.clientInfo.appName)===n.PAYSAFE_CHECKOUT?n.PAYSAFE_CHECKOUT_V1_TRANSACTION_SOURCE:e===n.PAYSAFE_JS?n.PAYSAFE_JS_V1_TRANSACTION_SOURCE:null};var a;r=s;function s(){return null!==a&&a.apply(this,arguments)||this}t.HostedAjaxRequest=r}.apply(t,r))&&(e.exports=t)},function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}))(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});r=[r,t,r(54)];void 0!==(t=function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n=r.Singleton,i(o,n),o.prototype.prepareHeaders=function(e){return{"X-Internal-Correlation-Id":e.clientInfo.correlationId,Authorization:"Basic "+e.apiKey,"Content-Type":"application/json","X-TransactionSource":e.transactionSource,"X-App-Version":e.clientInfo.version}},o.prototype.prepareClientInfo=function(e){};var n;r=o;function o(){return null!==n&&n.apply(this,arguments)||this}t.PaymentHubAjaxRequest=r}.apply(t,r))&&(e.exports=t)},function(e,t,r){r=[r,t,r(83),r(20),r(84),r(55)],void 0!==(t=function(e,t,r,n,i,o){"use strict";function a(){}Object.defineProperty(t,"__esModule",{value:!0}),a.openBankIframeMock=function(e,t){return a.resolveStyles(e.appName),a.load3dSecureIframe(e,t)},a.removeThreeDSElements=function(){a.overlay.parentElement.removeChild(a.overlay),a.bankDiv.parentElement.removeChild(a.bankDiv),a.handleIosStyles()},a.resolveStyles=function(e){"paysafe.checkout"===e&&(a.STYLES["#paysafe-3ds-overlay"]={})},a.load3dSecureIframe=function(e,t){a.overlay=a.createOverlay(),a.bankDiv=a.createBankDiv();e=a.createForm(e);var r=(a.overlay.appendChild(e),a.createBankIframe());a.bankDiv.appendChild(r),t=a.createCloseButton(t,r);return a.bankDiv.appendChild(t),i.iosHelper.isDeviceIos()?(i.iosHelper.appendElement(a.overlay),i.iosHelper.appendElement(a.bankDiv),i.iosHelper.resolveIosStyles()):(document.body.appendChild(a.overlay),document.body.appendChild(a.bankDiv)),o.StyleHelper.applyStyle(a.STYLES),e.submit(),r.contentWindow},a.createOverlay=function(){var e=document.createElement("div");return e.id="paysafe-3ds-overlay",e},a.createForm=function(e){var t=document.createElement("form");return t.id="paysafe-3ds-form",t.target=a.bankIframeId,t.method="post",t.action=e.acsUrl,t.appendChild(a.createInput("PaReq",e.paReq)),t.appendChild(a.createInput("TermUrl",a.constructTermUrl(e.environmentUrl))),t.appendChild(a.createInput("MD",a.constructMercantFields(e))),t},a.createInput=function(e,t){var r=document.createElement("input");return r.type="hidden",r.name=e,r.value=t,r},a.createBankDiv=function(){var e=document.createElement("div");return e.id="paysafe-3ds-bank-div",e},a.createBankIframe=function(){var e=document.createElement("iframe");return e.id=a.bankIframeId,e.name=a.bankIframeId,e},a.createCloseButton=function(e,t){var i=document.createElement("div");return i.id="paysafe-3ds-close-button",i.innerHTML="&#10005",i.onclick=function(){r.getCommunication().unsubscribeForAllEvents(t.contentWindow),a.removeThreeDSElements(),e(n.h.createAbortedAuthenticationError)},i},a.constructTermUrl=function(e){return e+"api/v1/three-d-secure/results"},a.constructMercantFields=function(e){return"correlationId="+e.instanceId+";invocationId="+e.invocationId+";appName="+e.appName+";version="+e.version},a.handleIosStyles=function(){i.iosHelper.isDeviceIos()&&(i.iosHelper.scrollToDefaultPosition(),i.iosHelper.removeBodyStyles())},a.STYLES={"#paysafe-3ds-overlay":{position:"fixed",top:0,left:0,width:"100%",height:"100%","z-index":2147483644,"background-color":"#585858",opacity:.6},"#paysafe-3ds-bank-div":{background:"white",position:"fixed",top:0,left:0,right:0,bottom:0,margin:"0 auto",width:"100%",height:"100%","z-index":2147483645,opacity:1},"#paysafe-3ds-bank-iframe":{position:"absolute",top:"1%","margin-left":"1%","margin-right":"1%",width:"98%",height:"98%","border-width":"0px","z-index":2147483646},"#paysafe-3ds-close-button":{position:"absolute","background-color":"white",color:"#585858",border:"solid","border-width":"thin","border-color":"#585858",top:"0px",right:"0px",padding:"5px",margin:"12px 12px 0px 0px",outline:"none","font-size":"24px","line-height":"24px",cursor:"pointer",opacity:"0.7","z-index":2147483647},"#paysafe-3ds-close-button:hover":{opacity:1,transition:"opacity 0.2s ease",display:"block"},"@media (min-width: 801px)":{"#paysafe-3ds-bank-div":{top:"5%",width:"95%",height:"90%"}},"@media (min-width: 1025px)":{"#paysafe-3ds-bank-div":{top:"10%",width:"90%",height:"80%"}}},a.bankIframeId="paysafe-3ds-bank-iframe",t.ThreeDSHtmlUtil=a}.apply(t,r))&&(e.exports=t)},function(e,t,r){void 0!==(r=function(e,t){"use strict";function r(e){var t,r,n,i;return"number"==typeof e.selectionStart?a(e.selectionStart,e.selectionEnd):(t=document.selection?document.selection.createRange():null)&&t.parentElement()===e?(r=e.createTextRange(),n=e.createTextRange(),i=e.value.length,r.moveToBookmark(t.getBookmark()),n.collapse(!1),-1<r.compareEndPoints("StartToEnd",n)?a(i,i):a(-r.moveStart("character",-i),-r.moveEnd("character",-i))):a(e.value.length,e.value.length)}function n(e,t){e.setSelectionRange?e.setSelectionRange(t,t):e.createTextRange&&((e=e.createTextRange()).collapse(!0),e.moveEnd("character",t),e.moveStart("character",t),e.select())}function i(e){return!e.which&&!e.inputType}function o(){return document.documentMode}function a(e,t){return{begin:e,end:t,length:t-e}}
1Object.defineProperty(t,"__esModule",{value:!0}),(t=t.InputField||(t.InputField={})).getFirstInputElement=function(){return document.getElementsByTagName("input")[0]},t.getSelectionRange=r,t.setValue=function(e,t,i){var o=r(e);e.value=t,void 0!==i&&n(e,o.begin+i)},t.moveCursor=n,t.getClip=function(e){return e.clipboardData?e.clipboardData.getData("Text"):window.clipboardData?window.clipboardData.getData("Text"):void 0},t.preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},t.isAutofill=function(e){return(void 0===e.which||"insertReplacementText"===e.inputType||i(e))&&!o()},t.isAutofillFromEdge=i,t.isMicrosoftBrowser=function(){return o()||/Edg/.test(navigator.userAgent)},t.isIE=o}.apply(t,[r,t]))&&(e.exports=r)},function(e,t,r){void 0!==(r=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={BHD:3,BYR:0,JPY:0,JOD:3,KRW:0,KWD:3,LYD:3,OMR:3,PYG:0,TND:3,VND:0,MRO:1,YPY:0},n={en_US:",",fr_CA:" "},i={en_US:".",fr_CA:","};function o(){}o.getDecimalPlaces=function(e){return"number"==typeof r[e]?r[e]:2}
1,o.formatAmount=function(e,t,r){if(0===t)return r?o.formatToLocaleString(e,r):e.toString();var n,i=e%(t=Math.pow(10,t));e=(e-i)/t;n=r?o.formatToLocaleString(e,r)+o.decimalPoint(r):e.toString()+o.decimalPoint();for(var a=t.toString().length-i.toString().length-1;0<a;--a)n+="0";return n+i.toString()},o.formatToLocaleString=function(e,t){return e.toString(10).replace(/\B(?=(\d{3})+(?!\d))/g,o.thousandsSeparator(t))},o.thousandsSeparator=function(e){return n[e]},o.decimalPoint=function(e){return i[e]||"."},t.AmountFormatter=o}.apply(t,[r,t]))&&(e.exports=r)},function(e,t,r){r=[r,t,r(51),r(82),r(20),r(28),r(78),r(86),r(85),r(88)],void 0!==(t=function(e,t,r,n,i,o,a,s,u,c){"use strict";function l(){}Object.defineProperty(t,"__esModule",{value:!0}),l.handleThreeDsV2Lifecycle=function(e){return l.handleInternalThreeDsV2Lifecycle(e,l.proceedWithThreeDs,c.TokenizationHandler.tokenizeWithoutThreeDS)},l.handleThreeDsV2SavedCardLifecycle=function(e){return l.handleInternalThreeDsV2Lifecycle(e,l.proceedWithSavedCardThreeDs,c.TokenizationHandler.tokenizeSavedCardWithoutThreeDS)},l.start=function(e,t,r){var a=n.Environment.resolveInternalUrl(t.assetsUrl)+"threedsecure/js/latest/paysafe.threedsecure.min.js";return delete t.assetsUrl,l.normalizeOptions(t),o.loadJsFile(a,l.isThreeDSecureLoaded).then((function(){return l.invokeStart(e,t,r)})).catch((function(e){var t={hostedError:{}};throw e.target||"9014"===e.code?t.hostedError=i.h.createThreeDSecureLoadingError():t.hostedError=l.createError(e),t}))},l.challenge=function(e,t,r){return l.normalizeOptions(t),new Promise((function(n,o){paysafe_v1.threedsecure.challenge(e,t,(function(e,t){return t?(u.Logger.log(a.LogMessage.createThreeDSecureSdkChallengeError(t.code,t.detailedMessage),r),o({hostedError:i.h.createThreeDSecureChallengeError()})):n(e)}))}))},l.handleInternalThreeDsV2Lifecycle=function(e,t,n){return(r.CardValidation.isCardBrandSupportedByMerchant(e.cardBin,e.brandsToDeviceFingerprint)?t:n)(e)},l.proceedWithThreeDs=function(e){return l.proceedWithInternalThreeDs(e,c.TokenizationHandler.tokenizeWithThreeDS,s.AuthenticationHandler.authenticate)},l.proceedWithSavedCardThreeDs=function(e){return l.proceedWithInternalThreeDs(e,c.TokenizationHandler.tokenizeSavedCardWithThreeDS,s.AuthenticationHandler.authenticateSavedCard)},l.proceedWithInternalThreeDs=function(e,t,r){var n=l.prepareLogDetails(e),i=l.prepareThreeDsInvocationOptions(e);return l.start(e.apiKey,i,n).then((function(r){return t(e,r)})).then((function(t){return t.paymentToken||(t=l.prepareThreeDsChallengeOptions(e,t.threeDSecure.sdkChallengePayload),l.challenge(e.apiKey,t,n).then((function(t){return t=l.prepareAuthenticationDetails(e,t),r(t)})))}))},l.normalizeOptions=function(e){e.environment=n.Environment.unresolveEnvironmentUrl(e.environment),e.environment=e.environment&&e.environment.replace(/\/+$/,"")},l.invokeStart=function(e,t,r){return new Promise((function(n,i){try{paysafe_v1.threedsecure.start(e,t,(function(e,t){return t?(u.Logger.log(a.LogMessage.createThreeDSecureSdkLoadingFailed(t.code,t.detailedMessage),r),i(t)):n(e)}))}catch(e){i(e)}}))},l.isThreeDSecureLoaded=function(){return paysafe_v1.threedsecure},l.createError=function(e){return e&&l.ERROR_CODES_MAPPING[e.code]?(0,l.ERROR_CODES_MAPPING[e.code])(e):e},l.prepareAuthenticationDetails=function(e,t){return t={environmentUrl:e.environment,apiKey:e.apiKey,clientInfo:e.clientInfo,authenticationRequest:{card:e.tokenizeRequest.card,billingAddress:e.tokenizeRequest.billingAddress,threeDSecureAuthentication:{accountId:e.tokenizeRequest.threeDSecure.accountId,authenticationId:t}}},e=e.tokenizeRequest.singleUseProfileToken,Object.assign(t.authenticationRequest,e&&{singleUseProfileToken:e}),t},l.prepareLogDetails=function(e){return{environmentUrl:e.environment,clientInfo:e.clientInfo}},l.prepareThreeDsInvocationOptions=function(e){return{environment:e.environment,assetsUrl:e.assetsUrl,accountId:e.tokenizeRequest.threeDSecure.accountId,card:{cardBin:e.cardBin}}},l.prepareThreeDsChallengeOptions=function(e,t){return{environment:e.environment,sdkChallengePayload:t}},l.ERROR_CODES_MAPPING={9501:i.h.createThreeDSecureMerchantConfigurationError},t.ThreeDSecureUtil=l}.apply(t,r))&&(e.exports=t)},function(e,t,r){"use strict";r.r(t),r.d(t,"setup",(function(){return O}));var n,i=r(0),o=((t=n=n||{}).LOADED="Loaded",t.CLOSE="Close",t.TOKENIZE_RESULT="TokenizationResult",t.THREEDS_FINISHED="ThreeDSFinished",t.CONFIGURATION="Configuration",t.FLOW_CONTROL_CLOSE="FlowControlClose",t.FLOW_CONTROL_SUCCESS="FlowControlSuccess",t.FLOW_CONTROL_FAILURE="FlowControlFailure",t.SAVED_CARD_MODIFICATION="SavedCardModfication",["cards","directdebit","paysafecard","interac","paypal"]),a=["en_US","fr_CA"],s=["INTERNAL","EXTERNAL"],u=["NO_SHIPPING","GET_FROM_FILE","SET_PROVIDED_ADDRESS"],c=["N","T","C","O","S"];function l(e,t){var r=document.getElementById("paysafe-checkout"),n=document.getElementById("preloaded-paysafe-checkout");if(r&&"IFRAME"===r.tagName||n&&"IFRAME"===n.tagName&&!0===n.isLoading)throw i.h.createCheckoutAlreadyOpenedError();if(!i.u.isApiKey(e))throw i.h.createInvalidApiKeyError();if(r=t,!i.u.isObject(r))throw i.h.createInvalidOptionsArgumentError();if(n=r,!i.u.isString(n.companyName)||60<n.companyName.length)throw i.h.createInvalidCompanyNameError();if(!i.u.isCurrencyValid(n.currency))throw i.h.createInvalidCurrencyError();if(i.u.isProvided(n.billingAddress)){if(!i.u.isObject(n.billingAddress))throw i.h.createInvalidBillingAddress();!function(e){if(!i.u.isCountryValid(e.country))throw i.h.createInvalidBillingAddressCountryError();if(!i.u.isString(e.zip)||!i.u.isOptionalAddressFieldValid(e.zip,10,1))throw i.h.createInvalidBillingAddressZipError();if(!i.u.isOptionalAddressFieldValid(e.street,50))throw i.h.createInvalidBillingAddressStreetError();if(!i.u.isOptionalAddressFieldValid(e.city,40))throw i.h.createInvalidBillingAddressCityError();if(!i.u.isOptionalAddressFieldValid(e.street2,50))throw i.h.createInvalidBillingAddressStreet2Error();if(!i.u.isOptionalAddressFieldValid(e.state,40))throw i.h.createInvalidBillingAddressStateError();if(!i.u.isOptionalBoolean(e.useAsShippingAddress))throw i.h.createInvalidBillingAddressUseAsShippingAddressError()}(n.billingAddress)}if(i.u.isProvided(n.shippingAddress)){if(!i.u.isObject(n.shippingAddress))throw i.h.createInvalidShippingAddress();!function(e){if(d(e.recipientName,255))throw i.h.createShippingAddressRecipientName();if(!f(e.street,1,50))throw i.h.createInvalidShippingAddressStreetError();if(d(e.street2,50))throw i.h.createInvalidShippingAddressStreet2Error();if(d(e.city,40))throw i.h.createInvalidShippingAddressCityError();if(d(e.state,40))throw i.h.createInvalidShippingAddressStateError();if(!i.u.isCountryValid(e.country))throw i.h.createInvalidShippingAddressCountryError();if(!f(e.zip,1,10))throw i.h.createInvalidShippingAddressZipError();if(!i.u.isOptionalArrayElement(c,e.shipMethod))throw i.h.createInvalidShippingAddressShipMethodError(e.shipMethod)}(n.shippingAddress)}if(i.u.isProvided(n.billingAddress)&&n.billingAddress.useAsShippingAddress&&i.u.isProvided(n.shippingAddress))throw i.h.createInvalidShippingAddressOperation();if(!i.u.isOptionalBoolean(n.maskCvv))throw i.h.createTokenizeInvalidFieldsError([{field:"maskCvv",message:"invalid value"}]);if(d(r.holderName,160))throw i.h.createInvalidHolderNameError();if(i.Environment.validate(r.environment),i.u.isProvided(r.locale)&&!a.includes(r.locale))throw i.h.createInvalidLocaleError();if(i.u.isProvided(r.imageUrl)&&(!i.u.isString(r.imageUrl)||!r.imageUrl.match("^https://.{3,1992}$")))throw i.h.createInvalidImageUrlError();if(e=r.accounts,i.u.isProvided(e)){if(!i.u.isObject(e))throw i.h.createInvalidAccountsError();if(!i.u.isNumber(e.CC))throw i.h.createInvalidAccountIdError("CC");if(i.u.isProvided(e.AMEX)&&!i.u.isNumber(e.AMEX))throw i.h.createInvalidAccountIdError("AMEX")}
1if(t=r,!i.u.isOptionalString(t.buttonColor)||i.u.isProvided(t.buttonColor)&&!t.buttonColor.match("^#[A-Fa-f0-9]{6}$"))throw i.h.createInvalidButtonColorError();if(!i.u.isOptionalString(t.buttonLabel)||i.u.isProvided(t.buttonLabel)&&!f(t.buttonLabel,1,40))throw i.h.createInvalidButtonLabelError();if(n=r,i.u.isProvided(n.preferredPaymentMethod)&&!p(n.preferredPaymentMethod))throw i.h.createInvalidPaymentMethodError(n.preferredPaymentMethod);if(i.u.isProvided(n.paymentMethodHeaders)&&i.u.isProvided(n.paymentMethodHeaders.simulator)&&!s.includes(n.paymentMethodHeaders.simulator))throw i.h.createInvalidSimulatorParameterError();if(i.u.isProvided(n.paymentMethodDetails)){if(e=n.paymentMethodDetails.paysafecard,i.u.isProvided(e)&&i.u.isProvided(e.consumerId)&&!f(e.consumerId,1,50))throw i.h.createInvalidPaysafecardConsumerIdParameterError();if(t=n.paymentMethodDetails.paypal,i.u.isProvided(t)){if(i.u.isProvided(t.shippingPreference)&&!function(e){return i.u.isString(e)&&u.includes(e)}(t.shippingPreference))throw i.h.createInvalidPayPalShippingPreferenceParameterError();if(i.u.isOptionalStringInRange(t.consumerId,255,1))throw i.h.createInvalidConsumerIdParameterError("PayPal");if(i.u.isOptionalStringInRange(t.recipientDescription,127,1))throw i.h.createInvalidPayPalRecipientDescriptionError();if(i.u.isOptionalStringInRange(t.consumerMessage,165,1))throw i.h.createInvalidPayPalConsumerMessage();if(i.u.isOptionalStringInRange(t.orderDescription,127,1))throw i.h.createInvalidPayPalOrderDescription();if(i.u.isProvided(t.language)&&!i.u.isPayPalLanguageValid(t.language))throw i.h.createInvalidPayPalLanguageError()}}if(i.u.isProvided(n.displayPaymentMethods)){if(!i.u.isArray(n.displayPaymentMethods)||n.displayPaymentMethods.length<1||n.displayPaymentMethods.length>4)throw i.h.createInvalidDisplayPaymentMethodsError();!function(e){var t={};e.forEach((function(e){if(!p(e))throw i.h.createInvalidDisplayPaymentMethodsError();if(e=e.toLowerCase(),t[e])throw i.h.createDuplicatePaymentMethodsError();t[e]=1}))}(n.displayPaymentMethods)}if(i.u.isProvided(r.singleUseProfileToken)&&!i.u.isSingleUseProfileToken(r.singleUseProfileToken))throw i.h.createInvalidSingleUseProfileTokenError();if(i.u.isProvided(r.showSaveCardCheckboxes)&&!i.u.isBoolean(r.showSaveCardCheckboxes))throw i.h.createInvalidShowSaveCardCheckboxesValue();if(t=(e=r).threeDS,n=i.ThreeDSv2Validation.validateOptions(t))throw n;if(t&&t.useThreeDSecureVersion2&&!i.u.isProvided(e.accounts))throw i.h.createInvalidAccountIdError("CC");if(n=r,i.u.isProvided(n.hideAmount)&&!i.u.isBoolean(n.hideAmount))throw i.h.createInvalidHideAmountValue();if(n.threeDS){if((t=n.threeDS.useThreeDSecureVersion2)&&!i.u.isAmountValid(n.amount,0))throw i.h.createInvalidAmountError();if(!t&&!i.u.isAmountValid(n.amount,1))throw i.h.createInvalidAmountError()}if(!n.threeDS&&!i.u.isAmountValid(n.amount,1))throw i.h.createInvalidAmountError();if(!i.u.isOptionalNumber(r.initializationTimeout)||i.u.isProvided(r.initializationTimeout)&&r.initializationTimeout<1)throw i.h.createInvalidInitializationTimeout();if(i.u.isProvided(r.layout)){if(e=r.layout,!i.u.isOptionalBoolean(e.collectCustomerDetails))throw i.h.createLayoutCollectCustomerDetails();if(!i.u.isOptionalBoolean(e.collectBillingAddress))throw i.h.createLayoutCollectBillingAddress()}}function d(e,t){return i.u.isProvided(e)&&(!i.u.isString(e)||e.length>t)}function f(e,t,r){return i.u.isString(e)&&e.length>=t&&e.length<=r}function p(e){return i.u.isString(e)&&o.includes(e.toLowerCase())}var h,y,g,v="1.13.5",E="BeforePayment",m="AfterPayment";function S(e,t,r,o,a){var s,u,c,l,d=e.getIFrameWindow(),f=(e.sendSetup({apiKey:r,version:v,instanceId:t,environment:(r=o).environment,options:{amount:r.amount,currency:r.currency,companyName:r.companyName,merchantUrl:window.location.href,holderName:r.holderName,imageUrl:r.imageUrl,accounts:r.accounts,locale:r.locale,billingAddress:r.billingAddress,shippingAddress:r.shippingAddress,buttonColor:r.buttonColor,buttonLabel:r.buttonLabel,preferredPaymentMethod:r.preferredPaymentMethod?r.preferredPaymentMethod.toLowerCase():void 0,paymentMethodDetails:r.paymentMethodDetails,paymentMethodHeaders:r.paymentMethodHeaders,displayPaymentMethods:function(e){if(e)return e.map((function(e){return e.toLowerCase()}))}(r.displayPaymentMethods),singleUseProfileToken:r.singleUseProfileToken,showSaveCardCheckboxes:r.showSaveCardCheckboxes,hideAmount:r.hideAmount,threeDS:function(e){return(e=e.threeDS)?(e.useThreeDSecureVersion2=e.useThreeDSecureVersion2||!1,e):{useThreeDSecureVersion2:!1}}(r),maskCvv:r.maskCvv,collectBillingAddress:r.layout&&r.layout.collectBillingAddress,collectCustomerDetails:r.layout&&r.layout.collectCustomerDetails}},(function(t){t?a.resultCallback(null,t,null):(I()&&(window.history.pushState({Paysafe:"Paysafe"},"Paysafe checkout",window.location.href),h=window.history.length-1),e.show())})),y=!0,g=E,s=t,u=d,{isOpen:function(){return A(s,arguments.length,0),y},close:function(){y&&(A(s,arguments.length,0),g=m,Object(i.getCommunication)().send(n.FLOW_CONTROL_CLOSE,u,void 0))},showSuccessScreen:function(e,t,r){y&&(A(s,arguments.length,0,1,2,3),T(s,e,t,r),g=m,Object(i.getCommunication)().send(n.FLOW_CONTROL_SUCCESS,u,{additionalDetails:e,title:t,paymentDetails:r}))},showFailureScreen:function(e,t){y&&(A(s,arguments.length,0,1,2),T(s,e,t),g=E,Object(i.getCommunication)().send(n.FLOW_CONTROL_FAILURE,u,{additionalDetails:e,title:t}))}});window.addEventListener("popstate",(function(){f.close()})),Object(i.getCommunication)().on(n.CLOSE,d,(function(){var t,r;t=e,r=a,y&&(i.InputField.isMicrosoftBrowser()?t.removeIframe():t.hide(),y=!1,(t=function(){try{return I()?window.history.state:void 0}catch(e){}}())&&"Paysafe"in t&&window.history.go(h-window.history.length),r.closeCallback)&&r.closeCallback(g)})),a.closeCallback&&a.modifySavedCardCallback&&(c=a,l=f,e.subscribeForModiifySavedCard((function(e){e={paymentToken:e.paymentToken,action:e.action},c.modifySavedCardCallback(l,e)}))),e.subscribeForTokenizeResult((function(e){g=e.token?"DuringPayment":E;var t={token:e.token,paymentMethod:e.paymentMethod,saveInstrument:e.saveInstrument,setInstrumentAsDefault:e.setInstrumentAsDefault};a.resultCallback(f,e.error,t)}))}function I(){return window.history&&window.history.pushState&&null===navigator.userAgent.match("MSIE 10.0;")}function A(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(!r.includes(t))throw i.h.createInvalidNumberOfArgumentsError(e)}function T(e,t,r,n){if(!i.u.isOptionalString(t)||i.u.isProvided(t)&&200<t.length)throw i.h.createInvalidDetailsError(e);
1if(!i.u.isOptionalString(r)||i.u.isProvided(r)&&50<r.length)throw i.h.createInvalidTitleError(e);if(!i.u.isOptionalString(n)||i.u.isProvided(n)&&100<n.length)throw i.h.createInvalidPaymentDetailsError(e)}var C="preloaded-paysafe-checkout",D=(b.create=function(e,t){var r=!document.getElementById(C);t=t||5e3;return b.preloaded&&(r||!b.preloaded.iframe.src||0!==b.preloaded.iframe.src.indexOf(e)||b.preloaded.hasLoadingTimeoutPassed)&&(r||(Object(i.getCommunication)().unsubscribeForAllEvents(b.preloaded.iframe.contentWindow),b.preloaded.iframe.parentElement.removeChild(b.preloaded.iframe)),b.preloaded=void 0),(b.preloaded=b.preloaded?b.preloaded:new b(e,t)).initializationTimeout=t,b.preloaded},b.tokenize=function(e){b.preloaded.tokenizeCallback&&b.preloaded.tokenizeCallback(e)},b.modifySavedCardCallback=function(e){b.preloaded.modifySavedCardCallback&&b.preloaded.modifySavedCardCallback(e)},b.prototype.getIFrameWindow=function(){return this.iframe.contentWindow},b.prototype.removeIframe=function(){this.iframe.parentNode.removeChild(this.iframe)},b.prototype.sendSetup=function(e,t){function r(e){n.iframe.isLoading=!1,t(e)}var n=this;this.iframe.isLoading=!0,this.isLoaded?this.sendSetupMessage(e,r):this.onLoaded((function(t){t?r(t):n.sendSetupMessage(e,r)}))},b.prototype.show=function(){this.iframe.style.display="block",this.iframe.id="paysafe-checkout",i.iosHelper.isDeviceIos()&&i.iosHelper.resolveIosStyles(),this.getIFrameWindow().focus()},b.prototype.hide=function(){this.iframe.style.display="none",this.iframe.id=C,this.handleIosStyles(),this.listenForLoaded(),this.tokenizeCallback=void 0,this.modifySavedCardCallback=void 0},b.prototype.subscribeForTokenizeResult=function(e){this.tokenizeCallback=e},b.prototype.subscribeForModiifySavedCard=function(e){this.modifySavedCardCallback=e},b.prototype.onLoaded=function(e){this.isLoaded?e(null):this.hasLoadingTimeoutPassed?e(i.h.createFailedToInitializeCheckoutError()):this.onLoadedCallback=e},b.prototype.sendSetupMessage=function(e,t){var r=!1,o=(Object(i.getCommunication)().send(n.CONFIGURATION,this.getIFrameWindow(),e,(function(e){r||(clearTimeout(o),t(e))})),setTimeout((function(){r=!0,t(i.h.createFailedToInitializeCheckoutError())}),this.initializationTimeout))},b.prototype.createIframe=function(e){this.iframe=document.createElement("iframe"),this.iframe.id=C,this.iframe.name="paysafe-checkout",this.iframe.title="Secured Payment",this.iframe.src=e+"checkout/v1/latest/index.html",this.iframe.style.cssText="position: fixed; top: 0; left: 0; width: 100%; height: 100%; border-width: 0px; z-index: 2147483647;display: none;",i.iosHelper.isDeviceIos()?i.iosHelper.appendElement(this.iframe):document.body.appendChild(this.iframe)},b.prototype.listenForLoaded=function(e){var t=this,r=(this.isLoaded=!1,this.hasLoadingTimeoutPassed=!1,Object(i.getCommunication)().on(n.LOADED,this.iframe.contentWindow,(function(){t.isLoaded=!t.hasLoadingTimeoutPassed,t.isLoaded&&t.onLoadedCallback&&(t.onLoadedCallback(null),t.onLoadedCallback=void 0),clearTimeout(r)})),setTimeout((function(){t.hasLoadingTimeoutPassed=!t.isLoaded,t.hasLoadingTimeoutPassed&&t.onLoadedCallback&&t.onLoadedCallback(i.h.createFailedToInitializeCheckoutError())}),e))},b);function b(e,t){this.initializationTimeout=5e3,this.handleIosStyles=function(){i.iosHelper.isDeviceIos()&&(i.iosHelper.scrollToDefaultPosition(),i.iosHelper.removeBodyStyles())},this.createIframe(e),this.listenForLoaded(t),Object(i.getCommunication)().subscribe(n.TOKENIZE_RESULT,this.iframe.contentWindow,b.tokenize),Object(i.getCommunication)().subscribe(n.SAVED_CARD_MODIFICATION,this.iframe.contentWindow,b.modifySavedCardCallback)}var O=function(e,t,r,n,o){var a,s,u,c=Object(i.generateGUID)();if(a=c,s=e,u=t,Object(i.catchUnexpectedError)("paysafe.checkout.min.js",(function(e){w(i.LogMessage.createUnhandledJsError(e),a,s,u.environment)})),arguments.length<3||5<arguments.length)throw i.h.createInvalidNumberOfArgumentsError(c);if(!i.u.isFunction(r))throw i.h.createInvalidCallbackError(c);var d,f,p=P(c,r);d=(f=t).holderName,i.u.isString(d)&&(f.holderName=i.StringNormalization.normalize(d));try{l(e,t);var h=c,y={resultCallback:r,closeCallback:n,modifySavedCardCallback:o};if(!i.u.isOptionalFunction(y.closeCallback))throw i.h.createInvalidCloseCallbackError(h);if(!i.u.isOptionalFunction(y.modifySavedCardCallback))throw i.h.createInvalidModifySavedCardCallbackError(h);w(i.LogMessage.createOptionsMessage("setup",t),c,e,t.environment),w(i.LogMessage.createCheckoutFunctionInvocationMessage(),c,e,t.environment);var g=D.create(i.Environment.resolveAssetsUrl(t.environment),t.initializationTimeout);w(i.LogMessage.createCheckoutIframeInitializedMessage(),c,e,t.environment),S(g,c,e,t,function(e,t,r,n){return r={resultCallback:r,closeCallback:n},t&&(r.modifySavedCardCallback=P(e,t)),r}(c,o,p,n))}catch(r){r instanceof i.HostedErrorEntity?p(null,r,null):(f=t.singleUseProfileToken,i.u.isProvided(f)&&i.u.isString(f)&&(t.singleUseProfileToken=f.substr(f.length/2)),w(new i.LogMessageEntity(i.LogType.ER
1ROR,{description:"Unhandled error occurred.",options:t,error:r,stack:r.stack}),c,e,t.environment),p(null,i.h.createUnhandledErrorError(),null))}};function P(e,t){return function(r,n,i){n&&(n.correlationId=e),t(r,n,i)}}function w(e,t,r,n){i.Logger.log(e,(e=t,{environmentUrl:i.Environment.resolveEnvironmentUrl(n),clientInfo:{correlationId:e,apiKey:r,version:v,appName:i.PAYSAFE_CHECKOUT}}))}var R=window.paysafeCheckoutPreloadEnvironmentUrl||i.Environment.resolveAssetsUrl("LIVE");"complete"===document.readyState?D.create(R):window.addEventListener("DOMContentLoaded",(function(){D.create(R)}))}]);

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.