UNPKG

@moltin/shopkit

Version:

Embeddable Moltin Cart + Checkout

1 lines 484 kB
window.MoltinShopkit=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=40)}([function(e,t,n){"use strict";e.exports=n(24)},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return ve})),n.d(t,"d",(function(){return et})),n.d(t,"a",(function(){return $e}));var r=n(11),i=n.n(r),o=n(19),a=n.n(o),s=n(0),l=n.n(s),u=n(20),c=n(12),f=n(13),d=(n(5),n(22)),p=n(23),h=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},m="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},y=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},g=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=Object.assign||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},b=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},w=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},C=function(e){return"object"===(void 0===e?"undefined":m(e))&&e.constructor===Object},S=Object.freeze([]),E=Object.freeze({});function x(e){return"function"==typeof e}function k(e){return e.displayName||e.name||"Component"}function _(e){return e&&"string"==typeof e.styledComponentId}var O=void 0!==e&&(e.env.REACT_APP_SC_ATTR||e.env.SC_ATTR)||"data-styled",T="undefined"!=typeof window&&"HTMLElement"in window,P="boolean"==typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||void 0!==e&&(e.env.REACT_APP_SC_DISABLE_SPEEDY||e.env.SC_DISABLE_SPEEDY)||!1;var j=function(e){function t(n){y(this,t);for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=w(this,e.call(this,"An error occurred. See https://github.com/styled-components/styled-components/blob/master/packages/styled-components/src/utils/errors.md#"+n+" for more information."+(i.length>0?" Additional arguments: "+i.join(", "):"")));return w(a)}return b(t,e),t}(Error),A=/^[^\S\n]*?\/\* sc-component-id:\s*(\S+)\s+\*\//gm,I=function(e){var t=""+(e||""),n=[];return t.replace(A,(function(e,t,r){return n.push({componentId:t,matchIndex:r}),e})),n.map((function(e,r){var i=e.componentId,o=e.matchIndex,a=n[r+1];return{componentId:i,cssFromDOM:a?t.slice(o,a.matchIndex):t.slice(o)}}))},N=/^\s*\/\/.*$/gm,L=new i.a({global:!1,cascade:!0,keyframe:!1,prefix:!1,compress:!1,semicolon:!0}),R=new i.a({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!1}),M=[],F=function(e){if(-2===e){var t=M;return M=[],t}},D=a()((function(e){M.push(e)})),z=void 0,B=void 0,V=void 0,q=function(e,t,n){return t>0&&-1!==n.slice(0,t).indexOf(B)&&n.slice(t-B.length,t)!==B?"."+z:e};R.use([function(e,t,n){2===e&&n.length&&n[0].lastIndexOf(B)>0&&(n[0]=n[0].replace(V,q))},D,F]),L.use([D,F]);var U=function(e){return L("",e)};function H(e,t,n){var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:"&",i=e.join("").replace(N,""),o=t&&n?n+" "+t+" { "+i+" }":i;return z=r,B=t,V=new RegExp("\\"+B+"\\b","g"),R(n||!t?"":t,o)}var $=function(){return n.nc},W=function(e,t,n){n&&((e[t]||(e[t]=Object.create(null)))[n]=!0)},K=function(e,t){e[t]=Object.create(null)},G=function(e){return function(t,n){return e[t]!==undefined&&e[t][n]}},Q=function(e){var t="";for(var n in e)t+=Object.keys(e[n]).join(" ")+" ";return t.trim()},Y=function(e){if(e.sheet)return e.sheet;for(var t=e.ownerDocument.styleSheets.length,n=0;n<t;n+=1){var r=e.ownerDocument.styleSheets[n];if(r.ownerNode===e)return r}throw new j(10)},Z=function(e,t,n){if(!t)return!1;var r=e.cssRules.length;try{e.insertRule(t,n<=r?n:r)}catch(i){return!1}return!0},J=function(e){return"\n/* sc-component-id: "+e+" */\n"},X=function(e,t){for(var n=0,r=0;r<=t;r+=1)n+=e[r];return n},ee=function(e,t){return function(n){var r=$();return"<style "+[r&&'nonce="'+r+'"',O+'="'+Q(t)+'"','data-styled-version="4.4.1"',n].filter(Boolean).join(" ")+">"+e()+"</style>"}},te=function(e,t){return function(){var n,r=((n={})[O]=Q(t),n["data-styled-version"]="4.4.1",n),i=$();return i&&(r.nonce=i),l.a.createElement("style",v({},r,{dangerouslySetInnerHTML:{__html:e()}}))}},ne=function(e){return function(){return Object.keys(e)}},re=function(e,t){return e.createTextNode(J(t))},ie=function tt(e,t){var n=e===undefined?Object.create(null):e,r=t===undefined?Object.create(null):t,i=function(e){var t=r[e];return t!==undefined?t:r[e]=[""]},o=function(){var e="";for(var t in r){var n=r[t][0];n&&(e+=J(t)+n)}return e};return{clone:function(){var e=function(e){var t=Object.create(null);for(var n in e)t[n]=v({},e[n]);return t}(n),t=Object.create(null);for(var i in r)t[i]=[r[i][0]];return tt(e,t)},css:o,getIds:ne(r),hasNameForId:G(n),insertMarker:i,insertRules:function(e,t,r){i(e)[0]+=t.join(" "),W(n,e,r)},removeRules:function(e){var t=r[e];t!==undefined&&(t[0]="",K(n,e))},sealed:!1,styleTag:null,toElement:te(o,n),toHTML:ee(o,n)}},oe=function(e,t,n,r,i){if(T&&!n){var o=function(e,t,n){var r=document;e?r=e.ownerDocument:t&&(r=t.ownerDocument);var i=r.createElement("style");i.setAttribute(O,""),i.setAttribute("data-styled-version","4.4.1");var o=$();if(o&&i.setAttribute("nonce",o),i.appendChild(r.createTextNode("")),e&&!t)e.appendChild(i);else{if(!t||!e||!t.parentNode)throw new j(6);t.parentNode.insertBefore(i,n?t:t.nextSibling)}return i}(e,t,r);return P?function(e,t){var n=Object.create(null),r=Object.create(null),i=t!==undefined,o=!1,a=function(t){var i=r[t];return i!==undefined?i:(r[t]=re(e.ownerDocument,t),e.appendChild(r[t]),n[t]=Object.create(null),r[t])},s=function(){var e="";for(var t in r)e+=r[t].data;return e};return{clone:function(){throw new j(5)},css:s,getIds:ne(r),hasNameForId:G(n),insertMarker:a,insertRules:function(e,r,s){for(var l=a(e),u=[],c=r.length,f=0;f<c;f+=1){var d=r[f],p=i;if(p&&-1!==d.indexOf("@import"))u.push(d);else{p=!1;var h=f===c-1?"":" ";l.appendData(""+d+h)}}W(n,e,s),i&&u.length>0&&(o=!0,t().insertRules(e+"-import",u))},removeRules:function(a){var s=r[a];if(s!==undefined){var l=re(e.ownerDocument,a);e.replaceChild(l,s),r[a]=l,K(n,a),i&&o&&t().removeRules(a+"-import")}},sealed:!1,styleTag:e,toElement:te(s,n),toHTML:ee(s,n)}}(o,i):function(e,t){var n=Object.create(null),r=Object.create(null),i=[],o=t!==undefined,a=!1,s=function(e){var t=r[e];return t!==undefined?t:(r[e]=i.length,i.push(0),K(n,e),r[e])},l=function(){var t=Y(e).cssRules,n="";for(var o in r){n+=J(o);for(var a=r[o],s=X(i,a),l=s-i[a];l<s;l+=1){var u=t[l];u!==undefined&&(n+=u.cssText)}}return n};return{clone:function(){throw new j(5)},css:l,getIds:ne(r),hasNameForId:G(n),insertMarker:s,insertRules:function(r,l,u){for(var c=s(r),f=Y(e),d=X(i,c),p=0,h=[],m=l.length,y=0;y<m;y+=1){var g=l[y],v=o;v&&-1!==g.indexOf("@import")?h.push(g):Z(f,g,d+p)&&(v=!1,p+=1)}o&&h.length>0&&(a=!0,t().insertRules(r+"-import",h)),i[c]+=p,W(n,r,u)},removeRules:function(s){var l=r[s];if(l!==undefined&&!1!==e.isConnected){var u=i[l];!function(e,t,n){for(var r=t-n,i=t;i>r;i-=1)e.deleteRule(i)}(Y(e),X(i,l)-1,u),i[l]=0,K(n,s),o&&a&&t().removeRules(s+"-import")}},sealed:!1,styleTag:e,toElement:te(l,n),toHTML:ee(l,n)}}(o,i)}return ie()},ae=/\s+/,se=void 0;se=T?P?40:1e3:-1;var le=0,ue=void 0,ce=function(){function e(){var t=this,n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:T?document.head:null,r=arguments.length>1&&arguments[1]!==undefined&&arguments[1];y(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(e!==undefined)return e;var n=t.tags[0];return t.importRuleTag=oe(t.target,n?n.styleTag:null,t.forceServer,!0)},le+=1,this.id=le,this.forceServer=r,this.target=r?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!T||this.forceServer)return this;var e=[],t=[],n=!1,r=document.querySelectorAll("style["+O+'][data-styled-version="4.4.1"]'),i=r.length;if(!i)return this;for(var o=0;o<i;o+=1){var a=r[o];n||(n=!!a.getAttribute("data-styled-streamed"));for(var s,l=(a.getAttribute(O)||"").trim().split(ae),u=l.length,c=0;c<u;c+=1)s=l[c],this.rehydratedNames[s]=!0;t.push.apply(t,I(a.textContent)),e.push(a)}var f=t.length;if(!f)return this;var d=this.makeTag(null);!function(e,t,n){for(var r=0,i=n.length;r<i;r+=1){var o=n[r],a=o.componentId,s=o.cssFromDOM,l=U(s);e.insertRules(a,l)}for(var u=0,c=t.length;u<c;u+=1){var f=t[u];f.parentNode&&f.parentNode.removeChild(f)}}(d,e,t),this.capacity=Math.max(1,se-f),this.tags.push(d);for(var p=0;p<f;p+=1)this.tagMap[t[p].componentId]=d;return this},e.reset=function(){var t=arguments.length>0&&arguments[0]!==undefined&&arguments[0];ue=new e(undefined,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map((function(e){for(var n=e.getIds(),r=e.clone(),i=0;i<n.length;i+=1)t.tagMap[n[i]]=r;return r})),t.rehydratedNames=v({},this.rehydratedNames),t.deferred=v({},this.deferred),t},e.prototype.sealAllTags=function(){this.capacity=1,this.tags.forEach((function(e){e.sealed=!0}))},e.prototype.makeTag=function(e){var t=e?e.styleTag:null;return oe(this.target,t,this.forceServer,!1,this.getImportRuleTag)},e.prototype.getTagForId=function(e){var t=this.tagMap[e];if(t!==undefined&&!t.sealed)return t;var n=this.tags[this.tags.length-1];return this.capacity-=1,0===this.capacity&&(this.capacity=se,n=this.makeTag(n),this.tags.push(n)),this.tagMap[e]=n},e.prototype.hasId=function(e){return this.tagMap[e]!==undefined},e.prototype.hasNameForId=function(e,t){if(this.ignoreRehydratedNames[e]===undefined&&this.rehydratedNames[t])return!0;var n=this.tagMap[e];return n!==undefined&&n.hasNameForId(e,t)},e.prototype.deferredInject=function(e,t){if(this.tagMap[e]===undefined){for(var n=this.clones,r=0;r<n.length;r+=1)n[r].deferredInject(e,t);this.getTagForId(e).insertMarker(e),this.deferred[e]=t}},e.prototype.inject=function(e,t,n){for(var r=this.clones,i=0;i<r.length;i+=1)r[i].inject(e,t,n);var o=this.getTagForId(e);if(this.deferred[e]!==undefined){var a=this.deferred[e].concat(t);o.insertRules(e,a,n),this.deferred[e]=undefined}else o.insertRules(e,t,n)},e.prototype.remove=function(e){var t=this.tagMap[e];if(t!==undefined){for(var n=this.clones,r=0;r<n.length;r+=1)n[r].remove(e);t.removeRules(e),this.ignoreRehydratedNames[e]=!0,this.deferred[e]=undefined}},e.prototype.toHTML=function(){return this.tags.map((function(e){return e.toHTML()})).join("")},e.prototype.toReactElements=function(){var e=this.id;return this.tags.map((function(t,n){var r="sc-"+e+"-"+n;return Object(s.cloneElement)(t.toElement(),{key:r})}))},g(e,null,[{key:"master",get:function(){return ue||(ue=(new e).rehydrate())}},{key:"instance",get:function(){return e.master}}]),e}(),fe=function(){function e(t,n){var r=this;y(this,e),this.inject=function(e){e.hasNameForId(r.id,r.name)||e.inject(r.id,r.rules,r.name)},this.toString=function(){throw new j(12,String(r.name))},this.name=t,this.rules=n,this.id="sc-keyframes-"+t}return e.prototype.getName=function(){return this.name},e}(),de=/([A-Z])/g,pe=/^ms-/;function he(e){return e.replace(de,"-$1").toLowerCase().replace(pe,"-ms-")}var me=function(e){return e===undefined||null===e||!1===e||""===e},ye=function nt(e,t){var n=[];return Object.keys(e).forEach((function(t){if(!me(e[t])){if(C(e[t]))return n.push.apply(n,nt(e[t],t)),n;if(x(e[t]))return n.push(he(t)+":",e[t],";"),n;n.push(he(t)+": "+function(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in u.a?String(t).trim():t+"px"}(t,e[t])+";")}return n})),t?[t+" {"].concat(n,["}"]):n};function ge(e,t,n){if(Array.isArray(e)){for(var r,i=[],o=0,a=e.length;o<a;o+=1)null!==(r=ge(e[o],t,n))&&(Array.isArray(r)?i.push.apply(i,r):i.push(r));return i}return me(e)?null:_(e)?"."+e.styledComponentId:x(e)?"function"!=typeof(s=e)||s.prototype&&s.prototype.isReactComponent||!t?e:ge(e(t),t,n):e instanceof fe?n?(e.inject(n),e.getName()):e:C(e)?ye(e):e.toString();var s}function ve(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return x(e)||C(e)?ge(h(S,[e].concat(n))):ge(h(e,n))}function be(e){for(var t,n=0|e.length,r=0|n,i=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return((r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16))^r>>>15)>>>0}var we=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ce(e){var t="",n=void 0;for(n=e;n>52;n=Math.floor(n/52))t=we(n%52)+t;return we(n%52)+t}function Se(e,t){for(var n=0;n<e.length;n+=1){var r=e[n];if(Array.isArray(r)&&!Se(r,t))return!1;if(x(r)&&!_(r))return!1}return!t.some((function(e){return x(e)||function(e){for(var t in e)if(x(e[t]))return!0;return!1}(e)}))}var Ee,xe=function(e){return Ce(be(e))},ke=function(){function e(t,n,r){y(this,e),this.rules=t,this.isStatic=Se(t,n),this.componentId=r,ce.master.hasId(r)||ce.master.deferredInject(r,[])}return e.prototype.generateAndInjectStyles=function(e,t){var n=this.isStatic,r=this.componentId,i=this.lastClassName;if(T&&n&&"string"==typeof i&&t.hasNameForId(r,i))return i;var o=ge(this.rules,e,t),a=xe(this.componentId+o.join(""));return t.hasNameForId(r,a)||t.inject(this.componentId,H(o,"."+a,undefined,r),a),this.lastClassName=a,a},e.generateName=function(e){return xe(e)},e}(),_e=function(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:E,r=!!n&&e.theme===n.theme,i=e.theme&&!r?e.theme:t||n.theme;return i},Oe=/[[\].#*$><+~=|^:(),"'`-]+/g,Te=/(^-|-$)/g;function Pe(e){return e.replace(Oe,"-").replace(Te,"")}function je(e){return"string"==typeof e&&!0}var Ae={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Ie={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ne=((Ee={})[c.ForwardRef]={$$typeof:!0,render:!0},Ee),Le=Object.defineProperty,Re=Object.getOwnPropertyNames,Me=Object.getOwnPropertySymbols,Fe=Me===undefined?function(){return[]}:Me,De=Object.getOwnPropertyDescriptor,ze=Object.getPrototypeOf,Be=Object.prototype,Ve=Array.prototype;function qe(e,t,n){if("string"!=typeof t){var r=ze(t);r&&r!==Be&&qe(e,r,n);for(var i=Ve.concat(Re(t),Fe(t)),o=Ne[e.$$typeof]||Ae,a=Ne[t.$$typeof]||Ae,s=i.length,l=void 0,u=void 0;s--;)if(u=i[s],!(Ie[u]||n&&n[u]||a&&a[u]||o&&o[u])&&(l=De(t,u)))try{Le(e,u,l)}catch(c){}return e}return e}var Ue=Object(s.createContext)(),He=Ue.Consumer,$e=function(e){function t(n){y(this,t);var r=w(this,e.call(this,n));return r.getContext=Object(f.a)(r.getContext.bind(r)),r.renderInner=r.renderInner.bind(r),r}return b(t,e),t.prototype.render=function(){return this.props.children?l.a.createElement(Ue.Consumer,null,this.renderInner):null},t.prototype.renderInner=function(e){var t=this.getContext(this.props.theme,e);return l.a.createElement(Ue.Provider,{value:t},this.props.children)},t.prototype.getTheme=function(e,t){if(x(e))return e(t);if(null===e||Array.isArray(e)||"object"!==(void 0===e?"undefined":m(e)))throw new j(8);return v({},t,e)},t.prototype.getContext=function(e,t){return this.getTheme(e,t)},t}(s.Component),We=(function(){function e(){y(this,e),this.masterSheet=ce.master,this.instance=this.masterSheet.clone(),this.sealed=!1}e.prototype.seal=function(){if(!this.sealed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.sealed=!0}},e.prototype.collectStyles=function(e){if(this.sealed)throw new j(2);return l.a.createElement(Ge,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.seal(),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.seal(),this.instance.toReactElements()},e.prototype.interleaveWithNodeStream=function(e){throw new j(3)}}(),Object(s.createContext)()),Ke=We.Consumer,Ge=function(e){function t(n){y(this,t);var r=w(this,e.call(this,n));return r.getContext=Object(f.a)(r.getContext),r}return b(t,e),t.prototype.getContext=function(e,t){if(e)return e;if(t)return new ce(t);throw new j(4)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.sheet,r=e.target;return l.a.createElement(We.Provider,{value:this.getContext(n,r)},t)},t}(s.Component),Qe={};var Ye=function(e){function t(){y(this,t);var n=w(this,e.call(this));return n.attrs={},n.renderOuter=n.renderOuter.bind(n),n.renderInner=n.renderInner.bind(n),n}return b(t,e),t.prototype.render=function(){return l.a.createElement(Ke,null,this.renderOuter)},t.prototype.renderOuter=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:ce.master;return this.styleSheet=e,this.props.forwardedComponent.componentStyle.isStatic?this.renderInner():l.a.createElement(He,null,this.renderInner)},t.prototype.renderInner=function(e){var t=this.props.forwardedComponent,n=t.componentStyle,r=t.defaultProps,i=(t.displayName,t.foldedComponentIds),o=t.styledComponentId,a=t.target,l=void 0;l=n.isStatic?this.generateAndInjectStyles(E,this.props):this.generateAndInjectStyles(_e(this.props,e,r)||E,this.props);var u=this.props.as||this.attrs.as||a,c=je(u),f={},p=v({},this.props,this.attrs),h=void 0;for(h in p)"forwardedComponent"!==h&&"as"!==h&&("forwardedRef"===h?f.ref=p[h]:"forwardedAs"===h?f.as=p[h]:c&&!Object(d.a)(h)||(f[h]=p[h]));return this.props.style&&this.attrs.style&&(f.style=v({},this.attrs.style,this.props.style)),f.className=Array.prototype.concat(i,o,l!==o?l:null,this.props.className,this.attrs.className).filter(Boolean).join(" "),Object(s.createElement)(u,f)},t.prototype.buildExecutionContext=function(e,t,n){var r=this,i=v({},t,{theme:e});return n.length?(this.attrs={},n.forEach((function(e){var t,n=e,o=!1,a=void 0,s=void 0;for(s in x(n)&&(n=n(i),o=!0),n)a=n[s],o||!x(a)||(t=a)&&t.prototype&&t.prototype.isReactComponent||_(a)||(a=a(i)),r.attrs[s]=a,i[s]=a})),i):i},t.prototype.generateAndInjectStyles=function(e,t){var n=t.forwardedComponent,r=n.attrs,i=n.componentStyle;n.warnTooManyClasses;return i.isStatic&&!r.length?i.generateAndInjectStyles(E,this.styleSheet):i.generateAndInjectStyles(this.buildExecutionContext(e,t,r),this.styleSheet)},t}(s.Component);function Ze(e,t,n){var r=_(e),i=!je(e),o=t.displayName,a=o===undefined?function(e){return je(e)?"styled."+e:"Styled("+k(e)+")"}(e):o,s=t.componentId,u=s===undefined?function(e,t,n){var r="string"!=typeof t?"sc":Pe(t),i=(Qe[r]||0)+1;Qe[r]=i;var o=r+"-"+e.generateName(r+i);return n?n+"-"+o:o}(ke,t.displayName,t.parentComponentId):s,c=t.ParentComponent,f=c===undefined?Ye:c,d=t.attrs,h=d===undefined?S:d,m=t.displayName&&t.componentId?Pe(t.displayName)+"-"+t.componentId:t.componentId||u,y=r&&e.attrs?Array.prototype.concat(e.attrs,h).filter(Boolean):h,g=new ke(r?e.componentStyle.rules.concat(n):n,y,m),b=void 0,w=function(e,t){return l.a.createElement(f,v({},e,{forwardedComponent:b,forwardedRef:t}))};return w.displayName=a,(b=l.a.forwardRef(w)).displayName=a,b.attrs=y,b.componentStyle=g,b.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):S,b.styledComponentId=m,b.target=r?e.target:e,b.withComponent=function(e){var r=t.componentId,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["componentId"]),o=r&&r+"-"+(je(e)?e:Pe(k(e)));return Ze(e,v({},i,{attrs:y,componentId:o,ParentComponent:f}),n)},Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Object(p.a)(e.defaultProps,t):t}}),b.toString=function(){return"."+b.styledComponentId},i&&qe(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}var Je=function(e){return function t(e,n){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:E;if(!Object(c.isValidElementType)(n))throw new j(1,String(n));var i=function(){return e(n,r,ve.apply(undefined,arguments))};return i.withConfig=function(i){return t(e,n,v({},r,i))},i.attrs=function(i){return t(e,n,v({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(Ze,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Je[e]=Je(e)}));!function(){function e(t,n){y(this,e),this.rules=t,this.componentId=n,this.isStatic=Se(t,S),ce.master.hasId(n)||ce.master.deferredInject(n,[])}e.prototype.createStyles=function(e,t){var n=H(ge(this.rules,e,t),"");t.inject(this.componentId,n)},e.prototype.removeStyles=function(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},e.prototype.renderStyles=function(e,t){this.removeStyles(t),this.createStyles(e,t)}}();T&&(window.scCGSHMRCache={});var Xe=function(e){return e.replace(/\s|\\n/g,"")};function et(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=ve.apply(undefined,[e].concat(n)),o=Ce(be(Xe(JSON.stringify(i))));return new fe(o,H(i,o,"@keyframes"))}t.c=Je}).call(this,n(16))},function(e,t,n){"use strict";(function(e){var r;n.d(t,"a",(function(){return $})),n.d(t,"c",(function(){return W})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return H}));var i="undefined"!=typeof Symbol?Symbol("immer-nothing"):((r={})["immer-nothing"]=!0,r),o="undefined"!=typeof Symbol&&Symbol["for"]?Symbol["for"]("immer-draftable"):"__$immer_draftable",a="undefined"!=typeof Symbol&&Symbol["for"]?Symbol["for"]("immer-state"):"__$immer_state";function s(e){return!!e&&!!e[a]}function l(e){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e))return!0;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype||(!!e[o]||!!e.constructor[o])}var u=Object.assign||function(e,t){for(var n in t)h(t,n)&&(e[n]=t[n]);return e},c="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:"undefined"!=typeof Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function f(e,t){if(void 0===t&&(t=!1),Array.isArray(e))return e.slice();var n=Object.create(Object.getPrototypeOf(e));return c(e).forEach((function(r){if(r!==a){var i=Object.getOwnPropertyDescriptor(e,r),o=i.value;i.get&&t&&(o=i.get.call(e)),i.enumerable?n[r]=o:t&&Object.defineProperty(n,r,{value:o,writable:!0,configurable:!0})}})),n}function d(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(n,e[n],e);else c(e).forEach((function(n){return t(n,e[n],e)}))}function p(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.enumerable}function h(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function m(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}var y=function(e){this.drafts=[],this.parent=e,this.canAutoFreeze=!0,this.patches=null};function g(e){e[a].revoke()}y.prototype.usePatches=function(e){e&&(this.patches=[],this.inversePatches=[],this.patchListener=e)},y.prototype.revoke=function(){this.leave(),this.drafts.forEach(g),this.drafts=null},y.prototype.leave=function(){this===y.current&&(y.current=this.parent)},y.current=null,y.enter=function(){return this.current=new y(this.current)};var v={};function b(e,t){var n=Array.isArray(e),r=k(e);d(r,(function(t){!function(e,t,n){var r=v[t];r?r.enumerable=n:v[t]=r={configurable:!0,enumerable:n,get:function(){return function(e,t){_(e);var n=S(C(e),t);if(e.finalizing)return n;if(n===S(e.base,t)&&l(n))return x(e),e.copy[t]=b(n,e);return n}(this[a],t)},set:function(e){!function(e,t,n){if(_(e),e.assigned[t]=!0,!e.modified){if(m(n,S(C(e),t)))return;E(e),x(e)}e.copy[t]=n}(this[a],t,e)}};Object.defineProperty(e,t,r)}(r,t,n||p(e,t))}));var i,o,s,u=t?t.scope:y.current;return i=r,o=a,s={scope:u,modified:!1,finalizing:!1,finalized:!1,assigned:{},parent:t,base:e,draft:r,copy:null,revoke:w,revoked:!1},Object.defineProperty(i,o,{value:s,enumerable:!1,writable:!0}),u.drafts.push(r),r}function w(){this.revoked=!0}function C(e){return e.copy||e.base}function S(e,t){var n=e[a];if(n&&!n.finalizing){n.finalizing=!0;var r=e[t];return n.finalizing=!1,r}return e[t]}function E(e){e.modified||(e.modified=!0,e.parent&&E(e.parent))}function x(e){e.copy||(e.copy=k(e.base))}function k(e){var t=e&&e[a];if(t){t.finalizing=!0;var n=f(t.draft,!0);return t.finalizing=!1,n}return f(e)}function _(e){if(!0===e.revoked)throw new Error("Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+JSON.stringify(C(e)))}function O(e){for(var t=e.length-1;t>=0;t--){var n=e[t][a];n.modified||(Array.isArray(n.base)?P(n)&&E(n):T(n)&&E(n))}}function T(e){for(var t=e.base,n=e.draft,r=Object.keys(n),i=r.length-1;i>=0;i--){var o=r[i],s=t[o];if(s===undefined&&!h(t,o))return!0;var l=n[o],u=l&&l[a];if(u?u.base!==s:!m(l,s))return!0}return r.length!==Object.keys(t).length}function P(e){var t=e.draft;if(t.length!==e.base.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!n||n.get)}var j=Object.freeze({willFinalize:function(e,t,n){e.drafts.forEach((function(e){e[a].finalizing=!0})),n?s(t)&&t[a].scope===e&&O(e.drafts):(e.patches&&function r(e){if(!e||"object"!=typeof e)return;var t=e[a];if(!t)return;var n=t.base,i=t.draft,o=t.assigned;if(Array.isArray(e)){if(P(t)){if(E(t),o.length=!0,i.length<n.length)for(var s=i.length;s<n.length;s++)o[s]=!1;else for(var l=n.length;l<i.length;l++)o[l]=!0;for(var u=0;u<i.length;u++)o[u]===undefined&&r(i[u])}}else Object.keys(i).forEach((function(e){n[e]!==undefined||h(n,e)?o[e]||r(i[e]):(o[e]=!0,E(t))})),Object.keys(n).forEach((function(e){i[e]!==undefined||h(i,e)||(o[e]=!1,E(t))}))}(e.drafts[0]),O(e.drafts))},createProxy:b});function A(e,t){var n=t?t.scope:y.current,r={scope:n,modified:!1,finalized:!1,assigned:{},parent:t,base:e,draft:null,drafts:{},copy:null,revoke:null},i=Array.isArray(e)?Proxy.revocable([r],N):Proxy.revocable(r,I),o=i.revoke,a=i.proxy;return r.draft=a,r.revoke=o,n.drafts.push(a),a}var I={get:function(e,t){if(t===a)return e;var n=e.drafts;if(!e.modified&&h(n,t))return n[t];var r=L(e)[t];if(e.finalized||!l(r))return r;if(e.modified){if(r!==R(e.base,t))return r;n=e.copy}return n[t]=A(r,e)},has:function(e,t){return t in L(e)},ownKeys:function(e){return Reflect.ownKeys(L(e))},set:function(e,t,n){if(!e.modified){var r=R(e.base,t);if(n?m(r,n)||n===e.drafts[t]:m(r,n)&&t in e.base)return!0;M(e)}return e.assigned[t]=!0,e.copy[t]=n,!0},deleteProperty:function(e,t){(R(e.base,t)!==undefined||t in e.base)&&(e.assigned[t]=!1,M(e));e.copy&&delete e.copy[t];return!0},getOwnPropertyDescriptor:function(e,t){var n=L(e),r=Reflect.getOwnPropertyDescriptor(n,t);r&&(r.writable=!0,r.configurable=!Array.isArray(n)||"length"!==t);return r},defineProperty:function(){throw new Error("Object.defineProperty() cannot be used on an Immer draft")},getPrototypeOf:function(e){return Object.getPrototypeOf(e.base)},setPrototypeOf:function(){throw new Error("Object.setPrototypeOf() cannot be used on an Immer draft")}},N={};function L(e){return e.copy||e.base}function R(e,t){var n=e[a],r=Reflect.getOwnPropertyDescriptor(n?L(n):e,t);return r&&r.value}function M(e){e.modified||(e.modified=!0,e.copy=u(f(e.base),e.drafts),e.drafts=null,e.parent&&M(e.parent))}d(I,(function(e,t){N[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),N.deleteProperty=function(e,t){if(isNaN(parseInt(t)))throw new Error("Immer only supports deleting array indices");return I.deleteProperty.call(this,e[0],t)},N.set=function(e,t,n){if("length"!==t&&isNaN(parseInt(t)))throw new Error("Immer only supports setting array indices and the 'length' property");return I.set.call(this,e[0],t,n)};var F=Object.freeze({willFinalize:function(){},createProxy:A});function D(e,t,n,r){Array.isArray(e.base)?function(e,t,n,r){var i,o,a=e.base,s=e.copy,l=e.assigned;s.length<a.length&&(a=(i=[s,a])[0],s=i[1],n=(o=[r,n])[0],r=o[1]);var u=s.length-a.length,c=0;for(;a[c]===s[c]&&c<a.length;)++c;var f=a.length;for(;f>c&&a[f-1]===s[f+u-1];)--f;for(var d=c;d<f;++d)if(l[d]&&s[d]!==a[d]){var p=t.concat([d]);n.push({op:"replace",path:p,value:s[d]}),r.push({op:"replace",path:p,value:a[d]})}for(var h=f!=a.length,m=n.length,y=f+u-1;y>=f;--y){var g=t.concat([y]);n[m+y-f]={op:"add",path:g,value:s[y]},h&&r.push({op:"remove",path:g})}h||r.push({op:"replace",path:t.concat(["length"]),value:a.length})}(e,t,n,r):function(e,t,n,r){var i=e.base,o=e.copy;d(e.assigned,(function(e,a){var s=i[e],l=o[e],u=a?e in i?"replace":"add":"remove";if(s!==l||"replace"!==u){var c=t.concat(e);n.push("remove"===u?{op:u,path:c}:{op:u,path:c,value:l}),r.push("add"===u?{op:"remove",path:c}:"remove"===u?{op:"add",path:c,value:s}:{op:"replace",path:c,value:s})}}))}(e,t,n,r)}function z(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.path;if(0===i.length&&"replace"===r.op)e=r.value;else{for(var o=e,a=0;a<i.length-1;a++)if(!(o=o[i[a]])||"object"!=typeof o)throw new Error("Cannot apply patch, path doesn't resolve: "+i.join("/"));var s=i[i.length-1];switch(r.op){case"replace":o[s]=r.value;break;case"add":Array.isArray(o)?o.splice(s,0,r.value):o[s]=r.value;break;case"remove":Array.isArray(o)?o.splice(s,1):delete o[s];break;default:throw new Error("Unsupported patch operation: "+r.op)}}}return e}var B={useProxies:"undefined"!=typeof Proxy&&"undefined"!=typeof Reflect,autoFreeze:void 0===e&&"verifyMinified"===function(){}.name,onAssign:null,onDelete:null,onCopy:null},V=function(e){u(this,B,e),this.setUseProxies(this.useProxies),this.produce=this.produce.bind(this)};V.prototype.produce=function(e,t,n){var r,o=this;if("function"==typeof e&&"function"!=typeof t){var a=t;t=e;var s=this;return function(e){var n=this;void 0===e&&(e=a);for(var r=[],i=arguments.length-1;i-- >0;)r[i]=arguments[i+1];return s.produce(e,(function(e){return t.call.apply(t,[n,e].concat(r))}))}}if("function"!=typeof t)throw new Error("The first or second argument to `produce` must be a function");if(n!==undefined&&"function"!=typeof n)throw new Error("The third argument to `produce` must be a function or undefined");if(l(e)){var u=y.enter(),c=this.createProxy(e),f=!0;try{r=t(c),f=!1}finally{f?u.revoke():u.leave()}return r instanceof Promise?r.then((function(e){return u.usePatches(n),o.processResult(e,u)}),(function(e){throw u.revoke(),e})):(u.usePatches(n),this.processResult(r,u))}return(r=t(e))===undefined?e:r!==i?r:undefined},V.prototype.createDraft=function(e){if(!l(e))throw new Error("First argument to `createDraft` must be a plain object, an array, or an immerable object");var t=y.enter(),n=this.createProxy(e);return n[a].isManual=!0,t.leave(),n},V.prototype.finishDraft=function(e,t){var n=e&&e[a];if(!n||!n.isManual)throw new Error("First argument to `finishDraft` must be a draft returned by `createDraft`");if(n.finalized)throw new Error("The given draft is already finalized");var r=n.scope;return r.usePatches(t),this.processResult(undefined,r)},V.prototype.setAutoFreeze=function(e){this.autoFreeze=e},V.prototype.setUseProxies=function(e){this.useProxies=e,u(this,e?F:j)},V.prototype.applyPatches=function(e,t){return s(e)?z(e,t):this.produce(e,(function(e){return z(e,t)}))},V.prototype.processResult=function(e,t){var n=t.drafts[0],r=e!==undefined&&e!==n;if(this.willFinalize(t,e,r),r){if(n[a].modified)throw t.revoke(),new Error("An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.");l(e)&&(e=this.finalize(e,null,t)),t.patches&&(t.patches.push({op:"replace",path:[],value:e}),t.inversePatches.push({op:"replace",path:[],value:n[a].base}))}else e=this.finalize(n,[],t);return t.revoke(),t.patches&&t.patchListener(t.patches,t.inversePatches),e!==i?e:undefined},V.prototype.finalize=function(e,t,n){var r=this,i=e[a];if(!i)return Object.isFrozen(e)?e:this.finalizeTree(e,null,n);if(i.scope!==n)return e;if(!i.modified)return i.base;if(!i.finalized){if(i.finalized=!0,this.finalizeTree(i.draft,t,n),this.onDelete)if(this.useProxies){var o=i.assigned;for(var s in o)o[s]||this.onDelete(i,s)}else{var l=i.base,u=i.copy;d(l,(function(e){h(u,e)||r.onDelete(i,e)}))}this.onCopy&&this.onCopy(i),this.autoFreeze&&n.canAutoFreeze&&Object.freeze(i.copy),t&&n.patches&&D(i,t,n.patches,n.inversePatches)}return i.copy},V.prototype.finalizeTree=function(e,t,n){var r=this,i=e[a];i&&(this.useProxies||(i.copy=f(i.draft,!0)),e=i.copy);var o=!!t&&!!n.patches,u=function(a,c,f){if(c===f)throw Error("Immer forbids circular references");var h=!!i&&f===e;if(s(c)){var y=h&&o&&!i.assigned[a]?t.concat(a):null;if(s(c=r.finalize(c,y,n))&&(n.canAutoFreeze=!1),Array.isArray(f)||p(f,a)?f[a]=c:Object.defineProperty(f,a,{value:c}),h&&c===i.base[a])return}else{if(h&&m(c,i.base[a]))return;l(c)&&!Object.isFrozen(c)&&d(c,u)}h&&r.onAssign&&r.onAssign(i,a,c)};return d(e,u),e};var q=new V,U=q.produce,H=q.setAutoFreeze.bind(q),$=(q.setUseProxies.bind(q),q.applyPatches.bind(q),q.createDraft.bind(q)),W=q.finishDraft.bind(q);t.b=U}).call(this,n(16))},function(e,t,n){e.exports=function r(e,t,n){function i(a,s){if(!t[a]){if(!e[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=t[a]={exports:{}};e[a][0].call(u.exports,(function(t){var n=e[a][1][t];return i(n||t)}),u,u.exports,r,e,t,n)}return t[a].exports}for(var o=!1,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(e,t,n){t.exports=function(t){return"function"!=typeof Map||t?new(e("./similar")):new Map}},{"./similar":2}],2:[function(e,t,n){function r(){return this.list=[],this.lastItem=undefined,this.size=0,this}r.prototype.get=function(e){var t;return this.lastItem&&this.isEqual(this.lastItem.key,e)?this.lastItem.val:(t=this.indexOf(e))>=0?(this.lastItem=this.list[t],this.list[t].val):undefined},r.prototype.set=function(e,t){var n;return this.lastItem&&this.isEqual(this.lastItem.key,e)?(this.lastItem.val=t,this):(n=this.indexOf(e))>=0?(this.lastItem=this.list[n],this.list[n].val=t,this):(this.lastItem={key:e,val:t},this.list.push(this.lastItem),this.size++,this)},r.prototype["delete"]=function(e){var t;return this.lastItem&&this.isEqual(this.lastItem.key,e)&&(this.lastItem=undefined),(t=this.indexOf(e))>=0?(this.size--,this.list.splice(t,1)[0]):undefined},r.prototype.has=function(e){var t;return!(!this.lastItem||!this.isEqual(this.lastItem.key,e))||(t=this.indexOf(e))>=0&&(this.lastItem=this.list[t],!0)},r.prototype.forEach=function(e,t){var n;for(n=0;n<this.size;n++)e.call(t||this,this.list[n].val,this.list[n].key,this)},r.prototype.indexOf=function(e){var t;for(t=0;t<this.size;t++)if(this.isEqual(this.list[t].key,e))return t;return-1},r.prototype.isEqual=function(e,t){return e===t||e!=e&&t!=t},t.exports=r},{}],3:[function(e,t,n){var r=e("map-or-similar");function i(e,t){var n,r,i,o,a,s=e.length,l=t.length;for(r=0;r<s;r++){for(n=!0,i=0;i<l;i++)if(o=e[r][i].arg,a=t[i].arg,o!==a&&(o==o||a==a)){n=!1;break}if(n)break}e.push(e.splice(r,1)[0])}function o(e){var t,n,r=e.length,i=e[r-1];for(i.cacheItem["delete"](i.arg),n=r-2;n>=0&&(!(t=(i=e[n]).cacheItem.get(i.arg))||!t.size);n--)i.cacheItem["delete"](i.arg)}t.exports=function(e){var t=new r("true"===undefined),n=[];return function(a){var s=function(){var l,u,c,f=t,d=arguments.length-1,p=Array(d+1),h=!0;if((s.numArgs||0===s.numArgs)&&s.numArgs!==d+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(c=0;c<d;c++)p[c]={cacheItem:f,arg:arguments[c]},f.has(arguments[c])?f=f.get(arguments[c]):(h=!1,l=new r("true"===undefined),f.set(arguments[c],l),f=l);return h&&(f.has(arguments[d])?u=f.get(arguments[d]):h=!1),h||(u=a.apply(null,arguments),f.set(arguments[d],u)),e>0&&(p[d]={cacheItem:f,arg:arguments[d]},h?i(n,p):n.push(p),n.length>e&&o(n.shift())),s.wasMemoized=h,s.numArgs=d+1,u};return s.limit=e,s.wasMemoized=!1,s.cache=t,s.lru=n,s}}},{"map-or-similar":1}]},{},[3])(3)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IdealBankElement=t.IbanElement=t.PaymentRequestButtonElement=t.PostalCodeElement=t.CardCVCElement=t.CardExpiryElement=t.CardNumberElement=t.CardElement=t.Elements=t.injectStripe=t.StripeProvider=undefined;var r=l(n(9)),i=l(n(34)),o=l(n(7)),a=l(n(35)),s=l(n(37));function l(e){return e&&e.__esModule?e:{"default":e}}var u=(0,a["default"])("card",{impliedTokenType:"card",impliedSourceType:"card"}),c=(0,a["default"])("cardNumber",{impliedTokenType:"card",impliedSourceType:"card"}),f=(0,a["default"])("cardExpiry"),d=(0,a["default"])("cardCvc"),p=(0,a["default"])("postalCode"),h=(0,a["default"])("iban",{impliedTokenType:"bank_account",impliedSourceType:"sepa_debit"}),m=(0,a["default"])("idealBank",{impliedSourceType:"ideal"});t.StripeProvider=r["default"],t.injectStripe=i["default"],t.Elements=o["default"],t.CardElement=u,t.CardNumberElement=c,t.CardExpiryElement=f,t.CardCVCElement=d,t.PostalCodeElement=p,t.PaymentRequestButtonElement=s["default"],t.IbanElement=h,t.IdealBankElement=m},function(e,t,n){e.exports=n(32)()},function(e,t,n){"use strict";!function r(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}}(),e.exports=n(25)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.elementContextTypes=t.injectContextTypes=undefined;var r=Object.assign||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},i=s(n(0)),o=s(n(5)),a=n(9);function s(e){return e&&e.__esModule?e:{"default":e}}function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var u=t.injectContextTypes={getRegisteredElements:o["default"].func.isRequired},c=t.elementContextTypes={addElementsLoadListener:o["default"].func.isRequired,registerElement:o["default"].func.isRequired,unregisterElement:o["default"].func.isRequired},f=function(e){function t(n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,i));return o.handleRegisterElement=function(e,t,n){o.setState((function(i){return{registeredElements:[].concat(l(i.registeredElements),[r({element:e},t?{impliedTokenType:t}:{},n?{impliedSourceType:n}:{})])}}))},o.handleUnregisterElement=function(e){o.setState((function(t){return{registeredElements:t.registeredElements.filter((function(t){return t.element!==e}))}}))},o.state={registeredElements:[]},o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){var e=this;return{addElementsLoadListener:function(t){if(e._elements)t(e._elements);else{var n=e.props,r=(n.children,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["children"]));"sync"===e.context.tag?(e._elements=e.context.stripe.elements(r),t(e._elements)):e.context.addStripeLoadListener((function(n){e._elements||(e._elements=n.elements(r)),t(e._elements)}))}},registerElement:this.handleRegisterElement,unregisterElement:this.handleUnregisterElement,getRegisteredElements:function(){return e.state.registeredElements}}},t.prototype.render=function(){return i["default"].Children.only(this.props.children)},t}(i["default"].Component);f.childContextTypes=r({},u,c),f.contextTypes=a.providerContextTypes,f.defaultProps={children:null},t["default"]=f},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r["throw"](e))}catch(t){o(t)}}function l(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),"throw":s(1),"return":s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(28),l=n(15),u=n(15);t.createCartIdentifier=u.createCartIdentifier;var c=function(){function e(e){var t=e.client_id,n=e.client_secret,i=e.storage,o=a(e,["client_id","client_secret","storage"]);this.client_id=t,this.client_secret=n||undefined,this.storage=i,this.fetch=e.fetch?e.fetch:s["default"],this.options=r({host:e.host?e.host:"https://api.moltin.com",version:e.version?e.version:"v2"},o)}return e.prototype.request=function(e,t,n,a){return void 0===n&&(n=undefined),void 0===a&&(a={}),i(this,void 0,void 0,(function(){var i,s,u,c,f,d,p,h,m,y,g,v,b,w,C,S,E,x;return o(this,(function(o){switch(o.label){case 0:return s=(i=this).client_id,u=i.storage,c=i.options,f=c.application,d=c.currency,p=c.customer_token,h=c.host,m=c.version,y=c.headers,g=h+"/"+m+"/"+l.removeLeadingSlash(t),v=r({},y,a),u?[4,JSON.parse(u.get("moltinCredentials"))]:[3,2];case 1:b=o.sent(),o.label=2;case 2:return!b||!b.access_token||b.client_id!==s||Math.floor(Date.now()/1e3)>=b.expires?[4,this.authenticate()]:[3,4];case 3:return w=o.sent(),[3,5];case 4:w=b.access_token,o.label=5;case 5:return C=r({"Content-Type":"application/json","X-MOLTIN-SDK-LANGUAGE":"JS-REQUEST",Authorization:"Bearer "+w},f&&{"X-MOLTIN-APPLICATION":f},d&&{"X-MOLTIN-CURRENCY":d},p&&{"X-MOLTIN-CUSTOMER-TOKEN":p},v),S=v["Content-Type"]?n:{body:JSON.stringify({data:n})},[4,this.fetch(g,r({method:e,headers:C},n&&S))];case 6:return 204===(E=o.sent()).status?[2,E.text()]:[4,E.json()];case 7:if(x=o.sent(),!E.ok)throw r({statusCode:E.status},x);return[2,x]}}))}))},e.prototype.authenticate=function(){return i(this,void 0,void 0,(function(){var e,t,n,i,a,s,l,u,c,f,d;return o(this,(function(o){switch(o.label){case 0:if(t=(e=this).client_id,n=e.client_secret,i=e.storage,a=e.options.host,!t)throw new Error("You must provide a client_id");return s=a+"/oauth/access_token",l=r({grant_type:n?"client_credentials":"implicit",client_id:t},n&&{client_secret:n}),[4,this.fetch(s,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-MOLTIN-SDK-LANGUAGE":"JS-REQUEST"},body:Object.keys(l).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(l[e])})).join("&")})];case 1:return[4,o.sent().json()];case 2:if(u=o.sent(),c=u.access_token,f=u.expires,!c)throw new Error("Unable to obtain an access token");return i?(d={client_id:t,access_token:c,expires:f},[4,i.set("moltinCredentials",JSON.stringify(d))]):[3,4];case 3:o.sent(),o.label=4;case 4:return[2,c]}}))}))},e.prototype.post=function(e,t,n){return this.request("POST",e,t,n)},e.prototype.get=function(e,t){return this.request("GET",e,undefined,t)},e.prototype.put=function(e,t,n){return this.request("PUT",e,t,n)},e.prototype["delete"]=function(e,t,n){return this.request("DELETE",e,t,n)},e}();t.MoltinClient=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.providerContextTypes=undefined;var r=o(n(0)),i=o(n(5));function o(e){return e&&e.__esModule?e:{"default":e}}var a=t.providerContextTypes={tag:i["default"].string.isRequired,stripe:i["default"].object,addStripeLoadListener:i["default"].func},s=function(e,t){window.Stripe.__cachedInstances=window.Stripe.__cachedInstances||{};var n="key="+e+" options="+JSON.stringify(t),r=window.Stripe.__cachedInstances[n]||window.Stripe(e,t);return window.Stripe.__cachedInstances[n]=r,r},l=function(e){if(e&&e.elements&&e.createSource&&e.createToken)return e;throw new Error("Please pass a valid Stripe object to StripeProvider. You can obtain a Stripe object by calling 'Stripe(...)' with your publishable key.")},u=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));if(r.props.apiKey&&r.props.stripe)throw new Error("Please pass either 'apiKey' or 'stripe' to StripeProvider, not both.");if(r.props.apiKey){if(!window.Stripe)throw new Error("Please load Stripe.js (https://js.stripe.com/v3/) on this page to use react-stripe-elements. If Stripe.js isn't available yet (it's loading asynchronously, or you're using server-side rendering), see https://github.com/stripe/react-stripe-elements#advanced-integrations");var i=r.props,o=i.apiKey,a=(i.children,i.stripe,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(i,["apiKey","children","stripe"]));r._meta={tag:"sync",stripe:s(o,a)}}else if(r.props.stripe)r._meta={tag:"sync",stripe:l(r.props.stripe)};else{if(null!==r.props.stripe)throw new Error("Please pass either 'apiKey' or 'stripe' to StripeProvider. If you're using 'stripe' but don't have a Stripe instance yet, pass 'null' explicitly.");r._meta={tag:"async",stripe:null}}return r._didWarn=!1,r._didWakeUpListeners=!1,r._listeners=[],r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){var e=this;return"sync"===this._meta.tag?{tag:"sync",stripe:this._meta.stripe}:{tag:"async",addStripeLoadListener:function(t){e._meta.stripe?t(e._meta.stripe):e._listeners.push(t)}}},t.prototype.componentWillReceiveProps=function(e){var t=this.props.apiKey&&e.apiKey&&this.props.apiKey!==e.apiKey,n=this.props.stripe&&e.stripe&&this.props.stripe!==e.stripe;if(!this