@bigcommerce/checkout-sdk 1.915.0 → 1.916.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- (()=>{var e={5889(e,t,r){"use strict";const n=r(803),o=r(1915),i=r(1657),s=r(3814);function a(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function u(e,t){return t.decode?o(e):e}function p(e){return Array.isArray(e)?e.sort():"object"==typeof e?p(Object.keys(e)).sort((e,t)=>Number(e)-Number(t)).map(t=>e[t]):e}function l(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function f(e){const t=(e=l(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function d(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function h(e,t){a((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const o="string"==typeof r&&r.includes(e.arrayFormatSeparator),i="string"==typeof r&&!o&&u(r,e).includes(e.arrayFormatSeparator);r=i?u(r,e):r;const s=o||i?r.split(e.arrayFormatSeparator).map(t=>u(t,e)):null===r?r:u(r,e);n[t]=s};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),n=Object.create(null);if("string"!=typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const o of e.split("&")){if(""===o)continue;let[e,s]=i(t.decode?o.replace(/\+/g," "):o,"=");s=void 0===s?null:["comma","separator"].includes(t.arrayFormat)?s:u(s,t),r(u(e,t),s,n)}for(const e of Object.keys(n)){const r=n[e];if("object"==typeof r&&null!==r)for(const e of Object.keys(r))r[e]=d(r[e],t);else n[e]=d(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((e,t)=>{const r=n[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=p(r):e[t]=r,e},Object.create(null))}t.extract=f,t.parse=h,t.stringify=(e,t)=>{if(!e)return"";a((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const o=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[c(t,e),"[",o,"]"].join("")]:[...r,[c(t,e),"[",c(o,e),"]=",c(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[c(t,e),"[]"].join("")]:[...r,[c(t,e),"[]=",c(n,e)].join("")];case"comma":case"separator":return t=>(r,n)=>null==n||0===n.length?r:0===r.length?[[c(t,e),"=",c(n,e)].join("")]:[[r,c(n,e)].join(e.arrayFormatSeparator)];default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,c(t,e)]:[...r,[c(t,e),"=",c(n,e)].join("")]}}(t),o={};for(const t of Object.keys(e))r(t)||(o[t]=e[t]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map(r=>{const o=e[r];return void 0===o?"":null===o?c(r,t):Array.isArray(o)?o.reduce(n(r),[]).join("&"):c(r,t)+"="+c(o,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,n]=i(e,"#");return Object.assign({url:r.split("?")[0]||"",query:h(f(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:u(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0},r);const n=l(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),s=Object.assign(i,e.query);let a=t.stringify(s,r);a&&(a=`?${a}`);let u=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(u=`#${c(e.fragmentIdentifier,r)}`),`${n}${a}${u}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0},n);const{url:o,query:i,fragmentIdentifier:a}=t.parseUrl(e,n);return t.stringifyUrl({url:o,query:s(i,r),fragmentIdentifier:a},n)},t.exclude=(e,r,n)=>{const o=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,o,n)}},1915(e){"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),n=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],o(r),o(n))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=o(t,n).join("")).match(r)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=n.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var o=i(r[0]);o!==r[0]&&(t[r[0]]=o)}r=n.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),a=0;a<s.length;a++){var c=s[a];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},3814(e){"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),i=0;i<n.length;i++){var s=n[i],a=e[s];(o?-1!==t.indexOf(s):t(s,a,e))&&(r[s]=a)}return r}},168(e){var t;t=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function r(n){function o(){}function i(t,r,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var s=JSON.stringify(r);/^[\{\[]/.test(s)&&(r=s)}catch(e){}r=n.write?n.write(r,t):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var c in i)i[c]&&(a+="; "+c,!0!==i[c]&&(a+="="+i[c].split(";")[0]));return document.cookie=t+"="+r+a}}function s(e,r){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],s=0;s<i.length;s++){var a=i[s].split("="),c=a.slice(1).join("=");r||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var u=t(a[0]);if(c=(n.read||n)(c,u)||t(c),r)try{c=JSON.parse(c)}catch(e){}if(o[u]=c,e===u)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return s(e,!1)},o.getJSON=function(e){return s(e,!0)},o.remove=function(t,r){i(t,"",e(r,{expires:-1}))},o.defaults={},o.withConverter=r,o}(function(){})},"function"==typeof define&&define.amd&&define(t),e.exports=t()},35(e,t,r){e=r.nmd(e);var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",s="[object Function]",a="[object Object]",c=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p[i]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p[s]=p["[object Map]"]=p["[object Number]"]=p[a]=p["[object RegExp]"]=p["[object Set]"]=p["[object String]"]=p["[object WeakMap]"]=!1;var l,f,d,h="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,y="object"==typeof self&&self&&self.Object===Object&&self,g=h||y||Function("return this")(),m=t&&!t.nodeType&&t,v=m&&e&&!e.nodeType&&e,b=v&&v.exports===m,_=b&&h.process,j=function(){try{return v&&v.require&&v.require("util").types||_&&_.binding&&_.binding("util")}catch(e){}}(),O=j&&j.isTypedArray,w=Array.prototype,S=Function.prototype,C=Object.prototype,R=g["__core-js_shared__"],x=S.toString,M=C.hasOwnProperty,P=(l=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",k=C.toString,A=x.call(Object),I=RegExp("^"+x.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),E=b?g.Buffer:void 0,T=g.Symbol,U=g.Uint8Array,q=(E&&E.allocUnsafe,f=Object.getPrototypeOf,d=Object,function(e){return f(d(e))}),F=Object.create,z=C.propertyIsEnumerable,N=w.splice,$=T?T.toStringTag:void 0,B=function(){try{var e=ae(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),D=E?E.isBuffer:void 0,H=Math.max,L=Date.now,J=ae(g,"Map"),G=ae(Object,"create"),K=function(){function e(){}return function(t){if(!be(t))return{};if(F)return F(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function X(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function V(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Z(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function W(e){var t=this.__data__=new V(e);this.size=t.size}function Q(e,t,r){(void 0!==r&&!fe(e[t],r)||void 0===r&&!(t in e))&&te(e,t,r)}function Y(e,t,r){var n=e[t];M.call(e,t)&&fe(n,r)&&(void 0!==r||t in e)||te(e,t,r)}function ee(e,t){for(var r=e.length;r--;)if(fe(e[r][0],t))return r;return-1}function te(e,t,r){"__proto__"==t&&B?B(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}X.prototype.clear=function(){this.__data__=G?G(null):{},this.size=0},X.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},X.prototype.get=function(e){var t=this.__data__;if(G){var r=t[e];return r===n?void 0:r}return M.call(t,e)?t[e]:void 0},X.prototype.has=function(e){var t=this.__data__;return G?void 0!==t[e]:M.call(t,e)},X.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=G&&void 0===t?n:t,this},V.prototype.clear=function(){this.__data__=[],this.size=0},V.prototype.delete=function(e){var t=this.__data__,r=ee(t,e);return!(r<0||(r==t.length-1?t.pop():N.call(t,r,1),--this.size,0))},V.prototype.get=function(e){var t=this.__data__,r=ee(t,e);return r<0?void 0:t[r][1]},V.prototype.has=function(e){return ee(this.__data__,e)>-1},V.prototype.set=function(e,t){var r=this.__data__,n=ee(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Z.prototype.clear=function(){this.size=0,this.__data__={hash:new X,map:new(J||V),string:new X}},Z.prototype.delete=function(e){var t=se(this,e).delete(e);return this.size-=t?1:0,t},Z.prototype.get=function(e){return se(this,e).get(e)},Z.prototype.has=function(e){return se(this,e).has(e)},Z.prototype.set=function(e,t){var r=se(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},W.prototype.clear=function(){this.__data__=new V,this.size=0},W.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},W.prototype.get=function(e){return this.__data__.get(e)},W.prototype.has=function(e){return this.__data__.has(e)},W.prototype.set=function(e,t){var r=this.__data__;if(r instanceof V){var n=r.__data__;if(!J||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Z(n)}return r.set(e,t),this.size=r.size,this};function re(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":$&&$ in Object(e)?function(e){var t=M.call(e,$),r=e[$];try{e[$]=void 0;var n=!0}catch(e){}var o=k.call(e);return n&&(t?e[$]=r:delete e[$]),o}(e):function(e){return k.call(e)}(e)}function ne(e){return _e(e)&&re(e)==i}function oe(e,t,r,n,o){e!==t&&function(e,t,r){for(var n=-1,o=Object(e),i=r(e),s=i.length;s--;){var a=i[++n];if(!1===t(o[a],a,o))break}}(t,function(i,s){if(o||(o=new W),be(i))!function(e,t,r,n,o,i,s){var c=pe(e,r),u=pe(t,r),p=s.get(u);if(p)Q(e,r,p);else{var l,f,d,h,y,g=i?i(c,u,r+"",e,t,s):void 0,m=void 0===g;if(m){var v=he(u),b=!v&&ge(u),_=!v&&!b&&je(u);g=u,v||b||_?he(c)?g=c:_e(y=c)&&ye(y)?g=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(c):b?(m=!1,g=function(e){return e.slice()}(u)):_?(m=!1,h=new(d=(l=u).buffer).constructor(d.byteLength),new U(h).set(new U(d)),f=h,g=new l.constructor(f,l.byteOffset,l.length)):g=[]:function(e){if(!_e(e)||re(e)!=a)return!1;var t=q(e);if(null===t)return!0;var r=M.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&x.call(r)==A}(u)||de(u)?(g=c,de(c)?g=function(e){return function(e,t,r){var n=!r;r||(r={});for(var o=-1,i=t.length;++o<i;){var s=t[o],a=void 0;void 0===a&&(a=e[s]),n?te(r,s,a):Y(r,s,a)}return r}(e,Oe(e))}(c):be(c)&&!me(c)||(g=function(e){return"function"!=typeof e.constructor||ue(e)?{}:K(q(e))}(u))):m=!1}m&&(s.set(u,g),o(g,u,n,i,s),s.delete(u)),Q(e,r,g)}}(e,t,s,r,oe,n,o);else{var c=n?n(pe(e,s),i,s+"",e,t,o):void 0;void 0===c&&(c=i),Q(e,s,c)}},Oe)}var ie=B?function(e,t){return B(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:Ce;function se(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function ae(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!be(e)||function(e){return!!P&&P in e}(e))&&(me(e)?I:c).test(function(e){if(null!=e){try{return x.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(r)?r:void 0}function ce(e,t){var r=typeof e;return!!(t=t??o)&&("number"==r||"symbol"!=r&&u.test(e))&&e>-1&&e%1==0&&e<t}function ue(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||C)}function pe(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var le=function(e){var t=0,r=0;return function(){var n=L(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ie);function fe(e,t){return e===t||e!=e&&t!=t}var de=ne(function(){return arguments}())?ne:function(e){return _e(e)&&M.call(e,"callee")&&!z.call(e,"callee")},he=Array.isArray;function ye(e){return null!=e&&ve(e.length)&&!me(e)}var ge=D||function(){return!1};function me(e){if(!be(e))return!1;var t=re(e);return t==s||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ve(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function be(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function _e(e){return null!=e&&"object"==typeof e}var je=O?function(e){return function(t){return e(t)}}(O):function(e){return _e(e)&&ve(e.length)&&!!p[re(e)]};function Oe(e){return ye(e)?function(e,t){var r=he(e),n=!r&&de(e),o=!r&&!n&&ge(e),i=!r&&!n&&!o&&je(e),s=r||n||o||i,a=s?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=a.length;for(var u in e)!t&&!M.call(e,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ce(u,c))||a.push(u);return a}(e,!0):function(e){if(!be(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=ue(e),r=[];for(var n in e)("constructor"!=n||!t&&M.call(e,n))&&r.push(n);return r}(e)}var we,Se=(we=function(e,t,r){oe(e,t,r)},function(e,t){return le(function(e,t,r){return t=H(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=H(n.length-t,0),s=Array(i);++o<i;)s[o]=n[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=n[o];return a[t]=r(s),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,a)}}(e,t,Ce),e+"")}(function(e,t){var r=-1,n=t.length,o=n>1?t[n-1]:void 0,i=n>2?t[2]:void 0;for(o=we.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(e,t,r){if(!be(r))return!1;var n=typeof t;return!!("number"==n?ye(r)&&ce(t,r.length):"string"==n&&t in r)&&fe(r[t],e)}(t[0],t[1],i)&&(o=n<3?void 0:o,n=1),e=Object(e);++r<n;){var s=t[r];s&&we(e,s,r)}return e}));function Ce(e){return e}e.exports=Se},1657(e){"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},803(e){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n](i,i.exports,r),i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};(()=>{"use strict";r.r(n),r.d(n,{createZipPaymentStrategy:()=>C});var e=r(168),t=function(){return t=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)};Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var o=/application\/(\w+\+)?json/,i=/application\/x-www-form-urlencoded/;const s=function(){function e(){}return e.prototype.toRequestBody=function(e){var t,r=e.headers?this._getHeader(e.headers,"Content-Type"):"";if(e.body){if(o.test(r))return JSON.stringify(e.body);if(i.test(r))return"object"!=typeof(t=e.body)||null===t?t:Object.keys(t).filter(function(e){return void 0!==t[e]}).map(function(e){var r=t[e];return"string"==typeof r?"".concat(e,"=").concat(encodeURIComponent(r)):"".concat(e,"=").concat(encodeURIComponent(JSON.stringify(r)||""))}).join("&")}return e.body},e.prototype.toResponse=function(e){var t=this._parseResponseHeaders(e.getAllResponseHeaders());return{body:this._parseResponseBody("response"in e?e.response:e.responseText,t),headers:t,status:e.status,statusText:e.statusText}},e.prototype._parseResponseBody=function(e,t){var r=this._getHeader(t,"Content-Type");return e&&o.test(r)?JSON.parse(e):e},e.prototype._parseResponseHeaders=function(e){return(e?e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/):[]).reduce(function(e,r){var n,o=r.split(":"),i=(o.shift()||"").trim();return i?t(t({},e),((n={})[i.toLowerCase()]=o.join(":").trim(),n)):e},{})},e.prototype._getHeader=function(e,t){return e&&t&&(e[t]||e[t.toLowerCase()])||""},e}();var a=r(5889);const c=function(){function e(){}return e.prototype.createRequest=function(e,t){var r=new XMLHttpRequest;return this._configureRequest(r,e,t),r},e.prototype._configureRequest=function(e,t,r){void 0===r&&(r={}),e.open(r.method||"GET",this._formatUrl(t,r.params,r.encodeParams),!0),r.headers&&this._configureRequestHeaders(e,r.headers),"boolean"==typeof r.credentials&&(e.withCredentials=r.credentials),"number"==typeof r.timeout&&(e.timeout=r.timeout)},e.prototype._configureRequestHeaders=function(e,t){Object.keys(t).filter(function(e){return null!==t[e]}).forEach(function(r){e.setRequestHeader(r,t[r])})},e.prototype._formatUrl=function(e,t,r){return void 0===r&&(r=!0),t&&0!==Object.keys(t).length?"".concat(e,"?").concat(a.stringify(t,{encode:r})):e},e}();var u=r(35),p=r.n(u),l=function(){function e(){this._cache={}}return e.prototype.read=function(e,t){var r=this.getKey(e,t.params);return this._cache[r]||null},e.prototype.write=function(e,t,r){var n=this.getKey(e,t.params);this._cache[n]=r},e.prototype.getKey=function(e,t){return void 0===t&&(t={}),0===Object.keys(t).length?e:"".concat(e,"?").concat(a.stringify(t))},e}();const f=function(){function e(e){var t=this;this._delay=e,this._promise=new Promise(function(e){t._resolve=e})}return e.prototype.onComplete=function(e){this._promise.then(e)},e.prototype.complete=function(){this._resolve(),void 0!==this._timeoutToken&&clearTimeout(this._timeoutToken)},e.prototype.start=function(){var e=this;void 0!==this._delay&&(this._timeoutToken=setTimeout(function(){return e.complete()},this._delay))},e}(),d=function(){function e(e,t,r,n){void 0===n&&(n={}),this._requestFactory=e,this._payloadTransformer=t,this._cookie=r,this._options=n,this._cache=this._options.cache||new l}return e.prototype.sendRequest=function(e,t){var r=this,n=this._mergeDefaultOptions(e,t),o=this._getCachedRequest(e,n);if(o)return Promise.resolve(o);var i=this._requestFactory.createRequest(this._prependHost(e),n);return new Promise(function(t,o){var s,a=function(){var s=r._payloadTransformer.toResponse(i);s.status>=200&&s.status<300?(r._cacheRequest(e,n,s),t(s)):o(s)};i.onload=a,i.onerror=a,i.onabort=a,i.ontimeout=a,n.timeout instanceof f&&(n.timeout.onComplete(function(){return i.abort()}),n.timeout.start()),!(s=n.timeout)||"object"!=typeof s&&"function"!=typeof s||"function"!=typeof s.then||n.timeout.then(function(){return i.abort()}),i.send(r._payloadTransformer.toRequestBody(n))})},e.prototype.get=function(e,r){return this.sendRequest(e,t(t({},r),{method:"GET"}))},e.prototype.post=function(e,r){return this.sendRequest(e,t(t({},r),{method:"POST"}))},e.prototype.put=function(e,r){return this.sendRequest(e,t(t({},r),{method:"PUT"}))},e.prototype.patch=function(e,r){return this.sendRequest(e,t(t({},r),{method:"PATCH"}))},e.prototype.delete=function(e,r){return this.sendRequest(e,t(t({},r),{method:"DELETE"}))},e.prototype._mergeDefaultOptions=function(e,t){var r={credentials:!0,encodeParams:!0,headers:{Accept:"application/json, text/plain, */*"},method:"GET"},n=this._cookie.get("XSRF-TOKEN");return n&&r.headers&&!this._isAssetRequest(e,t)&&this._isLocalRequest(e)&&(r.headers["X-XSRF-TOKEN"]=n),t&&t.body&&r.headers&&(r.headers["Content-Type"]="application/json"),p()({},r,t)},e.prototype._prependHost=function(e){return!this._options.host||/^https?:\/\//.test(e)?e:"".concat(this._options.host.replace(/\/$/,""),"/").concat(e.replace(/^\//,""))},e.prototype._shouldCacheRequest=function(e){return"GET"===(e.method||"GET").toUpperCase()&&Boolean(e.cache)},e.prototype._getCachedRequest=function(e,t){return this._shouldCacheRequest(t)?this._cache.read(e,t):null},e.prototype._cacheRequest=function(e,t,r){this._shouldCacheRequest(t)&&this._cache.write(e,t,r)},e.prototype._isAssetRequest=function(e,t){return(!t||!t.method||"GET"===t.method.toUpperCase())&&/\.(png|gif|jpe?g|css|js|json|svg|html?)$/.test(e.split("?")[0])},e.prototype._isLocalRequest=function(e){return!!e.match(new RegExp("^(https?:)?//"+window.location.hostname))||!e.match(new RegExp("^(https?:)?//"))},e}();var h;!function(e){e.Json="application/json",e.JsonV1="application/vnd.bc.v1+json"}(h||(h={}));const y=h,g={"X-Checkout-SDK-Version":"1.915.0"};var m;class v{constructor(e){this._requestSender=e}saveExternalId(e,t){return r=this,n=void 0,i=function*(){const r=`/api/storefront/payment/${e}/save-external-id`,n={headers:Object.assign({Accept:y.JsonV1,"X-API-INTERNAL":"This API endpoint is for internal use only and may change in the future"},g),body:{externalId:t,provider:e}};yield this._requestSender.post(r,n)},new((o=void 0)||(o=Promise))(function(e,t){function s(e){try{c(i.next(e))}catch(e){t(e)}}function a(e){try{c(i.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof o?r:new o(function(e){e(r)})).then(s,a)}c((i=i.apply(r,n||[])).next())});var r,n,o,i}}class b extends Error{constructor(e){var t;super(e||"An unexpected error has occurred."),this.name="StandardError",this.type="standard",t=new.target.prototype,Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,new.target):this.stack=new Error(this.message).stack}}class _ extends b{constructor(e){super(e||"Invalid arguments have been provided."),this.name="InvalidArgumentError",this.type="invalid_argument"}}class j extends _{constructor(e){let t="Unable to submit payment for the order because the payload is invalid.";e&&(t=`${t} Make sure the following fields are provided correctly: ${e.join(", ")}.`),super(t),this.name="PaymentArgumentInvalidError"}}!function(e){e[e.MissingBillingAddress=0]="MissingBillingAddress",e[e.MissingCart=1]="MissingCart",e[e.MissingCheckout=2]="MissingCheckout",e[e.MissingConsignments=3]="MissingConsignments",e[e.MissingCustomer=4]="MissingCustomer",e[e.MissingCheckoutConfig=5]="MissingCheckoutConfig",e[e.MissingOrder=6]="MissingOrder",e[e.MissingOrderConfig=7]="MissingOrderConfig",e[e.MissingOrderId=8]="MissingOrderId",e[e.MissingPayment=9]="MissingPayment",e[e.MissingPaymentId=10]="MissingPaymentId",e[e.MissingPaymentInstrument=11]="MissingPaymentInstrument",e[e.MissingPaymentMethod=12]="MissingPaymentMethod",e[e.MissingPaymentRedirectUrl=13]="MissingPaymentRedirectUrl",e[e.MissingPaymentStatus=14]="MissingPaymentStatus",e[e.MissingPaymentToken=15]="MissingPaymentToken",e[e.MissingShippingAddress=16]="MissingShippingAddress"}(m||(m={}));class O extends b{constructor(e){super(function(e){switch(e){case m.MissingBillingAddress:return"Unable to proceed because billing address data is unavailable.";case m.MissingCart:return"Unable to proceed because cart data is unavailable.";case m.MissingConsignments:return"Unable to proceed because consignments data is unavailable.";case m.MissingCheckout:return"Unable to proceed because checkout data is unavailable.";case m.MissingCustomer:return"Unable to proceed because customer data is unavailable.";case m.MissingCheckoutConfig:case m.MissingOrderConfig:return"Unable to proceed because configuration data is unavailable.";case m.MissingOrder:return"Unable to proceed because order data is unavailable.";case m.MissingOrderId:return"Unable to proceed because order ID is unavailable or not generated yet.";case m.MissingPayment:return"Unable to proceed because payment data is unavailable.";case m.MissingPaymentToken:return"Unable to proceed because the token required to submit a payment is missing.";case m.MissingPaymentMethod:return"Unable to proceed because payment method data is unavailable or not properly configured.";case m.MissingShippingAddress:return"Unable to proceed because shipping address data is unavailable.";default:return"Unable to proceed because the required data is unavailable."}}(e)),this.subtype=e,this.name="MissingDataError",this.type="missing_data"}}class w extends b{constructor(){super("The current order does not need to be finalized at this stage."),this.name="OrderFinalizationNotRequiredError",this.type="order_finalization_not_required"}}class S{constructor(e,t){this.paymentIntegrationService=e,this.storefrontPaymentRequestSender=t}initialize(){return Promise.resolve()}execute(e,t){return r=this,n=void 0,i=function*(){const{payment:r}=e,n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["payment"]);if(!r)throw new j(["payment"]);const{methodId:o}=r,{getPaymentMethodOrThrow:i}=yield this.paymentIntegrationService.loadPaymentMethod(o,t),{clientToken:s,initializationData:a}=i(o),c=null==a?void 0:a.redirectUrl;if(!s||!c)throw new O(m.MissingPaymentMethod);const{id:u}=JSON.parse(s);if(!u)throw new O(m.MissingPaymentToken);const{isStoreCreditApplied:p}=this.paymentIntegrationService.getState().getCheckoutOrThrow();yield this.paymentIntegrationService.applyStoreCredit(p),yield this.paymentIntegrationService.initializePayment(o,{useStoreCredit:p}),yield this.paymentIntegrationService.submitOrder(n,t),yield this._prepareForReferredRegistration(o,u);try{yield this.paymentIntegrationService.submitPayment({methodId:o,paymentData:{nonce:u}})}catch(e){if((e=>"object"==typeof e&&null!==e&&"body"in e)(e)&&"additional_action_required"===e.body.status)return new Promise(()=>window.location.replace(c));throw e}},new((o=void 0)||(o=Promise))(function(e,t){function s(e){try{c(i.next(e))}catch(e){t(e)}}function a(e){try{c(i.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof o?r:new o(function(e){e(r)})).then(s,a)}c((i=i.apply(r,n||[])).next())});var r,n,o,i}finalize(){return Promise.reject(new w)}deinitialize(){return Promise.resolve()}_prepareForReferredRegistration(e,t){return this.storefrontPaymentRequestSender.saveExternalId(e,t)}}const C=Object.assign(t=>{const{getHost:r}=t.getState(),n=(o={host:r()},new d(new c,new s,e,o));var o;const i=new v(n);return new S(t,i)},{resolveIds:[{id:"zip"},{id:"quadpay"}]})})(),module.exports=n})();
1
+ (()=>{var e={5889(e,t,r){"use strict";const n=r(803),o=r(1915),i=r(1657),s=r(3814);function a(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function u(e,t){return t.decode?o(e):e}function p(e){return Array.isArray(e)?e.sort():"object"==typeof e?p(Object.keys(e)).sort((e,t)=>Number(e)-Number(t)).map(t=>e[t]):e}function l(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function f(e){const t=(e=l(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function d(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function h(e,t){a((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const o="string"==typeof r&&r.includes(e.arrayFormatSeparator),i="string"==typeof r&&!o&&u(r,e).includes(e.arrayFormatSeparator);r=i?u(r,e):r;const s=o||i?r.split(e.arrayFormatSeparator).map(t=>u(t,e)):null===r?r:u(r,e);n[t]=s};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),n=Object.create(null);if("string"!=typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const o of e.split("&")){if(""===o)continue;let[e,s]=i(t.decode?o.replace(/\+/g," "):o,"=");s=void 0===s?null:["comma","separator"].includes(t.arrayFormat)?s:u(s,t),r(u(e,t),s,n)}for(const e of Object.keys(n)){const r=n[e];if("object"==typeof r&&null!==r)for(const e of Object.keys(r))r[e]=d(r[e],t);else n[e]=d(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((e,t)=>{const r=n[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=p(r):e[t]=r,e},Object.create(null))}t.extract=f,t.parse=h,t.stringify=(e,t)=>{if(!e)return"";a((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const o=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[c(t,e),"[",o,"]"].join("")]:[...r,[c(t,e),"[",c(o,e),"]=",c(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[c(t,e),"[]"].join("")]:[...r,[c(t,e),"[]=",c(n,e)].join("")];case"comma":case"separator":return t=>(r,n)=>null==n||0===n.length?r:0===r.length?[[c(t,e),"=",c(n,e)].join("")]:[[r,c(n,e)].join(e.arrayFormatSeparator)];default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,c(t,e)]:[...r,[c(t,e),"=",c(n,e)].join("")]}}(t),o={};for(const t of Object.keys(e))r(t)||(o[t]=e[t]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map(r=>{const o=e[r];return void 0===o?"":null===o?c(r,t):Array.isArray(o)?o.reduce(n(r),[]).join("&"):c(r,t)+"="+c(o,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,n]=i(e,"#");return Object.assign({url:r.split("?")[0]||"",query:h(f(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:u(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0},r);const n=l(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),s=Object.assign(i,e.query);let a=t.stringify(s,r);a&&(a=`?${a}`);let u=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(u=`#${c(e.fragmentIdentifier,r)}`),`${n}${a}${u}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0},n);const{url:o,query:i,fragmentIdentifier:a}=t.parseUrl(e,n);return t.stringifyUrl({url:o,query:s(i,r),fragmentIdentifier:a},n)},t.exclude=(e,r,n)=>{const o=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,o,n)}},1915(e){"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),n=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],o(r),o(n))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=o(t,n).join("")).match(r)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=n.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var o=i(r[0]);o!==r[0]&&(t[r[0]]=o)}r=n.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),a=0;a<s.length;a++){var c=s[a];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},3814(e){"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),i=0;i<n.length;i++){var s=n[i],a=e[s];(o?-1!==t.indexOf(s):t(s,a,e))&&(r[s]=a)}return r}},168(e){var t;t=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function r(n){function o(){}function i(t,r,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var s=JSON.stringify(r);/^[\{\[]/.test(s)&&(r=s)}catch(e){}r=n.write?n.write(r,t):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var c in i)i[c]&&(a+="; "+c,!0!==i[c]&&(a+="="+i[c].split(";")[0]));return document.cookie=t+"="+r+a}}function s(e,r){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],s=0;s<i.length;s++){var a=i[s].split("="),c=a.slice(1).join("=");r||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var u=t(a[0]);if(c=(n.read||n)(c,u)||t(c),r)try{c=JSON.parse(c)}catch(e){}if(o[u]=c,e===u)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return s(e,!1)},o.getJSON=function(e){return s(e,!0)},o.remove=function(t,r){i(t,"",e(r,{expires:-1}))},o.defaults={},o.withConverter=r,o}(function(){})},"function"==typeof define&&define.amd&&define(t),e.exports=t()},35(e,t,r){e=r.nmd(e);var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",s="[object Function]",a="[object Object]",c=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p[i]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p[s]=p["[object Map]"]=p["[object Number]"]=p[a]=p["[object RegExp]"]=p["[object Set]"]=p["[object String]"]=p["[object WeakMap]"]=!1;var l,f,d,h="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,y="object"==typeof self&&self&&self.Object===Object&&self,g=h||y||Function("return this")(),m=t&&!t.nodeType&&t,v=m&&e&&!e.nodeType&&e,b=v&&v.exports===m,_=b&&h.process,j=function(){try{return v&&v.require&&v.require("util").types||_&&_.binding&&_.binding("util")}catch(e){}}(),O=j&&j.isTypedArray,w=Array.prototype,S=Function.prototype,C=Object.prototype,R=g["__core-js_shared__"],x=S.toString,M=C.hasOwnProperty,P=(l=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",k=C.toString,A=x.call(Object),I=RegExp("^"+x.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),E=b?g.Buffer:void 0,T=g.Symbol,U=g.Uint8Array,q=(E&&E.allocUnsafe,f=Object.getPrototypeOf,d=Object,function(e){return f(d(e))}),F=Object.create,z=C.propertyIsEnumerable,N=w.splice,$=T?T.toStringTag:void 0,B=function(){try{var e=ae(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),D=E?E.isBuffer:void 0,H=Math.max,L=Date.now,J=ae(g,"Map"),G=ae(Object,"create"),K=function(){function e(){}return function(t){if(!be(t))return{};if(F)return F(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function X(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function V(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Z(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function W(e){var t=this.__data__=new V(e);this.size=t.size}function Q(e,t,r){(void 0!==r&&!fe(e[t],r)||void 0===r&&!(t in e))&&te(e,t,r)}function Y(e,t,r){var n=e[t];M.call(e,t)&&fe(n,r)&&(void 0!==r||t in e)||te(e,t,r)}function ee(e,t){for(var r=e.length;r--;)if(fe(e[r][0],t))return r;return-1}function te(e,t,r){"__proto__"==t&&B?B(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}X.prototype.clear=function(){this.__data__=G?G(null):{},this.size=0},X.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},X.prototype.get=function(e){var t=this.__data__;if(G){var r=t[e];return r===n?void 0:r}return M.call(t,e)?t[e]:void 0},X.prototype.has=function(e){var t=this.__data__;return G?void 0!==t[e]:M.call(t,e)},X.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=G&&void 0===t?n:t,this},V.prototype.clear=function(){this.__data__=[],this.size=0},V.prototype.delete=function(e){var t=this.__data__,r=ee(t,e);return!(r<0||(r==t.length-1?t.pop():N.call(t,r,1),--this.size,0))},V.prototype.get=function(e){var t=this.__data__,r=ee(t,e);return r<0?void 0:t[r][1]},V.prototype.has=function(e){return ee(this.__data__,e)>-1},V.prototype.set=function(e,t){var r=this.__data__,n=ee(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Z.prototype.clear=function(){this.size=0,this.__data__={hash:new X,map:new(J||V),string:new X}},Z.prototype.delete=function(e){var t=se(this,e).delete(e);return this.size-=t?1:0,t},Z.prototype.get=function(e){return se(this,e).get(e)},Z.prototype.has=function(e){return se(this,e).has(e)},Z.prototype.set=function(e,t){var r=se(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},W.prototype.clear=function(){this.__data__=new V,this.size=0},W.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},W.prototype.get=function(e){return this.__data__.get(e)},W.prototype.has=function(e){return this.__data__.has(e)},W.prototype.set=function(e,t){var r=this.__data__;if(r instanceof V){var n=r.__data__;if(!J||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Z(n)}return r.set(e,t),this.size=r.size,this};function re(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":$&&$ in Object(e)?function(e){var t=M.call(e,$),r=e[$];try{e[$]=void 0;var n=!0}catch(e){}var o=k.call(e);return n&&(t?e[$]=r:delete e[$]),o}(e):function(e){return k.call(e)}(e)}function ne(e){return _e(e)&&re(e)==i}function oe(e,t,r,n,o){e!==t&&function(e,t,r){for(var n=-1,o=Object(e),i=r(e),s=i.length;s--;){var a=i[++n];if(!1===t(o[a],a,o))break}}(t,function(i,s){if(o||(o=new W),be(i))!function(e,t,r,n,o,i,s){var c=pe(e,r),u=pe(t,r),p=s.get(u);if(p)Q(e,r,p);else{var l,f,d,h,y,g=i?i(c,u,r+"",e,t,s):void 0,m=void 0===g;if(m){var v=he(u),b=!v&&ge(u),_=!v&&!b&&je(u);g=u,v||b||_?he(c)?g=c:_e(y=c)&&ye(y)?g=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(c):b?(m=!1,g=function(e){return e.slice()}(u)):_?(m=!1,h=new(d=(l=u).buffer).constructor(d.byteLength),new U(h).set(new U(d)),f=h,g=new l.constructor(f,l.byteOffset,l.length)):g=[]:function(e){if(!_e(e)||re(e)!=a)return!1;var t=q(e);if(null===t)return!0;var r=M.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&x.call(r)==A}(u)||de(u)?(g=c,de(c)?g=function(e){return function(e,t,r){var n=!r;r||(r={});for(var o=-1,i=t.length;++o<i;){var s=t[o],a=void 0;void 0===a&&(a=e[s]),n?te(r,s,a):Y(r,s,a)}return r}(e,Oe(e))}(c):be(c)&&!me(c)||(g=function(e){return"function"!=typeof e.constructor||ue(e)?{}:K(q(e))}(u))):m=!1}m&&(s.set(u,g),o(g,u,n,i,s),s.delete(u)),Q(e,r,g)}}(e,t,s,r,oe,n,o);else{var c=n?n(pe(e,s),i,s+"",e,t,o):void 0;void 0===c&&(c=i),Q(e,s,c)}},Oe)}var ie=B?function(e,t){return B(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:Ce;function se(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function ae(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!be(e)||function(e){return!!P&&P in e}(e))&&(me(e)?I:c).test(function(e){if(null!=e){try{return x.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(r)?r:void 0}function ce(e,t){var r=typeof e;return!!(t=t??o)&&("number"==r||"symbol"!=r&&u.test(e))&&e>-1&&e%1==0&&e<t}function ue(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||C)}function pe(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var le=function(e){var t=0,r=0;return function(){var n=L(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ie);function fe(e,t){return e===t||e!=e&&t!=t}var de=ne(function(){return arguments}())?ne:function(e){return _e(e)&&M.call(e,"callee")&&!z.call(e,"callee")},he=Array.isArray;function ye(e){return null!=e&&ve(e.length)&&!me(e)}var ge=D||function(){return!1};function me(e){if(!be(e))return!1;var t=re(e);return t==s||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ve(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function be(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function _e(e){return null!=e&&"object"==typeof e}var je=O?function(e){return function(t){return e(t)}}(O):function(e){return _e(e)&&ve(e.length)&&!!p[re(e)]};function Oe(e){return ye(e)?function(e,t){var r=he(e),n=!r&&de(e),o=!r&&!n&&ge(e),i=!r&&!n&&!o&&je(e),s=r||n||o||i,a=s?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=a.length;for(var u in e)!t&&!M.call(e,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ce(u,c))||a.push(u);return a}(e,!0):function(e){if(!be(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=ue(e),r=[];for(var n in e)("constructor"!=n||!t&&M.call(e,n))&&r.push(n);return r}(e)}var we,Se=(we=function(e,t,r){oe(e,t,r)},function(e,t){return le(function(e,t,r){return t=H(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=H(n.length-t,0),s=Array(i);++o<i;)s[o]=n[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=n[o];return a[t]=r(s),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,a)}}(e,t,Ce),e+"")}(function(e,t){var r=-1,n=t.length,o=n>1?t[n-1]:void 0,i=n>2?t[2]:void 0;for(o=we.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(e,t,r){if(!be(r))return!1;var n=typeof t;return!!("number"==n?ye(r)&&ce(t,r.length):"string"==n&&t in r)&&fe(r[t],e)}(t[0],t[1],i)&&(o=n<3?void 0:o,n=1),e=Object(e);++r<n;){var s=t[r];s&&we(e,s,r)}return e}));function Ce(e){return e}e.exports=Se},1657(e){"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},803(e){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n](i,i.exports,r),i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};(()=>{"use strict";r.r(n),r.d(n,{createZipPaymentStrategy:()=>C});var e=r(168),t=function(){return t=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)};Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var o=/application\/(\w+\+)?json/,i=/application\/x-www-form-urlencoded/;const s=function(){function e(){}return e.prototype.toRequestBody=function(e){var t,r=e.headers?this._getHeader(e.headers,"Content-Type"):"";if(e.body){if(o.test(r))return JSON.stringify(e.body);if(i.test(r))return"object"!=typeof(t=e.body)||null===t?t:Object.keys(t).filter(function(e){return void 0!==t[e]}).map(function(e){var r=t[e];return"string"==typeof r?"".concat(e,"=").concat(encodeURIComponent(r)):"".concat(e,"=").concat(encodeURIComponent(JSON.stringify(r)||""))}).join("&")}return e.body},e.prototype.toResponse=function(e){var t=this._parseResponseHeaders(e.getAllResponseHeaders());return{body:this._parseResponseBody("response"in e?e.response:e.responseText,t),headers:t,status:e.status,statusText:e.statusText}},e.prototype._parseResponseBody=function(e,t){var r=this._getHeader(t,"Content-Type");return e&&o.test(r)?JSON.parse(e):e},e.prototype._parseResponseHeaders=function(e){return(e?e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/):[]).reduce(function(e,r){var n,o=r.split(":"),i=(o.shift()||"").trim();return i?t(t({},e),((n={})[i.toLowerCase()]=o.join(":").trim(),n)):e},{})},e.prototype._getHeader=function(e,t){return e&&t&&(e[t]||e[t.toLowerCase()])||""},e}();var a=r(5889);const c=function(){function e(){}return e.prototype.createRequest=function(e,t){var r=new XMLHttpRequest;return this._configureRequest(r,e,t),r},e.prototype._configureRequest=function(e,t,r){void 0===r&&(r={}),e.open(r.method||"GET",this._formatUrl(t,r.params,r.encodeParams),!0),r.headers&&this._configureRequestHeaders(e,r.headers),"boolean"==typeof r.credentials&&(e.withCredentials=r.credentials),"number"==typeof r.timeout&&(e.timeout=r.timeout)},e.prototype._configureRequestHeaders=function(e,t){Object.keys(t).filter(function(e){return null!==t[e]}).forEach(function(r){e.setRequestHeader(r,t[r])})},e.prototype._formatUrl=function(e,t,r){return void 0===r&&(r=!0),t&&0!==Object.keys(t).length?"".concat(e,"?").concat(a.stringify(t,{encode:r})):e},e}();var u=r(35),p=r.n(u),l=function(){function e(){this._cache={}}return e.prototype.read=function(e,t){var r=this.getKey(e,t.params);return this._cache[r]||null},e.prototype.write=function(e,t,r){var n=this.getKey(e,t.params);this._cache[n]=r},e.prototype.getKey=function(e,t){return void 0===t&&(t={}),0===Object.keys(t).length?e:"".concat(e,"?").concat(a.stringify(t))},e}();const f=function(){function e(e){var t=this;this._delay=e,this._promise=new Promise(function(e){t._resolve=e})}return e.prototype.onComplete=function(e){this._promise.then(e)},e.prototype.complete=function(){this._resolve(),void 0!==this._timeoutToken&&clearTimeout(this._timeoutToken)},e.prototype.start=function(){var e=this;void 0!==this._delay&&(this._timeoutToken=setTimeout(function(){return e.complete()},this._delay))},e}(),d=function(){function e(e,t,r,n){void 0===n&&(n={}),this._requestFactory=e,this._payloadTransformer=t,this._cookie=r,this._options=n,this._cache=this._options.cache||new l}return e.prototype.sendRequest=function(e,t){var r=this,n=this._mergeDefaultOptions(e,t),o=this._getCachedRequest(e,n);if(o)return Promise.resolve(o);var i=this._requestFactory.createRequest(this._prependHost(e),n);return new Promise(function(t,o){var s,a=function(){var s=r._payloadTransformer.toResponse(i);s.status>=200&&s.status<300?(r._cacheRequest(e,n,s),t(s)):o(s)};i.onload=a,i.onerror=a,i.onabort=a,i.ontimeout=a,n.timeout instanceof f&&(n.timeout.onComplete(function(){return i.abort()}),n.timeout.start()),!(s=n.timeout)||"object"!=typeof s&&"function"!=typeof s||"function"!=typeof s.then||n.timeout.then(function(){return i.abort()}),i.send(r._payloadTransformer.toRequestBody(n))})},e.prototype.get=function(e,r){return this.sendRequest(e,t(t({},r),{method:"GET"}))},e.prototype.post=function(e,r){return this.sendRequest(e,t(t({},r),{method:"POST"}))},e.prototype.put=function(e,r){return this.sendRequest(e,t(t({},r),{method:"PUT"}))},e.prototype.patch=function(e,r){return this.sendRequest(e,t(t({},r),{method:"PATCH"}))},e.prototype.delete=function(e,r){return this.sendRequest(e,t(t({},r),{method:"DELETE"}))},e.prototype._mergeDefaultOptions=function(e,t){var r={credentials:!0,encodeParams:!0,headers:{Accept:"application/json, text/plain, */*"},method:"GET"},n=this._cookie.get("XSRF-TOKEN");return n&&r.headers&&!this._isAssetRequest(e,t)&&this._isLocalRequest(e)&&(r.headers["X-XSRF-TOKEN"]=n),t&&t.body&&r.headers&&(r.headers["Content-Type"]="application/json"),p()({},r,t)},e.prototype._prependHost=function(e){return!this._options.host||/^https?:\/\//.test(e)?e:"".concat(this._options.host.replace(/\/$/,""),"/").concat(e.replace(/^\//,""))},e.prototype._shouldCacheRequest=function(e){return"GET"===(e.method||"GET").toUpperCase()&&Boolean(e.cache)},e.prototype._getCachedRequest=function(e,t){return this._shouldCacheRequest(t)?this._cache.read(e,t):null},e.prototype._cacheRequest=function(e,t,r){this._shouldCacheRequest(t)&&this._cache.write(e,t,r)},e.prototype._isAssetRequest=function(e,t){return(!t||!t.method||"GET"===t.method.toUpperCase())&&/\.(png|gif|jpe?g|css|js|json|svg|html?)$/.test(e.split("?")[0])},e.prototype._isLocalRequest=function(e){return!!e.match(new RegExp("^(https?:)?//"+window.location.hostname))||!e.match(new RegExp("^(https?:)?//"))},e}();var h;!function(e){e.Json="application/json",e.JsonV1="application/vnd.bc.v1+json"}(h||(h={}));const y=h,g={"X-Checkout-SDK-Version":"1.916.0"};var m;class v{constructor(e){this._requestSender=e}saveExternalId(e,t){return r=this,n=void 0,i=function*(){const r=`/api/storefront/payment/${e}/save-external-id`,n={headers:Object.assign({Accept:y.JsonV1,"X-API-INTERNAL":"This API endpoint is for internal use only and may change in the future"},g),body:{externalId:t,provider:e}};yield this._requestSender.post(r,n)},new((o=void 0)||(o=Promise))(function(e,t){function s(e){try{c(i.next(e))}catch(e){t(e)}}function a(e){try{c(i.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof o?r:new o(function(e){e(r)})).then(s,a)}c((i=i.apply(r,n||[])).next())});var r,n,o,i}}class b extends Error{constructor(e){var t;super(e||"An unexpected error has occurred."),this.name="StandardError",this.type="standard",t=new.target.prototype,Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,new.target):this.stack=new Error(this.message).stack}}class _ extends b{constructor(e){super(e||"Invalid arguments have been provided."),this.name="InvalidArgumentError",this.type="invalid_argument"}}class j extends _{constructor(e){let t="Unable to submit payment for the order because the payload is invalid.";e&&(t=`${t} Make sure the following fields are provided correctly: ${e.join(", ")}.`),super(t),this.name="PaymentArgumentInvalidError"}}!function(e){e[e.MissingBillingAddress=0]="MissingBillingAddress",e[e.MissingCart=1]="MissingCart",e[e.MissingCheckout=2]="MissingCheckout",e[e.MissingConsignments=3]="MissingConsignments",e[e.MissingCustomer=4]="MissingCustomer",e[e.MissingCheckoutConfig=5]="MissingCheckoutConfig",e[e.MissingOrder=6]="MissingOrder",e[e.MissingOrderConfig=7]="MissingOrderConfig",e[e.MissingOrderId=8]="MissingOrderId",e[e.MissingPayment=9]="MissingPayment",e[e.MissingPaymentId=10]="MissingPaymentId",e[e.MissingPaymentInstrument=11]="MissingPaymentInstrument",e[e.MissingPaymentMethod=12]="MissingPaymentMethod",e[e.MissingPaymentRedirectUrl=13]="MissingPaymentRedirectUrl",e[e.MissingPaymentStatus=14]="MissingPaymentStatus",e[e.MissingPaymentToken=15]="MissingPaymentToken",e[e.MissingShippingAddress=16]="MissingShippingAddress"}(m||(m={}));class O extends b{constructor(e){super(function(e){switch(e){case m.MissingBillingAddress:return"Unable to proceed because billing address data is unavailable.";case m.MissingCart:return"Unable to proceed because cart data is unavailable.";case m.MissingConsignments:return"Unable to proceed because consignments data is unavailable.";case m.MissingCheckout:return"Unable to proceed because checkout data is unavailable.";case m.MissingCustomer:return"Unable to proceed because customer data is unavailable.";case m.MissingCheckoutConfig:case m.MissingOrderConfig:return"Unable to proceed because configuration data is unavailable.";case m.MissingOrder:return"Unable to proceed because order data is unavailable.";case m.MissingOrderId:return"Unable to proceed because order ID is unavailable or not generated yet.";case m.MissingPayment:return"Unable to proceed because payment data is unavailable.";case m.MissingPaymentToken:return"Unable to proceed because the token required to submit a payment is missing.";case m.MissingPaymentMethod:return"Unable to proceed because payment method data is unavailable or not properly configured.";case m.MissingShippingAddress:return"Unable to proceed because shipping address data is unavailable.";default:return"Unable to proceed because the required data is unavailable."}}(e)),this.subtype=e,this.name="MissingDataError",this.type="missing_data"}}class w extends b{constructor(){super("The current order does not need to be finalized at this stage."),this.name="OrderFinalizationNotRequiredError",this.type="order_finalization_not_required"}}class S{constructor(e,t){this.paymentIntegrationService=e,this.storefrontPaymentRequestSender=t}initialize(){return Promise.resolve()}execute(e,t){return r=this,n=void 0,i=function*(){const{payment:r}=e,n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["payment"]);if(!r)throw new j(["payment"]);const{methodId:o}=r,{getPaymentMethodOrThrow:i}=yield this.paymentIntegrationService.loadPaymentMethod(o,t),{clientToken:s,initializationData:a}=i(o),c=null==a?void 0:a.redirectUrl;if(!s||!c)throw new O(m.MissingPaymentMethod);const{id:u}=JSON.parse(s);if(!u)throw new O(m.MissingPaymentToken);const{isStoreCreditApplied:p}=this.paymentIntegrationService.getState().getCheckoutOrThrow();yield this.paymentIntegrationService.applyStoreCredit(p),yield this.paymentIntegrationService.initializePayment(o,{useStoreCredit:p}),yield this.paymentIntegrationService.submitOrder(n,t),yield this._prepareForReferredRegistration(o,u);try{yield this.paymentIntegrationService.submitPayment({methodId:o,paymentData:{nonce:u}})}catch(e){if((e=>"object"==typeof e&&null!==e&&"body"in e)(e)&&"additional_action_required"===e.body.status)return new Promise(()=>window.location.replace(c));throw e}},new((o=void 0)||(o=Promise))(function(e,t){function s(e){try{c(i.next(e))}catch(e){t(e)}}function a(e){try{c(i.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof o?r:new o(function(e){e(r)})).then(s,a)}c((i=i.apply(r,n||[])).next())});var r,n,o,i}finalize(){return Promise.reject(new w)}deinitialize(){return Promise.resolve()}_prepareForReferredRegistration(e,t){return this.storefrontPaymentRequestSender.saveExternalId(e,t)}}const C=Object.assign(t=>{const{getHost:r}=t.getState(),n=(o={host:r()},new d(new c,new s,e,o));var o;const i=new v(n);return new S(t,i)},{resolveIds:[{id:"zip"},{id:"quadpay"}]})})(),module.exports=n})();
2
2
  //# sourceMappingURL=zip.js.map