!function(){var t=function(t){var e={exports:{}};return t.call(e.exports,e,e.exports),e.exports},e=function(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,r){function n(i,o){try{var a=e[i](o),s=a.value}catch(t){return void r(t)}if(!a.done)return Promise.resolve(s).then((function(t){n("next",t)}),(function(t){n("throw",t)}));t(s)}return n("next")}))}},r=function(t){return t&&t.__esModule?t:{default:t}},n=t((function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}})),i=t((function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)})),o=t((function(t){var e="__core-js_shared__",r=i[e]||(i[e]={});t.exports=function(t){return r[t]||(r[t]={})}})),a=t((function(t){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}})),s=t((function(t){var e=o("wks"),r=i.Symbol,n="function"==typeof r;(t.exports=function(t){return e[t]||(e[t]=n&&r[t]||(n?r:a)("Symbol."+t))}).store=e})),u=t((function(t){var e=s("toStringTag"),r="Arguments"==n(function(){return arguments}()),i=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var o,a,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=i(o=Object(t),e))?a:r?n(o):"Object"==(s=n(o))&&"function"==typeof o.callee?"Arguments":s}})),c=t((function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}})),f=t((function(t){t.exports=function(t){if(!c(t))throw TypeError(t+" is not an object!");return t}})),l=t((function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}})),h=t((function(t){t.exports=!l((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))})),p=t((function(t){var e=i.document,r=c(e)&&c(e.createElement);t.exports=function(t){return r?e.createElement(t):{}}})),d=t((function(t){t.exports=!h&&!l((function(){return 7!=Object.defineProperty(p("div"),"a",{get:function(){return 7}}).a}))})),b=t((function(t){t.exports=function(t,e){if(!c(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!c(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!c(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!c(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}})),w=t((function(t,e){var r=Object.defineProperty;e.f=h?Object.defineProperty:function(t,e,n){if(f(t),e=b(e,!0),f(n),d)try{return r(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}})),v=t((function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}})),y=t((function(t){t.exports=h?function(t,e,r){return w.f(t,e,v(1,r))}:function(t,e,r){return t[e]=r,t}})),m=t((function(t){var e={}.hasOwnProperty;t.exports=function(t,r){return e.call(t,r)}})),g=t((function(t){var e=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=e)})),x=t((function(t){var e=a("src"),r="toString",n=Function[r],o=(""+n).split(r);g.inspectSource=function(t){return n.call(t)},(t.exports=function(t,r,n,a){var s="function"==typeof n;s&&(m(n,"name")||y(n,"name",r)),t[r]!==n&&(s&&(m(n,e)||y(n,e,t[r]?""+t[r]:o.join(String(r)))),t===i?t[r]=n:a?t[r]?t[r]=n:y(t,r,n):(delete t[r],y(t,r,n)))})(Function.prototype,r,(function(){return"function"==typeof this&&this[e]||n.call(this)}))})),_=(t((function(){"use strict";var t={};t[s("toStringTag")]="z",t+""!="[object z]"&&x(Object.prototype,"toString",(function(){return"[object "+u(this)+"]"}),!0)})),t((function(t){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}}))),k=t((function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}})),S=t((function(t){t.exports=function(t){return function(e,r){var n,i,o=String(k(e)),a=_(r),s=o.length;return a<0||a>=s?t?"":void 0:(n=o.charCodeAt(a))<55296||n>56319||a+1===s||(i=o.charCodeAt(a+1))<56320||i>57343?t?o.charAt(a):n:t?o.slice(a,a+2):i-56320+(n-55296<<10)+65536}}})),T=t((function(t){t.exports=!1})),A=t((function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}})),E=t((function(t){t.exports=function(t,e,r){if(A(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}})),O=t((function(t){var e="prototype",r=function(t,n,o){var a,s,u,c,f=t&r.F,l=t&r.G,h=t&r.S,p=t&r.P,d=t&r.B,b=l?i:h?i[n]||(i[n]={}):(i[n]||{})[e],w=l?g:g[n]||(g[n]={}),v=w[e]||(w[e]={});for(a in l&&(o=n),o)u=((s=!f&&b&&void 0!==b[a])?b:o)[a],c=d&&s?E(u,i):p&&"function"==typeof u?E(Function.call,u):u,b&&x(b,a,u,t&r.U),w[a]!=u&&y(w,a,c),p&&v[a]!=u&&(v[a]=u)};i.core=g,r.F=1,r.G=2,r.S=4,r.P=8,r.B=16,r.W=32,r.U=64,r.R=128,t.exports=r})),j=t((function(t){t.exports={}})),P=t((function(t){t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}})),L=t((function(t){t.exports=function(t){return P(k(t))}})),B=t((function(t){var e=Math.min;t.exports=function(t){return t>0?e(_(t),9007199254740991):0}})),M=t((function(t){var e=Math.max,r=Math.min;t.exports=function(t,n){return(t=_(t))<0?e(t+n,0):r(t,n)}})),R=t((function(t){t.exports=function(t){return function(e,r,n){var i,o=L(e),a=B(o.length),s=M(n,a);if(t&&r!=r){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===r)return t||s||0;return!t&&-1}}})),N=t((function(t){var e=o("keys");t.exports=function(t){return e[t]||(e[t]=a(t))}})),U=t((function(t){var e=R(!1),r=N("IE_PROTO");t.exports=function(t,n){var i,o=L(t),a=0,s=[];for(i in o)i!=r&&m(o,i)&&s.push(i);for(;n.length>a;)m(o,i=n[a++])&&(~e(s,i)||s.push(i));return s}})),C=t((function(t){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")})),I=t((function(t){t.exports=Object.keys||function(t){return U(t,C)}})),F=t((function(t){t.exports=h?Object.defineProperties:function(t,e){f(t);for(var r,n=I(e),i=n.length,o=0;i>o;)w.f(t,r=n[o++],e[r]);return t}})),D=t((function(t){var e=i.document;t.exports=e&&e.documentElement})),q=t((function(t){var e=N("IE_PROTO"),r=function(){},n="prototype",i=function(){var t,e=p("iframe"),r=C.length,o="<",a=">";for(e.style.display="none",D.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),i=t.F;r--;)delete i[n][C[r]];return i()};t.exports=Object.create||function(t,o){var a;return null!==t?(r[n]=f(t),a=new r,r[n]=null,a[e]=t):a=i(),void 0===o?a:F(a,o)}})),z=t((function(t){var e=w.f,r=s("toStringTag");t.exports=function(t,n,i){t&&!m(t=i?t:t.prototype,r)&&e(t,r,{configurable:!0,value:n})}})),G=t((function(t){"use strict";var e={};y(e,s("iterator"),(function(){return this})),t.exports=function(t,r,n){t.prototype=q(e,{next:v(1,n)}),z(t,r+" Iterator")}})),V=t((function(t){t.exports=function(t){return Object(k(t))}})),H=t((function(t){var e=N("IE_PROTO"),r=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=V(t),m(t,e)?t[e]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?r:null}})),W=t((function(t){"use strict";var e=s("iterator"),r=!([].keys&&"next"in[].keys()),n="@@iterator",i="keys",o="values",a=function(){return this};t.exports=function(t,s,u,c,f,l,h){G(u,s,c);var p,d,b,w=function(t){if(!r&&t in k)return k[t];switch(t){case i:case o:return function(){return new u(this,t)}}return function(){return new u(this,t)}},v=s+" Iterator",g=f==o,_=!1,k=t.prototype,S=k[e]||k[n]||f&&k[f],A=S||w(f),E=f?g?w("entries"):A:void 0,P="Array"==s&&k.entries||S;if(P&&(b=H(P.call(new t)))!==Object.prototype&&b.next&&(z(b,v,!0),T||m(b,e)||y(b,e,a)),g&&S&&S.name!==o&&(_=!0,A=function(){return S.call(this)}),T&&!h||!r&&!_&&k[e]||y(k,e,A),j[s]=A,j[v]=a,f)if(p={values:g?A:w(o),keys:l?A:w(i),entries:E},h)for(d in p)d in k||x(k,d,p[d]);else O(O.P+O.F*(r||_),s,p);return p}})),K=(t((function(){"use strict";var t=S(!0);W(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var e,r=this._t,n=this._i;return n>=r.length?{value:void 0,done:!0}:(e=t(r,n),this._i+=e.length,{value:e,done:!1})}))})),t((function(t){var e=s("unscopables"),r=Array.prototype;null==r[e]&&y(r,e,{}),t.exports=function(t){r[e][t]=!0}}))),X=t((function(t){t.exports=function(t,e){return{value:e,done:!!t}}})),Z=t((function(t){"use strict";t.exports=W(Array,"Array",(function(t,e){this._t=L(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,X(1)):X(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])}),"values"),j.Arguments=j.Array,K("keys"),K("values"),K("entries")})),$=(t((function(){for(var t=s("iterator"),e=s("toStringTag"),r=j.Array,n={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},o=I(n),a=0;ad;d++)if((l=e?p(f(u=t[d])[0],u[1]):p(t[d]))===r||l===n)return l}else for(c=h.call(t);!(u=c.next()).done;)if((l=Y(c,p,u.value,e))===r||l===n)return l}).BREAK=r,e.RETURN=n})),et=t((function(t){var e=s("species");t.exports=function(t,r){var n,i=f(t).constructor;return void 0===i||null==(n=f(i)[e])?r:A(n)}})),rt=t((function(t){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}})),nt=t((function(t){var e,r,o,a=i.process,s=i.setImmediate,u=i.clearImmediate,c=i.MessageChannel,f=i.Dispatch,l=0,h={},d="onreadystatechange",b=function(){var t=+this;if(h.hasOwnProperty(t)){var e=h[t];delete h[t],e()}},w=function(t){b.call(t.data)};s&&u||(s=function(t){for(var r=[],n=1;arguments.length>n;)r.push(arguments[n++]);return h[++l]=function(){rt("function"==typeof t?t:Function(t),r)},e(l),l},u=function(t){delete h[t]},"process"==n(a)?e=function(t){a.nextTick(E(b,t,1))}:f&&f.now?e=function(t){f.now(E(b,t,1))}:c?(o=(r=new c).port2,r.port1.onmessage=w,e=E(o.postMessage,o,1)):i.addEventListener&&"function"==typeof postMessage&&!i.importScripts?(e=function(t){i.postMessage(t+"","*")},i.addEventListener("message",w,!1)):e=d in p("script")?function(t){D.appendChild(p("script"))[d]=function(){D.removeChild(this),b.call(t)}}:function(t){setTimeout(E(b,t,1),0)}),t.exports={set:s,clear:u}})),it=t((function(t){var e=nt.set,r=i.MutationObserver||i.WebKitMutationObserver,o=i.process,a=i.Promise,s="process"==n(o);t.exports=function(){var t,n,u,c=function(){var e,r;for(s&&(e=o.domain)&&e.exit();t;){r=t.fn,t=t.next;try{r()}catch(e){throw t?u():n=void 0,e}}n=void 0,e&&e.enter()};if(s)u=function(){o.nextTick(c)};else if(r){var f=!0,l=document.createTextNode("");new r(c).observe(l,{characterData:!0}),u=function(){l.data=f=!f}}else if(a&&a.resolve){var h=a.resolve();u=function(){h.then(c)}}else u=function(){e.call(i,c)};return function(e){var r={fn:e,next:void 0};n&&(n.next=r),t||(t=r,u()),n=r}}})),ot=t((function(t){"use strict";function e(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=A(e),this.reject=A(r)}t.exports.f=function(t){return new e(t)}})),at=t((function(t){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}})),st=t((function(t){t.exports=function(t,e){if(f(t),c(e)&&e.constructor===t)return e;var r=ot.f(t);return(0,r.resolve)(e),r.promise}})),ut=t((function(t){t.exports=function(t,e,r){for(var n in e)x(t,n,e[n],r);return t}})),ct=t((function(t){"use strict";var e=s("species");t.exports=function(t){var r=i[t];h&&r&&!r[e]&&w.f(r,e,{configurable:!0,get:function(){return this}})}})),ft=t((function(t){var e=s("iterator"),r=!1;try{var n=[7][e]();n.return=function(){r=!0},Array.from(n,(function(){throw 2}))}catch(t){}t.exports=function(t,n){if(!n&&!r)return!1;var i=!1;try{var o=[7],a=o[e]();a.next=function(){return{done:i=!0}},o[e]=function(){return a},t(o)}catch(t){}return i}}));t((function(){"use strict";var t,e,r,n,o=nt.set,a=it(),f="Promise",l=i.TypeError,h=i.process,p=i[f],d="process"==u(h),b=function(){},w=e=ot.f,v=!!function(){try{var t=p.resolve(1),e=(t.constructor={})[s("species")]=function(t){t(b,b)};return(d||"function"==typeof PromiseRejectionEvent)&&t.then(b)instanceof e}catch(t){}}(),y=function(t){var e;return!(!c(t)||"function"!=typeof(e=t.then))&&e},m=function(t,e){if(!t._n){t._n=!0;var r=t._c;a((function(){for(var n=t._v,i=1==t._s,o=0,a=function(e){var r,o,a=i?e.ok:e.fail,s=e.resolve,u=e.reject,c=e.domain;try{a?(i||(2==t._h&&k(t),t._h=1),!0===a?r=n:(c&&c.enter(),r=a(n),c&&c.exit()),r===e.promise?u(l("Promise-chain cycle")):(o=y(r))?o.call(r,s,u):s(r)):u(n)}catch(t){u(t)}};r.length>o;)a(r[o++]);t._c=[],t._n=!1,e&&!t._h&&x(t)}))}},x=function(t){o.call(i,(function(){var e,r,n,o=t._v,a=_(t);if(a&&(e=at((function(){d?h.emit("unhandledRejection",o,t):(r=i.onunhandledrejection)?r({promise:t,reason:o}):(n=i.console)&&n.error&&n.error("Unhandled promise rejection",o)})),t._h=d||_(t)?2:1),t._a=void 0,a&&e.e)throw e.v}))},_=function(t){if(1==t._h)return!1;for(var e,r=t._a||t._c,n=0;r.length>n;)if((e=r[n++]).fail||!_(e.promise))return!1;return!0},k=function(t){o.call(i,(function(){var e;d?h.emit("rejectionHandled",t):(e=i.onrejectionhandled)&&e({promise:t,reason:t._v})}))},S=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),m(e,!0))},j=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw l("Promise can't be resolved itself");(e=y(t))?a((function(){var n={_w:r,_d:!1};try{e.call(t,E(j,n,1),E(S,n,1))}catch(t){S.call(n,t)}})):(r._v=t,r._s=1,m(r,!1))}catch(t){S.call({_w:r,_d:!1},t)}}};v||(p=function(e){$(this,p,f,"_h"),A(e),t.call(this);try{e(E(j,this,1),E(S,this,1))}catch(t){S.call(this,t)}},(t=function(){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=ut(p.prototype,{then:function(t,e){var r=w(et(this,p));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=d?h.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&m(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),r=function(){var e=new t;this.promise=e,this.resolve=E(j,e,1),this.reject=E(S,e,1)},ot.f=w=function(t){return t===p||t===n?new r(t):e(t)}),O(O.G+O.W+O.F*!v,{Promise:p}),z(p,f),ct(f),n=g[f],O(O.S+O.F*!v,f,{reject:function(t){var e=w(this);return(0,e.reject)(t),e.promise}}),O(O.S+O.F*(T||!v),f,{resolve:function(t){return st(T&&this===n?p:this,t)}}),O(O.S+O.F*!(v&&ft((function(t){p.all(t).catch(b)}))),f,{all:function(t){var e=this,r=w(e),n=r.resolve,i=r.reject,o=at((function(){var r=[],o=0,a=1;tt(t,!1,(function(t){var s=o++,u=!1;r.push(void 0),a++,e.resolve(t).then((function(t){u||(u=!0,r[s]=t,--a||n(r))}),i)})),--a||n(r)}));return o.e&&i(o.v),r.promise},race:function(t){var e=this,r=w(e),n=r.reject,i=at((function(){tt(t,!1,(function(t){e.resolve(t).then(r.resolve,n)}))}));return i.e&&n(i.v),r.promise}})})),t((function(t){t.exports=g.Promise}));!function(t){"use strict";function e(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function r(t){return"string"!=typeof t&&(t=String(t)),t}function n(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return v.iterable&&(e[Symbol.iterator]=function(){return e}),e}function i(t){this.map={},t instanceof i?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function o(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function a(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function s(t){var e=new FileReader,r=a(e);return e.readAsArrayBuffer(t),r}function u(t){var e=new FileReader,r=a(e);return e.readAsText(t),r}function c(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n-1?e:t}function p(t,e){var r=(e=e||{}).body;if(t instanceof p){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new i(t.headers)),this.method=t.method,this.mode=t.mode,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new i(e.headers)),this.method=h(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function d(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(i))}})),e}function b(t){var e=new i;return t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();e.append(n,i)}})),e}function w(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new i(e.headers),this.url=e.url||"",this._initBody(t)}if(!t.fetch){var v={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(v.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],m=function(t){return t&&DataView.prototype.isPrototypeOf(t)},g=ArrayBuffer.isView||function(t){return t&&y.indexOf(Object.prototype.toString.call(t))>-1};i.prototype.append=function(t,n){t=e(t),n=r(n);var i=this.map[t];this.map[t]=i?i+","+n:n},i.prototype.delete=function(t){delete this.map[e(t)]},i.prototype.get=function(t){return t=e(t),this.has(t)?this.map[t]:null},i.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},i.prototype.set=function(t,n){this.map[e(t)]=r(n)},i.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},i.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),n(t)},i.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),n(t)},i.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),n(t)},v.iterable&&(i.prototype[Symbol.iterator]=i.prototype.entries);var x=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];p.prototype.clone=function(){return new p(this,{body:this._bodyInit})},l.call(p.prototype),l.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers),url:this.url})},w.error=function(){var t=new w(null,{status:0,statusText:""});return t.type="error",t};var _=[301,302,303,307,308];w.redirect=function(t,e){if(-1===_.indexOf(e))throw new RangeError("Invalid status code");return new w(null,{status:e,headers:{location:t}})},t.Headers=i,t.Request=p,t.Response=w,t.fetch=function(t,e){return new Promise((function(r,n){var i=new p(t,e),o=new XMLHttpRequest;o.onload=function(){var t={status:o.status,statusText:o.statusText,headers:b(o.getAllResponseHeaders()||"")};t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL");var e="response"in o?o.response:o.responseText;r(new w(e,t))},o.onerror=function(){n(new TypeError("Network request failed"))},o.ontimeout=function(){n(new TypeError("Network request failed"))},o.open(i.method,i.url,!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&v.blob&&(o.responseType="blob"),i.headers.forEach((function(t,e){o.setRequestHeader(e,t)})),o.send(void 0===i._bodyInit?null:i._bodyInit)}))},t.fetch.polyfill=!0}}("undefined"!=typeof self?self:this),function(t){"use strict";function e(t,e,r,i){var o=e&&e.prototype instanceof n?e:n,a=Object.create(o.prototype),s=new h(i||[]);return a._invoke=u(t,r,s),a}function r(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function n(){}function i(){}function o(){}function a(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function s(t){function e(n,i,o,a){var s=r(t[n],t,i);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==typeof c&&v.call(c,"__await")?Promise.resolve(c.__await).then((function(t){e("next",t,o,a)}),(function(t){e("throw",t,o,a)})):Promise.resolve(c).then((function(t){u.value=t,o(u)}),(function(t){return e("throw",t,o,a)}))}a(s.arg)}function n(t,r){function n(){return new Promise((function(n,i){e(t,r,n,i)}))}return i=i?i.then(n,n):n()}var i;this._invoke=n}function u(t,e,n){var i=S;return function(o,a){if(i===A)throw new Error("Generator is already running");if(i===E){if("throw"===o)throw a;return d()}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=c(s,n);if(u){if(u===O)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===S)throw i=E,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=A;var f=r(t,e,n);if("normal"===f.type){if(i=n.done?E:T,f.arg===O)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(i=E,n.method="throw",n.arg=f.arg)}}}function c(t,e){var n=t.iterator[e.method];if(n===b){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=b,c(t,e),"throw"===e.method))return O;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return O}var i=r(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,O;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=b),e.delegate=null,O):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,O)}function f(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function l(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function h(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(f,this),this.reset(!0)}function p(t){if(t){var e=t[m];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=v.call(i,"catchLoc"),s=v.call(i,"finallyLoc");if(a&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&v.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),l(r),O}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;l(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:p(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=b),O}}}}(function(){return this||"object"==typeof self&&self}()||Function("return this")());var lt=t((function(t,e){!function(r,n){"use strict";var i="0.7.37",o="",a="?",s="function",u="undefined",c="object",f="string",l="major",h="model",p="name",d="type",b="vendor",w="version",v="architecture",y="console",m="mobile",g="tablet",x="smarttv",_="wearable",k="embedded",S=500,T="Amazon",A="Apple",E="ASUS",O="BlackBerry",j="Browser",P="Chrome",L="Firefox",B="Google",M="Huawei",R="LG",N="Microsoft",U="Motorola",C="Opera",I="Samsung",F="Sharp",D="Sony",q="Xiaomi",z="Zebra",G="Facebook",V="Chromium OS",H="Mac OS",W=function(t,e){var r={};for(var n in t)e[n]&&e[n].length%2==0?r[n]=e[n].concat(t[n]):r[n]=t[n];return r},K=function(t){for(var e={},r=0;r0?2===a.length?typeof a[1]==s?this[a[0]]=a[1].call(this,f):this[a[0]]=a[1]:3===a.length?typeof a[1]!==s||a[1].exec&&a[1].test?this[a[0]]=f?f.replace(a[1],a[2]):n:this[a[0]]=f?a[1].call(this,f,a[2]):n:4===a.length&&(this[a[0]]=f?a[3].call(this,f.replace(a[1],a[2])):n):this[a]=f||n;l+=2}},Q=function(t,e){for(var r in e)if(typeof e[r]===c&&e[r].length>0){for(var i=0;i2&&(t[h]="iPad",t[d]=g),t},this.getEngine=function(){var t={};return t[p]=n,t[w]=n,J.call(t,a,x.engine),t},this.getOS=function(){var t={};return t[p]=n,t[w]=n,J.call(t,a,x.os),_&&!t[p]&&y&&"Unknown"!=y.platform&&(t[p]=y.platform.replace(/chrome os/i,V).replace(/macos/i,H)),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return a},this.setUA=function(t){return a=typeof t===f&&t.length>S?Y(t,S):t,this},this.setUA(a),this};rt.VERSION=i,rt.BROWSER=K([p,w,l]),rt.CPU=K([v]),rt.DEVICE=K([h,b,d,y,m,x,g,_,k]),rt.ENGINE=rt.OS=K([p,w]),"object"!==u?("object"!==u&&t.exports&&(e=t.exports=rt),e.UAParser=rt):typeof define===s&&define.amd?define((function(){return rt})):typeof r!==u&&(r.UAParser=rt);var nt=typeof r!==u&&(r.jQuery||r.Zepto);if(nt&&!nt.ua){var it=new rt;nt.ua=it.getResult(),nt.ua.get=function(){return it.getUA()},nt.ua.set=function(t){it.setUA(t);var e=it.getResult();for(var r in e)nt.ua[r]=e[r]}}}("object"==typeof window?window:this)})),ht=t((function(t,e){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:8760,r=(new Date).getTime(),n=new Date(r+60*e*60*1e3);document.cookie=l+"="+t+"; expires="+n.toGMTString()+"; path=/"}Object.defineProperty(r,"__esModule",{value:!0});var s,u,c=(s=e(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!0!==new dt.Browser({userAgent:navigator.userAgent}).isSafari){t.next=3;break}return t.abrupt("return");case 3:if(null===n()){t.next=6;break}return t.abrupt("return");case 6:return t.next=8,f();case 8:!0===t.sent?a("true"):a("pending",1);case 10:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)}),f=(u=e(regeneratorRuntime.mark((function t(){var e,r,n,a,s,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e="https://"+window.ShopifyPay.apiHost+"/session?v=1",r=i(),n=o(),null!==r&&null!==n&&(e+="&token="+r+"&shop_id="+n),t.next=7,fetch(e,{credentials:"include"});case 7:return a=t.sent,t.next=10,a.json();case 10:return s=t.sent,u=s.eligible,t.abrupt("return",u);case 15:return t.prev=15,t.t0=t.catch(0),t.abrupt("return",!1);case 18:case"end":return t.stop()}}),t,this,[[0,15]])}))),function(){return u.apply(this,arguments)});r.setRedirectState=a;var l="shopify_pay_redirect",h="_shopify_y";r.default=c}));t((function(){"use strict";(0,r(bt).default)()}))}("undefined"!=typeof global?global:"undefined"!=typeof window&&window);