System.register([],(function(e,t){"use strict";return{execute:function(){e("l",(function(e,t){if(void 0===t&&(t=Promise),v(e,t),"undefined"==typeof document)return t.resolve(null);var r=function(e){var t=e.environment,r="sandbox"===t?"https://www.sandbox.paypal.com/sdk/js":"https://www.paypal.com/sdk/js";delete e.environment,e.sdkBaseUrl&&(r=e.sdkBaseUrl,delete e.sdkBaseUrl);var n=e,o=Object.keys(n).filter((function(e){return void 0!==n[e]&&null!==n[e]&&""!==n[e]})).reduce((function(e,t){var r,o=n[t].toString();return r=function(e,t){return(t?"-":"")+e.toLowerCase()},"data"===(t=t.replace(/[A-Z]+(?![a-z])|[A-Z]/g,r)).substring(0,4)||"crossorigin"===t?e.attributes[t]=o:e.queryParams[t]=o,e}),{queryParams:{},attributes:{}}),i=o.queryParams,a=o.attributes;return i["merchant-id"]&&-1!==i["merchant-id"].indexOf(",")&&(a["data-merchant-id"]=i["merchant-id"],i["merchant-id"]="*"),{url:"".concat(r,"?").concat(d(i)),attributes:a}}(e),n=r.url,o=r.attributes,i=o["data-namespace"]||"paypal",a=p(i);return o["data-js-sdk-library"]||(o["data-js-sdk-library"]="paypal-js"), /*! * paypal-js v8.1.2 (2024-09-16T17:52:36.940Z) * Copyright 2020-present, PayPal, Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ function(e,t){var r=document.querySelector('script[src="'.concat(e,'"]'));if(null===r)return null;var n=f(e,t),o=r.cloneNode();if(delete o.dataset.uidAuto,Object.keys(o.dataset).length!==Object.keys(n.dataset).length)return null;var i=!0;return Object.keys(o.dataset).forEach((function(e){o.dataset[e]!==n.dataset[e]&&(i=!1)})),i?r:null}(n,o)&&a?t.resolve(a):function(e,t){void 0===t&&(t=Promise),v(e,t);var r=e.url,n=e.attributes;if("string"!=typeof r||0===r.length)throw new Error("Invalid url.");if(void 0!==n&&"object"!=typeof n)throw new Error("Expected attributes to be an object.");return new t((function(e,t){if("undefined"==typeof document)return e();!function(e){var t=e.url,r=e.attributes,n=e.onSuccess,o=e.onError,i=f(t,r);i.onerror=o,i.onload=n,document.head.insertBefore(i,document.head.firstElementChild)}({url:r,attributes:n,onSuccess:function(){return e()},onError:function(){var e=new Error('The script "'.concat(r,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.'));return t(e)}})}))}({url:n,attributes:o},t).then((function(){var e=p(i);if(e)return e;throw new Error("The window.".concat(i," global variable is not available."))}))}));var t,r="https://js.stripe.com/v3",n=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,o=function(e){var t=document.createElement("script");t.src="".concat(r).concat("");var n=document.head||document.body;if(!n)throw new Error("Expected document.body not to be null. Stripe.js requires a
element.");return n.appendChild(t),t},i=null,a=null,u=null,c=function(e){return null!==i?i:(i=new Promise((function(t,i){if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe)t(window.Stripe);else try{var c=function(){for(var e=document.querySelectorAll('script[src^="'.concat(r,'"]')),t=0;t