(p=n.call(this))._usedByButtonElement=null,p._showCalledByButtonElement=!1,p._isShowing=!1,p._backingLibraries={APPLE_PAY:null,GOOGLE_PAY:null,BROWSER:null,LINK:null},p._activeBackingLibraryName=null,p._buttonTypeName=null,p._activeBackingLibrary=null,p._secondaryActiveBackingLibraryName=null,p._secondaryButtonTypeName=null,p._secondaryActiveBackingLibrary=null,p._lastClickedButtonPosition=null,p._canMakePaymentAvailability={APPLE_PAY:null,GOOGLE_PAY:null,BROWSER:null,LINK:null},p._canMakePaymentResolved=!1,p._validateUserOn=function(e){"string"==typeof e&&("source"===e&&p._hasRegisteredListener("paymentmethod")||"paymentmethod"===e&&p._hasRegisteredListener("source"))&&(p._report("pr.double_callback_registration"),p._controller.warn("Do not register event listeners for both `source` or `paymentmethod`. Only one of them will succeed."))},p._report=function(e,t){var n="secondary"===p._lastClickedButtonPosition?p._secondaryActiveBackingLibrary:p._activeBackingLibraryName;p._controller.report(e,(0,s.Z)((0,s.Z)({},t),{},{activeBackingLibrary:n,primaryBackingLibrary:p._activeBackingLibraryName,secondaryBackingLibrary:p._secondaryActiveBackingLibraryName,usesButtonElement:p._usedByButtonElement||!1,element:p._usedByButtonElement?"paymentRequestButton":null,requestShipping:p._initialOptions?p._initialOptions.requestShipping||!1:null}))},p._warn=function(e){p._controller.warn(e)},p._resetHttpsWarning=function(){tt=!1},p._registerElement=function(){p._usedByButtonElement=!0},p._elementShow=function(){p._showCalledByButtonElement=!0,p.show()},p._updateLocale=function(e){p._locale=e},p._updateLastClickedButtonPosition=function(e){e&&(p._lastClickedButtonPosition=e)},p._initBackingLibraries=function(e){p._queryStrategy.forEach((function(t){var n={controller:p._controller,authentication:p._authentication,mids:p._controller.mids(),origin:window.location.origin,options:e,usesButtonElement:function(){return!0===p._usedByButtonElement},listenerRegistry:p._listenerRegistry};switch(t){case"APPLE_PAY":p._backingLibraries.APPLE_PAY=new Ce(n),p._backingLibraries.APPLE_PAY.setEventHandler(p._handleInternalEvent);break;case"GOOGLE_PAY":p._backingLibraries.GOOGLE_PAY=new Te(n),p._backingLibraries.GOOGLE_PAY.setEventHandler(p._handleInternalEvent);break;case"LINK":p._backingLibraries.LINK=new Xe(n),p._backingLibraries.LINK.setEventHandler(p._handleInternalEvent);break;case"BROWSER":p._backingLibraries.BROWSER=new Oe(n),p._backingLibraries.BROWSER.setEventHandler(p._handleInternalEvent);break;default:(0,f.Rz)(t)}}))},p._handleInternalEvent=function(e){switch(e.type){case"paymentresponse":p._emitPaymentResponse(e.payload);break;case"error":p._emit("__private_do_not_use_error"),p._report("error.pr.internal_error",{error:e.payload});break;case"close":p._isShowing=!1;break;default:p._emitExternalEvent(e)}},p._emitExternalEvent=function(e){switch(e.type){case"cancel":p._emit("cancel");break;case"__private_do_not_use_billingaddresschange":case"__private_do_not_use_couponcodechange":var t=e.type,n=e.payload,r=null,o=!1,a=!1,i=function(e){if(a&&o)return p._report("pr.update_with_called_after_timeout",{event:t}),void p._controller.warn("Call to updateWith() was ignored because it has already timed out. Please ensure that updateWith is called within 30 seconds.");if(o)return p._report("pr.update_with_double_call",{event:t}),void p._controller.warn("Call to updateWith() was ignored because it has already been called. Do not call updateWith more than once.");r&&clearTimeout(r),o=!0,p._report("pr.update_with",{event:t});var i=(0,f.Gu)(z,e||{},"".concat(t," callback")),c=i.value;i.warnings.forEach((function(e){return p._controller.warn(e)}));var s=c;s.total&&(p._reportOnlyTotal=s.total),n.updateWith(s)};if(p._hasRegisteredListener(e.type)){r=setTimeout((function(){a=!0,p._report("pr.update_with_timed_out",{event:t}),p._controller.warn('Timed out waiting for a call to updateWith(). If you listen to "'.concat(e.type,'" events, then you must call event.updateWith in the "').concat(e.type,'" handler within 30 seconds.')),i({status:"fail"})}),29900);try{p._emit(t,(0,s.Z)((0,s.Z)({},n),{},{updateWith:i}))}catch(t){throw p._report("pr.user_callback_error",{event:e.type,activeBackingLibrary:p._activeBackingLibraryName,errorMessage:"string"==typeof(null==t?void 0:t.message)?t.message:"Unknown error occured: ".concat(t)}),t}}else i({status:"success"});break;case"shippingoptionchange":case"shippingaddresschange":var u=e.type,l=e.payload,d=null,m=!1,_=!1,h=function(t){if(_&&m)return p._report("pr.update_with_called_after_timeout",{event:u}),void p._controller.warn("Call to updateWith() was ignored because it has already timed out. Please ensure that updateWith is called within 30 seconds.");if(m)return p._report("pr.update_with_double_call",{event:u}),void p._controller.warn("Call to updateWith() was ignored because it has already been called. Do not call updateWith more than once.");d&&clearTimeout(d),m=!0,p._report("pr.update_with",{event:u});var n=(0,f.Gu)(z,t||{},"".concat(u," callback")),r=n.value;n.warnings.forEach((function(e){return p._controller.warn(e)}));var o=r,a=!1;if(p._initialOptions.__isCheckout&&"APPLE_PAY"===p._activeBackingLibraryName&&r.shippingOptions&&1===r.shippingOptions.length&&0===r.shippingOptions[0].amount){r.shippingOptions;o=(0,c.Z)(r,Qe),a=!0}var i=r.shippingOptions||p._initialOptions.shippingOptions;if(!(a||"shippingaddresschange"!==e.type||r.status!==P.qp.success||i&&i.length))throw new y.No("When requesting shipping information, you must specify shippingOptions once a shipping address is selected.\nEither provide shippingOptions in stripe.paymentRequest(...) or listen for the shippingaddresschange event and provide shippingOptions to the updateWith callback there.");o.total&&(p._reportOnlyTotal=o.total),l.updateWith(o)};if(p._hasRegisteredListener(e.type)){d=setTimeout((function(){_=!0,p._report("pr.update_with_timed_out",{event:u}),p._controller.warn('Timed out waiting for a call to updateWith(). If you listen to "'.concat(e.type,'" events, then you must call event.updateWith in the "').concat(e.type,'" handler within 30 seconds.')),h({status:"fail"})}),29900);try{p._emit(u,(0,s.Z)((0,s.Z)({},l),{},{updateWith:h}))}catch(t){throw p._report("pr.user_callback_error",{event:e.type,activeBackingLibrary:p._activeBackingLibraryName,errorMessage:"string"==typeof(null==t?void 0:t.message)?t.message:"Unknown error occured: ".concat(t)}),t}}else h({status:"success"});break;case"token":case"source":case"paymentmethod":var v=e.type,g=e.payload,b=null,w=!1,k=!1,E=function(e,t){if(w&&k)return p._report("pr.complete_called_after_timeout"),void p._controller.warn("Call to complete() was ignored because it has already timed out. Please ensure that complete is called within 30 seconds.");if(k)return p._report("pr.complete_double_call"),void p._controller.warn("Call to complete() was ignored because it has already been called. Do not call complete more than once.");b&&clearTimeout(b),k=!0;var n=(0,f.Gu)(H,e,"status for PaymentRequest completion"),r=n.value;if(n.warnings.forEach((function(e){return p._controller.warn(e)})),p._initialOptions.__isCheckout&&t&&"success"!==r){var o=(0,f.Gu)(f.Z_,t,"error message for PaymentRequest completion"),a=o.value;o.warnings.forEach((function(e){return p._controller.warn(e)})),g.complete(r,a)}else g.complete(r)};b=setTimeout((function(){w=!0,p._report("pr.complete_timed_out"),p._controller.warn('Timed out waiting for a call to complete(). Once you have processed the payment in the "'.concat(e.type,'" handler, you must call event.complete within 30 seconds.')),E("fail")}),29900);try{p._emit(v,(0,s.Z)((0,s.Z)({},g),{},{complete:E}))}catch(e){throw p._report("pr.user_callback_error",{event:v,activeBackingLibrary:p._activeBackingLibraryName,errorMessage:"string"==typeof(null==e?void 0:e.message)?e.message:"Unknown error occured: ".concat(e)}),e}break;case"__private_do_not_use_error":p._emit("__private_do_not_use_error",e.payload.error);break;default:(0,f.Rz)(e)}},p._maybeEmitPaymentResponse=function(e){p._isShowing&&p._emitExternalEvent(e)},p._emitPaymentResponse=function(e){var t,n="other";p._initialOptions.__isCheckout?n="checkout":p._initialOptions.__isPaymentElement&&(n="payment_element"),p._report("pr.payment_authorized",{product:n,amount:null===(t=p._reportOnlyTotal)||void 0===t?void 0:t.amount,currency:p._reportOnlyCurrency});var r=e.token,o=(0,c.Z)(e,et),a=o.payerEmail,i=o.payerPhone,u=o.complete,l=p._showCalledByButtonElement?v.Yj.paymentRequestButton:null;if(!p._hasRegisteredListener("paymentmethod")&&!p._hasRegisteredListener("source")&&!p._hasRegisteredListener("token"))return p._report("pr.no_callback_registered"),p._controller.warn("You must register an event listener for one of `token`, `source`, or `paymentmethod` to complete payment using the Payment Request Button."),void u("fail");p._hasRegisteredListener("token")&&("googlePay"===o.walletName&&p._controller.action.removeElementsExperimentId({experimentKey:v.D3.elements_session}),p._maybeEmitPaymentResponse({type:"token",payload:e})),p._hasRegisteredListener("paymentmethod")?p._controller.action.createPaymentMethodWithData({elementName:l,type:"card",paymentMethodData:{card:{token:r.id},billing_details:{email:p._initialOptions.__billingDetailsEmailOverride||a,phone:i}},mids:p._controller.mids()}).then((function(e){"error"===e.type?e.error.code&&"email_invalid"===e.error.code?u("invalid_payer_email"):(p._report("fatal.pr.token_to_payment_method_failed",{error:e.error,token:r.id,product:n}),u("fail")):p._maybeEmitPaymentResponse({type:"paymentmethod",payload:(0,s.Z)((0,s.Z)({},o),{},{paymentMethod:e.object})})})):p._hasRegisteredListener("source")&&p._controller.action.createSourceWithData({elementName:l,type:"card",sourceData:{token:r.id,owner:{email:p._initialOptions.__billingDetailsEmailOverride||a,phone:i}},mids:p._controller.mids()}).then((function(e){"error"===e.type?e.error.code&&"email_invalid"===e.error.code?u("invalid_payer_email"):(p._report("fatal.pr.token_to_source_failed",{error:e.error,token:r.id}),u("fail")):p._maybeEmitPaymentResponse({type:"source",payload:(0,s.Z)((0,s.Z)({},o),{},{source:e.object})})}))},p._canMakePaymentForBackingLibrary=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipEnrollmentCheck:!1,useCheckoutAvailabilityCheck:!1},n=p._backingLibraries[e];if(!n){var r="Unexpectedly calling canMakePayment on uninitialized backing library ".concat(e);throw new Error(r)}return m.J.race([new m.J((function(e){return setTimeout(e,1e4)})).then((function(){return{available:!1}})),n.canMakePayment({skipEnrollmentCheck:t.skipEnrollmentCheck,useCheckoutAvailabilityCheck:t.useCheckoutAvailabilityCheck,locale:p._locale})]).then((function(t){var n=t.available,r="LINK"===e&&t.linkExperimentAssignments?t.linkExperimentAssignments:null;return p._canMakePaymentAvailability=(0,s.Z)((0,s.Z)({},p._canMakePaymentAvailability),{},(0,i.Z)({},e,n)),{backingLibraryName:e,available:n,linkExperimentAssignments:r}}))},p._isGooglePayOnAndroid=function(){var e=p._initialOptions.wallets,t=e&&-1===e.indexOf("googlePay"),n=!!p._canMakePaymentAvailability.BROWSER;return K.sV&&!t&&n},p._constructCanMakePaymentResponse=function(){var e=p._isGooglePayOnAndroid();return{applePay:!!p._canMakePaymentAvailability.APPLE_PAY,googlePay:!!p._canMakePaymentAvailability.GOOGLE_PAY||e,link:!!p._canMakePaymentAvailability.LINK}},p.canMakePayment=(0,b.TC)((function(){p._report("pr.can_make_payment");var e=!p._initialOptions.__isCheckout;if(p._canMakePaymentResolved){var t,n=null!==p._activeBackingLibrary?p._constructCanMakePaymentResponse():null;return p._report("pr.can_make_payment_response",{response:n,cached:!0,activeBackingLibrary:p._activeBackingLibrary,amount:null===(t=p._reportOnlyTotal)||void 0===t?void 0:t.amount,currency:p._reportOnlyCurrency}),m.J.resolve(n)}if("https:"!==window.location.protocol)return tt||(p._controller.warn("If you are testing Apple Pay or Google Pay, you must serve this page over HTTPS as it will not work over HTTP. Please read https://stripe.com/docs/stripe-js/elements/payment-request-button#html-js-prerequisites for more details."),tt=!0),p._canMakePaymentResolved=!0,p._controller.deferredCanMakePaymentResponse.resolve(null),m.J.resolve(null);var r=p._queryStrategy.map((function(e){return function(){return p._canMakePaymentForBackingLibrary(e)}})),o=[];if(-1!==p._queryStrategy.indexOf("LINK"))if(p._initialOptions.__linkOnly&&p._initialOptions.__isCheckout){r=[function(){return p._canMakePaymentForBackingLibrary("LINK",{skipEnrollmentCheck:!0,useCheckoutAvailabilityCheck:!0})}]}else[r,o].forEach((function(e){return e.push((function(){return p._canMakePaymentForBackingLibrary("LINK",{skipEnrollmentCheck:!0,useCheckoutAvailabilityCheck:!1})}))}));var a=new $e.E,i=(0,h.tN)(r,(function(e){var t=e.backingLibraryName,n=e.available;return n&&(p._activeBackingLibraryName=t,p._activeBackingLibrary=p._backingLibraries[t],p._buttonTypeName=p._activeBackingLibraryName,p._isGooglePayOnAndroid()&&(p._buttonTypeName="GOOGLE_PAY")),n})),c=e?(0,h.tN)(o,(function(e){e.backingLibraryName;return e.available})):null;return e?m.J.all([i,c]).then((function(e){var t,n=new $e.E,r=e[0],o=e[1];p._canMakePaymentResolved=!0,"SATISFIED"===r.type&&-1!==["APPLE_PAY","GOOGLE_PAY","BROWSER"].indexOf(r.value.backingLibraryName)&&"SATISFIED"===(null==o?void 0:o.type)&&(p._secondaryActiveBackingLibraryName=o.value.backingLibraryName,p._secondaryActiveBackingLibrary=p._backingLibraries[o.value.backingLibraryName],p._secondaryButtonTypeName=p._secondaryActiveBackingLibraryName);var i=null;return"SATISFIED"===r.type&&(i=p._constructCanMakePaymentResponse()),p._report("pr.can_make_payment_response",{response:i,cached:!1,duration:a.getElapsedTime(n),activeBackingLibrary:p._activeBackingLibrary,amount:null===(t=p._reportOnlyTotal)||void 0===t?void 0:t.amount,currency:p._reportOnlyCurrency}),p._controller.deferredCanMakePaymentResponse.resolve(i),i})):i.then((function(e){var t,n=new $e.E;p._canMakePaymentResolved=!0;var r=null;return"SATISFIED"===e.type&&(r=p._constructCanMakePaymentResponse()),p._report("pr.can_make_payment_response",{response:r,cached:!1,duration:a.getElapsedTime(n),activeBackingLibrary:p._activeBackingLibrary,amount:null===(t=p._reportOnlyTotal)||void 0===t?void 0:t.amount,currency:p._reportOnlyCurrency}),p._controller.deferredCanMakePaymentResponse.resolve(r),r}))})),p.update=(0,b.TC)((function(e){if(p._isShowing)throw p._report("pr.update_called_while_showing"),new y.No("You cannot update Payment Request options while the payment sheet is showing.");p._privateForcedUpdate(e)})),p._privateForcedUpdate=function(e){var t,n=(0,f.Gu)(G,e,"PaymentRequest update()"),r=n.value,o=n.warnings;p._report("pr.update"),o.forEach((function(e){return p._warn(e)})),!r.shippingOptions||null!==(t=p._initialOptions)&&void 0!==t&&t.requestShipping||p._report("pr.update_shipping_options_without_shipping"),r.total&&(p._reportOnlyTotal=r.total),r.currency&&(p._reportOnlyCurrency=r.currency),(0,_.VO)(p._backingLibraries).forEach((function(e){e&&e.update(r)}))},p.show=(0,b.TC)((function(){var e;if(p._usedByButtonElement&&!p._showCalledByButtonElement&&(p._report("pr.show_called_with_button"),p._warn("Do not call show() yourself if you are using the paymentRequestButton Element. The Element handles showing the payment sheet.")),!p._canMakePaymentResolved)throw p._report("pr.show_called_before_can_make_payment"),new y.No("You must first check the Payment Request API's availability using paymentRequest.canMakePayment() before calling show().");if(!p._activeBackingLibrary)throw p._report("pr.show_called_with_can_make_payment_false"),new y.No("Payment Request is not available in this browser.");"LINK"!==p._activeBackingLibraryName||p._initialOptions.__linkOnly||(p._usedByButtonElement||p._report("pr.show_called_with_link_custom_button"),!p._showCalledByButtonElement&&p._usedByButtonElement&&p._report("pr.show_called_with_link_hybrid_button"));var t=null;if("secondary"===p._lastClickedButtonPosition){if(!p._secondaryActiveBackingLibrary)throw Error('The relevant backing library for position "'.concat(p._lastClickedButtonPosition,'" was unavailable.'));t=p._secondaryActiveBackingLibrary}else t=p._activeBackingLibrary;var n=p._showCalledByButtonElement?"pr.show_from_element":"pr.show_from_custom";p._report(n),p._report("pr.show",{amount:null===(e=p._reportOnlyTotal)||void 0===e?void 0:e.amount,currency:p._reportOnlyCurrency,listeners:Object.keys(p._callbacks).sort()}),p._isShowing=!0,t.show({locale:p._locale})})),p.abort=(0,b.TC)((function(){if(p._activeBackingLibrary){var e=p._activeBackingLibrary;p._report("pr.abort"),e.abort()}})),p.isShowing=function(){return p._isShowing},p._controller=e.controller,p._authentication=e.authentication,p._listenerRegistry=e.listenerRegistry;var g=(0,f.Gu)((e.betas,(0,f.mC)({displayItems:(0,f.jt)((0,f.CT)(I)),shippingOptions:(0,f.jt)((0,f.uw)("id")((0,f.CT)(T))),wallets:(0,f.jt)((0,f.CT)(f.kw.apply(void 0,(0,w.Z)(C())))),disableWallets:(0,f.jt)((0,f.CT)(f.kw.apply(void 0,(0,w.Z)(C())))),blockedCardBrands:(0,f.jt)((0,f.CT)(f.kw.apply(void 0,(0,w.Z)(v.iw)))),total:N,requestShipping:(0,f.jt)(f.Xg),requestPayerName:(0,f.jt)(f.Xg),requestPayerEmail:(0,f.jt)(f.Xg),requestPayerPhone:(0,f.jt)(f.Xg),shippingType:(0,f.jt)(R),currency:f.cV,country:f.hN,applePay:(0,f.jt)(U),jcbEnabled:(0,f.jt)(f.Xg),__billingDetailsEmailOverride:(0,f.jt)(f.Z_),__minApplePayVersion:(0,f.jt)(f.Rx),__minGooglePayVersion:(0,f.jt)(M),__merchantDetails:(0,f.jt)(O),__linkOnly:(0,f.jt)(f.Xg),__isCheckout:(0,f.jt)(f.Xg),__isHostedInvoicePage:(0,f.jt)(f.Xg),__checkoutSessionId:(0,f.jt)(f.Z_),__isPaymentElement:(0,f.jt)(f.Xg),__isExpressCheckoutElement:(0,f.jt)(f.Xg),__betas:(0,f.jt)((0,f.CT)(f.z$.apply(void 0,(0,w.Z)(A.Lv)))),__supportsCouponCode:(0,f.jt)(f.Xg),__couponCode:(0,f.jt)(f.Z_)})),e.rawOptions||{},"paymentRequest()"),k=g.value,E=g.warnings;if(p._report("pr.options",{options:(0,s.Z)((0,s.Z)({},(0,_.ei)(k,["country","currency","jcbEnabled","requestPayerEmail","requestPayerName","requestPayerPhone","requestShipping","disableWallets","wallets","blockedCardBrands"])),{},{applePay:(0,s.Z)((0,s.Z)({},(0,_.ei)(null!==(r=k.applePay)&&void 0!==r?r:{},["applePayLaterAvailability"])),{},{usesAutomaticReloadPaymentRequest:!(null===(o=k.applePay)||void 0===o||!o.automaticReloadPaymentRequest),usesDeferredPaymentRequest:!(null===(a=k.applePay)||void 0===a||!a.deferredPaymentRequest),usesRecurringPaymentRequest:!(null===(u=k.applePay)||void 0===u||!u.recurringPaymentRequest)})})}),E.forEach((function(e){return p._warn(e)})),k.__billingDetailsEmailOverride&&k.requestPayerEmail)throw new y.No("When providing `__billingDetailsEmailOverride`, `requestPayerEmail` has to be `false` so that the customer is not prompted for their email in the payment sheet.");var S=null!==(d=k.applePay)&&void 0!==d?d:{},Z=S.automaticReloadPaymentRequest,x=S.deferredPaymentRequest,j=S.recurringPaymentRequest;if(j&&(x||Z)||x&&(j||Z)||Z&&(j||x))throw new y.No("automaticReloadPaymentRequest, deferredPaymentRequest, and recurringPaymentRequest are mutually exclusive. Please only set one of the three.");if(!(null==x||!x.freeCancellationDate)!=!(null==x||!x.freeCancellationDateTimeZone))throw new y.No("It seems that you have only set one of deferredPaymentRequest.freeCancellationDate and deferredPaymentRequest.freeCancellationDateTimezone. Please set both or none of them.");var L=C(),D=k.disableWallets,B=D?L.filter((function(e){return-1===D.indexOf(e)})):k.wallets;return e.queryStrategyOverride?p._queryStrategy=e.queryStrategyOverride:k.__linkOnly?p._queryStrategy=["LINK"]:p._queryStrategy=Y(B||L),p._report("pr.query_strategy",{queryStrategy:p._queryStrategy}),p._initialOptions=(0,s.Z)((0,s.Z)({},k),{},{__betas:e.betas,wallets:B}),p._reportOnlyCurrency=k.currency,p._reportOnlyTotal=k.total,p._initBackingLibraries(p._initialOptions),p._controller._controllerFrame._on("stripe-user-credentials-update",(function(e){p._authentication={apiKey:e.publishableKey,accountId:e.stripeAccount},p._canMakePaymentResolved&&(p._canMakePaymentResolved=!1,p._controller.deferredCanMakePaymentResponse.resolve(null),p.canMakePayment())})),p}(0,d.Z)(t,e);var n=(0,p.Z)(t);return(0,u.Z)(t)}(g.Z),rt=nt},3234:function(e,t,n){"use strict";n.d(t,{A:function(){return o},C:function(){return r}});var r=function(){try{if(window.top!==window)return window.location.ancestorOrigins&&window.location.ancestorOrigins.length>0?window.location.ancestorOrigins[window.location.ancestorOrigins.length-1]:document.referrer?new URL(document.referrer).origin:null}catch(e){}return null},o=function(){var e=r();return e?new URL(e).hostname:window.location.hostname}},2920:function(e,t,n){"use strict";n.d(t,{Qt:function(){return d},VC:function(){return l},lU:function(){return s}});var r=n(6589),o=n(40),a=n(9776),i=n(3234),c=function(){if(!function(){try{var e;return window.location.origin===(null===(e=window.top)||void 0===e?void 0:e.location.origin)}catch(e){return!1}}()){var e=(0,i.C)();return!a.OV||!e}return!1},s=2,u=(0,o.HP)((function(e){return window.ApplePaySession.canMakePaymentsWithActiveCard(e)})),l=function(e){if(!window.ApplePaySession)return!1;try{return window.ApplePaySession.supportsVersion(e)}catch(e){return!1}},d=function(e,t,n,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s,i=arguments.length>5?arguments[5]:void 0;if("https:"!==window.location.protocol)return r.J.resolve(!1);var l=Math.max(s,a);if(window.ApplePaySession){if(c())return r.J.resolve(!1);if(window.ApplePaySession.supportsVersion(l)){var d=t?[e,t]:[e],p="merchant.".concat(d.join("."),".stripe");if(i)return u(p).then((function(r){if(o("pr.apple_pay.can_make_payment_native_response",{available:r,identifier:p}),n&&!r&&window.console){var a=t?"or stripeAccount parameter (".concat(t,") "):"";window.console.warn("Either you do not have a card saved to your Wallet or the current domain (".concat(e,") ").concat(a,"is not registered for Apple Pay."))}return r}));var m=window.ApplePaySession.canMakePayments();return r.J.resolve(m)}return n&&window.console&&window.console.warn("This version of Safari does not support ApplePay JS version ".concat(l,".")),r.J.resolve(!1)}return r.J.resolve(!1)}},1164:function(e,t,n){"use strict";n.d(t,{vS:function(){return a},ud:function(){return o},Nj:function(){return p},jR:function(){return d}});var r={ar:"ar",bg:"bg",cs:"cs",da:"da",de:"de",el:"el",en:"en","en-GB":"en-GB",es:"es","es-419":"es-419",et:"et",fi:"fi",fil:"fil",fr:"fr","fr-CA":"fr-CA",he:"he",hr:"hr",hu:"hu",id:"id",it:"it",ja:"ja",ko:"ko",lt:"lt",lv:"lv",ms:"ms",mt:"mt",nb:"nb",nl:"nl",no:"no",pl:"pl",pt:"pt","pt-BR":"pt-BR",ru:"ru",ro:"ro",sk:"sk",sl:"sl",sv:"sv",th:"th",tr:"tr",vi:"vi",zh:"zh","zh-HK":"zh-HK","zh-TW":"zh-TW"},o=["ar","he"],a="en",i=(Object.keys(r),r),c=n(9776),s=n(1765),u={"es-HN":"es-419","es-MX":"es-419","es-US":"es-419"},l=function(e){try{var t=function(e){var t=e.split("-"),n=t[0],r=null,o=null,a=null;if(t.length>1&&(4===t[1].length?o=t[1]:2===t[1].length||3===t[1].length?r=t[1]:a=t[1]),t.length>2&&(2===t[2].length||3===t[2].length?r=t[2]:a=t[2]),t.length>3&&(a=t[3]),2!==n.length&&3!==n.length)throw new Error("invalid locale ".concat(e));var i=n.toLowerCase(),c=r?r.toUpperCase():null,s=o?"".concat(o[0].toUpperCase()).concat(o.substring(1).toLowerCase()):null;return{locale:i+(s?"-".concat(s):"")+(c?"-".concat(c):"")+(a?"-".concat(a):""),language:i,region:c,script:s,variant:a}}(e),n=t.locale,r=t.language,o=[n];return u[n]&&o.push(u[n]),n!==r&&o.push(r),o.push(a),o}catch(t){return[e,a]}},d=function(e){return function(e){for(var t=l(e),n=0;n<t.length;n++){var r=t[n];if(i[r]){var o=i[r];if((0,s.uN)(s.ub,s.M4.stripe_js_beta_locales)||-1===s.P3.indexOf(o))return o}}return"en"}("auto"===e?(0,c.UT)():e)},p=function(e){return d(e||"auto")}},8622:function(e,t,n){"use strict";var r;n.d(t,{x:function(){return o}});var o=(null===(r=window.performance)||void 0===r?void 0:r.now())||Date.now()},1764:function(e,t,n){"use strict";var r;n.d(t,{q:function(){return o}});var o=(null===(r=window.performance)||void 0===r?void 0:r.now())||Date.now()},907:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},3878:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return r}})},5057:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return(0,o.Z)(e)}n.d(t,{Z:function(){return r}});var o=n(907)},7326:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},5671:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},5647:function(e,t,n){"use strict";function r(){return r=(0,a.Z)()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&(0,o.Z)(a,n.prototype),a},r.apply(null,arguments)}n.d(t,{Z:function(){return r}});var o=n(9611),a=n(8814)},3144:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:function(){return o}})},9388:function(e,t,n){"use strict";function r(e){var t=(0,a.Z)();return function(){var n,r=(0,o.Z)(e);if(t){var a=(0,o.Z)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,i.Z)(this,n)}}n.d(t,{Z:function(){return r}});var o=n(1120),a=n(8814),i=n(2963)},4942:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},7462:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})},1120:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},136:function(e,t,n){"use strict";function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,o.Z)(e,t)}n.d(t,{Z:function(){return r}});var o=n(9611)},8989:function(e,t,n){"use strict";function r(e){return-1!==Function.toString.call(e).indexOf("[native code]")}n.d(t,{Z:function(){return r}})},8814:function(e,t,n){"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:function(){return r}})},9199:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},1902:function(e,t,n){"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}n.d(t,{Z:function(){return r}})},5267:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},2786:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},1413:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n.d(t,{Z:function(){return o}});var a=n(4942)},5987:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,a=(0,o.Z)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}n.d(t,{Z:function(){return r}});var o=n(3366)},3366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},2963:function(e,t,n){"use strict";function r(e,t){if(t&&("object"===(0,o.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,a.Z)(e)}n.d(t,{Z:function(){return r}});var o=n(1002),a=n(7326)},9611:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},3324:function(e,t,n){"use strict";function r(e,t){return(0,o.Z)(e)||(0,a.Z)(e,t)||(0,i.Z)(e,t)||(0,c.Z)()}n.d(t,{Z:function(){return r}});var o=n(3878),a=n(1902),i=n(181),c=n(5267)},9062:function(e,t,n){"use strict";function r(e){return(0,o.Z)(e)||(0,a.Z)(e)||(0,i.Z)(e)||(0,c.Z)()}n.d(t,{Z:function(){return r}});var o=n(5057),a=n(9199),i=n(181),c=n(2786)},1002:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},181:function(e,t,n){"use strict";function r(e,t){if(e){if("string"==typeof e)return(0,o.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,o.Z)(e,t):void 0}}n.d(t,{Z:function(){return r}});var o=n(907)},7112:function(e,t,n){"use strict";function r(e){var t="function"==typeof Map?new Map:void 0;return r=function(e){function n(){return(0,c.Z)(e,arguments,(0,o.Z)(this).constructor)}if(null===e||!(0,i.Z)(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,a.Z)(n,e)},r(e)}n.d(t,{Z:function(){return r}});var o=n(1120),a=n(9611),i=n(8989),c=n(5647)}},o={};e.m=r,e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},e.d=function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.f={},e.e=function(t){return Promise.all(Object.keys(e.f).reduce((function(n,r){return e.f[r](t,n),n}),[]))},e.u=function(e){return"fingerprinted/js/"+{1:"elements-affirm-modal",16:"embedded-checkout-outer",209:"elements-affirm-message",259:"elements-afterpay-clearpay-modal",404:"orders-outer",428:"payment-intent-outer-actions-cardimageverification",578:"elements-afterpay-clearpay-message",631:"elements-payment-method-messaging",870:"elements-payment-method-messaging-modal",895:"custom-checkout",913:"trusted-types-checker",944:"phone-numbers-lib"}[e]+"-"+{1:"d7216e295a039acccc8d6e1c905d082d",16:"7fb36eaeece19b6369dec8d6b05749bf",209:"eb432eb3cd10d8ebc402d79df69f78aa",259:"c01c8d4faf17f5ce17a7bd73a95acb35",404:"e07437e86f5b4d7a7f257ecb8ab8068a",428:"8658d12968ff0f423af36fb5e9cbef2e",578:"4e7c52c8e6adadc6ff84359d847c3af2",631:"8ffb9f187807fdf0e09a116f4265229e",870:"fb60f073645d91f599dad8164ce01f96",895:"5f6158c23d6d66ca74ad75b7e7a208f9",913:"239db17d86d6320632b024ca9e43ba9c",944:"f19807cd8cf5390c9afa641cb061e0d6"}[e]+".js"},e.miniCssF=function(){},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t={},n="stripe-js-v3:",e.l=function(r,o,a){if(t[r])t[r].push(o);else{var i,c;if(void 0!==a)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var l=s[u];if(l.getAttribute("src")==r||l.getAttribute("data-webpack")==n+a){i=l;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,e.nc&&i.setAttribute("nonce",e.nc),i.setAttribute("data-webpack",n+a),i.src=r),t[r]=[o];var d=function(e,n){i.onerror=i.onload=null,clearTimeout(p);var o=t[r];if(delete t[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((function(e){return e(n)})),e)return e(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),c&&document.head.appendChild(i)}},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.p="https://js.stripe.com/v3/",function(){var t={734:0};e.f.j=function(n,r){var o=e.o(t,n)?t[n]:void 0;if(0!==o)if(o)r.push(o[2]);else{var a=new Promise((function(e,r){o=t[n]=[e,r]}));r.push(o[2]=a);var i=e.p+e.u(n),c=new Error;e.l(i,(function(r){if(e.o(t,n)&&(0!==(o=t[n])&&(t[n]=void 0),o)){var a=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;c.message="Loading chunk "+n+" failed.\n("+a+": "+i+")",c.name="ChunkLoadError",c.type=a,c.request=i,o[1](c)}}),"chunk-"+n,n)}};var n=function(n,r){var o,a,i=r[0],c=r[1],s=r[2],u=0;if(i.some((function(e){return 0!==t[e]}))){for(o in c)e.o(c,o)&&(e.m[o]=c[o]);if(s)s(e)}for(n&&n(r);u<i.length;u++)a=i[u],e.o(t,a)&&t[a]&&t[a][0](),t[a]=0},r=window.webpackChunkStripeJSouter=window.webpackChunkStripeJSouter||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))}(),e(1764),e(3977);e(8622)}()