@schibsted/account-sdk-browser 4.7.2 → 4.7.3

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.
package/es5/index.min.js CHANGED
@@ -1,2 +1,2 @@
1
- module.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=136)}([function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"f",(function(){return a})),r.d(e,"d",(function(){return c})),r.d(e,"e",(function(){return u})),r.d(e,"c",(function(){return s})),r.d(e,"h",(function(){return f})),r.d(e,"b",(function(){return l})),r.d(e,"g",(function(){return h}));r(28),r(32),r(33),r(107),r(126),r(16),r(156),r(63),r(25),r(20),r(26),r(127);var n=r(4);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Assertion failed";if(!t)throw new n.a(e)}function a(t){return"string"==typeof t}function c(t){return"string"==typeof t&&t.length>0}function u(t){return"object"===i(t)&&null!==t}function s(t){return u(t)&&Object.keys(t).length>0}function f(t){try{for(var e=new URL(t),r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return n.every((function(t){return e[t]}))}catch(t){return!1}}function l(t){return"function"==typeof t}function h(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=function(e){return a(e)&&t.toUpperCase()===e.toUpperCase()};return!(!a(t)||!Array.isArray(e))&&(r?-1!==e.indexOf(t):e.some(n))}},function(t,e,r){var n=r(2),i=r(40).f,o=r(15),a=r(12),c=r(68),u=r(96),s=r(56);t.exports=function(t,e){var r,f,l,h,p,v=t.target,d=t.global,y=t.stat;if(r=d?n:y?n[v]||c(v,{}):(n[v]||{}).prototype)for(f in e){if(h=e[f],l=t.noTargetGet?(p=i(r,f))&&p.value:r[f],!s(d?f:v+(y?".":"#")+f,t.forced)&&void 0!==l){if(typeof h==typeof l)continue;u(h,l)}(t.sham||l&&l.sham)&&o(h,"sham",!0),a(r,f,h,t)}}},function(t,e,r){(function(e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")()}).call(this,r(138))},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return p}));r(28),r(32),r(33),r(44),r(130),r(160),r(126),r(16),r(47),r(93),r(131),r(161),r(114),r(81),r(63),r(82),r(25),r(89),r(62),r(20),r(26);function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?a(t):e}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t){var e="function"==typeof Map?new Map:void 0;return(c=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return u(t,arguments,l(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,t)})(t)}function u(t,e,r){return(u=s()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&f(i,r.prototype),i}).apply(null,arguments)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=["boolean","number","string"],p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(d,t);var e,r,c,u,p,v=(e=d,r=s(),function(){var t,n=l(e);if(r){var i=l(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return o(this,t)});function d(t,e){var r;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),(r=v.call(this,t)).name="SDKError","object"===n(e))try{Object.assign(a(r),e)}catch(t){}return r}return c=d,(u=[{key:"toString",value:function(){var t=this,e="".concat(this.name,": ").concat(this.message),r=Object.keys(this).filter((function(e){return"name"!==e&&h.includes(n(t[e]))})).map((function(e){return" ".concat(e,": ").concat(t[e])})).join("\n");return r?"".concat(e,"\n").concat(r):e}}])&&i(c.prototype,u),p&&i(c,p),d}(c(Error))},function(t,e,r){var n=r(2),i=r(70),o=r(8),a=r(53),c=r(74),u=r(100),s=i("wks"),f=n.Symbol,l=u?f:f&&f.withoutSetter||a;t.exports=function(t){return o(s,t)||(c&&o(f,t)?s[t]=f[t]:s[t]=l("Symbol."+t)),s[t]}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){var n=r(6);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(3);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,r){var n=r(9),i=r(94),o=r(7),a=r(41),c=Object.defineProperty;e.f=n?c:function(t,e,r){if(o(t),e=a(e,!0),o(r),i)try{return c(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return o}));var n={ENDPOINTS:{SPiD:{LOCAL:"http://id.localhost",DEV:"https://identity-dev.schibsted.com",PRE:"https://identity-pre.schibsted.com",PRO:"https://login.schibsted.com",PRO_NO:"https://payment.schibsted.no",PRO_FI:"https://login.schibsted.fi",PRO_DK:"https://login.schibsted.dk"},BFF:{LOCAL:"http://id.localhost/authn/",DEV:"https://identity-dev.schibsted.com/authn/",PRE:"https://identity-pre.schibsted.com/authn/",PRO:"https://login.schibsted.com/authn/",PRO_NO:"https://payment.schibsted.no/authn/",PRO_FI:"https://login.schibsted.fi/authn/",PRO_DK:"https://login.schibsted.dk/authn/"},SESSION_SERVICE:{LOCAL:"http://session-service.id.localhost",DEV:"https://session-service.identity-dev.schibsted.com",PRE:"https://session-service.identity-pre.schibsted.com",PRO:"https://session-service.login.schibsted.com",PRO_NO:"https://session-service.payment.schibsted.no",PRO_FI:"https://session-service.login.schibsted.fi",PRO_DK:"https://session-service.login.schibsted.dk"}},NAMESPACE:{LOCAL:"id.localhost",DEV:"schibsted.com",PRE:"schibsted.com",PRO:"schibsted.com",PRO_NO:"spid.no",PRO_FI:"schibsted.fi",PRO_DK:"schibsted.dk"}},i=n.ENDPOINTS,o=n.NAMESPACE},function(t,e,r){var n=r(2),i=r(15),o=r(8),a=r(68),c=r(69),u=r(21),s=u.get,f=u.enforce,l=String(String).split("String");(t.exports=function(t,e,r,c){var u=!!c&&!!c.unsafe,s=!!c&&!!c.enumerable,h=!!c&&!!c.noTargetGet;"function"==typeof r&&("string"!=typeof e||o(r,"name")||i(r,"name",e),f(r).source=l.join("string"==typeof e?e:"")),t!==n?(u?!h&&t[e]&&(s=!0):delete t[e],s?t[e]=r:i(t,e,r)):s?t[e]=r:a(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||c(this)}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));r(28),r(32),r(33),r(16),r(25),r(20),r(26);var n=r(0);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){return Object(n.a)(Object(n.d)(t),'"url" param must be a non empty string: '.concat(i(t))),Object(n.c)(e)&&Object(n.h)(e[t])?e[t]:(Object(n.a)(Object(n.h)(t,"hostname"),"Bad URL given: '".concat(t,"'")),t)}},function(t,e,r){"use strict";r(44),r(130),r(16),r(47),r(93),r(63),r(25),r(85),r(60),r(20),r(134),r(173),r(26),r(127),r(49);var n=r(4),i=r(27),o=r(13),a=r(0);function c(t,e,r,n,i,o,a){try{var c=t[o](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,i)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var s=function(t){return t.map((function(t){return Object(a.e)(t)?JSON.stringify(t,null,2):t})).join(" ")},f=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return"function"==typeof t&&t(s(r))};function l(t){var e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}var h=function(){function t(e){var r=e.serverUrl,n=void 0===r?"PRE":r,i=e.envDic,c=e.fetch,u=void 0===c?window.fetch&&window.fetch.bind(window):c,s=e.log,f=e.defaultParams,l=void 0===f?{}:f;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Object(a.a)(Object(a.e)(l),"defaultParams should be a non-null object"),this.url=new URL(Object(o.a)(n,i)),this.defaultParams=l,s&&(Object(a.a)(Object(a.b)(s),"log must be a function but it is ".concat(s)),this.log=s),u&&(Object(a.a)(Object(a.b)(u),"Fetch should be a function"),this.fetch=u)}var e,r,s,h,p;return e=t,r=[{key:"go",value:(h=regeneratorRuntime.mark((function t(e){var r,o,c,u,s,l,h,p,v,d,y,g,b;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.method,o=e.headers,c=e.pathname,u=e.data,s=void 0===u?{}:u,l=e.useDefaultParams,h=void 0===l||l,p=e.fetchOptions,v=void 0===p?{method:r,credentials:"include"}:p,Object(a.a)(Object(a.b)(this.fetch),"Can't make a call. The reference to fetch is missing or not a function."),Object(a.a)(Object(a.d)(r),'Method must be a non empty string but it is "'.concat(r,'"')),Object(a.a)(Object(a.d)(c),'Pathname must be string but it is "'.concat(c,'"')),Object(a.a)(Object(a.e)(s),"data must be a non-null object"),v.headers=Object(a.e)(o)?Object(i.b)(o):{},d=this.makeUrl(c,s,h),f(this.log,"Request:",v.method.toUpperCase(),d),f(this.log,"Request Headers:",v.headers),f(this.log,"Request Body:",v.body),t.prev=10,t.next=13,this.fetch(d,v);case 13:if(y=t.sent,f(this.log,"Response Code:",y.status,y.statusText),y.ok){t.next=17;break}throw new n.a(y.statusText,{code:y.status});case 17:return t.next=19,y.json();case 19:return g=t.sent,f(this.log,"Response Parsed:",g),t.abrupt("return",g);case 24:throw t.prev=24,t.t0=t.catch(10),b=Object(a.f)(t.t0)?t.t0:"Unknown RESTClient error",Object(a.e)(t.t0)&&Object(a.f)(t.t0.message)&&(b=t.t0.message),new n.a("Failed to '".concat(r,"' '").concat(d,"': '").concat(b,"'"),t.t0);case 29:case"end":return t.stop()}}),t,this,[[10,24]])})),p=function(){var t=this,e=arguments;return new Promise((function(r,n){var i=h.apply(t,e);function o(t){c(i,r,n,o,a,"next",t)}function a(t){c(i,r,n,o,a,"throw",t)}o(void 0)}))},function(t){return p.apply(this,arguments)})},{key:"makeUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=new URL(e,this.url);return i.search=t.search(r,n,this.defaultParams),i.href}},{key:"get",value:function(t,e){return this.go({method:"get",pathname:t,data:e})}}],s=[{key:"search",value:function(t,e,r){var n=e?Object(i.b)(r,t):Object(i.b)(t);return Object.keys(n).filter((function(t){return""!==n[t]})).map((function(t){return"".concat(l(t),"=").concat(l(n[t]))})).join("&")}}],r&&u(e.prototype,r),s&&u(e,s),t}();e.a=h},function(t,e,r){var n=r(9),i=r(10),o=r(34);t.exports=n?function(t,e,r){return i.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){"use strict";var n=r(17),i=r(108),o=r(46),a=r(21),c=r(77),u=a.set,s=a.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,e){u(this,{type:"Array Iterator",target:n(t),index:0,kind:e})}),(function(){var t=s(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e,r){var n=r(51),i=r(29);t.exports=function(t){return n(i(t))}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e,r){var n=r(29);t.exports=function(t){return Object(n(t))}},function(t,e,r){"use strict";var n=r(90).charAt,i=r(21),o=r(77),a=i.set,c=i.getterFor("String Iterator");o(String,"String",(function(t){a(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=c(this),r=e.string,i=e.index;return i>=r.length?{value:void 0,done:!0}:(t=n(r,i),e.index+=t.length,{value:t,done:!1})}))},function(t,e,r){var n,i,o,a=r(139),c=r(2),u=r(6),s=r(15),f=r(8),l=r(52),h=r(42),p=c.WeakMap;if(a){var v=new p,d=v.get,y=v.has,g=v.set;n=function(t,e){return g.call(v,t,e),e},i=function(t){return d.call(v,t)||{}},o=function(t){return y.call(v,t)}}else{var b=l("state");h[b]=!0,n=function(t,e){return s(t,b,e),e},i=function(t){return f(t,b)?t[b]:{}},o=function(t){return f(t,b)}}t.exports={set:n,get:i,has:o,enforce:function(t){return o(t)?i(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},function(t,e,r){var n=r(97),i=r(2),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t])||o(i[t]):n[t]&&n[t][e]||i[t]&&i[t][e]}},function(t,e,r){var n=r(55),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},function(t,e,r){var n=r(9),i=r(3),o=r(8),a=Object.defineProperty,c={},u=function(t){throw t};t.exports=function(t,e){if(o(c,t))return c[t];e||(e={});var r=[][t],s=!!o(e,"ACCESSORS")&&e.ACCESSORS,f=o(e,0)?e[0]:u,l=o(e,1)?e[1]:void 0;return c[t]=!!r&&!i((function(){if(s&&!n)return!0;var t={length:-1};s?a(t,1,{enumerable:!0,get:u}):t[1]=1,r.call(t,f,l)}))}},function(t,e,r){var n=r(83),i=r(12),o=r(146);n||i(Object.prototype,"toString",o,{unsafe:!0})},function(t,e,r){var n=r(2),i=r(125),o=r(16),a=r(15),c=r(5),u=c("iterator"),s=c("toStringTag"),f=o.values;for(var l in i){var h=n[l],p=h&&h.prototype;if(p){if(p[u]!==f)try{a(p,u,f)}catch(t){p[u]=f}if(p[s]||a(p,s,l),i[l])for(var v in o)if(p[v]!==o[v])try{a(p,v,o[v])}catch(t){p[v]=o[v]}}}},function(t,e,r){"use strict";r.d(e,"b",(function(){return u})),r.d(e,"a",(function(){return s}));r(28),r(32),r(33),r(165),r(166),r(16),r(167),r(131),r(168),r(25),r(62),r(20),r(170),r(26);var n=r(0),i=r(4);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function u(){for(var t={},e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];if(!r||!r.length)throw new i.a("No objects to clone");return r.forEach((function(e){Object(n.a)(Object(n.e)(e)),Object(n.c)(e)&&Object.entries(e).forEach((function(e){var r=a(e,2),i=r[0],o=r[1];void 0!==o&&(t[i]=Object(n.e)(o)?s(o):o)}))})),t}function s(t){return Object(n.a)("object"===o(t),"obj should be an object (even null) but it is ".concat(t)),JSON.parse(JSON.stringify(t))||t}},function(t,e,r){"use strict";var n=r(1),i=r(2),o=r(22),a=r(35),c=r(9),u=r(74),s=r(100),f=r(3),l=r(8),h=r(57),p=r(6),v=r(7),d=r(19),y=r(17),g=r(41),b=r(34),m=r(30),w=r(43),x=r(54),S=r(141),O=r(73),j=r(40),k=r(10),_=r(50),E=r(15),P=r(12),U=r(70),R=r(52),I=r(42),A=r(53),L=r(5),C=r(103),T=r(104),N=r(31),D=r(21),F=r(36).forEach,M=R("hidden"),q=L("toPrimitive"),B=D.set,V=D.getterFor("Symbol"),G=Object.prototype,z=i.Symbol,$=o("JSON","stringify"),W=j.f,K=k.f,H=S.f,J=_.f,Y=U("symbols"),X=U("op-symbols"),Q=U("string-to-symbol-registry"),Z=U("symbol-to-string-registry"),tt=U("wks"),et=i.QObject,rt=!et||!et.prototype||!et.prototype.findChild,nt=c&&f((function(){return 7!=m(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=W(G,e);n&&delete G[e],K(t,e,r),n&&t!==G&&K(G,e,n)}:K,it=function(t,e){var r=Y[t]=m(z.prototype);return B(r,{type:"Symbol",tag:t,description:e}),c||(r.description=e),r},ot=s?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof z},at=function(t,e,r){t===G&&at(X,e,r),v(t);var n=g(e,!0);return v(r),l(Y,n)?(r.enumerable?(l(t,M)&&t[M][n]&&(t[M][n]=!1),r=m(r,{enumerable:b(0,!1)})):(l(t,M)||K(t,M,b(1,{})),t[M][n]=!0),nt(t,n,r)):K(t,n,r)},ct=function(t,e){v(t);var r=y(e),n=w(r).concat(lt(r));return F(n,(function(e){c&&!ut.call(r,e)||at(t,e,r[e])})),t},ut=function(t){var e=g(t,!0),r=J.call(this,e);return!(this===G&&l(Y,e)&&!l(X,e))&&(!(r||!l(this,e)||!l(Y,e)||l(this,M)&&this[M][e])||r)},st=function(t,e){var r=y(t),n=g(e,!0);if(r!==G||!l(Y,n)||l(X,n)){var i=W(r,n);return!i||!l(Y,n)||l(r,M)&&r[M][n]||(i.enumerable=!0),i}},ft=function(t){var e=H(y(t)),r=[];return F(e,(function(t){l(Y,t)||l(I,t)||r.push(t)})),r},lt=function(t){var e=t===G,r=H(e?X:y(t)),n=[];return F(r,(function(t){!l(Y,t)||e&&!l(G,t)||n.push(Y[t])})),n};(u||(P((z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=A(t),r=function(t){this===G&&r.call(X,t),l(this,M)&&l(this[M],e)&&(this[M][e]=!1),nt(this,e,b(1,t))};return c&&rt&&nt(G,e,{configurable:!0,set:r}),it(e,t)}).prototype,"toString",(function(){return V(this).tag})),P(z,"withoutSetter",(function(t){return it(A(t),t)})),_.f=ut,k.f=at,j.f=st,x.f=S.f=ft,O.f=lt,C.f=function(t){return it(L(t),t)},c&&(K(z.prototype,"description",{configurable:!0,get:function(){return V(this).description}}),a||P(G,"propertyIsEnumerable",ut,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:z}),F(w(tt),(function(t){T(t)})),n({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=String(t);if(l(Q,e))return Q[e];var r=z(e);return Q[e]=r,Z[r]=e,r},keyFor:function(t){if(!ot(t))throw TypeError(t+" is not a symbol");if(l(Z,t))return Z[t]},useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!c},{create:function(t,e){return void 0===e?m(t):ct(m(t),e)},defineProperty:at,defineProperties:ct,getOwnPropertyDescriptor:st}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ft,getOwnPropertySymbols:lt}),n({target:"Object",stat:!0,forced:f((function(){O.f(1)}))},{getOwnPropertySymbols:function(t){return O.f(d(t))}}),$)&&n({target:"JSON",stat:!0,forced:!u||f((function(){var t=z();return"[null]"!=$([t])||"{}"!=$({a:t})||"{}"!=$(Object(t))}))},{stringify:function(t,e,r){for(var n,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(n=e,(p(e)||void 0!==t)&&!ot(t))return h(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!ot(e))return e}),i[1]=e,$.apply(null,i)}});z.prototype[q]||E(z.prototype,q,z.prototype.valueOf),N(z,"Symbol"),I[M]=!0},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,r){var n,i=r(7),o=r(101),a=r(72),c=r(42),u=r(102),s=r(67),f=r(52),l=f("IE_PROTO"),h=function(){},p=function(t){return"<script>"+t+"<\/script>"},v=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;v=n?function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e}(n):((e=s("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F);for(var r=a.length;r--;)delete v.prototype[a[r]];return v()};c[l]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(h.prototype=i(t),r=new h,h.prototype=null,r[l]=t):r=v(),void 0===e?r:o(r,e)}},function(t,e,r){var n=r(10).f,i=r(8),o=r(5)("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},function(t,e,r){"use strict";var n=r(1),i=r(9),o=r(2),a=r(8),c=r(6),u=r(10).f,s=r(96),f=o.Symbol;if(i&&"function"==typeof f&&(!("description"in f.prototype)||void 0!==f().description)){var l={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof h?new f(t):void 0===t?f():f(t);return""===t&&(l[e]=!0),e};s(h,f);var p=h.prototype=f.prototype;p.constructor=h;var v=p.toString,d="Symbol(test)"==String(f("test")),y=/^Symbol\((.*)\)[^)]+$/;u(p,"description",{configurable:!0,get:function(){var t=c(this)?this.valueOf():this,e=v.call(t);if(a(l,t))return"";var r=d?e.slice(7,-1):e.replace(y,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:h})}},function(t,e,r){r(104)("iterator")},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=!1},function(t,e,r){var n=r(37),i=r(51),o=r(19),a=r(23),c=r(105),u=[].push,s=function(t){var e=1==t,r=2==t,s=3==t,f=4==t,l=6==t,h=5==t||l;return function(p,v,d,y){for(var g,b,m=o(p),w=i(m),x=n(v,d,3),S=a(w.length),O=0,j=y||c,k=e?j(p,S):r?j(p,0):void 0;S>O;O++)if((h||O in w)&&(b=x(g=w[O],O,m),t))if(e)k[O]=b;else if(b)switch(t){case 3:return!0;case 5:return g;case 6:return O;case 2:u.call(k,g)}else if(f)return!1;return l?-1:s||f?f:k}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},function(t,e,r){var n=r(38);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};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)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));r(28),r(32),r(33),r(16),r(25),r(20),r(26);var n=r(0);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){null!==t.SPiD&&"object"===i(t.SPiD)||(t.SPiD={}),null!==t.SPiD.Talk&&"object"===i(t.SPiD.Talk)||(t.SPiD.Talk={}),Object(n.b)(t.SPiD.Talk.response)||(t.SPiD.Talk.response=function(e,r){return t[e](r)})}},function(t,e,r){var n=r(9),i=r(50),o=r(34),a=r(17),c=r(41),u=r(8),s=r(94),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=a(t),e=c(e,!0),s)try{return f(t,e)}catch(t){}if(u(t,e))return o(!i.f.call(t,e),t[e])}},function(t,e,r){var n=r(6);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports={}},function(t,e,r){var n=r(98),i=r(72);t.exports=Object.keys||function(t){return n(t,i)}},function(t,e,r){"use strict";var n=r(1),i=r(3),o=r(57),a=r(6),c=r(19),u=r(23),s=r(75),f=r(105),l=r(58),h=r(5),p=r(76),v=h("isConcatSpreadable"),d=p>=51||!i((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),y=l("concat"),g=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:o(t)};n({target:"Array",proto:!0,forced:!d||!y},{concat:function(t){var e,r,n,i,o,a=c(this),l=f(a,0),h=0;for(e=-1,n=arguments.length;e<n;e++)if(g(o=-1===e?a:arguments[e])){if(h+(i=u(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<i;r++,h++)r in o&&s(l,h,o[r])}else{if(h>=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(l,h++,o)}return l.length=h,l}})},function(t,e,r){"use strict";var n=r(3);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},function(t,e){t.exports={}},function(t,e,r){"use strict";var n=r(1),i=r(51),o=r(17),a=r(45),c=[].join,u=i!=Object,s=a("join",",");n({target:"Array",proto:!0,forced:u||!s},{join:function(t){return c.call(o(this),void 0===t?",":t)}})},function(t,e){t.exports=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}},function(t,e,r){var n=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof l?e:l,o=Object.create(i.prototype),a=new O(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return k()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var c=w(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=s(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),o}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function l(){}function h(){}function p(){}var v={};v[i]=function(){return this};var d=Object.getPrototypeOf,y=d&&d(d(j([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=l.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function m(t,e){var n;this._invoke=function(i,o){function a(){return new e((function(n,a){!function n(i,o,a,c){var u=s(t[i],t,o);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}(i,o,n,a)}))}return n=n?n.then(a,a):a()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return h.prototype=g.constructor=p,p.constructor=h,h.displayName=c(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(m.prototype),m.prototype[o]=function(){return this},t.AsyncIterator=m,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new m(u(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,a,"Generator"),g[i]=function(){return this},g.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=j,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},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;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},function(t,e,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},function(t,e,r){var n=r(3),i=r(18),o="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},function(t,e,r){var n=r(70),i=r(53),o=n("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+n).toString(36)}},function(t,e,r){var n=r(98),i=r(72).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(3),i=/#|\.prototype\./,o=function(t,e){var r=c[a(t)];return r==s||r!=u&&("function"==typeof e?n(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",s=o.POLYFILL="P";t.exports=o},function(t,e,r){var n=r(18);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(3),i=r(5),o=r(76),a=i("species");t.exports=function(t){return o>=51||!n((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,r){var n=r(84),i=r(46),o=r(5)("iterator");t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[n(t)]}},function(t,e,r){"use strict";var n=r(1),i=r(61);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(t,e,r){"use strict";var n,i,o=r(123),a=r(153),c=RegExp.prototype.exec,u=String.prototype.replace,s=c,f=(n=/a/,i=/b*/g,c.call(n,"a"),c.call(i,"a"),0!==n.lastIndex||0!==i.lastIndex),l=a.UNSUPPORTED_Y||a.BROKEN_CARET,h=void 0!==/()??/.exec("")[1];(f||h||l)&&(s=function(t){var e,r,n,i,a=this,s=l&&a.sticky,p=o.call(a),v=a.source,d=0,y=t;return s&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),y=String(t).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==t[a.lastIndex-1])&&(v="(?: "+v+")",y=" "+y,d++),r=new RegExp("^(?:"+v+")",p)),h&&(r=new RegExp("^"+v+"$(?!\\s)",p)),f&&(e=a.lastIndex),n=c.call(s?r:a,y),s?n?(n.input=n.input.slice(d),n[0]=n[0].slice(d),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:f&&n&&(a.lastIndex=a.global?n.index+n[0].length:e),h&&n&&n.length>1&&u.call(n[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)})),n}),t.exports=s},function(t,e,r){"use strict";var n=r(12),i=r(7),o=r(3),a=r(123),c=RegExp.prototype,u=c.toString,s=o((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),f="toString"!=u.name;(s||f)&&n(RegExp.prototype,"toString",(function(){var t=i(this),e=String(t.source),r=t.flags;return"/"+e+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in c)?a.call(t):r)}),{unsafe:!0})},function(t,e,r){var n=r(1),i=r(19),o=r(43);n({target:"Object",stat:!0,forced:r(3)((function(){o(1)}))},{keys:function(t){return o(i(t))}})},function(t,e){function r(){}r.prototype={on:function(t,e,r){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:r}),this},once:function(t,e,r){var n=this;function i(){n.off(t,i),e.apply(r,arguments)}return i._=e,this.on(t,i,r)},emit:function(t){for(var e=[].slice.call(arguments,1),r=((this.e||(this.e={}))[t]||[]).slice(),n=0,i=r.length;n<i;n++)r[n].fn.apply(r[n].ctx,e);return this},off:function(t,e){var r=this.e||(this.e={}),n=r[t],i=[];if(n&&e)for(var o=0,a=n.length;o<a;o++)n[o].fn!==e&&n[o].fn._!==e&&i.push(n[o]);return i.length?r[t]=i:delete r[t],this}},t.exports=r,t.exports.TinyEmitter=r},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));r(80),r(113),r(60),r(134);var n=r(4);function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function t(e){var r=this;o(this,t),this.store=e,this.get=function(t){return r.store.getItem(t)},this.set=function(t,e){return r.store.setItem(t,e)},this.delete=function(t){return r.store.removeItem(t)}},c=function t(){var e=this;o(this,t),this.store={},this.get=function(t){return e.store[t]},this.set=function(t,r){return e.store[t]=r},this.delete=function(t){return delete e.store[t]}},u=Math.pow(2,31)-1,s=function(){function t(e){o(this,t),!function(t){if(!t)return!1;try{var e=t(),r="x-x-x-x".replace(/x/g,(function(){return Math.random()}));e.setItem(r,"TEST-VALUE");var n=e.getItem(r);return e.removeItem(r),"TEST-VALUE"===n}catch(t){return!1}}(e)?(this.cache=new c,this.type="ObjectLiteralStorage"):(this.cache=new a(e()),this.type="WebStorage")}var e,r,s;return e=t,(r=[{key:"get",value:function(t){try{var e=this.cache.get(t),r=e?JSON.parse(e):null;return r&&Number.isInteger(r.expiresOn)&&r.expiresOn>Date.now()?r.value:(this.delete(t),null)}catch(t){throw new n.a(t)}}},{key:"set",value:function(t,e){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(i<=0)){i=Math.min(u,i);try{var o=Math.floor(Date.now()+i);this.cache.set(t,JSON.stringify({expiresOn:o,value:e})),setTimeout((function(){return r.delete(t)}),i)}catch(t){throw new n.a(t)}}}},{key:"delete",value:function(t){try{this.cache.delete(t)}catch(t){throw new n.a(t)}}}])&&i(e.prototype,r),s&&i(e,s),t}()},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));r(44),r(47),r(93),r(80),r(171),r(63);var n=r(0),i=r(27);function o(t){return Object(n.a)(Object(n.e)(t),"Object must be an object but it is '".concat(t,"'")),Object.keys(t).map((function(e){return"".concat(e,"=").concat(t[e])})).join(",")}var a={scrollbars:"yes",location:"yes",status:"no",menubar:"no",toolbar:"no",resizable:"yes"};function c(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Object(n.a)(Object(n.e)(t),"window was supposed to be an object but it is ".concat(t)),Object(n.a)(Object(n.e)(t.screen),"window should be a valid Window object but it lacks a 'screen' property"),Object(n.a)(Object(n.b)(t.open),"window should be a valid Window object but it lacks an 'open' function"),Object(n.a)(Object(n.h)(e),"Invalid URL for popup");var u=t.screen,s=u.height,f=u.width,l=Object(i.b)(a,c);Number.isFinite(l.width)&&Number.isFinite(f)&&(l.left=(f-l.width)/2),Number.isFinite(l.height)&&Number.isFinite(s)&&(l.top=(s-l.height)/2);var h=o(l);return t.open(e,r,h)}},function(t,e,r){var n=r(2),i=r(6),o=n.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,r){var n=r(2),i=r(15);t.exports=function(t,e){try{i(n,t,e)}catch(r){n[t]=e}return e}},function(t,e,r){var n=r(95),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return i.call(t)}),t.exports=n.inspectSource},function(t,e,r){var n=r(35),i=r(95);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e,r){var n=r(17),i=r(23),o=r(99),a=function(t){return function(e,r,a){var c,u=n(e),s=i(u.length),f=o(a,s);if(t&&r!=r){for(;s>f;)if((c=u[f++])!=c)return!0}else for(;s>f;f++)if((t||f in u)&&u[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(3);t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},function(t,e,r){"use strict";var n=r(41),i=r(10),o=r(34);t.exports=function(t,e,r){var a=n(e);a in t?i.f(t,a,o(0,r)):t[a]=r}},function(t,e,r){var n,i,o=r(2),a=r(106),c=o.process,u=c&&c.versions,s=u&&u.v8;s?i=(n=s.split("."))[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=n[1]),t.exports=i&&+i},function(t,e,r){"use strict";var n=r(1),i=r(109),o=r(78),a=r(79),c=r(31),u=r(15),s=r(12),f=r(5),l=r(35),h=r(46),p=r(110),v=p.IteratorPrototype,d=p.BUGGY_SAFARI_ITERATORS,y=f("iterator"),g=function(){return this};t.exports=function(t,e,r,f,p,b,m){i(r,e,f);var w,x,S,O=function(t){if(t===p&&P)return P;if(!d&&t in _)return _[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},j=e+" Iterator",k=!1,_=t.prototype,E=_[y]||_["@@iterator"]||p&&_[p],P=!d&&E||O(p),U="Array"==e&&_.entries||E;if(U&&(w=o(U.call(new t)),v!==Object.prototype&&w.next&&(l||o(w)===v||(a?a(w,v):"function"!=typeof w[y]&&u(w,y,g)),c(w,j,!0,!0),l&&(h[j]=g))),"values"==p&&E&&"values"!==E.name&&(k=!0,P=function(){return E.call(this)}),l&&!m||_[y]===P||u(_,y,P),h[e]=P,p)if(x={values:O("values"),keys:b?P:O("keys"),entries:O("entries")},m)for(S in x)(d||k||!(S in _))&&s(_,S,x[S]);else n({target:e,proto:!0,forced:d||k},x);return x}},function(t,e,r){var n=r(8),i=r(19),o=r(52),a=r(111),c=o("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),n(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,r){var n=r(7),i=r(142);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,o){return n(r),i(o),e?t.call(r,o):r.__proto__=o,r}}():void 0)},function(t,e,r){"use strict";var n=r(9),i=r(2),o=r(56),a=r(12),c=r(8),u=r(18),s=r(112),f=r(41),l=r(3),h=r(30),p=r(54).f,v=r(40).f,d=r(10).f,y=r(143).trim,g=i.Number,b=g.prototype,m="Number"==u(h(b)),w=function(t){var e,r,n,i,o,a,c,u,s=f(t,!1);if("string"==typeof s&&s.length>2)if(43===(e=(s=y(s)).charCodeAt(0))||45===e){if(88===(r=s.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(s.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+s}for(a=(o=s.slice(2)).length,c=0;c<a;c++)if((u=o.charCodeAt(c))<48||u>i)return NaN;return parseInt(o,n)}return+s};if(o("Number",!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var x,S=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof S&&(m?l((function(){b.valueOf.call(r)})):"Number"!=u(r))?s(new g(w(e)),r,S):w(e)},O=n?p(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),j=0;O.length>j;j++)c(g,x=O[j])&&!c(S,x)&&d(S,x,v(g,x));S.prototype=b,b.constructor=S,a(i,"Number",S)}},function(t,e,r){var n=r(1),i=r(3),o=r(19),a=r(78),c=r(111);n({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!c},{getPrototypeOf:function(t){return a(o(t))}})},function(t,e,r){r(1)({target:"Object",stat:!0},{setPrototypeOf:r(79)})},function(t,e,r){var n={};n[r(5)("toStringTag")]="z",t.exports="[object z]"===String(n)},function(t,e,r){var n=r(83),i=r(18),o=r(5)("toStringTag"),a="Arguments"==i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?r:a?i(e):"Object"==(n=i(e))&&"function"==typeof e.callee?"Arguments":n}},function(t,e,r){"use strict";var n,i,o,a,c=r(1),u=r(35),s=r(2),f=r(22),l=r(147),h=r(12),p=r(86),v=r(31),d=r(116),y=r(6),g=r(38),b=r(48),m=r(18),w=r(69),x=r(87),S=r(88),O=r(119),j=r(120).set,k=r(148),_=r(149),E=r(150),P=r(122),U=r(151),R=r(21),I=r(56),A=r(5),L=r(76),C=A("species"),T="Promise",N=R.get,D=R.set,F=R.getterFor(T),M=l,q=s.TypeError,B=s.document,V=s.process,G=f("fetch"),z=P.f,$=z,W="process"==m(V),K=!!(B&&B.createEvent&&s.dispatchEvent),H=I(T,(function(){if(!(w(M)!==String(M))){if(66===L)return!0;if(!W&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!M.prototype.finally)return!0;if(L>=51&&/native code/.test(M))return!1;var t=M.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[C]=e,!(t.then((function(){}))instanceof e)})),J=H||!S((function(t){M.all(t).catch((function(){}))})),Y=function(t){var e;return!(!y(t)||"function"!=typeof(e=t.then))&&e},X=function(t,e,r){if(!e.notified){e.notified=!0;var n=e.reactions;k((function(){for(var i=e.value,o=1==e.state,a=0;n.length>a;){var c,u,s,f=n[a++],l=o?f.ok:f.fail,h=f.resolve,p=f.reject,v=f.domain;try{l?(o||(2===e.rejection&&et(t,e),e.rejection=1),!0===l?c=i:(v&&v.enter(),c=l(i),v&&(v.exit(),s=!0)),c===f.promise?p(q("Promise-chain cycle")):(u=Y(c))?u.call(c,h,p):h(c)):p(i)}catch(t){v&&!s&&v.exit(),p(t)}}e.reactions=[],e.notified=!1,r&&!e.rejection&&Z(t,e)}))}},Q=function(t,e,r){var n,i;K?((n=B.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),s.dispatchEvent(n)):n={promise:e,reason:r},(i=s["on"+t])?i(n):"unhandledrejection"===t&&E("Unhandled promise rejection",r)},Z=function(t,e){j.call(s,(function(){var r,n=e.value;if(tt(e)&&(r=U((function(){W?V.emit("unhandledRejection",n,t):Q("unhandledrejection",t,n)})),e.rejection=W||tt(e)?2:1,r.error))throw r.value}))},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t,e){j.call(s,(function(){W?V.emit("rejectionHandled",t):Q("rejectionhandled",t,e.value)}))},rt=function(t,e,r,n){return function(i){t(e,r,i,n)}},nt=function(t,e,r,n){e.done||(e.done=!0,n&&(e=n),e.value=r,e.state=2,X(t,e,!0))},it=function(t,e,r,n){if(!e.done){e.done=!0,n&&(e=n);try{if(t===r)throw q("Promise can't be resolved itself");var i=Y(r);i?k((function(){var n={done:!1};try{i.call(r,rt(it,t,n,e),rt(nt,t,n,e))}catch(r){nt(t,n,r,e)}})):(e.value=r,e.state=1,X(t,e,!1))}catch(r){nt(t,{done:!1},r,e)}}};H&&(M=function(t){b(this,M,T),g(t),n.call(this);var e=N(this);try{t(rt(it,this,e),rt(nt,this,e))}catch(t){nt(this,e,t)}},(n=function(t){D(this,{type:T,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(M.prototype,{then:function(t,e){var r=F(this),n=z(O(this,M));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=W?V.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&X(this,r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new n,e=N(t);this.promise=t,this.resolve=rt(it,t,e),this.reject=rt(nt,t,e)},P.f=z=function(t){return t===M||t===o?new i(t):$(t)},u||"function"!=typeof l||(a=l.prototype.then,h(l.prototype,"then",(function(t,e){var r=this;return new M((function(t,e){a.call(r,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof G&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return _(M,G.apply(s,arguments))}}))),c({global:!0,wrap:!0,forced:H},{Promise:M}),v(M,T,!1,!0),d(T),o=f(T),c({target:T,stat:!0,forced:H},{reject:function(t){var e=z(this);return e.reject.call(void 0,t),e.promise}}),c({target:T,stat:!0,forced:u||H},{resolve:function(t){return _(u&&this===o?M:this,t)}}),c({target:T,stat:!0,forced:J},{all:function(t){var e=this,r=z(e),n=r.resolve,i=r.reject,o=U((function(){var r=g(e.resolve),o=[],a=0,c=1;x(t,(function(t){var u=a++,s=!1;o.push(void 0),c++,r.call(e,t).then((function(t){s||(s=!0,o[u]=t,--c||n(o))}),i)})),--c||n(o)}));return o.error&&i(o.value),r.promise},race:function(t){var e=this,r=z(e),n=r.reject,i=U((function(){var i=g(e.resolve);x(t,(function(t){i.call(e,t).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}})},function(t,e,r){var n=r(12);t.exports=function(t,e,r){for(var i in e)n(t,i,e[i],r);return t}},function(t,e,r){var n=r(7),i=r(117),o=r(23),a=r(37),c=r(59),u=r(118),s=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,r,f,l){var h,p,v,d,y,g,b,m=a(e,r,f?2:1);if(l)h=t;else{if("function"!=typeof(p=c(t)))throw TypeError("Target is not iterable");if(i(p)){for(v=0,d=o(t.length);d>v;v++)if((y=f?m(n(b=t[v])[0],b[1]):m(t[v]))&&y instanceof s)return y;return new s(!1)}h=p.call(t)}for(g=h.next;!(b=g.call(h)).done;)if("object"==typeof(y=u(h,m,b.value,f))&&y&&y instanceof s)return y;return new s(!1)}).stop=function(t){return new s(!0,t)}},function(t,e,r){var n=r(5)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},t(o)}catch(t){}return r}},function(t,e,r){var n=r(1),i=r(22),o=r(38),a=r(7),c=r(6),u=r(30),s=r(152),f=r(3),l=i("Reflect","construct"),h=f((function(){function t(){}return!(l((function(){}),[],t)instanceof t)})),p=!f((function(){l((function(){}))})),v=h||p;n({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(t,e){o(t),a(e);var r=arguments.length<3?t:o(arguments[2]);if(p&&!h)return l(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(s.apply(t,n))}var i=r.prototype,f=u(c(i)?i:Object.prototype),v=Function.apply.call(t,f,e);return c(v)?v:f}})},function(t,e,r){var n=r(55),i=r(29),o=function(t){return function(e,r){var o,a,c=String(i(e)),u=n(r),s=c.length;return u<0||u>=s?t?"":void 0:(o=c.charCodeAt(u))<55296||o>56319||u+1===s||(a=c.charCodeAt(u+1))<56320||a>57343?t?c.charAt(u):o:t?c.slice(u,u+2):a-56320+(o-55296<<10)+65536}};t.exports={codeAt:o(!1),charAt:o(!0)}},function(t,e,r){"use strict";r(60);var n=r(12),i=r(3),o=r(5),a=r(61),c=r(15),u=o("species"),s=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),f="$0"==="a".replace(/./,"$0"),l=o("replace"),h=!!/./[l]&&""===/./[l]("a","$0"),p=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));t.exports=function(t,e,r,l){var v=o(t),d=!i((function(){var e={};return e[v]=function(){return 7},7!=""[t](e)})),y=d&&!i((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[v]=/./[v]),r.exec=function(){return e=!0,null},r[v](""),!e}));if(!d||!y||"replace"===t&&(!s||!f||h)||"split"===t&&!p){var g=/./[v],b=r(v,""[t],(function(t,e,r,n,i){return e.exec===a?d&&!i?{done:!0,value:g.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:f,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),m=b[0],w=b[1];n(String.prototype,t,m),n(RegExp.prototype,v,2==e?function(t,e){return w.call(t,this,e)}:function(t){return w.call(t,this)})}l&&c(RegExp.prototype[v],"sham",!0)}},function(t,e,r){var n=r(18),i=r(61);t.exports=function(t,e){var r=t.exec;if("function"==typeof r){var o=r.call(t,e);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(t))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},function(t,e,r){"use strict";var n=r(1),i=r(36).map,o=r(58),a=r(24),c=o("map"),u=a("map");n({target:"Array",proto:!0,forced:!c||!u},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(9),i=r(3),o=r(67);t.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(t,e,r){var n=r(2),i=r(68),o=n["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},function(t,e,r){var n=r(8),i=r(140),o=r(40),a=r(10);t.exports=function(t,e){for(var r=i(e),c=a.f,u=o.f,s=0;s<r.length;s++){var f=r[s];n(t,f)||c(t,f,u(e,f))}}},function(t,e,r){var n=r(2);t.exports=n},function(t,e,r){var n=r(8),i=r(17),o=r(71).indexOf,a=r(42);t.exports=function(t,e){var r,c=i(t),u=0,s=[];for(r in c)!n(a,r)&&n(c,r)&&s.push(r);for(;e.length>u;)n(c,r=e[u++])&&(~o(s,r)||s.push(r));return s}},function(t,e,r){var n=r(55),i=Math.max,o=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):o(r,e)}},function(t,e,r){var n=r(74);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,r){var n=r(9),i=r(10),o=r(7),a=r(43);t.exports=n?Object.defineProperties:function(t,e){o(t);for(var r,n=a(e),c=n.length,u=0;c>u;)i.f(t,r=n[u++],e[r]);return t}},function(t,e,r){var n=r(22);t.exports=n("document","documentElement")},function(t,e,r){var n=r(5);e.f=n},function(t,e,r){var n=r(97),i=r(8),o=r(103),a=r(10).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},function(t,e,r){var n=r(6),i=r(57),o=r(5)("species");t.exports=function(t,e){var r;return i(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!i(r.prototype)?n(r)&&null===(r=r[o])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},function(t,e,r){var n=r(22);t.exports=n("navigator","userAgent")||""},function(t,e,r){"use strict";var n=r(1),i=r(36).every,o=r(45),a=r(24),c=o("every"),u=a("every");n({target:"Array",proto:!0,forced:!c||!u},{every:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(5),i=r(30),o=r(10),a=n("unscopables"),c=Array.prototype;null==c[a]&&o.f(c,a,{configurable:!0,value:i(null)}),t.exports=function(t){c[a][t]=!0}},function(t,e,r){"use strict";var n=r(110).IteratorPrototype,i=r(30),o=r(34),a=r(31),c=r(46),u=function(){return this};t.exports=function(t,e,r){var s=e+" Iterator";return t.prototype=i(n,{next:o(1,r)}),a(t,s,!1,!0),c[s]=u,t}},function(t,e,r){"use strict";var n,i,o,a=r(78),c=r(15),u=r(8),s=r(5),f=r(35),l=s("iterator"),h=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(n=i):h=!0),null==n&&(n={}),f||u(n,l)||c(n,l,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},function(t,e,r){var n=r(3);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,r){var n=r(6),i=r(79);t.exports=function(t,e,r){var o,a;return i&&"function"==typeof(o=e.constructor)&&o!==r&&n(a=o.prototype)&&a!==r.prototype&&i(t,a),t}},function(t,e,r){r(1)({target:"Number",stat:!0},{isInteger:r(145)})},function(t,e,r){var n=r(1),i=r(115);n({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(t,e,r){"use strict";var n=r(9),i=r(3),o=r(43),a=r(73),c=r(50),u=r(19),s=r(51),f=Object.assign,l=Object.defineProperty;t.exports=!f||i((function(){if(n&&1!==f({b:1},f(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol();return t[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=f({},t)[r]||"abcdefghijklmnopqrst"!=o(f({},e)).join("")}))?function(t,e){for(var r=u(t),i=arguments.length,f=1,l=a.f,h=c.f;i>f;)for(var p,v=s(arguments[f++]),d=l?o(v).concat(l(v)):o(v),y=d.length,g=0;y>g;)p=d[g++],n&&!h.call(v,p)||(r[p]=v[p]);return r}:f},function(t,e,r){"use strict";var n=r(22),i=r(10),o=r(5),a=r(9),c=o("species");t.exports=function(t){var e=n(t),r=i.f;a&&e&&!e[c]&&r(e,c,{configurable:!0,get:function(){return this}})}},function(t,e,r){var n=r(5),i=r(46),o=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},function(t,e,r){var n=r(7);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},function(t,e,r){var n=r(7),i=r(38),o=r(5)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||null==(r=n(a)[o])?e:i(r)}},function(t,e,r){var n,i,o,a=r(2),c=r(3),u=r(18),s=r(37),f=r(102),l=r(67),h=r(121),p=a.location,v=a.setImmediate,d=a.clearImmediate,y=a.process,g=a.MessageChannel,b=a.Dispatch,m=0,w={},x=function(t){if(w.hasOwnProperty(t)){var e=w[t];delete w[t],e()}},S=function(t){return function(){x(t)}},O=function(t){x(t.data)},j=function(t){a.postMessage(t+"",p.protocol+"//"+p.host)};v&&d||(v=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return w[++m]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},n(m),m},d=function(t){delete w[t]},"process"==u(y)?n=function(t){y.nextTick(S(t))}:b&&b.now?n=function(t){b.now(S(t))}:g&&!h?(o=(i=new g).port2,i.port1.onmessage=O,n=s(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||c(j)||"file:"===p.protocol?n="onreadystatechange"in l("script")?function(t){f.appendChild(l("script")).onreadystatechange=function(){f.removeChild(this),x(t)}}:function(t){setTimeout(S(t),0)}:(n=j,a.addEventListener("message",O,!1))),t.exports={set:v,clear:d}},function(t,e,r){var n=r(106);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},function(t,e,r){"use strict";var n=r(38),i=function(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=n(e),this.reject=n(r)};t.exports.f=function(t){return new i(t)}},function(t,e,r){"use strict";var n=r(7);t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,r){"use strict";var n=r(90).charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,r){"use strict";var n=r(1),i=r(71).indexOf,o=r(45),a=r(24),c=[].indexOf,u=!!c&&1/[1].indexOf(1,-0)<0,s=o("indexOf"),f=a("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:u||!s||!f},{indexOf:function(t){return u?c.apply(this,arguments)||0:i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";r(20);var n,i=r(1),o=r(9),a=r(128),c=r(2),u=r(101),s=r(12),f=r(48),l=r(8),h=r(115),p=r(129),v=r(90).codeAt,d=r(157),y=r(31),g=r(158),b=r(21),m=c.URL,w=g.URLSearchParams,x=g.getState,S=b.set,O=b.getterFor("URL"),j=Math.floor,k=Math.pow,_=/[A-Za-z]/,E=/[\d+-.A-Za-z]/,P=/\d/,U=/^(0x|0X)/,R=/^[0-7]+$/,I=/^\d+$/,A=/^[\dA-Fa-f]+$/,L=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,C=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,T=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,N=/[\u0009\u000A\u000D]/g,D=function(t,e){var r,n,i;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return"Invalid host";if(!(r=M(e.slice(1,-1))))return"Invalid host";t.host=r}else if(K(t)){if(e=d(e),L.test(e))return"Invalid host";if(null===(r=F(e)))return"Invalid host";t.host=r}else{if(C.test(e))return"Invalid host";for(r="",n=p(e),i=0;i<n.length;i++)r+=$(n[i],B);t.host=r}},F=function(t){var e,r,n,i,o,a,c,u=t.split(".");if(u.length&&""==u[u.length-1]&&u.pop(),(e=u.length)>4)return t;for(r=[],n=0;n<e;n++){if(""==(i=u[n]))return t;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=U.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?I:8==o?R:A).test(i))return t;a=parseInt(i,o)}r.push(a)}for(n=0;n<e;n++)if(a=r[n],n==e-1){if(a>=k(256,5-e))return null}else if(a>255)return null;for(c=r.pop(),n=0;n<r.length;n++)c+=r[n]*k(256,3-n);return c},M=function(t){var e,r,n,i,o,a,c,u=[0,0,0,0,0,0,0,0],s=0,f=null,l=0,h=function(){return t.charAt(l)};if(":"==h()){if(":"!=t.charAt(1))return;l+=2,f=++s}for(;h();){if(8==s)return;if(":"!=h()){for(e=r=0;r<4&&A.test(h());)e=16*e+parseInt(h(),16),l++,r++;if("."==h()){if(0==r)return;if(l-=r,s>6)return;for(n=0;h();){if(i=null,n>0){if(!("."==h()&&n<4))return;l++}if(!P.test(h()))return;for(;P.test(h());){if(o=parseInt(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;l++}u[s]=256*u[s]+i,2!=++n&&4!=n||s++}if(4!=n)return;break}if(":"==h()){if(l++,!h())return}else if(h())return;u[s++]=e}else{if(null!==f)return;l++,f=++s}}if(null!==f)for(a=s-f,s=7;0!=s&&a>0;)c=u[s],u[s--]=u[f+a-1],u[f+--a]=c;else if(8!=s)return;return u},q=function(t){var e,r,n,i;if("number"==typeof t){for(e=[],r=0;r<4;r++)e.unshift(t%256),t=j(t/256);return e.join(".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,i=0,o=0;o<8;o++)0!==t[o]?(i>r&&(e=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(e=n,r=i),e}(t),r=0;r<8;r++)i&&0===t[r]||(i&&(i=!1),n===r?(e+=r?":":"::",i=!0):(e+=t[r].toString(16),r<7&&(e+=":")));return"["+e+"]"}return t},B={},V=h({},B,{" ":1,'"':1,"<":1,">":1,"`":1}),G=h({},V,{"#":1,"?":1,"{":1,"}":1}),z=h({},G,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),$=function(t,e){var r=v(t,0);return r>32&&r<127&&!l(e,t)?t:encodeURIComponent(t)},W={ftp:21,file:null,http:80,https:443,ws:80,wss:443},K=function(t){return l(W,t.scheme)},H=function(t){return""!=t.username||""!=t.password},J=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},Y=function(t,e){var r;return 2==t.length&&_.test(t.charAt(0))&&(":"==(r=t.charAt(1))||!e&&"|"==r)},X=function(t){var e;return t.length>1&&Y(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},Q=function(t){var e=t.path,r=e.length;!r||"file"==t.scheme&&1==r&&Y(e[0],!0)||e.pop()},Z=function(t){return"."===t||"%2e"===t.toLowerCase()},tt={},et={},rt={},nt={},it={},ot={},at={},ct={},ut={},st={},ft={},lt={},ht={},pt={},vt={},dt={},yt={},gt={},bt={},mt={},wt={},xt=function(t,e,r,i){var o,a,c,u,s,f=r||tt,h=0,v="",d=!1,y=!1,g=!1;for(r||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(T,"")),e=e.replace(N,""),o=p(e);h<=o.length;){switch(a=o[h],f){case tt:if(!a||!_.test(a)){if(r)return"Invalid scheme";f=rt;continue}v+=a.toLowerCase(),f=et;break;case et:if(a&&(E.test(a)||"+"==a||"-"==a||"."==a))v+=a.toLowerCase();else{if(":"!=a){if(r)return"Invalid scheme";v="",f=rt,h=0;continue}if(r&&(K(t)!=l(W,v)||"file"==v&&(H(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=v,r)return void(K(t)&&W[t.scheme]==t.port&&(t.port=null));v="","file"==t.scheme?f=pt:K(t)&&i&&i.scheme==t.scheme?f=nt:K(t)?f=ct:"/"==o[h+1]?(f=it,h++):(t.cannotBeABaseURL=!0,t.path.push(""),f=bt)}break;case rt:if(!i||i.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(i.cannotBeABaseURL&&"#"==a){t.scheme=i.scheme,t.path=i.path.slice(),t.query=i.query,t.fragment="",t.cannotBeABaseURL=!0,f=wt;break}f="file"==i.scheme?pt:ot;continue;case nt:if("/"!=a||"/"!=o[h+1]){f=ot;continue}f=ut,h++;break;case it:if("/"==a){f=st;break}f=gt;continue;case ot:if(t.scheme=i.scheme,a==n)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query;else if("/"==a||"\\"==a&&K(t))f=at;else if("?"==a)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query="",f=mt;else{if("#"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.path.pop(),f=gt;continue}t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query,t.fragment="",f=wt}break;case at:if(!K(t)||"/"!=a&&"\\"!=a){if("/"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,f=gt;continue}f=st}else f=ut;break;case ct:if(f=ut,"/"!=a||"/"!=v.charAt(h+1))continue;h++;break;case ut:if("/"!=a&&"\\"!=a){f=st;continue}break;case st:if("@"==a){d&&(v="%40"+v),d=!0,c=p(v);for(var b=0;b<c.length;b++){var m=c[b];if(":"!=m||g){var w=$(m,z);g?t.password+=w:t.username+=w}else g=!0}v=""}else if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&K(t)){if(d&&""==v)return"Invalid authority";h-=p(v).length+1,v="",f=ft}else v+=a;break;case ft:case lt:if(r&&"file"==t.scheme){f=dt;continue}if(":"!=a||y){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&K(t)){if(K(t)&&""==v)return"Invalid host";if(r&&""==v&&(H(t)||null!==t.port))return;if(u=D(t,v))return u;if(v="",f=yt,r)return;continue}"["==a?y=!0:"]"==a&&(y=!1),v+=a}else{if(""==v)return"Invalid host";if(u=D(t,v))return u;if(v="",f=ht,r==lt)return}break;case ht:if(!P.test(a)){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&K(t)||r){if(""!=v){var x=parseInt(v,10);if(x>65535)return"Invalid port";t.port=K(t)&&x===W[t.scheme]?null:x,v=""}if(r)return;f=yt;continue}return"Invalid port"}v+=a;break;case pt:if(t.scheme="file","/"==a||"\\"==a)f=vt;else{if(!i||"file"!=i.scheme){f=gt;continue}if(a==n)t.host=i.host,t.path=i.path.slice(),t.query=i.query;else if("?"==a)t.host=i.host,t.path=i.path.slice(),t.query="",f=mt;else{if("#"!=a){X(o.slice(h).join(""))||(t.host=i.host,t.path=i.path.slice(),Q(t)),f=gt;continue}t.host=i.host,t.path=i.path.slice(),t.query=i.query,t.fragment="",f=wt}}break;case vt:if("/"==a||"\\"==a){f=dt;break}i&&"file"==i.scheme&&!X(o.slice(h).join(""))&&(Y(i.path[0],!0)?t.path.push(i.path[0]):t.host=i.host),f=gt;continue;case dt:if(a==n||"/"==a||"\\"==a||"?"==a||"#"==a){if(!r&&Y(v))f=gt;else if(""==v){if(t.host="",r)return;f=yt}else{if(u=D(t,v))return u;if("localhost"==t.host&&(t.host=""),r)return;v="",f=yt}continue}v+=a;break;case yt:if(K(t)){if(f=gt,"/"!=a&&"\\"!=a)continue}else if(r||"?"!=a)if(r||"#"!=a){if(a!=n&&(f=gt,"/"!=a))continue}else t.fragment="",f=wt;else t.query="",f=mt;break;case gt:if(a==n||"/"==a||"\\"==a&&K(t)||!r&&("?"==a||"#"==a)){if(".."===(s=(s=v).toLowerCase())||"%2e."===s||".%2e"===s||"%2e%2e"===s?(Q(t),"/"==a||"\\"==a&&K(t)||t.path.push("")):Z(v)?"/"==a||"\\"==a&&K(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&Y(v)&&(t.host&&(t.host=""),v=v.charAt(0)+":"),t.path.push(v)),v="","file"==t.scheme&&(a==n||"?"==a||"#"==a))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==a?(t.query="",f=mt):"#"==a&&(t.fragment="",f=wt)}else v+=$(a,G);break;case bt:"?"==a?(t.query="",f=mt):"#"==a?(t.fragment="",f=wt):a!=n&&(t.path[0]+=$(a,B));break;case mt:r||"#"!=a?a!=n&&("'"==a&&K(t)?t.query+="%27":t.query+="#"==a?"%23":$(a,B)):(t.fragment="",f=wt);break;case wt:a!=n&&(t.fragment+=$(a,V))}h++}},St=function(t){var e,r,n=f(this,St,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(t),c=S(n,{type:"URL"});if(void 0!==i)if(i instanceof St)e=O(i);else if(r=xt(e={},String(i)))throw TypeError(r);if(r=xt(c,a,null,e))throw TypeError(r);var u=c.searchParams=new w,s=x(u);s.updateSearchParams(c.query),s.updateURL=function(){c.query=String(u)||null},o||(n.href=jt.call(n),n.origin=kt.call(n),n.protocol=_t.call(n),n.username=Et.call(n),n.password=Pt.call(n),n.host=Ut.call(n),n.hostname=Rt.call(n),n.port=It.call(n),n.pathname=At.call(n),n.search=Lt.call(n),n.searchParams=Ct.call(n),n.hash=Tt.call(n))},Ot=St.prototype,jt=function(){var t=O(this),e=t.scheme,r=t.username,n=t.password,i=t.host,o=t.port,a=t.path,c=t.query,u=t.fragment,s=e+":";return null!==i?(s+="//",H(t)&&(s+=r+(n?":"+n:"")+"@"),s+=q(i),null!==o&&(s+=":"+o)):"file"==e&&(s+="//"),s+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==c&&(s+="?"+c),null!==u&&(s+="#"+u),s},kt=function(){var t=O(this),e=t.scheme,r=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&K(t)?e+"://"+q(t.host)+(null!==r?":"+r:""):"null"},_t=function(){return O(this).scheme+":"},Et=function(){return O(this).username},Pt=function(){return O(this).password},Ut=function(){var t=O(this),e=t.host,r=t.port;return null===e?"":null===r?q(e):q(e)+":"+r},Rt=function(){var t=O(this).host;return null===t?"":q(t)},It=function(){var t=O(this).port;return null===t?"":String(t)},At=function(){var t=O(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Lt=function(){var t=O(this).query;return t?"?"+t:""},Ct=function(){return O(this).searchParams},Tt=function(){var t=O(this).fragment;return t?"#"+t:""},Nt=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(o&&u(Ot,{href:Nt(jt,(function(t){var e=O(this),r=String(t),n=xt(e,r);if(n)throw TypeError(n);x(e.searchParams).updateSearchParams(e.query)})),origin:Nt(kt),protocol:Nt(_t,(function(t){var e=O(this);xt(e,String(t)+":",tt)})),username:Nt(Et,(function(t){var e=O(this),r=p(String(t));if(!J(e)){e.username="";for(var n=0;n<r.length;n++)e.username+=$(r[n],z)}})),password:Nt(Pt,(function(t){var e=O(this),r=p(String(t));if(!J(e)){e.password="";for(var n=0;n<r.length;n++)e.password+=$(r[n],z)}})),host:Nt(Ut,(function(t){var e=O(this);e.cannotBeABaseURL||xt(e,String(t),ft)})),hostname:Nt(Rt,(function(t){var e=O(this);e.cannotBeABaseURL||xt(e,String(t),lt)})),port:Nt(It,(function(t){var e=O(this);J(e)||(""==(t=String(t))?e.port=null:xt(e,t,ht))})),pathname:Nt(At,(function(t){var e=O(this);e.cannotBeABaseURL||(e.path=[],xt(e,t+"",yt))})),search:Nt(Lt,(function(t){var e=O(this);""==(t=String(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",xt(e,t,mt)),x(e.searchParams).updateSearchParams(e.query)})),searchParams:Nt(Ct),hash:Nt(Tt,(function(t){var e=O(this);""!=(t=String(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",xt(e,t,wt)):e.fragment=null}))}),s(Ot,"toJSON",(function(){return jt.call(this)}),{enumerable:!0}),s(Ot,"toString",(function(){return jt.call(this)}),{enumerable:!0}),m){var Dt=m.createObjectURL,Ft=m.revokeObjectURL;Dt&&s(St,"createObjectURL",(function(t){return Dt.apply(m,arguments)})),Ft&&s(St,"revokeObjectURL",(function(t){return Ft.apply(m,arguments)}))}y(St,"URL"),i({global:!0,forced:!a,sham:!o},{URL:St})},function(t,e,r){var n=r(3),i=r(5),o=r(35),a=i("iterator");t.exports=!n((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),r+=n+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},function(t,e,r){"use strict";var n=r(37),i=r(19),o=r(118),a=r(117),c=r(23),u=r(75),s=r(59);t.exports=function(t){var e,r,f,l,h,p,v=i(t),d="function"==typeof this?this:Array,y=arguments.length,g=y>1?arguments[1]:void 0,b=void 0!==g,m=s(v),w=0;if(b&&(g=n(g,y>2?arguments[2]:void 0,2)),null==m||d==Array&&a(m))for(r=new d(e=c(v.length));e>w;w++)p=b?g(v[w],w):v[w],u(r,w,p);else for(h=(l=m.call(v)).next,r=new d;!(f=h.call(l)).done;w++)p=b?o(l,g,[f.value,w],!0):f.value,u(r,w,p);return r.length=w,r}},function(t,e,r){"use strict";var n=r(1),i=r(36).filter,o=r(58),a=r(24),c=o("filter"),u=a("filter");n({target:"Array",proto:!0,forced:!c||!u},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(9),i=r(10).f,o=Function.prototype,a=o.toString,c=/^\s*function ([^ (]*)/;n&&!("name"in o)&&i(o,"name",{configurable:!0,get:function(){try{return a.call(this).match(c)[1]}catch(t){return""}}})},function(t,e,r){var n=r(42),i=r(6),o=r(8),a=r(10).f,c=r(53),u=r(163),s=c("meta"),f=0,l=Object.isExtensible||function(){return!0},h=function(t){a(t,s,{value:{objectID:"O"+ ++f,weakData:{}}})},p=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,s)){if(!l(t))return"F";if(!e)return"E";h(t)}return t[s].objectID},getWeakData:function(t,e){if(!o(t,s)){if(!l(t))return!0;if(!e)return!1;h(t)}return t[s].weakData},onFreeze:function(t){return u&&p.REQUIRED&&l(t)&&!o(t,s)&&h(t),t}};n[s]=!0},function(t,e,r){"use strict";var n=r(36).forEach,i=r(45),o=r(24),a=i("forEach"),c=o("forEach");t.exports=a&&c?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,r){"use strict";var n=r(91),i=r(7),o=r(19),a=r(23),c=r(55),u=r(29),s=r(124),f=r(92),l=Math.max,h=Math.min,p=Math.floor,v=/\$([$&'`]|\d\d?|<[^>]*>)/g,d=/\$([$&'`]|\d\d?)/g;n("replace",2,(function(t,e,r,n){var y=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=n.REPLACE_KEEPS_$0,b=y?"$":"$0";return[function(r,n){var i=u(this),o=null==r?void 0:r[t];return void 0!==o?o.call(r,i,n):e.call(String(i),r,n)},function(t,n){if(!y&&g||"string"==typeof n&&-1===n.indexOf(b)){var o=r(e,t,this,n);if(o.done)return o.value}var u=i(t),p=String(this),v="function"==typeof n;v||(n=String(n));var d=u.global;if(d){var w=u.unicode;u.lastIndex=0}for(var x=[];;){var S=f(u,p);if(null===S)break;if(x.push(S),!d)break;""===String(S[0])&&(u.lastIndex=s(p,a(u.lastIndex),w))}for(var O,j="",k=0,_=0;_<x.length;_++){S=x[_];for(var E=String(S[0]),P=l(h(c(S.index),p.length),0),U=[],R=1;R<S.length;R++)U.push(void 0===(O=S[R])?O:String(O));var I=S.groups;if(v){var A=[E].concat(U,P,p);void 0!==I&&A.push(I);var L=String(n.apply(void 0,A))}else L=m(E,p,P,U,I,n);P>=k&&(j+=p.slice(k,P)+L,k=P+E.length)}return j+p.slice(k)}];function m(t,r,n,i,a,c){var u=n+t.length,s=i.length,f=d;return void 0!==a&&(a=o(a),f=v),e.call(c,f,(function(e,o){var c;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return r.slice(0,n);case"'":return r.slice(u);case"<":c=a[o.slice(1,-1)];break;default:var f=+o;if(0===f)return e;if(f>s){var l=p(f/10);return 0===l?e:l<=s?void 0===i[l-1]?o.charAt(1):i[l-1]+o.charAt(1):e}c=i[f-1]}return void 0===c?"":c}))}}))},function(t){t.exports=JSON.parse('{"name":"@schibsted/account-sdk-browser","version":"4.7.2","description":"Schibsted account SDK for browsers","main":"index.js","scripts":{"build":"./build.sh","clean":"rimraf .cache coverage dist docs","docs":"rimraf docs && jsdoc -c ./utils/jsdoc.js --verbose","lint":"eslint .","pretest":"npm run lint","test":"jest","precover":"npm run lint","cover":"jest --coverage","postcover":"codecov"},"author":"","license":"MIT","dependencies":{"tiny-emitter":"^2.1.0"},"devDependencies":{"@babel/core":"^7.11.4","@babel/preset-env":"^7.11.0","babel-loader":"^8.1.0","codecov":"^3.6.5","core-js":"^3.6.5","docdash":"git+https://github.com/torarvid/docdash.git#v0.5.0","eslint":"^6.8.0","eslint-plugin-import":"^2.20.2","jest":"^26.4.2","jest-junit":"^10.0.0","jsdoc":"^3.6.5","node-fetch":"^2.6.0","regenerator-runtime":"^0.13.7","webpack":"^4.44.1","webpack-cli":"^3.3.12","whatwg-url":"^8.0.0"},"repository":{"type":"git","url":"git://github.com/schibsted/account-sdk-browser.git"},"babel":{"presets":[["@babel/preset-env",{"useBuiltIns":"usage","corejs":3,"targets":{"browsers":["> 1%","last 10 chrome major versions","last 10 firefox major versions","last 10 opera major versions","last 2 safari major versions","last 2 ios major versions","last 2 ie major versions","last 5 edge major versions"]}}]]},"typings":"index.d.ts"}')},function(t,e,r){"use strict";window.regeneratorRuntime=r(49);var n=r(137).Identity,i=r(175).Monetization,o=r(176).Payment;t.exports={Identity:n,Monetization:i,Payment:o}},function(t,e,r){"use strict";r.r(e),r.d(e,"Identity",(function(){return j}));r(28),r(32),r(33),r(44),r(107),r(16),r(47),r(80),r(113),r(114),r(81),r(82),r(25),r(85),r(89),r(60),r(62),r(20),r(154),r(26),r(49);var n=r(0),i=r(27),o=r(13),a=r(11),c=r(64),u=r.n(c),s=r(65),f=r(66),l=r(14),h=r(4),p=r(39);function v(t,e,r,n,i,o,a){try{var c=t[o](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,i)}function d(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){v(o,n,i,a,c,"next",t)}function c(t){v(o,n,i,a,c,"throw",t)}a(void 0)}))}}function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=x(t);if(e){var i=x(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return w(this,r)}}function w(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function x(t){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var S=r(135).version,O=function(){return window},j=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(U,t);var e,r,c,u,v,w,x,j,k,_,E,P=m(U);function U(t){var e,r=t.clientId,i=t.redirectUri,o=t.sessionDomain,a=t.env,c=void 0===a?"PRE":a,u=t.log,f=t.window,l=void 0===f?O():f;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,U),e=P.call(this),Object(n.a)(Object(n.d)(r),"clientId parameter is required"),Object(n.a)(Object(n.e)(l),"The reference to window is missing"),Object(n.a)(!i||Object(n.h)(i),"redirectUri parameter is invalid"),Object(n.a)(o&&Object(n.h)(o),"sessionDomain parameter is not a valid URL"),p.a(l),e._sessionInitiatedSent=!1,e.window=l,e.clientId=r,e.cache=new s.a((function(){return e.window&&e.window.sessionStorage})),e.redirectUri=i,e.env=c,e.log=u,e._sessionDomain=o,e._enableSessionCaching=!0,e._session={},e._setSessionServiceUrl(o),e._setSpidServerUrl(c),e._setBffServerUrl(c),e._setOauthServerUrl(c),e._setGlobalSessionServiceUrl(c),e}return e=U,(r=[{key:"_setSpidServerUrl",value:function(t){Object(n.a)(Object(n.f)(t),"url parameter is invalid: ".concat(t)),this._spid=new l.a({serverUrl:Object(o.a)(t,a.a.SPiD),log:this.log,defaultParams:{client_id:this.clientId,redirect_uri:this.redirectUri}})}},{key:"_setOauthServerUrl",value:function(t){Object(n.a)(Object(n.f)(t),"url parameter is invalid: ".concat(t)),this._oauthService=new l.a({serverUrl:Object(o.a)(t,a.a.SPiD),log:this.log,defaultParams:{client_id:this.clientId,redirect_uri:this.redirectUri}})}},{key:"_setBffServerUrl",value:function(t){Object(n.a)(Object(n.f)(t),"url parameter is invalid: ".concat(t)),this._bffService=new l.a({serverUrl:Object(o.a)(t,a.a.BFF),log:this.log,defaultParams:{client_id:this.clientId,redirect_uri:this.redirectUri}})}},{key:"_setSessionServiceUrl",value:function(t){Object(n.a)(Object(n.f)(t),"domain parameter is invalid: ".concat(t));var e="sdrn:".concat(a.b[this.env],":client:").concat(this.clientId);this._sessionService=new l.a({serverUrl:t,log:this.log,defaultParams:{client_sdrn:e,redirect_uri:this.redirectUri,sdk_version:S}})}},{key:"_setGlobalSessionServiceUrl",value:function(t){Object(n.a)(Object(n.f)(t),"url parameter is invalid: ".concat(t));var e="sdrn:".concat(a.b[this.env],":client:").concat(this.clientId);this._globalSessionService=new l.a({serverUrl:Object(o.a)(t,a.a.SESSION_SERVICE),log:this.log,defaultParams:{client_sdrn:e,sdk_version:S}})}},{key:"_emitSessionEvent",value:function(t,e){e.userId&&this.emit("login",e),t.userId&&!e.userId&&this.emit("logout",e),t.userId&&e.userId&&t.userId!==e.userId&&this.emit("userChange",e),t.userId||e.userId?this.emit("sessionChange",e):this.emit("notLoggedin",e),e.userId&&!this._sessionInitiatedSent&&(this._sessionInitiatedSent=!0,this.emit("sessionInit",e)),t.userStatus!==e.userStatus&&this.emit("statusChange",e)}},{key:"_closePopup",value:function(){this.popup&&(this.popup.closed||this.popup.close(),this.popup=null)}},{key:"enableVarnishCookie",value:function(t){var e,r=0;if(Number.isInteger(t))r=t;else if("object"==y(t)){var i=t.expiresIn;r=void 0===i?r:i;var o=t.domain;e=void 0===o?e:o}Object(n.a)(Number.isInteger(r),"'expiresIn' must be an integer"),Object(n.a)(r>=0,"'expiresIn' cannot be negative"),this.setVarnishCookie=!0,this.varnishExpiresIn=r,this.varnishCookieDomain=e}},{key:"_maybeSetVarnishCookie",value:function(t){if(this.setVarnishCookie){var e=new Date;if(this.varnishExpiresIn||"number"==typeof t.expiresIn&&t.expiresIn>0){var r=this.varnishExpiresIn||t.expiresIn;e.setTime(e.getTime()+1e3*r)}else e.setTime(0);var n=this.varnishCookieDomain||("string"==typeof t.baseDomain?t.baseDomain:document.domain)||"",i=["SP_ID=".concat(t.sp_id),"expires=".concat(e.toUTCString()),"path=/","domain=.".concat(n)].join("; ");document.cookie=i}}},{key:"_maybeClearVarnishCookie",value:function(){this.setVarnishCookie&&this._clearVarnishCookie()}},{key:"_clearVarnishCookie",value:function(){var t=this.varnishCookieDomain||(this._session&&"string"==typeof this._session.baseDomain?this._session.baseDomain:document.domain)||"";document.cookie="SP_ID=nothing; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=.".concat(t)}},{key:"logSettings",value:function(){if(!this.log&&!window.console)throw new h.a("You have to provide log method in constructor");var t=this.log||console.log,e={clientId:this.clientId,redirectUri:this.redirectUri,env:this.env,sessionDomain:this._sessionDomain,sdkVersion:S};t("Schibsted account SDK for browsers settings: \n".concat(JSON.stringify(e,null,2)))}},{key:"hasSession",value:function(){var t=this;if(this._hasSessionInProgress)return this._hasSessionInProgress;var e=function(e){if(e.error)throw new h.a("HasSession failed",e.error);return t._maybeSetVarnishCookie(e),t._emitSessionEvent(t._session,e),t._session=e,e},r=function(){var r=d(regeneratorRuntime.mark((function r(){var n,i,o,a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!t._enableSessionCaching){r.next=4;break}if(!(n=t.cache.get("hasSession-cache"))){r.next=4;break}return r.abrupt("return",e(n));case 4:return i=null,r.prev=5,r.next=8,t._sessionService.get("/session");case 8:i=r.sent,r.next=15;break;case 11:throw r.prev=11,r.t0=r.catch(5),r.t0&&400===r.t0.code&&t._enableSessionCaching&&(o=1e3*(r.t0.expiresIn||300),t.cache.set("hasSession-cache",{error:r.t0},o)),r.t0;case 15:return i&&t._enableSessionCaching&&(a=1e3*(i.expiresIn||300),t.cache.set("hasSession-cache",i,a)),r.abrupt("return",e(i));case 17:case"end":return r.stop()}}),r,null,[[5,11]])})));return function(){return r.apply(this,arguments)}}();return this._hasSessionInProgress=r().then((function(e){return t._hasSessionInProgress=!1,e}),(function(e){throw t.emit("error",e),t._hasSessionInProgress=!1,new h.a("HasSession failed",e)})),this._hasSessionInProgress}},{key:"isLoggedIn",value:(E=d(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.hasSession();case 3:return e=t.sent,t.abrupt("return","result"in e);case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return",!1);case 10:case"end":return t.stop()}}),t,this,[[0,7]])}))),function(){return E.apply(this,arguments)})},{key:"clearCachedUserSession",value:function(){this.cache.delete("hasSession-cache")}},{key:"isConnected",value:(_=d(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.hasSession();case 3:return e=t.sent,t.abrupt("return",!!e.result);case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return",!1);case 10:case"end":return t.stop()}}),t,this,[[0,7]])}))),function(){return _.apply(this,arguments)})},{key:"getUser",value:(k=d(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.hasSession();case 2:if((e=t.sent).result){t.next=5;break}throw new h.a("The user is not connected to this merchant");case 5:return t.abrupt("return",Object(i.a)(e));case 6:case"end":return t.stop()}}),t,this)}))),function(){return k.apply(this,arguments)})},{key:"getUserId",value:(j=d(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.hasSession();case 2:if(!(e=t.sent).userId||!e.result){t.next=5;break}return t.abrupt("return",e.userId);case 5:throw new h.a("The user is not connected to this merchant");case 6:case"end":return t.stop()}}),t,this)}))),function(){return j.apply(this,arguments)})},{key:"getUserUuid",value:(x=d(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.hasSession();case 2:if(!(e=t.sent).uuid||!e.result){t.next=5;break}return t.abrupt("return",e.uuid);case 5:throw new h.a("The user is not connected to this merchant");case 6:case"end":return t.stop()}}),t,this)}))),function(){return x.apply(this,arguments)})},{key:"getUserContextData",value:(w=d(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this._globalSessionService.get("/user-context");case 3:return t.abrupt("return",t.sent);case 6:return t.prev=6,t.t0=t.catch(0),t.abrupt("return",null);case 9:case"end":return t.stop()}}),t,this,[[0,6]])}))),function(){return w.apply(this,arguments)})},{key:"login",value:function(t){var e=t.state,r=t.acrValues,n=void 0===r?"":r,i=t.scope,o=void 0===i?"openid":i,a=t.redirectUri,c=void 0===a?this.redirectUri:a,u=t.preferPopup,s=void 0!==u&&u,l=t.loginHint,h=void 0===l?"":l,p=t.tag,v=void 0===p?"":p,d=t.teaser,y=void 0===d?"":d,g=t.maxAge,b=void 0===g?"":g,m=t.locale,w=void 0===m?"":m,x=t.oneStepLogin,S=void 0!==x&&x,O=t.prompt,j=void 0===O?"select_account":O;this._closePopup(),this.cache.delete("hasSession-cache");var k=this.loginUrl({state:e,acrValues:n,scope:o,redirectUri:c,loginHint:h,tag:v,teaser:y,maxAge:b,locale:w,oneStepLogin:S,prompt:j});return s&&(this.popup=f.a(this.window,k,"Schibsted account",{width:360,height:570}),this.popup)?this.popup:(this.window.location.href=k,null)}},{key:"getSpId",value:(v=d(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.hasSession();case 3:return e=t.sent,t.abrupt("return",e.sp_id||null);case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return",null);case 10:case"end":return t.stop()}}),t,this,[[0,7]])}))),function(){return v.apply(this,arguments)})},{key:"logout",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.redirectUri;this.cache.delete("hasSession-cache"),this._maybeClearVarnishCookie(),this.emit("logout"),this.window.location.href=this.logoutUrl(t)}},{key:"loginUrl",value:function(t){var e=t.state,r=t.acrValues,i=void 0===r?"":r,o=t.scope,a=void 0===o?"openid":o,c=t.redirectUri,u=void 0===c?this.redirectUri:c,s=t.loginHint,f=void 0===s?"":s,l=t.tag,h=void 0===l?"":l,p=t.teaser,v=void 0===p?"":p,d=t.maxAge,g=void 0===d?"":d,b=t.locale,m=void 0===b?"":b,w=t.oneStepLogin,x=void 0!==w&&w,S=t.prompt,O=void 0===S?"select_account":S;"object"!==y(arguments[0])&&(e=arguments[0],i=arguments[1],a=arguments[2]||a,u=arguments[3]||u,f=arguments[4]||f,h=arguments[5]||h,v=arguments[6]||v,g=isNaN(arguments[7])?g:arguments[7]);var j=function(t){return Object(n.g)(t,["password","otp","sms","eid-no","eid-se","eid-fi","eid"],!0)};return Object(n.a)(!i||Object(n.g)(i,["","otp-email"],!0)||i.split(" ").every(j),"The acrValues parameter is not acceptable: ".concat(i)),Object(n.a)(Object(n.h)(u),"loginUrl(): redirectUri must be a valid url but is ".concat(u)),Object(n.a)(Object(n.d)(e),"the state parameter should be a non empty string but it is ".concat(e)),this._oauthService.makeUrl("oauth/authorize",{response_type:"code",redirect_uri:u,scope:a,state:e,acr_values:i,login_hint:f,tag:h,teaser:v,max_age:g,locale:m,one_step_login:x||"",prompt:i?"":O})}},{key:"logoutUrl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.redirectUri;Object(n.a)(Object(n.h)(t),"logoutUrl(): redirectUri is invalid");var e={redirect_uri:t};return this._sessionService.makeUrl("logout",e)}},{key:"accountUrl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.redirectUri;return this._spid.makeUrl("profile-pages",{response_type:"code",redirect_uri:t})}},{key:"phonesUrl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.redirectUri;return this._spid.makeUrl("profile-pages/about-you/phone",{response_type:"code",redirect_uri:t})}},{key:"showSimplifiedLoginWidget",value:(u=d(regeneratorRuntime.mark((function t(e,r){var n,i,o,a,c=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getUserContextData();case 2:return n=t.sent,i={client_id:this.clientId},r&&r.encoding&&(i.encoding=r.encoding),o=this._bffService.makeUrl("simplified-login-widget",i,!1),a=function(){var t=d(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof e.state){t.next=4;break}return t.next=3,e.state();case 3:e.state=t.sent;case 4:return t.abrupt("return",e);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),t.abrupt("return",new Promise((function(t,i){if(!n||!n.display_text||!n.identifier)return i(new h.a("Missing user data"));var u={displayText:n.display_text,env:c.env,clientName:n.client_name,clientId:c.clientId,providerId:n.provider_id,windowWidth:function(){return window.innerWidth},windowOnResize:function(t){window.onresize=t}};r&&r.locale&&(u.locale=r.locale);var s=function(){var t=d(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=c,t.t1=Object,t.next=4,a(e);case 4:t.t2=t.sent,t.t3={loginHint:n.identifier},t.t4=t.t1.assign.call(t.t1,t.t2,t.t3),t.t0.login.call(t.t0,t.t4);case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),f=function(){var t=d(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=c,t.t1=Object,t.next=4,a(e);case 4:t.t2=t.sent,t.t3={loginHint:n.identifier,prompt:"login"},t.t4=t.t1.assign.call(t.t1,t.t2,t.t3),t.t0.login.call(t.t0,t.t4);case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();if(window.openSimplifiedLoginWidget)return window.openSimplifiedLoginWidget(u,s,f),t(!0);var l=document.createElement("script");l.type="text/javascript",l.src=o,l.onload=function(){window.openSimplifiedLoginWidget(u,s,f),t(!0)},l.onerror=function(){i(new h.a("Error when loading simplified login widget content"))},document.getElementsByTagName("body")[0].appendChild(l)})));case 8:case"end":return t.stop()}}),t,this)}))),function(t,e){return u.apply(this,arguments)})}])&&g(e.prototype,r),c&&g(e,c),U}(u.a);e.default=j},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(2),i=r(69),o=n.WeakMap;t.exports="function"==typeof o&&/native code/.test(i(o))},function(t,e,r){var n=r(22),i=r(54),o=r(73),a=r(7);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=o.f;return r?e.concat(r(t)):e}},function(t,e,r){var n=r(17),i=r(54).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(n(t))}},function(t,e,r){var n=r(6);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,r){var n=r(29),i="["+r(144)+"]",o=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$"),c=function(t){return function(e){var r=String(n(e));return 1&t&&(r=r.replace(o,"")),2&t&&(r=r.replace(a,"")),r}};t.exports={start:c(1),end:c(2),trim:c(3)}},function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(t,e,r){var n=r(6),i=Math.floor;t.exports=function(t){return!n(t)&&isFinite(t)&&i(t)===t}},function(t,e,r){"use strict";var n=r(83),i=r(84);t.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},function(t,e,r){var n=r(2);t.exports=n.Promise},function(t,e,r){var n,i,o,a,c,u,s,f,l=r(2),h=r(40).f,p=r(18),v=r(120).set,d=r(121),y=l.MutationObserver||l.WebKitMutationObserver,g=l.process,b=l.Promise,m="process"==p(g),w=h(l,"queueMicrotask"),x=w&&w.value;x||(n=function(){var t,e;for(m&&(t=g.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?a():o=void 0,t}}o=void 0,t&&t.enter()},m?a=function(){g.nextTick(n)}:y&&!d?(c=!0,u=document.createTextNode(""),new y(n).observe(u,{characterData:!0}),a=function(){u.data=c=!c}):b&&b.resolve?(s=b.resolve(void 0),f=s.then,a=function(){f.call(s,n)}):a=function(){v.call(l,n)}),t.exports=x||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},function(t,e,r){var n=r(7),i=r(6),o=r(122);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},function(t,e,r){var n=r(2);t.exports=function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,r){"use strict";var n=r(38),i=r(6),o=[].slice,a={},c=function(t,e,r){if(!(e in a)){for(var n=[],i=0;i<e;i++)n[i]="a["+i+"]";a[e]=Function("C,a","return new C("+n.join(",")+")")}return a[e](t,r)};t.exports=Function.bind||function(t){var e=n(this),r=o.call(arguments,1),a=function(){var n=r.concat(o.call(arguments));return this instanceof a?c(e,n.length,n):e.apply(t,n)};return i(e.prototype)&&(a.prototype=e.prototype),a}},function(t,e,r){"use strict";var n=r(3);function i(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=n((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=n((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},function(t,e,r){"use strict";var n=r(91),i=r(155),o=r(7),a=r(29),c=r(119),u=r(124),s=r(23),f=r(92),l=r(61),h=r(3),p=[].push,v=Math.min,d=!h((function(){return!RegExp(4294967295,"y")}));n("split",2,(function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n=String(a(this)),o=void 0===r?4294967295:r>>>0;if(0===o)return[];if(void 0===t)return[n];if(!i(t))return e.call(n,t,o);for(var c,u,s,f=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,d=new RegExp(t.source,h+"g");(c=l.call(d,n))&&!((u=d.lastIndex)>v&&(f.push(n.slice(v,c.index)),c.length>1&&c.index<n.length&&p.apply(f,c.slice(1)),s=c[0].length,v=u,f.length>=o));)d.lastIndex===c.index&&d.lastIndex++;return v===n.length?!s&&d.test("")||f.push(""):f.push(n.slice(v)),f.length>o?f.slice(0,o):f}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var i=a(this),o=null==e?void 0:e[t];return void 0!==o?o.call(e,i,r):n.call(String(i),e,r)},function(t,i){var a=r(n,t,this,i,n!==e);if(a.done)return a.value;var l=o(t),h=String(this),p=c(l,RegExp),y=l.unicode,g=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(d?"y":"g"),b=new p(d?l:"^(?:"+l.source+")",g),m=void 0===i?4294967295:i>>>0;if(0===m)return[];if(0===h.length)return null===f(b,h)?[h]:[];for(var w=0,x=0,S=[];x<h.length;){b.lastIndex=d?x:0;var O,j=f(b,d?h:h.slice(x));if(null===j||(O=v(s(b.lastIndex+(d?0:x)),h.length))===w)x=u(h,x,y);else{if(S.push(h.slice(w,x)),S.length===m)return S;for(var k=1;k<=j.length-1;k++)if(S.push(j[k]),S.length===m)return S;x=w=O}}return S.push(h.slice(w)),S}]}),!d)},function(t,e,r){var n=r(6),i=r(18),o=r(5)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},function(t,e,r){"use strict";var n=r(1),i=r(36).some,o=r(45),a=r(24),c=o("some"),u=a("some");n({target:"Array",proto:!0,forced:!c||!u},{some:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";var n=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",a=Math.floor,c=String.fromCharCode,u=function(t){return t+22+75*(t<26)},s=function(t,e,r){var n=0;for(t=r?a(t/700):t>>1,t+=a(t/e);t>455;n+=36)t=a(t/35);return a(n+36*t/(t+38))},f=function(t){var e,r,n=[],i=(t=function(t){for(var e=[],r=0,n=t.length;r<n;){var i=t.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var o=t.charCodeAt(r++);56320==(64512&o)?e.push(((1023&i)<<10)+(1023&o)+65536):(e.push(i),r--)}else e.push(i)}return e}(t)).length,f=128,l=0,h=72;for(e=0;e<t.length;e++)(r=t[e])<128&&n.push(c(r));var p=n.length,v=p;for(p&&n.push("-");v<i;){var d=2147483647;for(e=0;e<t.length;e++)(r=t[e])>=f&&r<d&&(d=r);var y=v+1;if(d-f>a((2147483647-l)/y))throw RangeError(o);for(l+=(d-f)*y,f=d,e=0;e<t.length;e++){if((r=t[e])<f&&++l>2147483647)throw RangeError(o);if(r==f){for(var g=l,b=36;;b+=36){var m=b<=h?1:b>=h+26?26:b-h;if(g<m)break;var w=g-m,x=36-m;n.push(c(u(m+w%x))),g=a(w/x)}n.push(c(u(g))),h=s(l,y,v==p),l=0,++v}}++l,++f}return n.join("")};t.exports=function(t){var e,r,o=[],a=t.toLowerCase().replace(i,".").split(".");for(e=0;e<a.length;e++)r=a[e],o.push(n.test(r)?"xn--"+f(r):r);return o.join(".")}},function(t,e,r){"use strict";r(16);var n=r(1),i=r(22),o=r(128),a=r(12),c=r(86),u=r(31),s=r(109),f=r(21),l=r(48),h=r(8),p=r(37),v=r(84),d=r(7),y=r(6),g=r(30),b=r(34),m=r(159),w=r(59),x=r(5),S=i("fetch"),O=i("Headers"),j=x("iterator"),k=f.set,_=f.getterFor("URLSearchParams"),E=f.getterFor("URLSearchParamsIterator"),P=/\+/g,U=Array(4),R=function(t){return U[t-1]||(U[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},I=function(t){try{return decodeURIComponent(t)}catch(e){return t}},A=function(t){var e=t.replace(P," "),r=4;try{return decodeURIComponent(e)}catch(t){for(;r;)e=e.replace(R(r--),I);return e}},L=/[!'()~]|%20/g,C={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},T=function(t){return C[t]},N=function(t){return encodeURIComponent(t).replace(L,T)},D=function(t,e){if(e)for(var r,n,i=e.split("&"),o=0;o<i.length;)(r=i[o++]).length&&(n=r.split("="),t.push({key:A(n.shift()),value:A(n.join("="))}))},F=function(t){this.entries.length=0,D(this.entries,t)},M=function(t,e){if(t<e)throw TypeError("Not enough arguments")},q=s((function(t,e){k(this,{type:"URLSearchParamsIterator",iterator:m(_(t).entries),kind:e})}),"Iterator",(function(){var t=E(this),e=t.kind,r=t.iterator.next(),n=r.value;return r.done||(r.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),r})),B=function(){l(this,B,"URLSearchParams");var t,e,r,n,i,o,a,c,u,s=arguments.length>0?arguments[0]:void 0,f=this,p=[];if(k(f,{type:"URLSearchParams",entries:p,updateURL:function(){},updateSearchParams:F}),void 0!==s)if(y(s))if("function"==typeof(t=w(s)))for(r=(e=t.call(s)).next;!(n=r.call(e)).done;){if((a=(o=(i=m(d(n.value))).next).call(i)).done||(c=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");p.push({key:a.value+"",value:c.value+""})}else for(u in s)h(s,u)&&p.push({key:u,value:s[u]+""});else D(p,"string"==typeof s?"?"===s.charAt(0)?s.slice(1):s:s+"")},V=B.prototype;c(V,{append:function(t,e){M(arguments.length,2);var r=_(this);r.entries.push({key:t+"",value:e+""}),r.updateURL()},delete:function(t){M(arguments.length,1);for(var e=_(this),r=e.entries,n=t+"",i=0;i<r.length;)r[i].key===n?r.splice(i,1):i++;e.updateURL()},get:function(t){M(arguments.length,1);for(var e=_(this).entries,r=t+"",n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){M(arguments.length,1);for(var e=_(this).entries,r=t+"",n=[],i=0;i<e.length;i++)e[i].key===r&&n.push(e[i].value);return n},has:function(t){M(arguments.length,1);for(var e=_(this).entries,r=t+"",n=0;n<e.length;)if(e[n++].key===r)return!0;return!1},set:function(t,e){M(arguments.length,1);for(var r,n=_(this),i=n.entries,o=!1,a=t+"",c=e+"",u=0;u<i.length;u++)(r=i[u]).key===a&&(o?i.splice(u--,1):(o=!0,r.value=c));o||i.push({key:a,value:c}),n.updateURL()},sort:function(){var t,e,r,n=_(this),i=n.entries,o=i.slice();for(i.length=0,r=0;r<o.length;r++){for(t=o[r],e=0;e<r;e++)if(i[e].key>t.key){i.splice(e,0,t);break}e===r&&i.push(t)}n.updateURL()},forEach:function(t){for(var e,r=_(this).entries,n=p(t,arguments.length>1?arguments[1]:void 0,3),i=0;i<r.length;)n((e=r[i++]).value,e.key,this)},keys:function(){return new q(this,"keys")},values:function(){return new q(this,"values")},entries:function(){return new q(this,"entries")}},{enumerable:!0}),a(V,j,V.entries),a(V,"toString",(function(){for(var t,e=_(this).entries,r=[],n=0;n<e.length;)t=e[n++],r.push(N(t.key)+"="+N(t.value));return r.join("&")}),{enumerable:!0}),u(B,"URLSearchParams"),n({global:!0,forced:!o},{URLSearchParams:B}),o||"function"!=typeof S||"function"!=typeof O||n({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,r,n,i=[t];return arguments.length>1&&(y(e=arguments[1])&&(r=e.body,"URLSearchParams"===v(r)&&((n=e.headers?new O(e.headers):new O).has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=g(e,{body:b(0,String(r)),headers:b(0,n)}))),i.push(e)),S.apply(this,i)}}),t.exports={URLSearchParams:B,getState:_}},function(t,e,r){var n=r(7),i=r(59);t.exports=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return n(e.call(t))}},function(t,e,r){"use strict";var n=r(1),i=r(71).includes,o=r(108);n({target:"Array",proto:!0,forced:!r(24)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(t,e,r){"use strict";var n=r(162),i=r(164);t.exports=n("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},function(t,e,r){"use strict";var n=r(1),i=r(2),o=r(56),a=r(12),c=r(132),u=r(87),s=r(48),f=r(6),l=r(3),h=r(88),p=r(31),v=r(112);t.exports=function(t,e,r){var d=-1!==t.indexOf("Map"),y=-1!==t.indexOf("Weak"),g=d?"set":"add",b=i[t],m=b&&b.prototype,w=b,x={},S=function(t){var e=m[t];a(m,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(y&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!f(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(y&&!f(t))&&e.call(this,0===t?0:t)}:function(t,r){return e.call(this,0===t?0:t,r),this})};if(o(t,"function"!=typeof b||!(y||m.forEach&&!l((function(){(new b).entries().next()})))))w=r.getConstructor(e,t,d,g),c.REQUIRED=!0;else if(o(t,!0)){var O=new w,j=O[g](y?{}:-0,1)!=O,k=l((function(){O.has(1)})),_=h((function(t){new b(t)})),E=!y&&l((function(){for(var t=new b,e=5;e--;)t[g](e,e);return!t.has(-0)}));_||((w=e((function(e,r){s(e,w,t);var n=v(new b,e,w);return null!=r&&u(r,n[g],n,d),n}))).prototype=m,m.constructor=w),(k||E)&&(S("delete"),S("has"),d&&S("get")),(E||j)&&S(g),y&&m.clear&&delete m.clear}return x[t]=w,n({global:!0,forced:w!=b},x),p(w,t),y||r.setStrong(w,t,d),w}},function(t,e,r){var n=r(3);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,r){"use strict";var n=r(10).f,i=r(30),o=r(86),a=r(37),c=r(48),u=r(87),s=r(77),f=r(116),l=r(9),h=r(132).fastKey,p=r(21),v=p.set,d=p.getterFor;t.exports={getConstructor:function(t,e,r,s){var f=t((function(t,n){c(t,f,e),v(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=n&&u(n,t[s],t,r)})),p=d(e),y=function(t,e,r){var n,i,o=p(t),a=g(t,e);return a?a.value=r:(o.last=a={index:i=h(e,!0),key:e,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=a),n&&(n.next=a),l?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},g=function(t,e){var r,n=p(t),i=h(e);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==e)return r};return o(f.prototype,{clear:function(){for(var t=p(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=p(this),r=g(this,t);if(r){var n=r.next,i=r.previous;delete e.index[r.index],r.removed=!0,i&&(i.next=n),n&&(n.previous=i),e.first==r&&(e.first=n),e.last==r&&(e.last=i),l?e.size--:this.size--}return!!r},forEach:function(t){for(var e,r=p(this),n=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!g(this,t)}}),o(f.prototype,r?{get:function(t){var e=g(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),l&&n(f.prototype,"size",{get:function(){return p(this).size}}),f},setStrong:function(t,e,r){var n=e+" Iterator",i=d(e),o=d(n);s(t,e,(function(t,e){v(this,{type:n,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),f(e)}}},function(t,e,r){"use strict";var n=r(1),i=r(133);n({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},function(t,e,r){var n=r(1),i=r(129);n({target:"Array",stat:!0,forced:!r(88)((function(t){Array.from(t)}))},{from:i})},function(t,e,r){"use strict";var n=r(1),i=r(6),o=r(57),a=r(99),c=r(23),u=r(17),s=r(75),f=r(5),l=r(58),h=r(24),p=l("slice"),v=h("slice",{ACCESSORS:!0,0:0,1:2}),d=f("species"),y=[].slice,g=Math.max;n({target:"Array",proto:!0,forced:!p||!v},{slice:function(t,e){var r,n,f,l=u(this),h=c(l.length),p=a(t,h),v=a(void 0===e?h:e,h);if(o(l)&&("function"!=typeof(r=l.constructor)||r!==Array&&!o(r.prototype)?i(r)&&null===(r=r[d])&&(r=void 0):r=void 0,r===Array||void 0===r))return y.call(l,p,v);for(n=new(void 0===r?Array:r)(g(v-p,0)),f=0;p<v;p++,f++)p in l&&s(n,f,l[p]);return n.length=f,n}})},function(t,e,r){var n=r(1),i=r(169).entries;n({target:"Object",stat:!0},{entries:function(t){return i(t)}})},function(t,e,r){var n=r(9),i=r(43),o=r(17),a=r(50).f,c=function(t){return function(e){for(var r,c=o(e),u=i(c),s=u.length,f=0,l=[];s>f;)r=u[f++],n&&!a.call(c,r)||l.push(t?[r,c[r]]:c[r]);return l}};t.exports={entries:c(!0),values:c(!1)}},function(t,e,r){var n=r(2),i=r(125),o=r(133),a=r(15);for(var c in i){var u=n[c],s=u&&u.prototype;if(s&&s.forEach!==o)try{a(s,"forEach",o)}catch(t){s.forEach=o}}},function(t,e,r){r(1)({target:"Number",stat:!0},{isFinite:r(172)})},function(t,e,r){var n=r(2).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&n(t)}},function(t,e,r){"use strict";var n=r(91),i=r(7),o=r(29),a=r(174),c=r(92);n("search",1,(function(t,e,r){return[function(e){var r=o(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var o=i(t),u=String(this),s=o.lastIndex;a(s,0)||(o.lastIndex=0);var f=c(o,u);return a(o.lastIndex,s)||(o.lastIndex=s),null===f?-1:f.index}]}))},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,r){"use strict";r.r(e),r.d(e,"Monetization",(function(){return x}));r(28),r(32),r(33),r(44),r(16),r(47),r(81),r(82),r(25),r(85),r(89),r(62),r(20),r(26),r(49);var n=r(0),i=r(13),o=r(11),a=r(64),c=r.n(a),u=r(14),s=r(65),f=r(39),l=r(4);function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e,r,n,i,o,a){try{var c=t[o](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,i)}function v(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=b(t);if(e){var i=b(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return g(this,r)}}function g(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=r(135).version,w=function(){return window},x=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(b,t);var e,r,a,c,h,g=y(b);function b(t){var e,r=t.clientId,i=t.redirectUri,o=t.env,a=void 0===o?"PRE":o,c=t.sessionDomain,u=t.window,l=void 0===u?w():u;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,b),e=g.call(this),f.a(l),Object(n.a)(Object(n.d)(r),"clientId parameter is required"),e.cache=new s.a((function(){return l&&l.sessionStorage})),e.clientId=r,e.env=a,e.redirectUri=i,e._setSpidServerUrl(a),c&&(Object(n.a)(Object(n.h)(c),"sessionDomain parameter is not a valid URL"),e._setSessionServiceUrl(c)),e}return e=b,(r=[{key:"_setSpidServerUrl",value:function(t){Object(n.a)(Object(n.f)(t),"url parameter is invalid: ".concat(t)),this._spid=new u.a({serverUrl:Object(i.a)(t,o.a.SPiD),defaultParams:{client_id:this.clientId,redirect_uri:this.redirectUri}})}},{key:"_setSessionServiceUrl",value:function(t){Object(n.a)(Object(n.f)(t),"domain parameter is invalid: ".concat(t));var e="sdrn:".concat(o.b[this.env],":client:").concat(this.clientId);this._sessionService=new u.a({serverUrl:t,log:this.log,defaultParams:{client_sdrn:e,redirect_uri:this.redirectUri,sdk_version:m}})}},{key:"hasAccess",value:(c=regeneratorRuntime.mark((function t(e,r){var n,i,o,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._sessionService){t.next=2;break}throw new l.a("hasAccess can only be called if 'sessionDomain' is configured");case 2:if(r){t.next=4;break}throw new l.a("'userId' must be specified");case 4:if(Array.isArray(e)){t.next=6;break}throw new l.a("'productIds' must be an array");case 6:if(n=e.sort(),i=this._accessCacheKey(e,r),o=this.cache.get(i)){t.next=15;break}return t.next=12,this._sessionService.get("/hasAccess/".concat(n.join(",")));case 12:o=t.sent,a=o.ttl,this.cache.set(i,o,1e3*a);case 15:if(o.entitled){t.next=17;break}return t.abrupt("return",null);case 17:return this.emit("hasAccess",{ids:n,data:o}),t.abrupt("return",o);case 19:case"end":return t.stop()}}),t,this)})),h=function(){var t=this,e=arguments;return new Promise((function(r,n){var i=c.apply(t,e);function o(t){p(i,r,n,o,a,"next",t)}function a(t){p(i,r,n,o,a,"throw",t)}o(void 0)}))},function(t,e){return h.apply(this,arguments)})},{key:"clearCachedAccessResult",value:function(t,e){this.cache.delete(this._accessCacheKey(t,e))}},{key:"_accessCacheKey",value:function(t,e){return"prd_".concat(t.sort(),"_").concat(e)}},{key:"subscriptionsUrl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.redirectUri;return Object(n.a)(Object(n.h)(t),"subscriptionsUrl(): redirectUri is invalid"),this._spid.makeUrl("account/subscriptions",{redirect_uri:t})}},{key:"productsUrl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.redirectUri;return Object(n.a)(Object(n.h)(t),"productsUrl(): redirectUri is invalid"),this._spid.makeUrl("account/products",{redirect_uri:t})}}])&&v(e.prototype,r),a&&v(e,a),b}(c.a);e.default=x},function(t,e,r){"use strict";r.r(e),r.d(e,"Payment",(function(){return l}));var n=r(0),i=r(13),o=r(11),a=r(66),c=r(14),u=r(39);function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var f=function(){return window},l=function(){function t(e){var r=e.clientId,i=e.redirectUri,o=e.env,a=void 0===o?"PRE":o,c=e.publisher,s=e.window,l=void 0===s?f():s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),u.a(l),Object(n.a)(Object(n.d)(r),"clientId parameter is required"),this.clientId=r,this.redirectUri=i,this.window=l,this.publisher=c,this._setSpidServerUrl(a),this._setBffServerUrl(a)}var e,r,l;return e=t,(r=[{key:"_setSpidServerUrl",value:function(t){Object(n.a)(Object(n.f)(t),"url parameter is invalid: ".concat(t)),this._spid=new c.a({serverUrl:Object(i.a)(t,o.a.SPiD),defaultParams:{client_id:this.clientId,redirect_uri:this.redirectUri}})}},{key:"_setBffServerUrl",value:function(t){Object(n.a)(Object(n.f)(t),"url parameter is invalid: ".concat(t)),this._bff=new c.a({serverUrl:Object(i.a)(t,o.a.BFF),defaultParams:{client_id:this.clientId,redirect_uri:this.redirectUri}})}},{key:"_closePopup",value:function(){this.popup&&(this.popup.closed||this.popup.close(),this.popup=null)}},{key:"payWithPaylink",value:function(t){var e=t.paylink,r=t.preferPopup,i=t.redirectUri,o=void 0===i?this.redirectUri:i;Object(n.a)(Object(n.h)(o),"payWithPaylink(): redirectUri is invalid"),this._closePopup();var c=this.purchasePaylinkUrl(e,o);return r&&(this.popup=a.a(this.window,c,"Schibsted account",{width:360,height:570}),this.popup)?this.popup:(this.window.location.href=c,null)}},{key:"purchaseHistoryUrl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.redirectUri;return Object(n.a)(Object(n.h)(t),"purchaseHistoryUrl(): redirectUri is invalid"),this._spid.makeUrl("account/purchasehistory",{redirect_uri:t})}},{key:"redeemUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.redirectUri;return Object(n.a)(Object(n.h)(e),"redeemUrl(): redirectUri is invalid"),this._spid.makeUrl("account/redeem",{voucher_code:t})}},{key:"purchasePaylinkUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.redirectUri;return Object(n.a)(Object(n.h)(e),"purchasePaylinkUrl(): redirectUri is invalid"),Object(n.a)(Object(n.d)(t),"purchasePaylinkUrl(): paylinkId is required"),this._bff.makeUrl("payment/purchase",{paylink:t,redirect_uri:e})}},{key:"purchaseProductFlowUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.redirectUri;return Object(n.a)(Object(n.h)(e),"purchaseProductUrl(): redirectUri is invalid"),Object(n.a)(Object(n.d)(t),"purchaseProductFlowUrl(): productId is required"),this._bff.makeUrl("flow/checkout",{response_type:"code",flow:"payment",product_id:t,redirect_uri:e})}},{key:"purchaseCampaignFlowUrl",value:function(t,e,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.redirectUri;return Object(n.a)(Object(n.h)(i),"purchaseCampaignFlowUrl(): redirectUri is invalid"),Object(n.a)(Object(n.d)(t),"purchaseCampaignFlowUrl(): campaignId is required"),Object(n.a)(Object(n.d)(e),"purchaseCampaignFlowUrl(): productId is required"),this._bff.makeUrl("flow/checkout",{response_type:"code",flow:"payment",campaign_id:t,product_id:e,voucher_code:r,redirect_uri:i})}},{key:"purchasePromoCodeProductFlowUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.redirectUri;return Object(n.a)(Object(n.h)(r),"purchasePromoCodeProductFlowUrl(): redirectUri is invalid"),Object(n.a)(Object(n.d)(t),"purchasePromoCodeProductFlowUrl(): code is required"),Object(n.a)(Object(n.d)(this.publisher),"purchasePromoCodeProductFlowUrl(): publisher is required in the constructor"),this._bff.makeUrl("payment/purchase/code",{code:t,publisher:this.publisher,state:e,redirect_uri:r})}}])&&s(e.prototype,r),l&&s(e,l),t}();e.default=l}]);
1
+ module.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=136)}([function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"f",(function(){return a})),r.d(e,"d",(function(){return c})),r.d(e,"e",(function(){return u})),r.d(e,"c",(function(){return s})),r.d(e,"h",(function(){return f})),r.d(e,"b",(function(){return l})),r.d(e,"g",(function(){return h}));r(28),r(32),r(33),r(107),r(126),r(16),r(156),r(63),r(25),r(20),r(26),r(127);var n=r(4);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Assertion failed";if(!t)throw new n.a(e)}function a(t){return"string"==typeof t}function c(t){return"string"==typeof t&&t.length>0}function u(t){return"object"===i(t)&&null!==t}function s(t){return u(t)&&Object.keys(t).length>0}function f(t){try{for(var e=new URL(t),r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return n.every((function(t){return e[t]}))}catch(t){return!1}}function l(t){return"function"==typeof t}function h(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=function(e){return a(e)&&t.toUpperCase()===e.toUpperCase()};return!(!a(t)||!Array.isArray(e))&&(r?-1!==e.indexOf(t):e.some(n))}},function(t,e,r){var n=r(2),i=r(40).f,o=r(15),a=r(12),c=r(68),u=r(96),s=r(56);t.exports=function(t,e){var r,f,l,h,p,v=t.target,d=t.global,y=t.stat;if(r=d?n:y?n[v]||c(v,{}):(n[v]||{}).prototype)for(f in e){if(h=e[f],l=t.noTargetGet?(p=i(r,f))&&p.value:r[f],!s(d?f:v+(y?".":"#")+f,t.forced)&&void 0!==l){if(typeof h==typeof l)continue;u(h,l)}(t.sham||l&&l.sham)&&o(h,"sham",!0),a(r,f,h,t)}}},function(t,e,r){(function(e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")()}).call(this,r(138))},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return p}));r(28),r(32),r(33),r(44),r(130),r(160),r(126),r(16),r(47),r(93),r(131),r(161),r(114),r(81),r(63),r(82),r(25),r(89),r(62),r(20),r(26);function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?a(t):e}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t){var e="function"==typeof Map?new Map:void 0;return(c=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return u(t,arguments,l(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,t)})(t)}function u(t,e,r){return(u=s()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&f(i,r.prototype),i}).apply(null,arguments)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=["boolean","number","string"],p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(d,t);var e,r,c,u,p,v=(e=d,r=s(),function(){var t,n=l(e);if(r){var i=l(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return o(this,t)});function d(t,e){var r;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),(r=v.call(this,t)).name="SDKError","object"===n(e))try{Object.assign(a(r),e)}catch(t){}return r}return c=d,(u=[{key:"toString",value:function(){var t=this,e="".concat(this.name,": ").concat(this.message),r=Object.keys(this).filter((function(e){return"name"!==e&&h.includes(n(t[e]))})).map((function(e){return" ".concat(e,": ").concat(t[e])})).join("\n");return r?"".concat(e,"\n").concat(r):e}}])&&i(c.prototype,u),p&&i(c,p),d}(c(Error))},function(t,e,r){var n=r(2),i=r(70),o=r(8),a=r(53),c=r(74),u=r(100),s=i("wks"),f=n.Symbol,l=u?f:f&&f.withoutSetter||a;t.exports=function(t){return o(s,t)||(c&&o(f,t)?s[t]=f[t]:s[t]=l("Symbol."+t)),s[t]}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){var n=r(6);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(3);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,r){var n=r(9),i=r(94),o=r(7),a=r(41),c=Object.defineProperty;e.f=n?c:function(t,e,r){if(o(t),e=a(e,!0),o(r),i)try{return c(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return o}));var n={ENDPOINTS:{SPiD:{LOCAL:"http://id.localhost",DEV:"https://identity-dev.schibsted.com",PRE:"https://identity-pre.schibsted.com",PRO:"https://login.schibsted.com",PRO_NO:"https://payment.schibsted.no",PRO_FI:"https://login.schibsted.fi",PRO_DK:"https://login.schibsted.dk"},BFF:{LOCAL:"http://id.localhost/authn/",DEV:"https://identity-dev.schibsted.com/authn/",PRE:"https://identity-pre.schibsted.com/authn/",PRO:"https://login.schibsted.com/authn/",PRO_NO:"https://payment.schibsted.no/authn/",PRO_FI:"https://login.schibsted.fi/authn/",PRO_DK:"https://login.schibsted.dk/authn/"},SESSION_SERVICE:{LOCAL:"http://session-service.id.localhost",DEV:"https://session-service.identity-dev.schibsted.com",PRE:"https://session-service.identity-pre.schibsted.com",PRO:"https://session-service.login.schibsted.com",PRO_NO:"https://session-service.payment.schibsted.no",PRO_FI:"https://session-service.login.schibsted.fi",PRO_DK:"https://session-service.login.schibsted.dk"}},NAMESPACE:{LOCAL:"id.localhost",DEV:"schibsted.com",PRE:"schibsted.com",PRO:"schibsted.com",PRO_NO:"spid.no",PRO_FI:"schibsted.fi",PRO_DK:"schibsted.dk"}},i=n.ENDPOINTS,o=n.NAMESPACE},function(t,e,r){var n=r(2),i=r(15),o=r(8),a=r(68),c=r(69),u=r(21),s=u.get,f=u.enforce,l=String(String).split("String");(t.exports=function(t,e,r,c){var u=!!c&&!!c.unsafe,s=!!c&&!!c.enumerable,h=!!c&&!!c.noTargetGet;"function"==typeof r&&("string"!=typeof e||o(r,"name")||i(r,"name",e),f(r).source=l.join("string"==typeof e?e:"")),t!==n?(u?!h&&t[e]&&(s=!0):delete t[e],s?t[e]=r:i(t,e,r)):s?t[e]=r:a(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||c(this)}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));r(28),r(32),r(33),r(16),r(25),r(20),r(26);var n=r(0);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){return Object(n.a)(Object(n.d)(t),'"url" param must be a non empty string: '.concat(i(t))),Object(n.c)(e)&&Object(n.h)(e[t])?e[t]:(Object(n.a)(Object(n.h)(t,"hostname"),"Bad URL given: '".concat(t,"'")),t)}},function(t,e,r){"use strict";r(44),r(130),r(16),r(47),r(93),r(63),r(25),r(85),r(60),r(20),r(134),r(173),r(26),r(127),r(49);var n=r(4),i=r(27),o=r(13),a=r(0);function c(t,e,r,n,i,o,a){try{var c=t[o](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,i)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var s=function(t){return t.map((function(t){return Object(a.e)(t)?JSON.stringify(t,null,2):t})).join(" ")},f=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return"function"==typeof t&&t(s(r))};function l(t){var e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}var h=function(){function t(e){var r=e.serverUrl,n=void 0===r?"PRE":r,i=e.envDic,c=e.fetch,u=void 0===c?window.fetch&&window.fetch.bind(window):c,s=e.log,f=e.defaultParams,l=void 0===f?{}:f;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Object(a.a)(Object(a.e)(l),"defaultParams should be a non-null object"),this.url=new URL(Object(o.a)(n,i)),this.defaultParams=l,s&&(Object(a.a)(Object(a.b)(s),"log must be a function but it is ".concat(s)),this.log=s),u&&(Object(a.a)(Object(a.b)(u),"Fetch should be a function"),this.fetch=u)}var e,r,s,h,p;return e=t,r=[{key:"go",value:(h=regeneratorRuntime.mark((function t(e){var r,o,c,u,s,l,h,p,v,d,y,g,b;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.method,o=e.headers,c=e.pathname,u=e.data,s=void 0===u?{}:u,l=e.useDefaultParams,h=void 0===l||l,p=e.fetchOptions,v=void 0===p?{method:r,credentials:"include"}:p,Object(a.a)(Object(a.b)(this.fetch),"Can't make a call. The reference to fetch is missing or not a function."),Object(a.a)(Object(a.d)(r),'Method must be a non empty string but it is "'.concat(r,'"')),Object(a.a)(Object(a.d)(c),'Pathname must be string but it is "'.concat(c,'"')),Object(a.a)(Object(a.e)(s),"data must be a non-null object"),v.headers=Object(a.e)(o)?Object(i.b)(o):{},d=this.makeUrl(c,s,h),f(this.log,"Request:",v.method.toUpperCase(),d),f(this.log,"Request Headers:",v.headers),f(this.log,"Request Body:",v.body),t.prev=10,t.next=13,this.fetch(d,v);case 13:if(y=t.sent,f(this.log,"Response Code:",y.status,y.statusText),y.ok){t.next=17;break}throw new n.a(y.statusText,{code:y.status});case 17:return t.next=19,y.json();case 19:return g=t.sent,f(this.log,"Response Parsed:",g),t.abrupt("return",g);case 24:throw t.prev=24,t.t0=t.catch(10),b=Object(a.f)(t.t0)?t.t0:"Unknown RESTClient error",Object(a.e)(t.t0)&&Object(a.f)(t.t0.message)&&(b=t.t0.message),new n.a("Failed to '".concat(r,"' '").concat(d,"': '").concat(b,"'"),t.t0);case 29:case"end":return t.stop()}}),t,this,[[10,24]])})),p=function(){var t=this,e=arguments;return new Promise((function(r,n){var i=h.apply(t,e);function o(t){c(i,r,n,o,a,"next",t)}function a(t){c(i,r,n,o,a,"throw",t)}o(void 0)}))},function(t){return p.apply(this,arguments)})},{key:"makeUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=new URL(e,this.url);return i.search=t.search(r,n,this.defaultParams),i.href}},{key:"get",value:function(t,e){return this.go({method:"get",pathname:t,data:e})}}],s=[{key:"search",value:function(t,e,r){var n=e?Object(i.b)(r,t):Object(i.b)(t);return Object.keys(n).filter((function(t){return""!==n[t]})).map((function(t){return"".concat(l(t),"=").concat(l(n[t]))})).join("&")}}],r&&u(e.prototype,r),s&&u(e,s),t}();e.a=h},function(t,e,r){var n=r(9),i=r(10),o=r(34);t.exports=n?function(t,e,r){return i.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){"use strict";var n=r(17),i=r(108),o=r(46),a=r(21),c=r(77),u=a.set,s=a.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,e){u(this,{type:"Array Iterator",target:n(t),index:0,kind:e})}),(function(){var t=s(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e,r){var n=r(51),i=r(29);t.exports=function(t){return n(i(t))}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e,r){var n=r(29);t.exports=function(t){return Object(n(t))}},function(t,e,r){"use strict";var n=r(90).charAt,i=r(21),o=r(77),a=i.set,c=i.getterFor("String Iterator");o(String,"String",(function(t){a(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=c(this),r=e.string,i=e.index;return i>=r.length?{value:void 0,done:!0}:(t=n(r,i),e.index+=t.length,{value:t,done:!1})}))},function(t,e,r){var n,i,o,a=r(139),c=r(2),u=r(6),s=r(15),f=r(8),l=r(52),h=r(42),p=c.WeakMap;if(a){var v=new p,d=v.get,y=v.has,g=v.set;n=function(t,e){return g.call(v,t,e),e},i=function(t){return d.call(v,t)||{}},o=function(t){return y.call(v,t)}}else{var b=l("state");h[b]=!0,n=function(t,e){return s(t,b,e),e},i=function(t){return f(t,b)?t[b]:{}},o=function(t){return f(t,b)}}t.exports={set:n,get:i,has:o,enforce:function(t){return o(t)?i(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},function(t,e,r){var n=r(97),i=r(2),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t])||o(i[t]):n[t]&&n[t][e]||i[t]&&i[t][e]}},function(t,e,r){var n=r(55),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},function(t,e,r){var n=r(9),i=r(3),o=r(8),a=Object.defineProperty,c={},u=function(t){throw t};t.exports=function(t,e){if(o(c,t))return c[t];e||(e={});var r=[][t],s=!!o(e,"ACCESSORS")&&e.ACCESSORS,f=o(e,0)?e[0]:u,l=o(e,1)?e[1]:void 0;return c[t]=!!r&&!i((function(){if(s&&!n)return!0;var t={length:-1};s?a(t,1,{enumerable:!0,get:u}):t[1]=1,r.call(t,f,l)}))}},function(t,e,r){var n=r(83),i=r(12),o=r(146);n||i(Object.prototype,"toString",o,{unsafe:!0})},function(t,e,r){var n=r(2),i=r(125),o=r(16),a=r(15),c=r(5),u=c("iterator"),s=c("toStringTag"),f=o.values;for(var l in i){var h=n[l],p=h&&h.prototype;if(p){if(p[u]!==f)try{a(p,u,f)}catch(t){p[u]=f}if(p[s]||a(p,s,l),i[l])for(var v in o)if(p[v]!==o[v])try{a(p,v,o[v])}catch(t){p[v]=o[v]}}}},function(t,e,r){"use strict";r.d(e,"b",(function(){return u})),r.d(e,"a",(function(){return s}));r(28),r(32),r(33),r(165),r(166),r(16),r(167),r(131),r(168),r(25),r(62),r(20),r(170),r(26);var n=r(0),i=r(4);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function u(){for(var t={},e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];if(!r||!r.length)throw new i.a("No objects to clone");return r.forEach((function(e){Object(n.a)(Object(n.e)(e)),Object(n.c)(e)&&Object.entries(e).forEach((function(e){var r=a(e,2),i=r[0],o=r[1];void 0!==o&&(t[i]=Object(n.e)(o)?s(o):o)}))})),t}function s(t){return Object(n.a)("object"===o(t),"obj should be an object (even null) but it is ".concat(t)),JSON.parse(JSON.stringify(t))||t}},function(t,e,r){"use strict";var n=r(1),i=r(2),o=r(22),a=r(35),c=r(9),u=r(74),s=r(100),f=r(3),l=r(8),h=r(57),p=r(6),v=r(7),d=r(19),y=r(17),g=r(41),b=r(34),m=r(30),w=r(43),x=r(54),S=r(141),O=r(73),j=r(40),k=r(10),_=r(50),E=r(15),P=r(12),U=r(70),R=r(52),I=r(42),A=r(53),L=r(5),C=r(103),T=r(104),N=r(31),D=r(21),F=r(36).forEach,M=R("hidden"),q=L("toPrimitive"),B=D.set,V=D.getterFor("Symbol"),G=Object.prototype,z=i.Symbol,$=o("JSON","stringify"),W=j.f,K=k.f,H=S.f,J=_.f,Y=U("symbols"),X=U("op-symbols"),Q=U("string-to-symbol-registry"),Z=U("symbol-to-string-registry"),tt=U("wks"),et=i.QObject,rt=!et||!et.prototype||!et.prototype.findChild,nt=c&&f((function(){return 7!=m(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=W(G,e);n&&delete G[e],K(t,e,r),n&&t!==G&&K(G,e,n)}:K,it=function(t,e){var r=Y[t]=m(z.prototype);return B(r,{type:"Symbol",tag:t,description:e}),c||(r.description=e),r},ot=s?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof z},at=function(t,e,r){t===G&&at(X,e,r),v(t);var n=g(e,!0);return v(r),l(Y,n)?(r.enumerable?(l(t,M)&&t[M][n]&&(t[M][n]=!1),r=m(r,{enumerable:b(0,!1)})):(l(t,M)||K(t,M,b(1,{})),t[M][n]=!0),nt(t,n,r)):K(t,n,r)},ct=function(t,e){v(t);var r=y(e),n=w(r).concat(lt(r));return F(n,(function(e){c&&!ut.call(r,e)||at(t,e,r[e])})),t},ut=function(t){var e=g(t,!0),r=J.call(this,e);return!(this===G&&l(Y,e)&&!l(X,e))&&(!(r||!l(this,e)||!l(Y,e)||l(this,M)&&this[M][e])||r)},st=function(t,e){var r=y(t),n=g(e,!0);if(r!==G||!l(Y,n)||l(X,n)){var i=W(r,n);return!i||!l(Y,n)||l(r,M)&&r[M][n]||(i.enumerable=!0),i}},ft=function(t){var e=H(y(t)),r=[];return F(e,(function(t){l(Y,t)||l(I,t)||r.push(t)})),r},lt=function(t){var e=t===G,r=H(e?X:y(t)),n=[];return F(r,(function(t){!l(Y,t)||e&&!l(G,t)||n.push(Y[t])})),n};(u||(P((z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=A(t),r=function(t){this===G&&r.call(X,t),l(this,M)&&l(this[M],e)&&(this[M][e]=!1),nt(this,e,b(1,t))};return c&&rt&&nt(G,e,{configurable:!0,set:r}),it(e,t)}).prototype,"toString",(function(){return V(this).tag})),P(z,"withoutSetter",(function(t){return it(A(t),t)})),_.f=ut,k.f=at,j.f=st,x.f=S.f=ft,O.f=lt,C.f=function(t){return it(L(t),t)},c&&(K(z.prototype,"description",{configurable:!0,get:function(){return V(this).description}}),a||P(G,"propertyIsEnumerable",ut,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:z}),F(w(tt),(function(t){T(t)})),n({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=String(t);if(l(Q,e))return Q[e];var r=z(e);return Q[e]=r,Z[r]=e,r},keyFor:function(t){if(!ot(t))throw TypeError(t+" is not a symbol");if(l(Z,t))return Z[t]},useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!c},{create:function(t,e){return void 0===e?m(t):ct(m(t),e)},defineProperty:at,defineProperties:ct,getOwnPropertyDescriptor:st}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ft,getOwnPropertySymbols:lt}),n({target:"Object",stat:!0,forced:f((function(){O.f(1)}))},{getOwnPropertySymbols:function(t){return O.f(d(t))}}),$)&&n({target:"JSON",stat:!0,forced:!u||f((function(){var t=z();return"[null]"!=$([t])||"{}"!=$({a:t})||"{}"!=$(Object(t))}))},{stringify:function(t,e,r){for(var n,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(n=e,(p(e)||void 0!==t)&&!ot(t))return h(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!ot(e))return e}),i[1]=e,$.apply(null,i)}});z.prototype[q]||E(z.prototype,q,z.prototype.valueOf),N(z,"Symbol"),I[M]=!0},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,r){var n,i=r(7),o=r(101),a=r(72),c=r(42),u=r(102),s=r(67),f=r(52),l=f("IE_PROTO"),h=function(){},p=function(t){return"<script>"+t+"<\/script>"},v=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;v=n?function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e}(n):((e=s("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F);for(var r=a.length;r--;)delete v.prototype[a[r]];return v()};c[l]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(h.prototype=i(t),r=new h,h.prototype=null,r[l]=t):r=v(),void 0===e?r:o(r,e)}},function(t,e,r){var n=r(10).f,i=r(8),o=r(5)("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},function(t,e,r){"use strict";var n=r(1),i=r(9),o=r(2),a=r(8),c=r(6),u=r(10).f,s=r(96),f=o.Symbol;if(i&&"function"==typeof f&&(!("description"in f.prototype)||void 0!==f().description)){var l={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof h?new f(t):void 0===t?f():f(t);return""===t&&(l[e]=!0),e};s(h,f);var p=h.prototype=f.prototype;p.constructor=h;var v=p.toString,d="Symbol(test)"==String(f("test")),y=/^Symbol\((.*)\)[^)]+$/;u(p,"description",{configurable:!0,get:function(){var t=c(this)?this.valueOf():this,e=v.call(t);if(a(l,t))return"";var r=d?e.slice(7,-1):e.replace(y,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:h})}},function(t,e,r){r(104)("iterator")},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=!1},function(t,e,r){var n=r(37),i=r(51),o=r(19),a=r(23),c=r(105),u=[].push,s=function(t){var e=1==t,r=2==t,s=3==t,f=4==t,l=6==t,h=5==t||l;return function(p,v,d,y){for(var g,b,m=o(p),w=i(m),x=n(v,d,3),S=a(w.length),O=0,j=y||c,k=e?j(p,S):r?j(p,0):void 0;S>O;O++)if((h||O in w)&&(b=x(g=w[O],O,m),t))if(e)k[O]=b;else if(b)switch(t){case 3:return!0;case 5:return g;case 6:return O;case 2:u.call(k,g)}else if(f)return!1;return l?-1:s||f?f:k}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},function(t,e,r){var n=r(38);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};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)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));r(28),r(32),r(33),r(16),r(25),r(20),r(26);var n=r(0);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){null!==t.SPiD&&"object"===i(t.SPiD)||(t.SPiD={}),null!==t.SPiD.Talk&&"object"===i(t.SPiD.Talk)||(t.SPiD.Talk={}),Object(n.b)(t.SPiD.Talk.response)||(t.SPiD.Talk.response=function(e,r){return t[e](r)})}},function(t,e,r){var n=r(9),i=r(50),o=r(34),a=r(17),c=r(41),u=r(8),s=r(94),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=a(t),e=c(e,!0),s)try{return f(t,e)}catch(t){}if(u(t,e))return o(!i.f.call(t,e),t[e])}},function(t,e,r){var n=r(6);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports={}},function(t,e,r){var n=r(98),i=r(72);t.exports=Object.keys||function(t){return n(t,i)}},function(t,e,r){"use strict";var n=r(1),i=r(3),o=r(57),a=r(6),c=r(19),u=r(23),s=r(75),f=r(105),l=r(58),h=r(5),p=r(76),v=h("isConcatSpreadable"),d=p>=51||!i((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),y=l("concat"),g=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:o(t)};n({target:"Array",proto:!0,forced:!d||!y},{concat:function(t){var e,r,n,i,o,a=c(this),l=f(a,0),h=0;for(e=-1,n=arguments.length;e<n;e++)if(g(o=-1===e?a:arguments[e])){if(h+(i=u(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<i;r++,h++)r in o&&s(l,h,o[r])}else{if(h>=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(l,h++,o)}return l.length=h,l}})},function(t,e,r){"use strict";var n=r(3);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},function(t,e){t.exports={}},function(t,e,r){"use strict";var n=r(1),i=r(51),o=r(17),a=r(45),c=[].join,u=i!=Object,s=a("join",",");n({target:"Array",proto:!0,forced:u||!s},{join:function(t){return c.call(o(this),void 0===t?",":t)}})},function(t,e){t.exports=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}},function(t,e,r){var n=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof l?e:l,o=Object.create(i.prototype),a=new O(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return k()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var c=w(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=s(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),o}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function l(){}function h(){}function p(){}var v={};v[i]=function(){return this};var d=Object.getPrototypeOf,y=d&&d(d(j([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=l.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function m(t,e){var n;this._invoke=function(i,o){function a(){return new e((function(n,a){!function n(i,o,a,c){var u=s(t[i],t,o);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}(i,o,n,a)}))}return n=n?n.then(a,a):a()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return h.prototype=g.constructor=p,p.constructor=h,h.displayName=c(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(m.prototype),m.prototype[o]=function(){return this},t.AsyncIterator=m,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new m(u(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,a,"Generator"),g[i]=function(){return this},g.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=j,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},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;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},function(t,e,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},function(t,e,r){var n=r(3),i=r(18),o="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},function(t,e,r){var n=r(70),i=r(53),o=n("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+n).toString(36)}},function(t,e,r){var n=r(98),i=r(72).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(3),i=/#|\.prototype\./,o=function(t,e){var r=c[a(t)];return r==s||r!=u&&("function"==typeof e?n(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",s=o.POLYFILL="P";t.exports=o},function(t,e,r){var n=r(18);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(3),i=r(5),o=r(76),a=i("species");t.exports=function(t){return o>=51||!n((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,r){var n=r(84),i=r(46),o=r(5)("iterator");t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[n(t)]}},function(t,e,r){"use strict";var n=r(1),i=r(61);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(t,e,r){"use strict";var n,i,o=r(123),a=r(153),c=RegExp.prototype.exec,u=String.prototype.replace,s=c,f=(n=/a/,i=/b*/g,c.call(n,"a"),c.call(i,"a"),0!==n.lastIndex||0!==i.lastIndex),l=a.UNSUPPORTED_Y||a.BROKEN_CARET,h=void 0!==/()??/.exec("")[1];(f||h||l)&&(s=function(t){var e,r,n,i,a=this,s=l&&a.sticky,p=o.call(a),v=a.source,d=0,y=t;return s&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),y=String(t).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==t[a.lastIndex-1])&&(v="(?: "+v+")",y=" "+y,d++),r=new RegExp("^(?:"+v+")",p)),h&&(r=new RegExp("^"+v+"$(?!\\s)",p)),f&&(e=a.lastIndex),n=c.call(s?r:a,y),s?n?(n.input=n.input.slice(d),n[0]=n[0].slice(d),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:f&&n&&(a.lastIndex=a.global?n.index+n[0].length:e),h&&n&&n.length>1&&u.call(n[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)})),n}),t.exports=s},function(t,e,r){"use strict";var n=r(12),i=r(7),o=r(3),a=r(123),c=RegExp.prototype,u=c.toString,s=o((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),f="toString"!=u.name;(s||f)&&n(RegExp.prototype,"toString",(function(){var t=i(this),e=String(t.source),r=t.flags;return"/"+e+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in c)?a.call(t):r)}),{unsafe:!0})},function(t,e,r){var n=r(1),i=r(19),o=r(43);n({target:"Object",stat:!0,forced:r(3)((function(){o(1)}))},{keys:function(t){return o(i(t))}})},function(t,e){function r(){}r.prototype={on:function(t,e,r){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:r}),this},once:function(t,e,r){var n=this;function i(){n.off(t,i),e.apply(r,arguments)}return i._=e,this.on(t,i,r)},emit:function(t){for(var e=[].slice.call(arguments,1),r=((this.e||(this.e={}))[t]||[]).slice(),n=0,i=r.length;n<i;n++)r[n].fn.apply(r[n].ctx,e);return this},off:function(t,e){var r=this.e||(this.e={}),n=r[t],i=[];if(n&&e)for(var o=0,a=n.length;o<a;o++)n[o].fn!==e&&n[o].fn._!==e&&i.push(n[o]);return i.length?r[t]=i:delete r[t],this}},t.exports=r,t.exports.TinyEmitter=r},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));r(80),r(113),r(60),r(134);var n=r(4);function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function t(e){var r=this;o(this,t),this.store=e,this.get=function(t){return r.store.getItem(t)},this.set=function(t,e){return r.store.setItem(t,e)},this.delete=function(t){return r.store.removeItem(t)}},c=function t(){var e=this;o(this,t),this.store={},this.get=function(t){return e.store[t]},this.set=function(t,r){return e.store[t]=r},this.delete=function(t){return delete e.store[t]}},u=Math.pow(2,31)-1,s=function(){function t(e){o(this,t),!function(t){if(!t)return!1;try{var e=t(),r="x-x-x-x".replace(/x/g,(function(){return Math.random()}));e.setItem(r,"TEST-VALUE");var n=e.getItem(r);return e.removeItem(r),"TEST-VALUE"===n}catch(t){return!1}}(e)?(this.cache=new c,this.type="ObjectLiteralStorage"):(this.cache=new a(e()),this.type="WebStorage")}var e,r,s;return e=t,(r=[{key:"get",value:function(t){try{var e=function(t){try{return JSON.parse(t)}catch(t){return null}}(this.cache.get(t));return e&&Number.isInteger(e.expiresOn)&&e.expiresOn>Date.now()?e.value:(this.delete(t),null)}catch(t){throw new n.a(t)}}},{key:"set",value:function(t,e){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(i<=0)){i=Math.min(u,i);try{var o=Math.floor(Date.now()+i);this.cache.set(t,JSON.stringify({expiresOn:o,value:e})),setTimeout((function(){return r.delete(t)}),i)}catch(t){throw new n.a(t)}}}},{key:"delete",value:function(t){try{this.cache.delete(t)}catch(t){throw new n.a(t)}}}])&&i(e.prototype,r),s&&i(e,s),t}()},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));r(44),r(47),r(93),r(80),r(171),r(63);var n=r(0),i=r(27);function o(t){return Object(n.a)(Object(n.e)(t),"Object must be an object but it is '".concat(t,"'")),Object.keys(t).map((function(e){return"".concat(e,"=").concat(t[e])})).join(",")}var a={scrollbars:"yes",location:"yes",status:"no",menubar:"no",toolbar:"no",resizable:"yes"};function c(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Object(n.a)(Object(n.e)(t),"window was supposed to be an object but it is ".concat(t)),Object(n.a)(Object(n.e)(t.screen),"window should be a valid Window object but it lacks a 'screen' property"),Object(n.a)(Object(n.b)(t.open),"window should be a valid Window object but it lacks an 'open' function"),Object(n.a)(Object(n.h)(e),"Invalid URL for popup");var u=t.screen,s=u.height,f=u.width,l=Object(i.b)(a,c);Number.isFinite(l.width)&&Number.isFinite(f)&&(l.left=(f-l.width)/2),Number.isFinite(l.height)&&Number.isFinite(s)&&(l.top=(s-l.height)/2);var h=o(l);return t.open(e,r,h)}},function(t,e,r){var n=r(2),i=r(6),o=n.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,r){var n=r(2),i=r(15);t.exports=function(t,e){try{i(n,t,e)}catch(r){n[t]=e}return e}},function(t,e,r){var n=r(95),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return i.call(t)}),t.exports=n.inspectSource},function(t,e,r){var n=r(35),i=r(95);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e,r){var n=r(17),i=r(23),o=r(99),a=function(t){return function(e,r,a){var c,u=n(e),s=i(u.length),f=o(a,s);if(t&&r!=r){for(;s>f;)if((c=u[f++])!=c)return!0}else for(;s>f;f++)if((t||f in u)&&u[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(3);t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},function(t,e,r){"use strict";var n=r(41),i=r(10),o=r(34);t.exports=function(t,e,r){var a=n(e);a in t?i.f(t,a,o(0,r)):t[a]=r}},function(t,e,r){var n,i,o=r(2),a=r(106),c=o.process,u=c&&c.versions,s=u&&u.v8;s?i=(n=s.split("."))[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=n[1]),t.exports=i&&+i},function(t,e,r){"use strict";var n=r(1),i=r(109),o=r(78),a=r(79),c=r(31),u=r(15),s=r(12),f=r(5),l=r(35),h=r(46),p=r(110),v=p.IteratorPrototype,d=p.BUGGY_SAFARI_ITERATORS,y=f("iterator"),g=function(){return this};t.exports=function(t,e,r,f,p,b,m){i(r,e,f);var w,x,S,O=function(t){if(t===p&&P)return P;if(!d&&t in _)return _[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},j=e+" Iterator",k=!1,_=t.prototype,E=_[y]||_["@@iterator"]||p&&_[p],P=!d&&E||O(p),U="Array"==e&&_.entries||E;if(U&&(w=o(U.call(new t)),v!==Object.prototype&&w.next&&(l||o(w)===v||(a?a(w,v):"function"!=typeof w[y]&&u(w,y,g)),c(w,j,!0,!0),l&&(h[j]=g))),"values"==p&&E&&"values"!==E.name&&(k=!0,P=function(){return E.call(this)}),l&&!m||_[y]===P||u(_,y,P),h[e]=P,p)if(x={values:O("values"),keys:b?P:O("keys"),entries:O("entries")},m)for(S in x)(d||k||!(S in _))&&s(_,S,x[S]);else n({target:e,proto:!0,forced:d||k},x);return x}},function(t,e,r){var n=r(8),i=r(19),o=r(52),a=r(111),c=o("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),n(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,r){var n=r(7),i=r(142);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,o){return n(r),i(o),e?t.call(r,o):r.__proto__=o,r}}():void 0)},function(t,e,r){"use strict";var n=r(9),i=r(2),o=r(56),a=r(12),c=r(8),u=r(18),s=r(112),f=r(41),l=r(3),h=r(30),p=r(54).f,v=r(40).f,d=r(10).f,y=r(143).trim,g=i.Number,b=g.prototype,m="Number"==u(h(b)),w=function(t){var e,r,n,i,o,a,c,u,s=f(t,!1);if("string"==typeof s&&s.length>2)if(43===(e=(s=y(s)).charCodeAt(0))||45===e){if(88===(r=s.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(s.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+s}for(a=(o=s.slice(2)).length,c=0;c<a;c++)if((u=o.charCodeAt(c))<48||u>i)return NaN;return parseInt(o,n)}return+s};if(o("Number",!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var x,S=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof S&&(m?l((function(){b.valueOf.call(r)})):"Number"!=u(r))?s(new g(w(e)),r,S):w(e)},O=n?p(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),j=0;O.length>j;j++)c(g,x=O[j])&&!c(S,x)&&d(S,x,v(g,x));S.prototype=b,b.constructor=S,a(i,"Number",S)}},function(t,e,r){var n=r(1),i=r(3),o=r(19),a=r(78),c=r(111);n({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!c},{getPrototypeOf:function(t){return a(o(t))}})},function(t,e,r){r(1)({target:"Object",stat:!0},{setPrototypeOf:r(79)})},function(t,e,r){var n={};n[r(5)("toStringTag")]="z",t.exports="[object z]"===String(n)},function(t,e,r){var n=r(83),i=r(18),o=r(5)("toStringTag"),a="Arguments"==i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?r:a?i(e):"Object"==(n=i(e))&&"function"==typeof e.callee?"Arguments":n}},function(t,e,r){"use strict";var n,i,o,a,c=r(1),u=r(35),s=r(2),f=r(22),l=r(147),h=r(12),p=r(86),v=r(31),d=r(116),y=r(6),g=r(38),b=r(48),m=r(18),w=r(69),x=r(87),S=r(88),O=r(119),j=r(120).set,k=r(148),_=r(149),E=r(150),P=r(122),U=r(151),R=r(21),I=r(56),A=r(5),L=r(76),C=A("species"),T="Promise",N=R.get,D=R.set,F=R.getterFor(T),M=l,q=s.TypeError,B=s.document,V=s.process,G=f("fetch"),z=P.f,$=z,W="process"==m(V),K=!!(B&&B.createEvent&&s.dispatchEvent),H=I(T,(function(){if(!(w(M)!==String(M))){if(66===L)return!0;if(!W&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!M.prototype.finally)return!0;if(L>=51&&/native code/.test(M))return!1;var t=M.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[C]=e,!(t.then((function(){}))instanceof e)})),J=H||!S((function(t){M.all(t).catch((function(){}))})),Y=function(t){var e;return!(!y(t)||"function"!=typeof(e=t.then))&&e},X=function(t,e,r){if(!e.notified){e.notified=!0;var n=e.reactions;k((function(){for(var i=e.value,o=1==e.state,a=0;n.length>a;){var c,u,s,f=n[a++],l=o?f.ok:f.fail,h=f.resolve,p=f.reject,v=f.domain;try{l?(o||(2===e.rejection&&et(t,e),e.rejection=1),!0===l?c=i:(v&&v.enter(),c=l(i),v&&(v.exit(),s=!0)),c===f.promise?p(q("Promise-chain cycle")):(u=Y(c))?u.call(c,h,p):h(c)):p(i)}catch(t){v&&!s&&v.exit(),p(t)}}e.reactions=[],e.notified=!1,r&&!e.rejection&&Z(t,e)}))}},Q=function(t,e,r){var n,i;K?((n=B.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),s.dispatchEvent(n)):n={promise:e,reason:r},(i=s["on"+t])?i(n):"unhandledrejection"===t&&E("Unhandled promise rejection",r)},Z=function(t,e){j.call(s,(function(){var r,n=e.value;if(tt(e)&&(r=U((function(){W?V.emit("unhandledRejection",n,t):Q("unhandledrejection",t,n)})),e.rejection=W||tt(e)?2:1,r.error))throw r.value}))},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t,e){j.call(s,(function(){W?V.emit("rejectionHandled",t):Q("rejectionhandled",t,e.value)}))},rt=function(t,e,r,n){return function(i){t(e,r,i,n)}},nt=function(t,e,r,n){e.done||(e.done=!0,n&&(e=n),e.value=r,e.state=2,X(t,e,!0))},it=function(t,e,r,n){if(!e.done){e.done=!0,n&&(e=n);try{if(t===r)throw q("Promise can't be resolved itself");var i=Y(r);i?k((function(){var n={done:!1};try{i.call(r,rt(it,t,n,e),rt(nt,t,n,e))}catch(r){nt(t,n,r,e)}})):(e.value=r,e.state=1,X(t,e,!1))}catch(r){nt(t,{done:!1},r,e)}}};H&&(M=function(t){b(this,M,T),g(t),n.call(this);var e=N(this);try{t(rt(it,this,e),rt(nt,this,e))}catch(t){nt(this,e,t)}},(n=function(t){D(this,{type:T,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(M.prototype,{then:function(t,e){var r=F(this),n=z(O(this,M));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=W?V.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&X(this,r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new n,e=N(t);this.promise=t,this.resolve=rt(it,t,e),this.reject=rt(nt,t,e)},P.f=z=function(t){return t===M||t===o?new i(t):$(t)},u||"function"!=typeof l||(a=l.prototype.then,h(l.prototype,"then",(function(t,e){var r=this;return new M((function(t,e){a.call(r,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof G&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return _(M,G.apply(s,arguments))}}))),c({global:!0,wrap:!0,forced:H},{Promise:M}),v(M,T,!1,!0),d(T),o=f(T),c({target:T,stat:!0,forced:H},{reject:function(t){var e=z(this);return e.reject.call(void 0,t),e.promise}}),c({target:T,stat:!0,forced:u||H},{resolve:function(t){return _(u&&this===o?M:this,t)}}),c({target:T,stat:!0,forced:J},{all:function(t){var e=this,r=z(e),n=r.resolve,i=r.reject,o=U((function(){var r=g(e.resolve),o=[],a=0,c=1;x(t,(function(t){var u=a++,s=!1;o.push(void 0),c++,r.call(e,t).then((function(t){s||(s=!0,o[u]=t,--c||n(o))}),i)})),--c||n(o)}));return o.error&&i(o.value),r.promise},race:function(t){var e=this,r=z(e),n=r.reject,i=U((function(){var i=g(e.resolve);x(t,(function(t){i.call(e,t).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}})},function(t,e,r){var n=r(12);t.exports=function(t,e,r){for(var i in e)n(t,i,e[i],r);return t}},function(t,e,r){var n=r(7),i=r(117),o=r(23),a=r(37),c=r(59),u=r(118),s=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,r,f,l){var h,p,v,d,y,g,b,m=a(e,r,f?2:1);if(l)h=t;else{if("function"!=typeof(p=c(t)))throw TypeError("Target is not iterable");if(i(p)){for(v=0,d=o(t.length);d>v;v++)if((y=f?m(n(b=t[v])[0],b[1]):m(t[v]))&&y instanceof s)return y;return new s(!1)}h=p.call(t)}for(g=h.next;!(b=g.call(h)).done;)if("object"==typeof(y=u(h,m,b.value,f))&&y&&y instanceof s)return y;return new s(!1)}).stop=function(t){return new s(!0,t)}},function(t,e,r){var n=r(5)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},t(o)}catch(t){}return r}},function(t,e,r){var n=r(1),i=r(22),o=r(38),a=r(7),c=r(6),u=r(30),s=r(152),f=r(3),l=i("Reflect","construct"),h=f((function(){function t(){}return!(l((function(){}),[],t)instanceof t)})),p=!f((function(){l((function(){}))})),v=h||p;n({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(t,e){o(t),a(e);var r=arguments.length<3?t:o(arguments[2]);if(p&&!h)return l(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(s.apply(t,n))}var i=r.prototype,f=u(c(i)?i:Object.prototype),v=Function.apply.call(t,f,e);return c(v)?v:f}})},function(t,e,r){var n=r(55),i=r(29),o=function(t){return function(e,r){var o,a,c=String(i(e)),u=n(r),s=c.length;return u<0||u>=s?t?"":void 0:(o=c.charCodeAt(u))<55296||o>56319||u+1===s||(a=c.charCodeAt(u+1))<56320||a>57343?t?c.charAt(u):o:t?c.slice(u,u+2):a-56320+(o-55296<<10)+65536}};t.exports={codeAt:o(!1),charAt:o(!0)}},function(t,e,r){"use strict";r(60);var n=r(12),i=r(3),o=r(5),a=r(61),c=r(15),u=o("species"),s=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),f="$0"==="a".replace(/./,"$0"),l=o("replace"),h=!!/./[l]&&""===/./[l]("a","$0"),p=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));t.exports=function(t,e,r,l){var v=o(t),d=!i((function(){var e={};return e[v]=function(){return 7},7!=""[t](e)})),y=d&&!i((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[v]=/./[v]),r.exec=function(){return e=!0,null},r[v](""),!e}));if(!d||!y||"replace"===t&&(!s||!f||h)||"split"===t&&!p){var g=/./[v],b=r(v,""[t],(function(t,e,r,n,i){return e.exec===a?d&&!i?{done:!0,value:g.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:f,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),m=b[0],w=b[1];n(String.prototype,t,m),n(RegExp.prototype,v,2==e?function(t,e){return w.call(t,this,e)}:function(t){return w.call(t,this)})}l&&c(RegExp.prototype[v],"sham",!0)}},function(t,e,r){var n=r(18),i=r(61);t.exports=function(t,e){var r=t.exec;if("function"==typeof r){var o=r.call(t,e);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(t))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},function(t,e,r){"use strict";var n=r(1),i=r(36).map,o=r(58),a=r(24),c=o("map"),u=a("map");n({target:"Array",proto:!0,forced:!c||!u},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(9),i=r(3),o=r(67);t.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(t,e,r){var n=r(2),i=r(68),o=n["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},function(t,e,r){var n=r(8),i=r(140),o=r(40),a=r(10);t.exports=function(t,e){for(var r=i(e),c=a.f,u=o.f,s=0;s<r.length;s++){var f=r[s];n(t,f)||c(t,f,u(e,f))}}},function(t,e,r){var n=r(2);t.exports=n},function(t,e,r){var n=r(8),i=r(17),o=r(71).indexOf,a=r(42);t.exports=function(t,e){var r,c=i(t),u=0,s=[];for(r in c)!n(a,r)&&n(c,r)&&s.push(r);for(;e.length>u;)n(c,r=e[u++])&&(~o(s,r)||s.push(r));return s}},function(t,e,r){var n=r(55),i=Math.max,o=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):o(r,e)}},function(t,e,r){var n=r(74);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,r){var n=r(9),i=r(10),o=r(7),a=r(43);t.exports=n?Object.defineProperties:function(t,e){o(t);for(var r,n=a(e),c=n.length,u=0;c>u;)i.f(t,r=n[u++],e[r]);return t}},function(t,e,r){var n=r(22);t.exports=n("document","documentElement")},function(t,e,r){var n=r(5);e.f=n},function(t,e,r){var n=r(97),i=r(8),o=r(103),a=r(10).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},function(t,e,r){var n=r(6),i=r(57),o=r(5)("species");t.exports=function(t,e){var r;return i(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!i(r.prototype)?n(r)&&null===(r=r[o])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},function(t,e,r){var n=r(22);t.exports=n("navigator","userAgent")||""},function(t,e,r){"use strict";var n=r(1),i=r(36).every,o=r(45),a=r(24),c=o("every"),u=a("every");n({target:"Array",proto:!0,forced:!c||!u},{every:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(5),i=r(30),o=r(10),a=n("unscopables"),c=Array.prototype;null==c[a]&&o.f(c,a,{configurable:!0,value:i(null)}),t.exports=function(t){c[a][t]=!0}},function(t,e,r){"use strict";var n=r(110).IteratorPrototype,i=r(30),o=r(34),a=r(31),c=r(46),u=function(){return this};t.exports=function(t,e,r){var s=e+" Iterator";return t.prototype=i(n,{next:o(1,r)}),a(t,s,!1,!0),c[s]=u,t}},function(t,e,r){"use strict";var n,i,o,a=r(78),c=r(15),u=r(8),s=r(5),f=r(35),l=s("iterator"),h=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(n=i):h=!0),null==n&&(n={}),f||u(n,l)||c(n,l,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},function(t,e,r){var n=r(3);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,r){var n=r(6),i=r(79);t.exports=function(t,e,r){var o,a;return i&&"function"==typeof(o=e.constructor)&&o!==r&&n(a=o.prototype)&&a!==r.prototype&&i(t,a),t}},function(t,e,r){r(1)({target:"Number",stat:!0},{isInteger:r(145)})},function(t,e,r){var n=r(1),i=r(115);n({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(t,e,r){"use strict";var n=r(9),i=r(3),o=r(43),a=r(73),c=r(50),u=r(19),s=r(51),f=Object.assign,l=Object.defineProperty;t.exports=!f||i((function(){if(n&&1!==f({b:1},f(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol();return t[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=f({},t)[r]||"abcdefghijklmnopqrst"!=o(f({},e)).join("")}))?function(t,e){for(var r=u(t),i=arguments.length,f=1,l=a.f,h=c.f;i>f;)for(var p,v=s(arguments[f++]),d=l?o(v).concat(l(v)):o(v),y=d.length,g=0;y>g;)p=d[g++],n&&!h.call(v,p)||(r[p]=v[p]);return r}:f},function(t,e,r){"use strict";var n=r(22),i=r(10),o=r(5),a=r(9),c=o("species");t.exports=function(t){var e=n(t),r=i.f;a&&e&&!e[c]&&r(e,c,{configurable:!0,get:function(){return this}})}},function(t,e,r){var n=r(5),i=r(46),o=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},function(t,e,r){var n=r(7);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},function(t,e,r){var n=r(7),i=r(38),o=r(5)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||null==(r=n(a)[o])?e:i(r)}},function(t,e,r){var n,i,o,a=r(2),c=r(3),u=r(18),s=r(37),f=r(102),l=r(67),h=r(121),p=a.location,v=a.setImmediate,d=a.clearImmediate,y=a.process,g=a.MessageChannel,b=a.Dispatch,m=0,w={},x=function(t){if(w.hasOwnProperty(t)){var e=w[t];delete w[t],e()}},S=function(t){return function(){x(t)}},O=function(t){x(t.data)},j=function(t){a.postMessage(t+"",p.protocol+"//"+p.host)};v&&d||(v=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return w[++m]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},n(m),m},d=function(t){delete w[t]},"process"==u(y)?n=function(t){y.nextTick(S(t))}:b&&b.now?n=function(t){b.now(S(t))}:g&&!h?(o=(i=new g).port2,i.port1.onmessage=O,n=s(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||c(j)||"file:"===p.protocol?n="onreadystatechange"in l("script")?function(t){f.appendChild(l("script")).onreadystatechange=function(){f.removeChild(this),x(t)}}:function(t){setTimeout(S(t),0)}:(n=j,a.addEventListener("message",O,!1))),t.exports={set:v,clear:d}},function(t,e,r){var n=r(106);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},function(t,e,r){"use strict";var n=r(38),i=function(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=n(e),this.reject=n(r)};t.exports.f=function(t){return new i(t)}},function(t,e,r){"use strict";var n=r(7);t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,r){"use strict";var n=r(90).charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,r){"use strict";var n=r(1),i=r(71).indexOf,o=r(45),a=r(24),c=[].indexOf,u=!!c&&1/[1].indexOf(1,-0)<0,s=o("indexOf"),f=a("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:u||!s||!f},{indexOf:function(t){return u?c.apply(this,arguments)||0:i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";r(20);var n,i=r(1),o=r(9),a=r(128),c=r(2),u=r(101),s=r(12),f=r(48),l=r(8),h=r(115),p=r(129),v=r(90).codeAt,d=r(157),y=r(31),g=r(158),b=r(21),m=c.URL,w=g.URLSearchParams,x=g.getState,S=b.set,O=b.getterFor("URL"),j=Math.floor,k=Math.pow,_=/[A-Za-z]/,E=/[\d+-.A-Za-z]/,P=/\d/,U=/^(0x|0X)/,R=/^[0-7]+$/,I=/^\d+$/,A=/^[\dA-Fa-f]+$/,L=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,C=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,T=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,N=/[\u0009\u000A\u000D]/g,D=function(t,e){var r,n,i;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return"Invalid host";if(!(r=M(e.slice(1,-1))))return"Invalid host";t.host=r}else if(K(t)){if(e=d(e),L.test(e))return"Invalid host";if(null===(r=F(e)))return"Invalid host";t.host=r}else{if(C.test(e))return"Invalid host";for(r="",n=p(e),i=0;i<n.length;i++)r+=$(n[i],B);t.host=r}},F=function(t){var e,r,n,i,o,a,c,u=t.split(".");if(u.length&&""==u[u.length-1]&&u.pop(),(e=u.length)>4)return t;for(r=[],n=0;n<e;n++){if(""==(i=u[n]))return t;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=U.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?I:8==o?R:A).test(i))return t;a=parseInt(i,o)}r.push(a)}for(n=0;n<e;n++)if(a=r[n],n==e-1){if(a>=k(256,5-e))return null}else if(a>255)return null;for(c=r.pop(),n=0;n<r.length;n++)c+=r[n]*k(256,3-n);return c},M=function(t){var e,r,n,i,o,a,c,u=[0,0,0,0,0,0,0,0],s=0,f=null,l=0,h=function(){return t.charAt(l)};if(":"==h()){if(":"!=t.charAt(1))return;l+=2,f=++s}for(;h();){if(8==s)return;if(":"!=h()){for(e=r=0;r<4&&A.test(h());)e=16*e+parseInt(h(),16),l++,r++;if("."==h()){if(0==r)return;if(l-=r,s>6)return;for(n=0;h();){if(i=null,n>0){if(!("."==h()&&n<4))return;l++}if(!P.test(h()))return;for(;P.test(h());){if(o=parseInt(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;l++}u[s]=256*u[s]+i,2!=++n&&4!=n||s++}if(4!=n)return;break}if(":"==h()){if(l++,!h())return}else if(h())return;u[s++]=e}else{if(null!==f)return;l++,f=++s}}if(null!==f)for(a=s-f,s=7;0!=s&&a>0;)c=u[s],u[s--]=u[f+a-1],u[f+--a]=c;else if(8!=s)return;return u},q=function(t){var e,r,n,i;if("number"==typeof t){for(e=[],r=0;r<4;r++)e.unshift(t%256),t=j(t/256);return e.join(".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,i=0,o=0;o<8;o++)0!==t[o]?(i>r&&(e=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(e=n,r=i),e}(t),r=0;r<8;r++)i&&0===t[r]||(i&&(i=!1),n===r?(e+=r?":":"::",i=!0):(e+=t[r].toString(16),r<7&&(e+=":")));return"["+e+"]"}return t},B={},V=h({},B,{" ":1,'"':1,"<":1,">":1,"`":1}),G=h({},V,{"#":1,"?":1,"{":1,"}":1}),z=h({},G,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),$=function(t,e){var r=v(t,0);return r>32&&r<127&&!l(e,t)?t:encodeURIComponent(t)},W={ftp:21,file:null,http:80,https:443,ws:80,wss:443},K=function(t){return l(W,t.scheme)},H=function(t){return""!=t.username||""!=t.password},J=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},Y=function(t,e){var r;return 2==t.length&&_.test(t.charAt(0))&&(":"==(r=t.charAt(1))||!e&&"|"==r)},X=function(t){var e;return t.length>1&&Y(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},Q=function(t){var e=t.path,r=e.length;!r||"file"==t.scheme&&1==r&&Y(e[0],!0)||e.pop()},Z=function(t){return"."===t||"%2e"===t.toLowerCase()},tt={},et={},rt={},nt={},it={},ot={},at={},ct={},ut={},st={},ft={},lt={},ht={},pt={},vt={},dt={},yt={},gt={},bt={},mt={},wt={},xt=function(t,e,r,i){var o,a,c,u,s,f=r||tt,h=0,v="",d=!1,y=!1,g=!1;for(r||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(T,"")),e=e.replace(N,""),o=p(e);h<=o.length;){switch(a=o[h],f){case tt:if(!a||!_.test(a)){if(r)return"Invalid scheme";f=rt;continue}v+=a.toLowerCase(),f=et;break;case et:if(a&&(E.test(a)||"+"==a||"-"==a||"."==a))v+=a.toLowerCase();else{if(":"!=a){if(r)return"Invalid scheme";v="",f=rt,h=0;continue}if(r&&(K(t)!=l(W,v)||"file"==v&&(H(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=v,r)return void(K(t)&&W[t.scheme]==t.port&&(t.port=null));v="","file"==t.scheme?f=pt:K(t)&&i&&i.scheme==t.scheme?f=nt:K(t)?f=ct:"/"==o[h+1]?(f=it,h++):(t.cannotBeABaseURL=!0,t.path.push(""),f=bt)}break;case rt:if(!i||i.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(i.cannotBeABaseURL&&"#"==a){t.scheme=i.scheme,t.path=i.path.slice(),t.query=i.query,t.fragment="",t.cannotBeABaseURL=!0,f=wt;break}f="file"==i.scheme?pt:ot;continue;case nt:if("/"!=a||"/"!=o[h+1]){f=ot;continue}f=ut,h++;break;case it:if("/"==a){f=st;break}f=gt;continue;case ot:if(t.scheme=i.scheme,a==n)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query;else if("/"==a||"\\"==a&&K(t))f=at;else if("?"==a)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query="",f=mt;else{if("#"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.path.pop(),f=gt;continue}t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query,t.fragment="",f=wt}break;case at:if(!K(t)||"/"!=a&&"\\"!=a){if("/"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,f=gt;continue}f=st}else f=ut;break;case ct:if(f=ut,"/"!=a||"/"!=v.charAt(h+1))continue;h++;break;case ut:if("/"!=a&&"\\"!=a){f=st;continue}break;case st:if("@"==a){d&&(v="%40"+v),d=!0,c=p(v);for(var b=0;b<c.length;b++){var m=c[b];if(":"!=m||g){var w=$(m,z);g?t.password+=w:t.username+=w}else g=!0}v=""}else if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&K(t)){if(d&&""==v)return"Invalid authority";h-=p(v).length+1,v="",f=ft}else v+=a;break;case ft:case lt:if(r&&"file"==t.scheme){f=dt;continue}if(":"!=a||y){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&K(t)){if(K(t)&&""==v)return"Invalid host";if(r&&""==v&&(H(t)||null!==t.port))return;if(u=D(t,v))return u;if(v="",f=yt,r)return;continue}"["==a?y=!0:"]"==a&&(y=!1),v+=a}else{if(""==v)return"Invalid host";if(u=D(t,v))return u;if(v="",f=ht,r==lt)return}break;case ht:if(!P.test(a)){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&K(t)||r){if(""!=v){var x=parseInt(v,10);if(x>65535)return"Invalid port";t.port=K(t)&&x===W[t.scheme]?null:x,v=""}if(r)return;f=yt;continue}return"Invalid port"}v+=a;break;case pt:if(t.scheme="file","/"==a||"\\"==a)f=vt;else{if(!i||"file"!=i.scheme){f=gt;continue}if(a==n)t.host=i.host,t.path=i.path.slice(),t.query=i.query;else if("?"==a)t.host=i.host,t.path=i.path.slice(),t.query="",f=mt;else{if("#"!=a){X(o.slice(h).join(""))||(t.host=i.host,t.path=i.path.slice(),Q(t)),f=gt;continue}t.host=i.host,t.path=i.path.slice(),t.query=i.query,t.fragment="",f=wt}}break;case vt:if("/"==a||"\\"==a){f=dt;break}i&&"file"==i.scheme&&!X(o.slice(h).join(""))&&(Y(i.path[0],!0)?t.path.push(i.path[0]):t.host=i.host),f=gt;continue;case dt:if(a==n||"/"==a||"\\"==a||"?"==a||"#"==a){if(!r&&Y(v))f=gt;else if(""==v){if(t.host="",r)return;f=yt}else{if(u=D(t,v))return u;if("localhost"==t.host&&(t.host=""),r)return;v="",f=yt}continue}v+=a;break;case yt:if(K(t)){if(f=gt,"/"!=a&&"\\"!=a)continue}else if(r||"?"!=a)if(r||"#"!=a){if(a!=n&&(f=gt,"/"!=a))continue}else t.fragment="",f=wt;else t.query="",f=mt;break;case gt:if(a==n||"/"==a||"\\"==a&&K(t)||!r&&("?"==a||"#"==a)){if(".."===(s=(s=v).toLowerCase())||"%2e."===s||".%2e"===s||"%2e%2e"===s?(Q(t),"/"==a||"\\"==a&&K(t)||t.path.push("")):Z(v)?"/"==a||"\\"==a&&K(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&Y(v)&&(t.host&&(t.host=""),v=v.charAt(0)+":"),t.path.push(v)),v="","file"==t.scheme&&(a==n||"?"==a||"#"==a))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==a?(t.query="",f=mt):"#"==a&&(t.fragment="",f=wt)}else v+=$(a,G);break;case bt:"?"==a?(t.query="",f=mt):"#"==a?(t.fragment="",f=wt):a!=n&&(t.path[0]+=$(a,B));break;case mt:r||"#"!=a?a!=n&&("'"==a&&K(t)?t.query+="%27":t.query+="#"==a?"%23":$(a,B)):(t.fragment="",f=wt);break;case wt:a!=n&&(t.fragment+=$(a,V))}h++}},St=function(t){var e,r,n=f(this,St,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(t),c=S(n,{type:"URL"});if(void 0!==i)if(i instanceof St)e=O(i);else if(r=xt(e={},String(i)))throw TypeError(r);if(r=xt(c,a,null,e))throw TypeError(r);var u=c.searchParams=new w,s=x(u);s.updateSearchParams(c.query),s.updateURL=function(){c.query=String(u)||null},o||(n.href=jt.call(n),n.origin=kt.call(n),n.protocol=_t.call(n),n.username=Et.call(n),n.password=Pt.call(n),n.host=Ut.call(n),n.hostname=Rt.call(n),n.port=It.call(n),n.pathname=At.call(n),n.search=Lt.call(n),n.searchParams=Ct.call(n),n.hash=Tt.call(n))},Ot=St.prototype,jt=function(){var t=O(this),e=t.scheme,r=t.username,n=t.password,i=t.host,o=t.port,a=t.path,c=t.query,u=t.fragment,s=e+":";return null!==i?(s+="//",H(t)&&(s+=r+(n?":"+n:"")+"@"),s+=q(i),null!==o&&(s+=":"+o)):"file"==e&&(s+="//"),s+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==c&&(s+="?"+c),null!==u&&(s+="#"+u),s},kt=function(){var t=O(this),e=t.scheme,r=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&K(t)?e+"://"+q(t.host)+(null!==r?":"+r:""):"null"},_t=function(){return O(this).scheme+":"},Et=function(){return O(this).username},Pt=function(){return O(this).password},Ut=function(){var t=O(this),e=t.host,r=t.port;return null===e?"":null===r?q(e):q(e)+":"+r},Rt=function(){var t=O(this).host;return null===t?"":q(t)},It=function(){var t=O(this).port;return null===t?"":String(t)},At=function(){var t=O(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Lt=function(){var t=O(this).query;return t?"?"+t:""},Ct=function(){return O(this).searchParams},Tt=function(){var t=O(this).fragment;return t?"#"+t:""},Nt=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(o&&u(Ot,{href:Nt(jt,(function(t){var e=O(this),r=String(t),n=xt(e,r);if(n)throw TypeError(n);x(e.searchParams).updateSearchParams(e.query)})),origin:Nt(kt),protocol:Nt(_t,(function(t){var e=O(this);xt(e,String(t)+":",tt)})),username:Nt(Et,(function(t){var e=O(this),r=p(String(t));if(!J(e)){e.username="";for(var n=0;n<r.length;n++)e.username+=$(r[n],z)}})),password:Nt(Pt,(function(t){var e=O(this),r=p(String(t));if(!J(e)){e.password="";for(var n=0;n<r.length;n++)e.password+=$(r[n],z)}})),host:Nt(Ut,(function(t){var e=O(this);e.cannotBeABaseURL||xt(e,String(t),ft)})),hostname:Nt(Rt,(function(t){var e=O(this);e.cannotBeABaseURL||xt(e,String(t),lt)})),port:Nt(It,(function(t){var e=O(this);J(e)||(""==(t=String(t))?e.port=null:xt(e,t,ht))})),pathname:Nt(At,(function(t){var e=O(this);e.cannotBeABaseURL||(e.path=[],xt(e,t+"",yt))})),search:Nt(Lt,(function(t){var e=O(this);""==(t=String(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",xt(e,t,mt)),x(e.searchParams).updateSearchParams(e.query)})),searchParams:Nt(Ct),hash:Nt(Tt,(function(t){var e=O(this);""!=(t=String(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",xt(e,t,wt)):e.fragment=null}))}),s(Ot,"toJSON",(function(){return jt.call(this)}),{enumerable:!0}),s(Ot,"toString",(function(){return jt.call(this)}),{enumerable:!0}),m){var Dt=m.createObjectURL,Ft=m.revokeObjectURL;Dt&&s(St,"createObjectURL",(function(t){return Dt.apply(m,arguments)})),Ft&&s(St,"revokeObjectURL",(function(t){return Ft.apply(m,arguments)}))}y(St,"URL"),i({global:!0,forced:!a,sham:!o},{URL:St})},function(t,e,r){var n=r(3),i=r(5),o=r(35),a=i("iterator");t.exports=!n((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),r+=n+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},function(t,e,r){"use strict";var n=r(37),i=r(19),o=r(118),a=r(117),c=r(23),u=r(75),s=r(59);t.exports=function(t){var e,r,f,l,h,p,v=i(t),d="function"==typeof this?this:Array,y=arguments.length,g=y>1?arguments[1]:void 0,b=void 0!==g,m=s(v),w=0;if(b&&(g=n(g,y>2?arguments[2]:void 0,2)),null==m||d==Array&&a(m))for(r=new d(e=c(v.length));e>w;w++)p=b?g(v[w],w):v[w],u(r,w,p);else for(h=(l=m.call(v)).next,r=new d;!(f=h.call(l)).done;w++)p=b?o(l,g,[f.value,w],!0):f.value,u(r,w,p);return r.length=w,r}},function(t,e,r){"use strict";var n=r(1),i=r(36).filter,o=r(58),a=r(24),c=o("filter"),u=a("filter");n({target:"Array",proto:!0,forced:!c||!u},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(9),i=r(10).f,o=Function.prototype,a=o.toString,c=/^\s*function ([^ (]*)/;n&&!("name"in o)&&i(o,"name",{configurable:!0,get:function(){try{return a.call(this).match(c)[1]}catch(t){return""}}})},function(t,e,r){var n=r(42),i=r(6),o=r(8),a=r(10).f,c=r(53),u=r(163),s=c("meta"),f=0,l=Object.isExtensible||function(){return!0},h=function(t){a(t,s,{value:{objectID:"O"+ ++f,weakData:{}}})},p=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,s)){if(!l(t))return"F";if(!e)return"E";h(t)}return t[s].objectID},getWeakData:function(t,e){if(!o(t,s)){if(!l(t))return!0;if(!e)return!1;h(t)}return t[s].weakData},onFreeze:function(t){return u&&p.REQUIRED&&l(t)&&!o(t,s)&&h(t),t}};n[s]=!0},function(t,e,r){"use strict";var n=r(36).forEach,i=r(45),o=r(24),a=i("forEach"),c=o("forEach");t.exports=a&&c?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,r){"use strict";var n=r(91),i=r(7),o=r(19),a=r(23),c=r(55),u=r(29),s=r(124),f=r(92),l=Math.max,h=Math.min,p=Math.floor,v=/\$([$&'`]|\d\d?|<[^>]*>)/g,d=/\$([$&'`]|\d\d?)/g;n("replace",2,(function(t,e,r,n){var y=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=n.REPLACE_KEEPS_$0,b=y?"$":"$0";return[function(r,n){var i=u(this),o=null==r?void 0:r[t];return void 0!==o?o.call(r,i,n):e.call(String(i),r,n)},function(t,n){if(!y&&g||"string"==typeof n&&-1===n.indexOf(b)){var o=r(e,t,this,n);if(o.done)return o.value}var u=i(t),p=String(this),v="function"==typeof n;v||(n=String(n));var d=u.global;if(d){var w=u.unicode;u.lastIndex=0}for(var x=[];;){var S=f(u,p);if(null===S)break;if(x.push(S),!d)break;""===String(S[0])&&(u.lastIndex=s(p,a(u.lastIndex),w))}for(var O,j="",k=0,_=0;_<x.length;_++){S=x[_];for(var E=String(S[0]),P=l(h(c(S.index),p.length),0),U=[],R=1;R<S.length;R++)U.push(void 0===(O=S[R])?O:String(O));var I=S.groups;if(v){var A=[E].concat(U,P,p);void 0!==I&&A.push(I);var L=String(n.apply(void 0,A))}else L=m(E,p,P,U,I,n);P>=k&&(j+=p.slice(k,P)+L,k=P+E.length)}return j+p.slice(k)}];function m(t,r,n,i,a,c){var u=n+t.length,s=i.length,f=d;return void 0!==a&&(a=o(a),f=v),e.call(c,f,(function(e,o){var c;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return r.slice(0,n);case"'":return r.slice(u);case"<":c=a[o.slice(1,-1)];break;default:var f=+o;if(0===f)return e;if(f>s){var l=p(f/10);return 0===l?e:l<=s?void 0===i[l-1]?o.charAt(1):i[l-1]+o.charAt(1):e}c=i[f-1]}return void 0===c?"":c}))}}))},function(t){t.exports=JSON.parse('{"name":"@schibsted/account-sdk-browser","version":"4.7.3","description":"Schibsted account SDK for browsers","main":"index.js","scripts":{"build":"./build.sh","clean":"rimraf .cache coverage dist docs","docs":"rimraf docs && jsdoc -c ./utils/jsdoc.js --verbose","lint":"eslint .","pretest":"npm run lint","test":"jest","precover":"npm run lint","cover":"jest --coverage","postcover":"codecov"},"author":"","license":"MIT","dependencies":{"tiny-emitter":"^2.1.0"},"devDependencies":{"@babel/core":"^7.11.4","@babel/preset-env":"^7.11.0","babel-loader":"^8.1.0","codecov":"^3.6.5","core-js":"^3.6.5","docdash":"git+https://github.com/torarvid/docdash.git#v0.5.0","eslint":"^6.8.0","eslint-plugin-import":"^2.20.2","jest":"^26.4.2","jest-junit":"^10.0.0","jsdoc":"^3.6.5","node-fetch":"^2.6.0","regenerator-runtime":"^0.13.7","webpack":"^4.44.1","webpack-cli":"^3.3.12","whatwg-url":"^8.0.0"},"repository":{"type":"git","url":"git://github.com/schibsted/account-sdk-browser.git"},"babel":{"presets":[["@babel/preset-env",{"useBuiltIns":"usage","corejs":3,"targets":{"browsers":["> 1%","last 10 chrome major versions","last 10 firefox major versions","last 10 opera major versions","last 2 safari major versions","last 2 ios major versions","last 2 ie major versions","last 5 edge major versions"]}}]]},"typings":"index.d.ts"}')},function(t,e,r){"use strict";window.regeneratorRuntime=r(49);var n=r(137).Identity,i=r(175).Monetization,o=r(176).Payment;t.exports={Identity:n,Monetization:i,Payment:o}},function(t,e,r){"use strict";r.r(e),r.d(e,"Identity",(function(){return j}));r(28),r(32),r(33),r(44),r(107),r(16),r(47),r(80),r(113),r(114),r(81),r(82),r(25),r(85),r(89),r(60),r(62),r(20),r(154),r(26),r(49);var n=r(0),i=r(27),o=r(13),a=r(11),c=r(64),u=r.n(c),s=r(65),f=r(66),l=r(14),h=r(4),p=r(39);function v(t,e,r,n,i,o,a){try{var c=t[o](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,i)}function d(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){v(o,n,i,a,c,"next",t)}function c(t){v(o,n,i,a,c,"throw",t)}a(void 0)}))}}function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=x(t);if(e){var i=x(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return w(this,r)}}function w(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function x(t){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var S=r(135).version,O=function(){return window},j=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(U,t);var e,r,c,u,v,w,x,j,k,_,E,P=m(U);function U(t){var e,r=t.clientId,i=t.redirectUri,o=t.sessionDomain,a=t.env,c=void 0===a?"PRE":a,u=t.log,f=t.window,l=void 0===f?O():f;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,U),e=P.call(this),Object(n.a)(Object(n.d)(r),"clientId parameter is required"),Object(n.a)(Object(n.e)(l),"The reference to window is missing"),Object(n.a)(!i||Object(n.h)(i),"redirectUri parameter is invalid"),Object(n.a)(o&&Object(n.h)(o),"sessionDomain parameter is not a valid URL"),p.a(l),e._sessionInitiatedSent=!1,e.window=l,e.clientId=r,e.cache=new s.a((function(){return e.window&&e.window.sessionStorage})),e.redirectUri=i,e.env=c,e.log=u,e._sessionDomain=o,e._enableSessionCaching=!0,e._session={},e._setSessionServiceUrl(o),e._setSpidServerUrl(c),e._setBffServerUrl(c),e._setOauthServerUrl(c),e._setGlobalSessionServiceUrl(c),e}return e=U,(r=[{key:"_setSpidServerUrl",value:function(t){Object(n.a)(Object(n.f)(t),"url parameter is invalid: ".concat(t)),this._spid=new l.a({serverUrl:Object(o.a)(t,a.a.SPiD),log:this.log,defaultParams:{client_id:this.clientId,redirect_uri:this.redirectUri}})}},{key:"_setOauthServerUrl",value:function(t){Object(n.a)(Object(n.f)(t),"url parameter is invalid: ".concat(t)),this._oauthService=new l.a({serverUrl:Object(o.a)(t,a.a.SPiD),log:this.log,defaultParams:{client_id:this.clientId,redirect_uri:this.redirectUri}})}},{key:"_setBffServerUrl",value:function(t){Object(n.a)(Object(n.f)(t),"url parameter is invalid: ".concat(t)),this._bffService=new l.a({serverUrl:Object(o.a)(t,a.a.BFF),log:this.log,defaultParams:{client_id:this.clientId,redirect_uri:this.redirectUri}})}},{key:"_setSessionServiceUrl",value:function(t){Object(n.a)(Object(n.f)(t),"domain parameter is invalid: ".concat(t));var e="sdrn:".concat(a.b[this.env],":client:").concat(this.clientId);this._sessionService=new l.a({serverUrl:t,log:this.log,defaultParams:{client_sdrn:e,redirect_uri:this.redirectUri,sdk_version:S}})}},{key:"_setGlobalSessionServiceUrl",value:function(t){Object(n.a)(Object(n.f)(t),"url parameter is invalid: ".concat(t));var e="sdrn:".concat(a.b[this.env],":client:").concat(this.clientId);this._globalSessionService=new l.a({serverUrl:Object(o.a)(t,a.a.SESSION_SERVICE),log:this.log,defaultParams:{client_sdrn:e,sdk_version:S}})}},{key:"_emitSessionEvent",value:function(t,e){e.userId&&this.emit("login",e),t.userId&&!e.userId&&this.emit("logout",e),t.userId&&e.userId&&t.userId!==e.userId&&this.emit("userChange",e),t.userId||e.userId?this.emit("sessionChange",e):this.emit("notLoggedin",e),e.userId&&!this._sessionInitiatedSent&&(this._sessionInitiatedSent=!0,this.emit("sessionInit",e)),t.userStatus!==e.userStatus&&this.emit("statusChange",e)}},{key:"_closePopup",value:function(){this.popup&&(this.popup.closed||this.popup.close(),this.popup=null)}},{key:"enableVarnishCookie",value:function(t){var e,r=0;if(Number.isInteger(t))r=t;else if("object"==y(t)){var i=t.expiresIn;r=void 0===i?r:i;var o=t.domain;e=void 0===o?e:o}Object(n.a)(Number.isInteger(r),"'expiresIn' must be an integer"),Object(n.a)(r>=0,"'expiresIn' cannot be negative"),this.setVarnishCookie=!0,this.varnishExpiresIn=r,this.varnishCookieDomain=e}},{key:"_maybeSetVarnishCookie",value:function(t){if(this.setVarnishCookie){var e=new Date;if(this.varnishExpiresIn||"number"==typeof t.expiresIn&&t.expiresIn>0){var r=this.varnishExpiresIn||t.expiresIn;e.setTime(e.getTime()+1e3*r)}else e.setTime(0);var n=this.varnishCookieDomain||("string"==typeof t.baseDomain?t.baseDomain:document.domain)||"",i=["SP_ID=".concat(t.sp_id),"expires=".concat(e.toUTCString()),"path=/","domain=.".concat(n)].join("; ");document.cookie=i}}},{key:"_maybeClearVarnishCookie",value:function(){this.setVarnishCookie&&this._clearVarnishCookie()}},{key:"_clearVarnishCookie",value:function(){var t=this.varnishCookieDomain||(this._session&&"string"==typeof this._session.baseDomain?this._session.baseDomain:document.domain)||"";document.cookie="SP_ID=nothing; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=.".concat(t)}},{key:"logSettings",value:function(){if(!this.log&&!window.console)throw new h.a("You have to provide log method in constructor");var t=this.log||console.log,e={clientId:this.clientId,redirectUri:this.redirectUri,env:this.env,sessionDomain:this._sessionDomain,sdkVersion:S};t("Schibsted account SDK for browsers settings: \n".concat(JSON.stringify(e,null,2)))}},{key:"hasSession",value:function(){var t=this;if(this._hasSessionInProgress)return this._hasSessionInProgress;var e=function(e){if(e.error)throw new h.a("HasSession failed",e.error);return t._maybeSetVarnishCookie(e),t._emitSessionEvent(t._session,e),t._session=e,e},r=function(){var r=d(regeneratorRuntime.mark((function r(){var n,i,o,a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!t._enableSessionCaching){r.next=4;break}if(!(n=t.cache.get("hasSession-cache"))){r.next=4;break}return r.abrupt("return",e(n));case 4:return i=null,r.prev=5,r.next=8,t._sessionService.get("/session");case 8:i=r.sent,r.next=15;break;case 11:throw r.prev=11,r.t0=r.catch(5),r.t0&&400===r.t0.code&&t._enableSessionCaching&&(o=1e3*(r.t0.expiresIn||300),t.cache.set("hasSession-cache",{error:r.t0},o)),r.t0;case 15:return i&&t._enableSessionCaching&&(a=1e3*(i.expiresIn||300),t.cache.set("hasSession-cache",i,a)),r.abrupt("return",e(i));case 17:case"end":return r.stop()}}),r,null,[[5,11]])})));return function(){return r.apply(this,arguments)}}();return this._hasSessionInProgress=r().then((function(e){return t._hasSessionInProgress=!1,e}),(function(e){throw t.emit("error",e),t._hasSessionInProgress=!1,new h.a("HasSession failed",e)})),this._hasSessionInProgress}},{key:"isLoggedIn",value:(E=d(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.hasSession();case 3:return e=t.sent,t.abrupt("return","result"in e);case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return",!1);case 10:case"end":return t.stop()}}),t,this,[[0,7]])}))),function(){return E.apply(this,arguments)})},{key:"clearCachedUserSession",value:function(){this.cache.delete("hasSession-cache")}},{key:"isConnected",value:(_=d(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.hasSession();case 3:return e=t.sent,t.abrupt("return",!!e.result);case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return",!1);case 10:case"end":return t.stop()}}),t,this,[[0,7]])}))),function(){return _.apply(this,arguments)})},{key:"getUser",value:(k=d(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.hasSession();case 2:if((e=t.sent).result){t.next=5;break}throw new h.a("The user is not connected to this merchant");case 5:return t.abrupt("return",Object(i.a)(e));case 6:case"end":return t.stop()}}),t,this)}))),function(){return k.apply(this,arguments)})},{key:"getUserId",value:(j=d(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.hasSession();case 2:if(!(e=t.sent).userId||!e.result){t.next=5;break}return t.abrupt("return",e.userId);case 5:throw new h.a("The user is not connected to this merchant");case 6:case"end":return t.stop()}}),t,this)}))),function(){return j.apply(this,arguments)})},{key:"getUserUuid",value:(x=d(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.hasSession();case 2:if(!(e=t.sent).uuid||!e.result){t.next=5;break}return t.abrupt("return",e.uuid);case 5:throw new h.a("The user is not connected to this merchant");case 6:case"end":return t.stop()}}),t,this)}))),function(){return x.apply(this,arguments)})},{key:"getUserContextData",value:(w=d(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this._globalSessionService.get("/user-context");case 3:return t.abrupt("return",t.sent);case 6:return t.prev=6,t.t0=t.catch(0),t.abrupt("return",null);case 9:case"end":return t.stop()}}),t,this,[[0,6]])}))),function(){return w.apply(this,arguments)})},{key:"login",value:function(t){var e=t.state,r=t.acrValues,n=void 0===r?"":r,i=t.scope,o=void 0===i?"openid":i,a=t.redirectUri,c=void 0===a?this.redirectUri:a,u=t.preferPopup,s=void 0!==u&&u,l=t.loginHint,h=void 0===l?"":l,p=t.tag,v=void 0===p?"":p,d=t.teaser,y=void 0===d?"":d,g=t.maxAge,b=void 0===g?"":g,m=t.locale,w=void 0===m?"":m,x=t.oneStepLogin,S=void 0!==x&&x,O=t.prompt,j=void 0===O?"select_account":O;this._closePopup(),this.cache.delete("hasSession-cache");var k=this.loginUrl({state:e,acrValues:n,scope:o,redirectUri:c,loginHint:h,tag:v,teaser:y,maxAge:b,locale:w,oneStepLogin:S,prompt:j});return s&&(this.popup=f.a(this.window,k,"Schibsted account",{width:360,height:570}),this.popup)?this.popup:(this.window.location.href=k,null)}},{key:"getSpId",value:(v=d(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.hasSession();case 3:return e=t.sent,t.abrupt("return",e.sp_id||null);case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return",null);case 10:case"end":return t.stop()}}),t,this,[[0,7]])}))),function(){return v.apply(this,arguments)})},{key:"logout",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.redirectUri;this.cache.delete("hasSession-cache"),this._maybeClearVarnishCookie(),this.emit("logout"),this.window.location.href=this.logoutUrl(t)}},{key:"loginUrl",value:function(t){var e=t.state,r=t.acrValues,i=void 0===r?"":r,o=t.scope,a=void 0===o?"openid":o,c=t.redirectUri,u=void 0===c?this.redirectUri:c,s=t.loginHint,f=void 0===s?"":s,l=t.tag,h=void 0===l?"":l,p=t.teaser,v=void 0===p?"":p,d=t.maxAge,g=void 0===d?"":d,b=t.locale,m=void 0===b?"":b,w=t.oneStepLogin,x=void 0!==w&&w,S=t.prompt,O=void 0===S?"select_account":S;"object"!==y(arguments[0])&&(e=arguments[0],i=arguments[1],a=arguments[2]||a,u=arguments[3]||u,f=arguments[4]||f,h=arguments[5]||h,v=arguments[6]||v,g=isNaN(arguments[7])?g:arguments[7]);var j=function(t){return Object(n.g)(t,["password","otp","sms","eid-no","eid-se","eid-fi","eid"],!0)};return Object(n.a)(!i||Object(n.g)(i,["","otp-email"],!0)||i.split(" ").every(j),"The acrValues parameter is not acceptable: ".concat(i)),Object(n.a)(Object(n.h)(u),"loginUrl(): redirectUri must be a valid url but is ".concat(u)),Object(n.a)(Object(n.d)(e),"the state parameter should be a non empty string but it is ".concat(e)),this._oauthService.makeUrl("oauth/authorize",{response_type:"code",redirect_uri:u,scope:a,state:e,acr_values:i,login_hint:f,tag:h,teaser:v,max_age:g,locale:m,one_step_login:x||"",prompt:i?"":O})}},{key:"logoutUrl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.redirectUri;Object(n.a)(Object(n.h)(t),"logoutUrl(): redirectUri is invalid");var e={redirect_uri:t};return this._sessionService.makeUrl("logout",e)}},{key:"accountUrl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.redirectUri;return this._spid.makeUrl("profile-pages",{response_type:"code",redirect_uri:t})}},{key:"phonesUrl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.redirectUri;return this._spid.makeUrl("profile-pages/about-you/phone",{response_type:"code",redirect_uri:t})}},{key:"showSimplifiedLoginWidget",value:(u=d(regeneratorRuntime.mark((function t(e,r){var n,i,o,a,c=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getUserContextData();case 2:return n=t.sent,i={client_id:this.clientId},r&&r.encoding&&(i.encoding=r.encoding),o=this._bffService.makeUrl("simplified-login-widget",i,!1),a=function(){var t=d(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof e.state){t.next=4;break}return t.next=3,e.state();case 3:e.state=t.sent;case 4:return t.abrupt("return",e);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),t.abrupt("return",new Promise((function(t,i){if(!n||!n.display_text||!n.identifier)return i(new h.a("Missing user data"));var u={displayText:n.display_text,env:c.env,clientName:n.client_name,clientId:c.clientId,providerId:n.provider_id,windowWidth:function(){return window.innerWidth},windowOnResize:function(t){window.onresize=t}};r&&r.locale&&(u.locale=r.locale);var s=function(){var t=d(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=c,t.t1=Object,t.next=4,a(e);case 4:t.t2=t.sent,t.t3={loginHint:n.identifier},t.t4=t.t1.assign.call(t.t1,t.t2,t.t3),t.t0.login.call(t.t0,t.t4);case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),f=function(){var t=d(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=c,t.t1=Object,t.next=4,a(e);case 4:t.t2=t.sent,t.t3={loginHint:n.identifier,prompt:"login"},t.t4=t.t1.assign.call(t.t1,t.t2,t.t3),t.t0.login.call(t.t0,t.t4);case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();if(window.openSimplifiedLoginWidget)return window.openSimplifiedLoginWidget(u,s,f),t(!0);var l=document.createElement("script");l.type="text/javascript",l.src=o,l.onload=function(){window.openSimplifiedLoginWidget(u,s,f),t(!0)},l.onerror=function(){i(new h.a("Error when loading simplified login widget content"))},document.getElementsByTagName("body")[0].appendChild(l)})));case 8:case"end":return t.stop()}}),t,this)}))),function(t,e){return u.apply(this,arguments)})}])&&g(e.prototype,r),c&&g(e,c),U}(u.a);e.default=j},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(2),i=r(69),o=n.WeakMap;t.exports="function"==typeof o&&/native code/.test(i(o))},function(t,e,r){var n=r(22),i=r(54),o=r(73),a=r(7);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=o.f;return r?e.concat(r(t)):e}},function(t,e,r){var n=r(17),i=r(54).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(n(t))}},function(t,e,r){var n=r(6);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,r){var n=r(29),i="["+r(144)+"]",o=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$"),c=function(t){return function(e){var r=String(n(e));return 1&t&&(r=r.replace(o,"")),2&t&&(r=r.replace(a,"")),r}};t.exports={start:c(1),end:c(2),trim:c(3)}},function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(t,e,r){var n=r(6),i=Math.floor;t.exports=function(t){return!n(t)&&isFinite(t)&&i(t)===t}},function(t,e,r){"use strict";var n=r(83),i=r(84);t.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},function(t,e,r){var n=r(2);t.exports=n.Promise},function(t,e,r){var n,i,o,a,c,u,s,f,l=r(2),h=r(40).f,p=r(18),v=r(120).set,d=r(121),y=l.MutationObserver||l.WebKitMutationObserver,g=l.process,b=l.Promise,m="process"==p(g),w=h(l,"queueMicrotask"),x=w&&w.value;x||(n=function(){var t,e;for(m&&(t=g.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?a():o=void 0,t}}o=void 0,t&&t.enter()},m?a=function(){g.nextTick(n)}:y&&!d?(c=!0,u=document.createTextNode(""),new y(n).observe(u,{characterData:!0}),a=function(){u.data=c=!c}):b&&b.resolve?(s=b.resolve(void 0),f=s.then,a=function(){f.call(s,n)}):a=function(){v.call(l,n)}),t.exports=x||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},function(t,e,r){var n=r(7),i=r(6),o=r(122);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},function(t,e,r){var n=r(2);t.exports=function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,r){"use strict";var n=r(38),i=r(6),o=[].slice,a={},c=function(t,e,r){if(!(e in a)){for(var n=[],i=0;i<e;i++)n[i]="a["+i+"]";a[e]=Function("C,a","return new C("+n.join(",")+")")}return a[e](t,r)};t.exports=Function.bind||function(t){var e=n(this),r=o.call(arguments,1),a=function(){var n=r.concat(o.call(arguments));return this instanceof a?c(e,n.length,n):e.apply(t,n)};return i(e.prototype)&&(a.prototype=e.prototype),a}},function(t,e,r){"use strict";var n=r(3);function i(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=n((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=n((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},function(t,e,r){"use strict";var n=r(91),i=r(155),o=r(7),a=r(29),c=r(119),u=r(124),s=r(23),f=r(92),l=r(61),h=r(3),p=[].push,v=Math.min,d=!h((function(){return!RegExp(4294967295,"y")}));n("split",2,(function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n=String(a(this)),o=void 0===r?4294967295:r>>>0;if(0===o)return[];if(void 0===t)return[n];if(!i(t))return e.call(n,t,o);for(var c,u,s,f=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,d=new RegExp(t.source,h+"g");(c=l.call(d,n))&&!((u=d.lastIndex)>v&&(f.push(n.slice(v,c.index)),c.length>1&&c.index<n.length&&p.apply(f,c.slice(1)),s=c[0].length,v=u,f.length>=o));)d.lastIndex===c.index&&d.lastIndex++;return v===n.length?!s&&d.test("")||f.push(""):f.push(n.slice(v)),f.length>o?f.slice(0,o):f}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var i=a(this),o=null==e?void 0:e[t];return void 0!==o?o.call(e,i,r):n.call(String(i),e,r)},function(t,i){var a=r(n,t,this,i,n!==e);if(a.done)return a.value;var l=o(t),h=String(this),p=c(l,RegExp),y=l.unicode,g=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(d?"y":"g"),b=new p(d?l:"^(?:"+l.source+")",g),m=void 0===i?4294967295:i>>>0;if(0===m)return[];if(0===h.length)return null===f(b,h)?[h]:[];for(var w=0,x=0,S=[];x<h.length;){b.lastIndex=d?x:0;var O,j=f(b,d?h:h.slice(x));if(null===j||(O=v(s(b.lastIndex+(d?0:x)),h.length))===w)x=u(h,x,y);else{if(S.push(h.slice(w,x)),S.length===m)return S;for(var k=1;k<=j.length-1;k++)if(S.push(j[k]),S.length===m)return S;x=w=O}}return S.push(h.slice(w)),S}]}),!d)},function(t,e,r){var n=r(6),i=r(18),o=r(5)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},function(t,e,r){"use strict";var n=r(1),i=r(36).some,o=r(45),a=r(24),c=o("some"),u=a("some");n({target:"Array",proto:!0,forced:!c||!u},{some:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";var n=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",a=Math.floor,c=String.fromCharCode,u=function(t){return t+22+75*(t<26)},s=function(t,e,r){var n=0;for(t=r?a(t/700):t>>1,t+=a(t/e);t>455;n+=36)t=a(t/35);return a(n+36*t/(t+38))},f=function(t){var e,r,n=[],i=(t=function(t){for(var e=[],r=0,n=t.length;r<n;){var i=t.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var o=t.charCodeAt(r++);56320==(64512&o)?e.push(((1023&i)<<10)+(1023&o)+65536):(e.push(i),r--)}else e.push(i)}return e}(t)).length,f=128,l=0,h=72;for(e=0;e<t.length;e++)(r=t[e])<128&&n.push(c(r));var p=n.length,v=p;for(p&&n.push("-");v<i;){var d=2147483647;for(e=0;e<t.length;e++)(r=t[e])>=f&&r<d&&(d=r);var y=v+1;if(d-f>a((2147483647-l)/y))throw RangeError(o);for(l+=(d-f)*y,f=d,e=0;e<t.length;e++){if((r=t[e])<f&&++l>2147483647)throw RangeError(o);if(r==f){for(var g=l,b=36;;b+=36){var m=b<=h?1:b>=h+26?26:b-h;if(g<m)break;var w=g-m,x=36-m;n.push(c(u(m+w%x))),g=a(w/x)}n.push(c(u(g))),h=s(l,y,v==p),l=0,++v}}++l,++f}return n.join("")};t.exports=function(t){var e,r,o=[],a=t.toLowerCase().replace(i,".").split(".");for(e=0;e<a.length;e++)r=a[e],o.push(n.test(r)?"xn--"+f(r):r);return o.join(".")}},function(t,e,r){"use strict";r(16);var n=r(1),i=r(22),o=r(128),a=r(12),c=r(86),u=r(31),s=r(109),f=r(21),l=r(48),h=r(8),p=r(37),v=r(84),d=r(7),y=r(6),g=r(30),b=r(34),m=r(159),w=r(59),x=r(5),S=i("fetch"),O=i("Headers"),j=x("iterator"),k=f.set,_=f.getterFor("URLSearchParams"),E=f.getterFor("URLSearchParamsIterator"),P=/\+/g,U=Array(4),R=function(t){return U[t-1]||(U[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},I=function(t){try{return decodeURIComponent(t)}catch(e){return t}},A=function(t){var e=t.replace(P," "),r=4;try{return decodeURIComponent(e)}catch(t){for(;r;)e=e.replace(R(r--),I);return e}},L=/[!'()~]|%20/g,C={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},T=function(t){return C[t]},N=function(t){return encodeURIComponent(t).replace(L,T)},D=function(t,e){if(e)for(var r,n,i=e.split("&"),o=0;o<i.length;)(r=i[o++]).length&&(n=r.split("="),t.push({key:A(n.shift()),value:A(n.join("="))}))},F=function(t){this.entries.length=0,D(this.entries,t)},M=function(t,e){if(t<e)throw TypeError("Not enough arguments")},q=s((function(t,e){k(this,{type:"URLSearchParamsIterator",iterator:m(_(t).entries),kind:e})}),"Iterator",(function(){var t=E(this),e=t.kind,r=t.iterator.next(),n=r.value;return r.done||(r.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),r})),B=function(){l(this,B,"URLSearchParams");var t,e,r,n,i,o,a,c,u,s=arguments.length>0?arguments[0]:void 0,f=this,p=[];if(k(f,{type:"URLSearchParams",entries:p,updateURL:function(){},updateSearchParams:F}),void 0!==s)if(y(s))if("function"==typeof(t=w(s)))for(r=(e=t.call(s)).next;!(n=r.call(e)).done;){if((a=(o=(i=m(d(n.value))).next).call(i)).done||(c=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");p.push({key:a.value+"",value:c.value+""})}else for(u in s)h(s,u)&&p.push({key:u,value:s[u]+""});else D(p,"string"==typeof s?"?"===s.charAt(0)?s.slice(1):s:s+"")},V=B.prototype;c(V,{append:function(t,e){M(arguments.length,2);var r=_(this);r.entries.push({key:t+"",value:e+""}),r.updateURL()},delete:function(t){M(arguments.length,1);for(var e=_(this),r=e.entries,n=t+"",i=0;i<r.length;)r[i].key===n?r.splice(i,1):i++;e.updateURL()},get:function(t){M(arguments.length,1);for(var e=_(this).entries,r=t+"",n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){M(arguments.length,1);for(var e=_(this).entries,r=t+"",n=[],i=0;i<e.length;i++)e[i].key===r&&n.push(e[i].value);return n},has:function(t){M(arguments.length,1);for(var e=_(this).entries,r=t+"",n=0;n<e.length;)if(e[n++].key===r)return!0;return!1},set:function(t,e){M(arguments.length,1);for(var r,n=_(this),i=n.entries,o=!1,a=t+"",c=e+"",u=0;u<i.length;u++)(r=i[u]).key===a&&(o?i.splice(u--,1):(o=!0,r.value=c));o||i.push({key:a,value:c}),n.updateURL()},sort:function(){var t,e,r,n=_(this),i=n.entries,o=i.slice();for(i.length=0,r=0;r<o.length;r++){for(t=o[r],e=0;e<r;e++)if(i[e].key>t.key){i.splice(e,0,t);break}e===r&&i.push(t)}n.updateURL()},forEach:function(t){for(var e,r=_(this).entries,n=p(t,arguments.length>1?arguments[1]:void 0,3),i=0;i<r.length;)n((e=r[i++]).value,e.key,this)},keys:function(){return new q(this,"keys")},values:function(){return new q(this,"values")},entries:function(){return new q(this,"entries")}},{enumerable:!0}),a(V,j,V.entries),a(V,"toString",(function(){for(var t,e=_(this).entries,r=[],n=0;n<e.length;)t=e[n++],r.push(N(t.key)+"="+N(t.value));return r.join("&")}),{enumerable:!0}),u(B,"URLSearchParams"),n({global:!0,forced:!o},{URLSearchParams:B}),o||"function"!=typeof S||"function"!=typeof O||n({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,r,n,i=[t];return arguments.length>1&&(y(e=arguments[1])&&(r=e.body,"URLSearchParams"===v(r)&&((n=e.headers?new O(e.headers):new O).has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=g(e,{body:b(0,String(r)),headers:b(0,n)}))),i.push(e)),S.apply(this,i)}}),t.exports={URLSearchParams:B,getState:_}},function(t,e,r){var n=r(7),i=r(59);t.exports=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return n(e.call(t))}},function(t,e,r){"use strict";var n=r(1),i=r(71).includes,o=r(108);n({target:"Array",proto:!0,forced:!r(24)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(t,e,r){"use strict";var n=r(162),i=r(164);t.exports=n("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},function(t,e,r){"use strict";var n=r(1),i=r(2),o=r(56),a=r(12),c=r(132),u=r(87),s=r(48),f=r(6),l=r(3),h=r(88),p=r(31),v=r(112);t.exports=function(t,e,r){var d=-1!==t.indexOf("Map"),y=-1!==t.indexOf("Weak"),g=d?"set":"add",b=i[t],m=b&&b.prototype,w=b,x={},S=function(t){var e=m[t];a(m,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(y&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!f(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(y&&!f(t))&&e.call(this,0===t?0:t)}:function(t,r){return e.call(this,0===t?0:t,r),this})};if(o(t,"function"!=typeof b||!(y||m.forEach&&!l((function(){(new b).entries().next()})))))w=r.getConstructor(e,t,d,g),c.REQUIRED=!0;else if(o(t,!0)){var O=new w,j=O[g](y?{}:-0,1)!=O,k=l((function(){O.has(1)})),_=h((function(t){new b(t)})),E=!y&&l((function(){for(var t=new b,e=5;e--;)t[g](e,e);return!t.has(-0)}));_||((w=e((function(e,r){s(e,w,t);var n=v(new b,e,w);return null!=r&&u(r,n[g],n,d),n}))).prototype=m,m.constructor=w),(k||E)&&(S("delete"),S("has"),d&&S("get")),(E||j)&&S(g),y&&m.clear&&delete m.clear}return x[t]=w,n({global:!0,forced:w!=b},x),p(w,t),y||r.setStrong(w,t,d),w}},function(t,e,r){var n=r(3);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,r){"use strict";var n=r(10).f,i=r(30),o=r(86),a=r(37),c=r(48),u=r(87),s=r(77),f=r(116),l=r(9),h=r(132).fastKey,p=r(21),v=p.set,d=p.getterFor;t.exports={getConstructor:function(t,e,r,s){var f=t((function(t,n){c(t,f,e),v(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=n&&u(n,t[s],t,r)})),p=d(e),y=function(t,e,r){var n,i,o=p(t),a=g(t,e);return a?a.value=r:(o.last=a={index:i=h(e,!0),key:e,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=a),n&&(n.next=a),l?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},g=function(t,e){var r,n=p(t),i=h(e);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==e)return r};return o(f.prototype,{clear:function(){for(var t=p(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=p(this),r=g(this,t);if(r){var n=r.next,i=r.previous;delete e.index[r.index],r.removed=!0,i&&(i.next=n),n&&(n.previous=i),e.first==r&&(e.first=n),e.last==r&&(e.last=i),l?e.size--:this.size--}return!!r},forEach:function(t){for(var e,r=p(this),n=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!g(this,t)}}),o(f.prototype,r?{get:function(t){var e=g(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),l&&n(f.prototype,"size",{get:function(){return p(this).size}}),f},setStrong:function(t,e,r){var n=e+" Iterator",i=d(e),o=d(n);s(t,e,(function(t,e){v(this,{type:n,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),f(e)}}},function(t,e,r){"use strict";var n=r(1),i=r(133);n({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},function(t,e,r){var n=r(1),i=r(129);n({target:"Array",stat:!0,forced:!r(88)((function(t){Array.from(t)}))},{from:i})},function(t,e,r){"use strict";var n=r(1),i=r(6),o=r(57),a=r(99),c=r(23),u=r(17),s=r(75),f=r(5),l=r(58),h=r(24),p=l("slice"),v=h("slice",{ACCESSORS:!0,0:0,1:2}),d=f("species"),y=[].slice,g=Math.max;n({target:"Array",proto:!0,forced:!p||!v},{slice:function(t,e){var r,n,f,l=u(this),h=c(l.length),p=a(t,h),v=a(void 0===e?h:e,h);if(o(l)&&("function"!=typeof(r=l.constructor)||r!==Array&&!o(r.prototype)?i(r)&&null===(r=r[d])&&(r=void 0):r=void 0,r===Array||void 0===r))return y.call(l,p,v);for(n=new(void 0===r?Array:r)(g(v-p,0)),f=0;p<v;p++,f++)p in l&&s(n,f,l[p]);return n.length=f,n}})},function(t,e,r){var n=r(1),i=r(169).entries;n({target:"Object",stat:!0},{entries:function(t){return i(t)}})},function(t,e,r){var n=r(9),i=r(43),o=r(17),a=r(50).f,c=function(t){return function(e){for(var r,c=o(e),u=i(c),s=u.length,f=0,l=[];s>f;)r=u[f++],n&&!a.call(c,r)||l.push(t?[r,c[r]]:c[r]);return l}};t.exports={entries:c(!0),values:c(!1)}},function(t,e,r){var n=r(2),i=r(125),o=r(133),a=r(15);for(var c in i){var u=n[c],s=u&&u.prototype;if(s&&s.forEach!==o)try{a(s,"forEach",o)}catch(t){s.forEach=o}}},function(t,e,r){r(1)({target:"Number",stat:!0},{isFinite:r(172)})},function(t,e,r){var n=r(2).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&n(t)}},function(t,e,r){"use strict";var n=r(91),i=r(7),o=r(29),a=r(174),c=r(92);n("search",1,(function(t,e,r){return[function(e){var r=o(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var o=i(t),u=String(this),s=o.lastIndex;a(s,0)||(o.lastIndex=0);var f=c(o,u);return a(o.lastIndex,s)||(o.lastIndex=s),null===f?-1:f.index}]}))},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,r){"use strict";r.r(e),r.d(e,"Monetization",(function(){return x}));r(28),r(32),r(33),r(44),r(16),r(47),r(81),r(82),r(25),r(85),r(89),r(62),r(20),r(26),r(49);var n=r(0),i=r(13),o=r(11),a=r(64),c=r.n(a),u=r(14),s=r(65),f=r(39),l=r(4);function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e,r,n,i,o,a){try{var c=t[o](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,i)}function v(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=b(t);if(e){var i=b(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return g(this,r)}}function g(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=r(135).version,w=function(){return window},x=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(b,t);var e,r,a,c,h,g=y(b);function b(t){var e,r=t.clientId,i=t.redirectUri,o=t.env,a=void 0===o?"PRE":o,c=t.sessionDomain,u=t.window,l=void 0===u?w():u;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,b),e=g.call(this),f.a(l),Object(n.a)(Object(n.d)(r),"clientId parameter is required"),e.cache=new s.a((function(){return l&&l.sessionStorage})),e.clientId=r,e.env=a,e.redirectUri=i,e._setSpidServerUrl(a),c&&(Object(n.a)(Object(n.h)(c),"sessionDomain parameter is not a valid URL"),e._setSessionServiceUrl(c)),e}return e=b,(r=[{key:"_setSpidServerUrl",value:function(t){Object(n.a)(Object(n.f)(t),"url parameter is invalid: ".concat(t)),this._spid=new u.a({serverUrl:Object(i.a)(t,o.a.SPiD),defaultParams:{client_id:this.clientId,redirect_uri:this.redirectUri}})}},{key:"_setSessionServiceUrl",value:function(t){Object(n.a)(Object(n.f)(t),"domain parameter is invalid: ".concat(t));var e="sdrn:".concat(o.b[this.env],":client:").concat(this.clientId);this._sessionService=new u.a({serverUrl:t,log:this.log,defaultParams:{client_sdrn:e,redirect_uri:this.redirectUri,sdk_version:m}})}},{key:"hasAccess",value:(c=regeneratorRuntime.mark((function t(e,r){var n,i,o,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._sessionService){t.next=2;break}throw new l.a("hasAccess can only be called if 'sessionDomain' is configured");case 2:if(r){t.next=4;break}throw new l.a("'userId' must be specified");case 4:if(Array.isArray(e)){t.next=6;break}throw new l.a("'productIds' must be an array");case 6:if(n=e.sort(),i=this._accessCacheKey(e,r),o=this.cache.get(i)){t.next=15;break}return t.next=12,this._sessionService.get("/hasAccess/".concat(n.join(",")));case 12:o=t.sent,a=o.ttl,this.cache.set(i,o,1e3*a);case 15:if(o.entitled){t.next=17;break}return t.abrupt("return",null);case 17:return this.emit("hasAccess",{ids:n,data:o}),t.abrupt("return",o);case 19:case"end":return t.stop()}}),t,this)})),h=function(){var t=this,e=arguments;return new Promise((function(r,n){var i=c.apply(t,e);function o(t){p(i,r,n,o,a,"next",t)}function a(t){p(i,r,n,o,a,"throw",t)}o(void 0)}))},function(t,e){return h.apply(this,arguments)})},{key:"clearCachedAccessResult",value:function(t,e){this.cache.delete(this._accessCacheKey(t,e))}},{key:"_accessCacheKey",value:function(t,e){return"prd_".concat(t.sort(),"_").concat(e)}},{key:"subscriptionsUrl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.redirectUri;return Object(n.a)(Object(n.h)(t),"subscriptionsUrl(): redirectUri is invalid"),this._spid.makeUrl("account/subscriptions",{redirect_uri:t})}},{key:"productsUrl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.redirectUri;return Object(n.a)(Object(n.h)(t),"productsUrl(): redirectUri is invalid"),this._spid.makeUrl("account/products",{redirect_uri:t})}}])&&v(e.prototype,r),a&&v(e,a),b}(c.a);e.default=x},function(t,e,r){"use strict";r.r(e),r.d(e,"Payment",(function(){return l}));var n=r(0),i=r(13),o=r(11),a=r(66),c=r(14),u=r(39);function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var f=function(){return window},l=function(){function t(e){var r=e.clientId,i=e.redirectUri,o=e.env,a=void 0===o?"PRE":o,c=e.publisher,s=e.window,l=void 0===s?f():s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),u.a(l),Object(n.a)(Object(n.d)(r),"clientId parameter is required"),this.clientId=r,this.redirectUri=i,this.window=l,this.publisher=c,this._setSpidServerUrl(a),this._setBffServerUrl(a)}var e,r,l;return e=t,(r=[{key:"_setSpidServerUrl",value:function(t){Object(n.a)(Object(n.f)(t),"url parameter is invalid: ".concat(t)),this._spid=new c.a({serverUrl:Object(i.a)(t,o.a.SPiD),defaultParams:{client_id:this.clientId,redirect_uri:this.redirectUri}})}},{key:"_setBffServerUrl",value:function(t){Object(n.a)(Object(n.f)(t),"url parameter is invalid: ".concat(t)),this._bff=new c.a({serverUrl:Object(i.a)(t,o.a.BFF),defaultParams:{client_id:this.clientId,redirect_uri:this.redirectUri}})}},{key:"_closePopup",value:function(){this.popup&&(this.popup.closed||this.popup.close(),this.popup=null)}},{key:"payWithPaylink",value:function(t){var e=t.paylink,r=t.preferPopup,i=t.redirectUri,o=void 0===i?this.redirectUri:i;Object(n.a)(Object(n.h)(o),"payWithPaylink(): redirectUri is invalid"),this._closePopup();var c=this.purchasePaylinkUrl(e,o);return r&&(this.popup=a.a(this.window,c,"Schibsted account",{width:360,height:570}),this.popup)?this.popup:(this.window.location.href=c,null)}},{key:"purchaseHistoryUrl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.redirectUri;return Object(n.a)(Object(n.h)(t),"purchaseHistoryUrl(): redirectUri is invalid"),this._spid.makeUrl("account/purchasehistory",{redirect_uri:t})}},{key:"redeemUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.redirectUri;return Object(n.a)(Object(n.h)(e),"redeemUrl(): redirectUri is invalid"),this._spid.makeUrl("account/redeem",{voucher_code:t})}},{key:"purchasePaylinkUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.redirectUri;return Object(n.a)(Object(n.h)(e),"purchasePaylinkUrl(): redirectUri is invalid"),Object(n.a)(Object(n.d)(t),"purchasePaylinkUrl(): paylinkId is required"),this._bff.makeUrl("payment/purchase",{paylink:t,redirect_uri:e})}},{key:"purchaseProductFlowUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.redirectUri;return Object(n.a)(Object(n.h)(e),"purchaseProductUrl(): redirectUri is invalid"),Object(n.a)(Object(n.d)(t),"purchaseProductFlowUrl(): productId is required"),this._bff.makeUrl("flow/checkout",{response_type:"code",flow:"payment",product_id:t,redirect_uri:e})}},{key:"purchaseCampaignFlowUrl",value:function(t,e,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.redirectUri;return Object(n.a)(Object(n.h)(i),"purchaseCampaignFlowUrl(): redirectUri is invalid"),Object(n.a)(Object(n.d)(t),"purchaseCampaignFlowUrl(): campaignId is required"),Object(n.a)(Object(n.d)(e),"purchaseCampaignFlowUrl(): productId is required"),this._bff.makeUrl("flow/checkout",{response_type:"code",flow:"payment",campaign_id:t,product_id:e,voucher_code:r,redirect_uri:i})}},{key:"purchasePromoCodeProductFlowUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.redirectUri;return Object(n.a)(Object(n.h)(r),"purchasePromoCodeProductFlowUrl(): redirectUri is invalid"),Object(n.a)(Object(n.d)(t),"purchasePromoCodeProductFlowUrl(): code is required"),Object(n.a)(Object(n.d)(this.publisher),"purchasePromoCodeProductFlowUrl(): publisher is required in the constructor"),this._bff.makeUrl("payment/purchase/code",{code:t,publisher:this.publisher,state:e,redirect_uri:r})}}])&&s(e.prototype,r),l&&s(e,l),t}();e.default=l}]);
2
2
  //# sourceMappingURL=index.min.js.map