var e=`dahlia`,t=`https://js.stripe.com`,n=`${t}/${e}/stripe.js`,r=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,i=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,a=`loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used`,o=function(e){return r.test(e)||i.test(e)},s=function(){for(var e=document.querySelectorAll(`script[src^="${t}"]`),n=0;n<e.length;n++){var r=e[n];if(o(r.src))return r}return null},c=function(e){var t=e&&!e.advancedFraudSignals?`?advancedFraudSignals=false`:``,r=document.createElement(`script`);r.src=`${n}${t}`;var i=document.head||document.body;if(!i)throw Error(`Expected document.body not to be null. Stripe.js requires a <body> element.`);return i.appendChild(r),r},l=null,u=null,d=null,f=function(e){return function(t){e(Error(`Failed to load Stripe.js`,{cause:t}))}},p=function(e,t){return function(){window.Stripe?e(window.Stripe):t(Error(`Stripe.js not available`))}},m=function(e){return l===null?(l=new Promise(function(t,n){if(typeof window>`u`||typeof document>`u`){t(null);return}if(window.Stripe&&e&&console.warn(a),window.Stripe){t(window.Stripe);return}try{var r=s();if(r&&e)console.warn(a);else if(!r)r=c(e);else if(r&&d!==null&&u!==null){var i;r.removeEventListener(`load`,d),r.removeEventListener(`error`,u),(i=r.parentNode)==null||i.removeChild(r),r=c(e)}d=p(t,n),u=f(n),r.addEventListener(`load`,d),r.addEventListener(`error`,u)}catch(e){n(e);return}}),l.catch(function(e){return l=null,Promise.reject(e)})):l},h,g=!1,_=function(){return h||(h=m(null).catch(function(e){return h=null,Promise.reject(e)}),h)};Promise.resolve().then(function(){return _()}).catch(function(e){g||console.warn(e)});
//# sourceMappingURL=vendor-stripe-RArI0wEC.js.map