UNPKG

135 kBJavaScriptView Raw
1
2'use strict';
3(function () {
4 var doc = document;
5 var currentScript = doc.currentScript;
6
7 // Safari 10 support type="module" but still download and executes the nomodule script
8 if (!currentScript || !currentScript.hasAttribute('nomodule') || !('onbeforeload' in currentScript)) {
9
10 /*!
11es6-promise - a tiny implementation of Promises/A+.
12Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
13Licensed under MIT license
14See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
15https://cdn.jsdelivr.net/npm/es6-promise/dist/es6-promise.auto.min.js
16v4.2.8
17*/
18!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.ES6Promise=e()}(this,function(){"use strict";function t(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}function e(t){return"function"==typeof t}function n(t){W=t}function r(t){z=t}function o(){return function(){return process.nextTick(a)}}function i(){return"undefined"!=typeof U?function(){U(a)}:c()}function s(){var t=0,e=new H(a),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function u(){var t=new MessageChannel;return t.port1.onmessage=a,function(){return t.port2.postMessage(0)}}function c(){var t=setTimeout;return function(){return t(a,1)}}function a(){for(var t=0;t<N;t+=2){var e=Q[t],n=Q[t+1];e(n),Q[t]=void 0,Q[t+1]=void 0}N=0}function f(){try{var t=Function("return this")().require("vertx");return U=t.runOnLoop||t.runOnContext,i()}catch(e){return c()}}function l(t,e){var n=this,r=new this.constructor(p);void 0===r[V]&&x(r);var o=n._state;if(o){var i=arguments[o-1];z(function(){return T(o,r,i,n._result)})}else j(n,r,t,e);return r}function h(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(p);return w(n,t),n}function p(){}function v(){return new TypeError("You cannot resolve a promise with itself")}function d(){return new TypeError("A promises callback cannot return that same promise.")}function _(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}function y(t,e,n){z(function(t){var r=!1,o=_(n,e,function(n){r||(r=!0,e!==n?w(t,n):A(t,n))},function(e){r||(r=!0,S(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,S(t,o))},t)}function m(t,e){e._state===Z?A(t,e._result):e._state===$?S(t,e._result):j(e,void 0,function(e){return w(t,e)},function(e){return S(t,e)})}function b(t,n,r){n.constructor===t.constructor&&r===l&&n.constructor.resolve===h?m(t,n):void 0===r?A(t,n):e(r)?y(t,n,r):A(t,n)}function w(e,n){if(e===n)S(e,v());else if(t(n)){var r=void 0;try{r=n.then}catch(o){return void S(e,o)}b(e,n,r)}else A(e,n)}function g(t){t._onerror&&t._onerror(t._result),E(t)}function A(t,e){t._state===X&&(t._result=e,t._state=Z,0!==t._subscribers.length&&z(E,t))}function S(t,e){t._state===X&&(t._state=$,t._result=e,z(g,t))}function j(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+Z]=n,o[i+$]=r,0===i&&t._state&&z(E,t)}function E(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,o=void 0,i=t._result,s=0;s<e.length;s+=3)r=e[s],o=e[s+n],r?T(n,r,o,i):o(i);t._subscribers.length=0}}function T(t,n,r,o){var i=e(r),s=void 0,u=void 0,c=!0;if(i){try{s=r(o)}catch(a){c=!1,u=a}if(n===s)return void S(n,d())}else s=o;n._state!==X||(i&&c?w(n,s):c===!1?S(n,u):t===Z?A(n,s):t===$&&S(n,s))}function M(t,e){try{e(function(e){w(t,e)},function(e){S(t,e)})}catch(n){S(t,n)}}function P(){return tt++}function x(t){t[V]=tt++,t._state=void 0,t._result=void 0,t._subscribers=[]}function C(){return new Error("Array Methods must be provided an Array")}function O(t){return new et(this,t).promise}function k(t){var e=this;return new e(L(t)?function(n,r){for(var o=t.length,i=0;i<o;i++)e.resolve(t[i]).then(n,r)}:function(t,e){return e(new TypeError("You must pass an array to race."))})}function F(t){var e=this,n=new e(p);return S(n,t),n}function Y(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function q(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function D(){var t=void 0;if("undefined"!=typeof global)t=global;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;if(n){var r=null;try{r=Object.prototype.toString.call(n.resolve())}catch(e){}if("[object Promise]"===r&&!n.cast)return}t.Promise=nt}var K=void 0;K=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var L=K,N=0,U=void 0,W=void 0,z=function(t,e){Q[N]=t,Q[N+1]=e,N+=2,2===N&&(W?W(a):R())},B="undefined"!=typeof window?window:void 0,G=B||{},H=G.MutationObserver||G.WebKitMutationObserver,I="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),J="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,Q=new Array(1e3),R=void 0;R=I?o():H?s():J?u():void 0===B&&"function"==typeof require?f():c();var V=Math.random().toString(36).substring(2),X=void 0,Z=1,$=2,tt=0,et=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(p),this.promise[V]||x(this.promise),L(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?A(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&A(this.promise,this._result))):S(this.promise,C())}return t.prototype._enumerate=function(t){for(var e=0;this._state===X&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===h){var o=void 0,i=void 0,s=!1;try{o=t.then}catch(u){s=!0,i=u}if(o===l&&t._state!==X)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(n===nt){var c=new n(p);s?S(c,i):b(c,t,o),this._willSettleAt(c,e)}else this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(r(t),e)},t.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===X&&(this._remaining--,t===$?S(r,n):this._result[e]=n),0===this._remaining&&A(r,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;j(t,void 0,function(t){return n._settledAt(Z,e,t)},function(t){return n._settledAt($,e,t)})},t}(),nt=function(){function t(e){this[V]=P(),this._result=this._state=void 0,this._subscribers=[],p!==e&&("function"!=typeof e&&Y(),this instanceof t?M(this,e):q())}return t.prototype["catch"]=function(t){return this.then(null,t)},t.prototype["finally"]=function(t){var n=this,r=n.constructor;return e(t)?n.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):n.then(t,t)},t}();return nt.prototype.then=l,nt.all=O,nt.race=k,nt.resolve=h,nt.reject=F,nt._setScheduler=n,nt._setAsap=r,nt._asap=z,nt.polyfill=D,nt.Promise=nt,nt.polyfill(),nt});
19
20/**
21 * core-js 3.2.0
22 * https://github.com/zloirock/core-js
23 * License: http://rock.mit-license.org
24 * © 2019 Denis Pushkarev (zloirock.ru)
25 */
26!function (undefined) { 'use strict'; !function(t){var r={};function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:e})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,r){if(1&r&&(t=n(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var o in t)n.d(e,o,function(r){return t[r]}.bind(null,o));return e},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},n.p="",n(n.s=106)}([function(t,r,n){var e=n(4),o=n(20).f,i=n(16),u=n(15),a=n(60),c=n(108),s=n(44);t.exports=function(t,r){var n,f,l,h,p,v=t.target,g=t.global,d=t.stat;if(n=g?e:d?e[v]||a(v,{}):(e[v]||{}).prototype)for(f in r){if(h=r[f],l=t.noTargetGet?(p=o(n,f))&&p.value:n[f],!s(g?f:v+(d?".":"#")+f,t.forced)&&void 0!==l){if(typeof h==typeof l)continue;c(h,l)}(t.sham||l&&l.sham)&&i(h,"sham",!0),u(n,f,h,t)}}},function(t,r){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,r){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,r,n){var e=n(4),o=n(40),i=n(62),u=n(110),a=e.Symbol,c=o("wks");t.exports=function(t){return c[t]||(c[t]=u&&a[t]||(u?a:i)("Symbol."+t))}},function(t,r){var n="object",e=function(t){return t&&t.Math==Math&&t};t.exports=e(typeof globalThis==n&&globalThis)||e(typeof window==n&&window)||e(typeof self==n&&self)||e(typeof global==n&&global)||Function("return this")()},function(t,r,n){var e=n(1);t.exports=!e(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,r,n){var e=n(18),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,r,n){var e=n(2);t.exports=function(t){if(!e(t))throw TypeError(String(t)+" is not an object");return t}},function(t,r,n){var e=n(9);t.exports=function(t){return Object(e(t))}},function(t,r){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,r,n){var e=n(5),o=n(75),i=n(7),u=n(24),a=Object.defineProperty;r.f=e?a:function(t,r,n){if(i(t),r=u(r,!0),i(n),o)try{return a(t,r,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[r]=n.value),t}},function(t,r){var n={}.hasOwnProperty;t.exports=function(t,r){return n.call(t,r)}},function(t,r,n){var e=n(9),o=/"/g;t.exports=function(t,r,n,i){var u=String(e(t)),a="<"+r;return""!==n&&(a+=" "+n+'="'+String(i).replace(o,"&quot;")+'"'),a+">"+u+"</"+r+">"}},function(t,r,n){var e=n(1);t.exports=function(t){return e(function(){var r=""[t]('"');return r!==r.toLowerCase()||r.split('"').length>3})}},function(t,r,n){var e=n(39),o=n(9);t.exports=function(t){return e(o(t))}},function(t,r,n){var e=n(4),o=n(40),i=n(16),u=n(11),a=n(60),c=n(77),s=n(17),f=s.get,l=s.enforce,h=String(c).split("toString");o("inspectSource",function(t){return c.call(t)}),(t.exports=function(t,r,n,o){var c=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,f=!!o&&!!o.noTargetGet;"function"==typeof n&&("string"!=typeof r||u(n,"name")||i(n,"name",r),l(n).source=h.join("string"==typeof r?r:"")),t!==e?(c?!f&&t[r]&&(s=!0):delete t[r],s?t[r]=n:i(t,r,n)):s?t[r]=n:a(r,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&f(this).source||c.call(this)})},function(t,r,n){var e=n(5),o=n(10),i=n(38);t.exports=e?function(t,r,n){return o.f(t,r,i(1,n))}:function(t,r,n){return t[r]=n,t}},function(t,r,n){var e,o,i,u=n(78),a=n(4),c=n(2),s=n(16),f=n(11),l=n(61),h=n(41),p=a.WeakMap;if(u){var v=new p,g=v.get,d=v.has,y=v.set;e=function(t,r){return y.call(v,t,r),r},o=function(t){return g.call(v,t)||{}},i=function(t){return d.call(v,t)}}else{var x=l("state");h[x]=!0,e=function(t,r){return s(t,x,r),r},o=function(t){return f(t,x)?t[x]:{}},i=function(t){return f(t,x)}}t.exports={set:e,get:o,has:i,enforce:function(t){return i(t)?o(t):e(t,{})},getterFor:function(t){return function(r){var n;if(!c(r)||(n=o(r)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,r){var n=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:n)(t)}},function(t,r,n){var e=n(3),o=n(46),i=n(16),u=e("unscopables"),a=Array.prototype;null==a[u]&&i(a,u,o(null)),t.exports=function(t){a[u][t]=!0}},function(t,r,n){var e=n(5),o=n(59),i=n(38),u=n(14),a=n(24),c=n(11),s=n(75),f=Object.getOwnPropertyDescriptor;r.f=e?f:function(t,r){if(t=u(t),r=a(r,!0),s)try{return f(t,r)}catch(t){}if(c(t,r))return i(!o.f.call(t,r),t[r])}},function(t,r){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,r,n){"use strict";var e=n(24),o=n(10),i=n(38);t.exports=function(t,r,n){var u=e(r);u in t?o.f(t,u,i(0,n)):t[u]=n}},function(t,r,n){var e=n(41),o=n(2),i=n(11),u=n(10).f,a=n(62),c=n(50),s=a("meta"),f=0,l=Object.isExtensible||function(){return!0},h=function(t){u(t,s,{value:{objectID:"O"+ ++f,weakData:{}}})},p=t.exports={REQUIRED:!1,fastKey:function(t,r){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,s)){if(!l(t))return"F";if(!r)return"E";h(t)}return t[s].objectID},getWeakData:function(t,r){if(!i(t,s)){if(!l(t))return!0;if(!r)return!1;h(t)}return t[s].weakData},onFreeze:function(t){return c&&p.REQUIRED&&l(t)&&!i(t,s)&&h(t),t}};e[s]=!0},function(t,r,n){var e=n(2);t.exports=function(t,r){if(!e(t))return t;var n,o;if(r&&"function"==typeof(n=t.toString)&&!e(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!e(o=n.call(t)))return o;if(!r&&"function"==typeof(n=t.toString)&&!e(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,r){t.exports=!1},function(t,r,n){var e=n(18),o=Math.max,i=Math.min;t.exports=function(t,r){var n=e(t);return n<0?o(n+r,0):i(n,r)}},function(t,r,n){var e=n(28),o=n(39),i=n(8),u=n(6),a=n(33),c=[].push,s=function(t){var r=1==t,n=2==t,s=3==t,f=4==t,l=6==t,h=5==t||l;return function(p,v,g,d){for(var y,x,m=i(p),b=o(m),S=e(v,g,3),w=u(b.length),E=0,O=d||a,A=r?O(p,w):n?O(p,0):void 0;w>E;E++)if((h||E in b)&&(x=S(y=b[E],E,m),t))if(r)A[E]=x;else if(x)switch(t){case 3:return!0;case 5:return y;case 6:return E;case 2:c.call(A,y)}else if(f)return!1;return l?-1:s||f?f:A}};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,r,n){var e=n(29);t.exports=function(t,r,n){if(e(t),void 0===r)return t;switch(n){case 0:return function(){return t.call(r)};case 1:return function(n){return t.call(r,n)};case 2:return function(n,e){return t.call(r,n,e)};case 3:return function(n,e,o){return t.call(r,n,e,o)}}return function(){return t.apply(r,arguments)}}},function(t,r){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,r,n){var e=n(11),o=n(8),i=n(61),u=n(91),a=i("IE_PROTO"),c=Object.prototype;t.exports=u?Object.getPrototypeOf:function(t){return t=o(t),e(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},function(t,r,n){var e=n(10).f,o=n(11),i=n(3)("toStringTag");t.exports=function(t,r,n){t&&!o(t=n?t:t.prototype,i)&&e(t,i,{configurable:!0,value:r})}},function(t,r,n){var e=n(9),o="["+n(53)+"]",i=RegExp("^"+o+o+"*"),u=RegExp(o+o+"*$"),a=function(t){return function(r){var n=String(e(r));return 1&t&&(n=n.replace(i,"")),2&t&&(n=n.replace(u,"")),n}};t.exports={start:a(1),end:a(2),trim:a(3)}},function(t,r,n){var e=n(2),o=n(45),i=n(3)("species");t.exports=function(t,r){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?e(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===r?0:r)}},function(t,r,n){var e=n(1),o=n(3)("species");t.exports=function(t){return!e(function(){var r=[];return(r.constructor={})[o]=function(){return{foo:1}},1!==r[t](Boolean).foo})}},function(t,r){t.exports={}},function(t,r){t.exports=function(t,r,n){if(!(t instanceof r))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},function(t,r,n){"use strict";var e=n(7);t.exports=function(){var t=e(this),r="";return t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.sticky&&(r+="y"),r}},function(t,r){t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},function(t,r,n){var e=n(1),o=n(21),i="".split;t.exports=e(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,r,n){var e=n(4),o=n(60),i=n(25),u=e["__core-js_shared__"]||o("__core-js_shared__",{});(t.exports=function(t,r){return u[t]||(u[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.2.0",mode:i?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,r){t.exports={}},function(t,r,n){var e=n(109),o=n(4),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,r){return arguments.length<2?i(e[t])||i(o[t]):e[t]&&e[t][r]||o[t]&&o[t][r]}},function(t,r,n){var e=n(80),o=n(63).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},function(t,r,n){var e=n(1),o=/#|\.prototype\./,i=function(t,r){var n=a[u(t)];return n==s||n!=c&&("function"==typeof r?e(r):!!r)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},a=i.data={},c=i.NATIVE="N",s=i.POLYFILL="P";t.exports=i},function(t,r,n){var e=n(21);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,r,n){var e=n(7),o=n(83),i=n(63),u=n(41),a=n(113),c=n(76),s=n(61)("IE_PROTO"),f=function(){},l=function(){var t,r=c("iframe"),n=i.length;for(r.style.display="none",a.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;n--;)delete l.prototype[i[n]];return l()};t.exports=Object.create||function(t,r){var n;return null!==t?(f.prototype=e(t),n=new f,f.prototype=null,n[s]=t):n=l(),void 0===r?n:o(n,r)},u[s]=!0},function(t,r,n){var e=n(80),o=n(63);t.exports=Object.keys||function(t){return e(t,o)}},function(t,r,n){var e=n(64),o=n(35),i=n(3)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[e(t)]}},function(t,r,n){"use strict";var e=n(0),o=n(4),i=n(44),u=n(15),a=n(23),c=n(51),s=n(36),f=n(2),l=n(1),h=n(88),p=n(31),v=n(68);t.exports=function(t,r,n,g,d){var y=o[t],x=y&&y.prototype,m=y,b=g?"set":"add",S={},w=function(t){var r=x[t];u(x,t,"add"==t?function(t){return r.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(d&&!f(t))&&r.call(this,0===t?0:t)}:"get"==t?function(t){return d&&!f(t)?void 0:r.call(this,0===t?0:t)}:"has"==t?function(t){return!(d&&!f(t))&&r.call(this,0===t?0:t)}:function(t,n){return r.call(this,0===t?0:t,n),this})};if(i(t,"function"!=typeof y||!(d||x.forEach&&!l(function(){(new y).entries().next()}))))m=n.getConstructor(r,t,g,b),a.REQUIRED=!0;else if(i(t,!0)){var E=new m,O=E[b](d?{}:-0,1)!=E,A=l(function(){E.has(1)}),I=h(function(t){new y(t)}),R=!d&&l(function(){for(var t=new y,r=5;r--;)t[b](r,r);return!t.has(-0)});I||((m=r(function(r,n){s(r,m,t);var e=v(new y,r,m);return null!=n&&c(n,e[b],e,g),e})).prototype=x,x.constructor=m),(A||R)&&(w("delete"),w("has"),g&&w("get")),(R||O)&&w(b),d&&x.clear&&delete x.clear}return S[t]=m,e({global:!0,forced:m!=y},S),p(m,t),d||n.setStrong(m,t,g),m}},function(t,r,n){var e=n(1);t.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(t,r,n){var e=n(7),o=n(87),i=n(6),u=n(28),a=n(48),c=n(86),s=function(t,r){this.stopped=t,this.result=r};(t.exports=function(t,r,n,f,l){var h,p,v,g,d,y,x=u(r,n,f?2:1);if(l)h=t;else{if("function"!=typeof(p=a(t)))throw TypeError("Target is not iterable");if(o(p)){for(v=0,g=i(t.length);g>v;v++)if((d=f?x(e(y=t[v])[0],y[1]):x(t[v]))&&d instanceof s)return d;return new s(!1)}h=p.call(t)}for(;!(y=h.next()).done;)if((d=c(h,x,y.value,f))&&d instanceof s)return d;return new s(!1)}).stop=function(t){return new s(!0,t)}},function(t,r,n){var e=n(15);t.exports=function(t,r,n){for(var o in r)e(t,o,r[o],n);return t}},function(t,r){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(t,r,n){"use strict";var e=n(25),o=n(4),i=n(1);t.exports=e||!i(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete o[t]})},function(t,r,n){var e=n(18),o=n(9),i=function(t){return function(r,n){var i,u,a=String(o(r)),c=e(n),s=a.length;return c<0||c>=s?t?"":void 0:(i=a.charCodeAt(c))<55296||i>56319||c+1===s||(u=a.charCodeAt(c+1))<56320||u>57343?t?a.charAt(c):i:t?a.slice(c,c+2):u-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,r,n){"use strict";var e=n(16),o=n(15),i=n(1),u=n(3),a=n(73),c=u("species"),s=!i(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),f=!i(function(){var t=/(?:)/,r=t.exec;t.exec=function(){return r.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]});t.exports=function(t,r,n,l){var h=u(t),p=!i(function(){var r={};return r[h]=function(){return 7},7!=""[t](r)}),v=p&&!i(function(){var r=!1,n=/a/;return n.exec=function(){return r=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[h](""),!r});if(!p||!v||"replace"===t&&!s||"split"===t&&!f){var g=/./[h],d=n(h,""[t],function(t,r,n,e,o){return r.exec===a?p&&!o?{done:!0,value:g.call(r,n,e)}:{done:!0,value:t.call(n,r,e)}:{done:!1}}),y=d[0],x=d[1];o(String.prototype,t,y),o(RegExp.prototype,h,2==r?function(t,r){return x.call(t,this,r)}:function(t){return x.call(t,this)}),l&&e(RegExp.prototype[h],"sham",!0)}}},function(t,r,n){"use strict";var e=n(55).charAt;t.exports=function(t,r,n){return r+(n?e(t,r).length:1)}},function(t,r,n){var e=n(21),o=n(73);t.exports=function(t,r){var n=t.exec;if("function"==typeof n){var i=n.call(t,r);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==e(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,r)}},function(t,r,n){"use strict";var e={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!e.call({1:2},1);r.f=i?function(t){var r=o(this,t);return!!r&&r.enumerable}:e},function(t,r,n){var e=n(4),o=n(16);t.exports=function(t,r){try{o(e,t,r)}catch(n){e[t]=r}return r}},function(t,r,n){var e=n(40),o=n(62),i=e("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,r){var n=0,e=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+e).toString(36)}},function(t,r){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,r,n){var e=n(21),o=n(3)("toStringTag"),i="Arguments"==e(function(){return arguments}());t.exports=function(t){var r,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,r){try{return t[r]}catch(t){}}(r=Object(t),o))?n:i?e(r):"Object"==(u=e(r))&&"function"==typeof r.callee?"Arguments":u}},function(t,r,n){"use strict";var e=n(0),o=n(66),i=n(30),u=n(92),a=n(31),c=n(16),s=n(15),f=n(3),l=n(25),h=n(35),p=n(90),v=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,d=f("iterator"),y=function(){return this};t.exports=function(t,r,n,f,p,x,m){o(n,r,f);var b,S,w,E=function(t){if(t===p&&j)return j;if(!g&&t in I)return I[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},O=r+" Iterator",A=!1,I=t.prototype,R=I[d]||I["@@iterator"]||p&&I[p],j=!g&&R||E(p),k="Array"==r&&I.entries||R;if(k&&(b=i(k.call(new t)),v!==Object.prototype&&b.next&&(l||i(b)===v||(u?u(b,v):"function"!=typeof b[d]&&c(b,d,y)),a(b,O,!0,!0),l&&(h[O]=y))),"values"==p&&R&&"values"!==R.name&&(A=!0,j=function(){return R.call(this)}),l&&!m||I[d]===j||c(I,d,j),h[r]=j,p)if(S={values:E("values"),keys:x?j:E("keys"),entries:E("entries")},m)for(w in S)!g&&!A&&w in I||s(I,w,S[w]);else e({target:r,proto:!0,forced:g||A},S);return S}},function(t,r,n){"use strict";var e=n(90).IteratorPrototype,o=n(46),i=n(38),u=n(31),a=n(35),c=function(){return this};t.exports=function(t,r,n){var s=r+" Iterator";return t.prototype=o(e,{next:i(1,n)}),u(t,s,!1,!0),a[s]=c,t}},function(t,r,n){"use strict";var e=n(42),o=n(10),i=n(3),u=n(5),a=i("species");t.exports=function(t){var r=e(t),n=o.f;u&&r&&!r[a]&&n(r,a,{configurable:!0,get:function(){return this}})}},function(t,r,n){var e=n(2),o=n(92);t.exports=function(t,r,n){var i,u;return o&&"function"==typeof(i=r.constructor)&&i!==n&&e(u=i.prototype)&&u!==n.prototype&&o(t,u),t}},function(t,r,n){"use strict";var e=n(18),o=n(9);t.exports="".repeat||function(t){var r=String(o(this)),n="",i=e(t);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(r+=r))1&i&&(n+=r);return n}},function(t,r,n){var e=n(2),o=n(21),i=n(3)("match");t.exports=function(t){var r;return e(t)&&(void 0!==(r=t[i])?!!r:"RegExp"==o(t))}},function(t,r,n){var e=n(70);t.exports=function(t){if(e(t))throw TypeError("The method doesn't accept regular expressions");return t}},function(t,r,n){var e=n(3)("match");t.exports=function(t){var r=/./;try{"/./"[t](r)}catch(n){try{return r[e]=!1,"/./"[t](r)}catch(t){}}return!1}},function(t,r,n){"use strict";var e,o,i=n(37),u=RegExp.prototype.exec,a=String.prototype.replace,c=u,s=(e=/a/,o=/b*/g,u.call(e,"a"),u.call(o,"a"),0!==e.lastIndex||0!==o.lastIndex),f=void 0!==/()??/.exec("")[1];(s||f)&&(c=function(t){var r,n,e,o,c=this;return f&&(n=new RegExp("^"+c.source+"$(?!\\s)",i.call(c))),s&&(r=c.lastIndex),e=u.call(c,t),s&&e&&(c.lastIndex=c.global?e.index+e[0].length:r),f&&e&&e.length>1&&a.call(e[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(e[o]=void 0)}),e}),t.exports=c},function(t,r,n){var e=n(1),o=n(53);t.exports=function(t){return e(function(){return!!o[t]()||"​…᠎"!="​…᠎"[t]()||o[t].name!==t})}},function(t,r,n){var e=n(5),o=n(1),i=n(76);t.exports=!e&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},function(t,r,n){var e=n(4),o=n(2),i=e.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,r,n){var e=n(40);t.exports=e("native-function-to-string",Function.toString)},function(t,r,n){var e=n(4),o=n(77),i=e.WeakMap;t.exports="function"==typeof i&&/native code/.test(o.call(i))},function(t,r,n){var e=n(42),o=n(43),i=n(82),u=n(7);t.exports=e("Reflect","ownKeys")||function(t){var r=o.f(u(t)),n=i.f;return n?r.concat(n(t)):r}},function(t,r,n){var e=n(11),o=n(14),i=n(81).indexOf,u=n(41);t.exports=function(t,r){var n,a=o(t),c=0,s=[];for(n in a)!e(u,n)&&e(a,n)&&s.push(n);for(;r.length>c;)e(a,n=r[c++])&&(~i(s,n)||s.push(n));return s}},function(t,r,n){var e=n(14),o=n(6),i=n(26),u=function(t){return function(r,n,u){var a,c=e(r),s=o(c.length),f=i(u,s);if(t&&n!=n){for(;s>f;)if((a=c[f++])!=a)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,r){r.f=Object.getOwnPropertySymbols},function(t,r,n){var e=n(5),o=n(10),i=n(7),u=n(47);t.exports=e?Object.defineProperties:function(t,r){i(t);for(var n,e=u(r),a=e.length,c=0;a>c;)o.f(t,n=e[c++],r[n]);return t}},function(t,r,n){"use strict";var e=n(45),o=n(6),i=n(28),u=function(t,r,n,a,c,s,f,l){for(var h,p=c,v=0,g=!!f&&i(f,l,3);v<a;){if(v in n){if(h=g?g(n[v],v,r):n[v],s>0&&e(h))p=u(t,r,h,o(h.length),p,s-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[p]=h}p++}v++}return p};t.exports=u},function(t,r,n){"use strict";var e=n(28),o=n(8),i=n(86),u=n(87),a=n(6),c=n(22),s=n(48);t.exports=function(t){var r,n,f,l,h=o(t),p="function"==typeof this?this:Array,v=arguments.length,g=v>1?arguments[1]:void 0,d=void 0!==g,y=0,x=s(h);if(d&&(g=e(g,v>2?arguments[2]:void 0,2)),null==x||p==Array&&u(x))for(n=new p(r=a(h.length));r>y;y++)c(n,y,d?g(h[y],y):h[y]);else for(l=x.call(h),n=new p;!(f=l.next()).done;y++)c(n,y,d?i(l,g,[f.value,y],!0):f.value);return n.length=y,n}},function(t,r,n){var e=n(7);t.exports=function(t,r,n,o){try{return o?r(e(n)[0],n[1]):r(n)}catch(r){var i=t.return;throw void 0!==i&&e(i.call(t)),r}}},function(t,r,n){var e=n(3),o=n(35),i=e("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},function(t,r,n){var e=n(3)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[e]=function(){return this},Array.from(u,function(){throw 2})}catch(t){}t.exports=function(t,r){if(!r&&!o)return!1;var n=!1;try{var i={};i[e]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,r,n){"use strict";var e=n(14),o=n(19),i=n(35),u=n(17),a=n(65),c=u.set,s=u.getterFor("Array Iterator");t.exports=a(Array,"Array",function(t,r){c(this,{type:"Array Iterator",target:e(t),index:0,kind:r})},function(){var t=s(this),r=t.target,n=t.kind,e=t.index++;return!r||e>=r.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:e,done:!1}:"values"==n?{value:r[e],done:!1}:{value:[e,r[e]],done:!1}},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,r,n){"use strict";var e,o,i,u=n(30),a=n(16),c=n(11),s=n(3),f=n(25),l=s("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(e=o):h=!0),null==e&&(e={}),f||c(e,l)||a(e,l,function(){return this}),t.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:h}},function(t,r,n){var e=n(1);t.exports=!e(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},function(t,r,n){var e=n(7),o=n(123);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),r=n instanceof Array}catch(t){}return function(n,i){return e(n),o(i),r?t.call(n,i):n.__proto__=i,n}}():void 0)},function(t,r,n){"use strict";var e=n(1);t.exports=function(t,r){var n=[][t];return!n||!e(function(){n.call(null,r||function(){throw 1},1)})}},function(t,r,n){"use strict";var e=n(10).f,o=n(46),i=n(52),u=n(28),a=n(36),c=n(51),s=n(65),f=n(67),l=n(5),h=n(23).fastKey,p=n(17),v=p.set,g=p.getterFor;t.exports={getConstructor:function(t,r,n,s){var f=t(function(t,e){a(t,f,r),v(t,{type:r,index:o(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=e&&c(e,t[s],t,n)}),p=g(r),d=function(t,r,n){var e,o,i=p(t),u=y(t,r);return u?u.value=n:(i.last=u={index:o=h(r,!0),key:r,value:n,previous:e=i.last,next:void 0,removed:!1},i.first||(i.first=u),e&&(e.next=u),l?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},y=function(t,r){var n,e=p(t),o=h(r);if("F"!==o)return e.index[o];for(n=e.first;n;n=n.next)if(n.key==r)return n};return i(f.prototype,{clear:function(){for(var t=p(this),r=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete r[n.index],n=n.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var r=p(this),n=y(this,t);if(n){var e=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=e),e&&(e.previous=o),r.first==n&&(r.first=e),r.last==n&&(r.last=o),l?r.size--:this.size--}return!!n},forEach:function(t){for(var r,n=p(this),e=u(t,arguments.length>1?arguments[1]:void 0,3);r=r?r.next:n.first;)for(e(r.value,r.key,this);r&&r.removed;)r=r.previous},has:function(t){return!!y(this,t)}}),i(f.prototype,n?{get:function(t){var r=y(this,t);return r&&r.value},set:function(t,r){return d(this,0===t?0:t,r)}}:{add:function(t){return d(this,t=0===t?0:t,t)}}),l&&e(f.prototype,"size",{get:function(){return p(this).size}}),f},setStrong:function(t,r,n){var e=r+" Iterator",o=g(r),i=g(e);s(t,r,function(t,r){v(this,{type:e,target:t,state:o(t),kind:r,last:void 0})},function(){for(var t=i(this),r=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==r?{value:n.key,done:!1}:"values"==r?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),f(r)}}},function(t,r,n){var e=n(2),o=Math.floor;t.exports=function(t){return!e(t)&&isFinite(t)&&o(t)===t}},function(t,r,n){"use strict";var e=n(5),o=n(1),i=n(47),u=n(82),a=n(59),c=n(8),s=n(39),f=Object.assign;t.exports=!f||o(function(){var t={},r={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),7!=f({},t)[n]||"abcdefghijklmnopqrst"!=i(f({},r)).join("")})?function(t,r){for(var n=c(t),o=arguments.length,f=1,l=u.f,h=a.f;o>f;)for(var p,v=s(arguments[f++]),g=l?i(v).concat(l(v)):i(v),d=g.length,y=0;d>y;)p=g[y++],e&&!h.call(v,p)||(n[p]=v[p]);return n}:f},function(t,r,n){var e=n(5),o=n(47),i=n(14),u=n(59).f,a=function(t){return function(r){for(var n,a=i(r),c=o(a),s=c.length,f=0,l=[];s>f;)n=c[f++],e&&!u.call(a,n)||l.push(t?[n,a[n]]:a[n]);return l}};t.exports={entries:a(!0),values:a(!1)}},function(t,r){t.exports=Object.is||function(t,r){return t===r?0!==t||1/t==1/r:t!=t&&r!=r}},function(t,r,n){"use strict";var e=n(55).charAt,o=n(17),i=n(65),u=o.set,a=o.getterFor("String Iterator");i(String,"String",function(t){u(this,{type:"String Iterator",string:String(t),index:0})},function(){var t,r=a(this),n=r.string,o=r.index;return o>=n.length?{value:void 0,done:!0}:(t=e(n,o),r.index+=t.length,{value:t,done:!1})})},function(t,r,n){var e=n(7),o=n(29),i=n(3)("species");t.exports=function(t,r){var n,u=e(t).constructor;return void 0===u||null==(n=e(u)[i])?r:o(n)}},function(t,r,n){var e=n(6),o=n(69),i=n(9),u=Math.ceil,a=function(t){return function(r,n,a){var c,s,f=String(i(r)),l=f.length,h=void 0===a?" ":String(a),p=e(n);return p<=l||""==h?f:(c=p-l,(s=o.call(h,u(c/h.length))).length>c&&(s=s.slice(0,c)),t?f+s:s+f)}};t.exports={start:a(!1),end:a(!0)}},function(t,r,n){var e=n(185);t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(e)},function(t,r,n){"use strict";var e=n(52),o=n(23).getWeakData,i=n(7),u=n(2),a=n(36),c=n(51),s=n(27),f=n(11),l=n(17),h=l.set,p=l.getterFor,v=s.find,g=s.findIndex,d=0,y=function(t){return t.frozen||(t.frozen=new x)},x=function(){this.entries=[]},m=function(t,r){return v(t.entries,function(t){return t[0]===r})};x.prototype={get:function(t){var r=m(this,t);if(r)return r[1]},has:function(t){return!!m(this,t)},set:function(t,r){var n=m(this,t);n?n[1]=r:this.entries.push([t,r])},delete:function(t){var r=g(this.entries,function(r){return r[0]===t});return~r&&this.entries.splice(r,1),!!~r}},t.exports={getConstructor:function(t,r,n,s){var l=t(function(t,e){a(t,l,r),h(t,{type:r,id:d++,frozen:void 0}),null!=e&&c(e,t[s],t,n)}),v=p(r),g=function(t,r,n){var e=v(t),u=o(i(r),!0);return!0===u?y(e).set(r,n):u[e.id]=n,t};return e(l.prototype,{delete:function(t){var r=v(this);if(!u(t))return!1;var n=o(t);return!0===n?y(r).delete(t):n&&f(n,r.id)&&delete n[r.id]},has:function(t){var r=v(this);if(!u(t))return!1;var n=o(t);return!0===n?y(r).has(t):n&&f(n,r.id)}}),e(l.prototype,n?{get:function(t){var r=v(this);if(u(t)){var n=o(t);return!0===n?y(r).get(t):n?n[r.id]:void 0}},set:function(t,r){return g(this,t,r)}}:{add:function(t){return g(this,t,!0)}}),l}}},function(t,r,n){var e=n(1),o=n(3),i=n(25),u=o("iterator");t.exports=!e(function(){var t=new URL("b?e=1","http://a"),r=t.searchParams;return t.pathname="c%20d",i&&!t.toJSON||!r.sort||"http://a/c%20d?e=1"!==t.href||"1"!==r.get("e")||"a=1"!==String(new URLSearchParams("?a=1"))||!r[u]||"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})},function(t,r,n){"use strict";n(89);var e=n(0),o=n(104),i=n(15),u=n(52),a=n(31),c=n(66),s=n(17),f=n(36),l=n(11),h=n(28),p=n(7),v=n(2),g=n(216),d=n(48),y=n(3)("iterator"),x=s.set,m=s.getterFor("URLSearchParams"),b=s.getterFor("URLSearchParamsIterator"),S=/\+/g,w=Array(4),E=function(t){return w[t-1]||(w[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},O=function(t){try{return decodeURIComponent(t)}catch(r){return t}},A=function(t){var r=t.replace(S," "),n=4;try{return decodeURIComponent(r)}catch(t){for(;n;)r=r.replace(E(n--),O);return r}},I=/[!'()~]|%20/g,R={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},j=function(t){return R[t]},k=function(t){return encodeURIComponent(t).replace(I,j)},L=function(t,r){if(r)for(var n,e,o=r.split("&"),i=0;i<o.length;)(n=o[i++]).length&&(e=n.split("="),t.push({key:A(e.shift()),value:A(e.join("="))}))},P=function(t){this.entries.length=0,L(this.entries,t)},_=function(t,r){if(t<r)throw TypeError("Not enough arguments")},N=c(function(t,r){x(this,{type:"URLSearchParamsIterator",iterator:g(m(t).entries),kind:r})},"Iterator",function(){var t=b(this),r=t.kind,n=t.iterator.next(),e=n.value;return n.done||(n.value="keys"===r?e.key:"values"===r?e.value:[e.key,e.value]),n}),T=function(){f(this,T,"URLSearchParams");var t,r,n,e,o,i,u,a=arguments.length>0?arguments[0]:void 0,c=this,s=[];if(x(c,{type:"URLSearchParams",entries:s,updateURL:function(){},updateSearchParams:P}),void 0!==a)if(v(a))if("function"==typeof(t=d(a)))for(r=t.call(a);!(n=r.next()).done;){if((o=(e=g(p(n.value))).next()).done||(i=e.next()).done||!e.next().done)throw TypeError("Expected sequence with length 2");s.push({key:o.value+"",value:i.value+""})}else for(u in a)l(a,u)&&s.push({key:u,value:a[u]+""});else L(s,"string"==typeof a?"?"===a.charAt(0)?a.slice(1):a:a+"")},U=T.prototype;u(U,{append:function(t,r){_(arguments.length,2);var n=m(this);n.entries.push({key:t+"",value:r+""}),n.updateURL()},delete:function(t){_(arguments.length,1);for(var r=m(this),n=r.entries,e=t+"",o=0;o<n.length;)n[o].key===e?n.splice(o,1):o++;r.updateURL()},get:function(t){_(arguments.length,1);for(var r=m(this).entries,n=t+"",e=0;e<r.length;e++)if(r[e].key===n)return r[e].value;return null},getAll:function(t){_(arguments.length,1);for(var r=m(this).entries,n=t+"",e=[],o=0;o<r.length;o++)r[o].key===n&&e.push(r[o].value);return e},has:function(t){_(arguments.length,1);for(var r=m(this).entries,n=t+"",e=0;e<r.length;)if(r[e++].key===n)return!0;return!1},set:function(t,r){_(arguments.length,1);for(var n,e=m(this),o=e.entries,i=!1,u=t+"",a=r+"",c=0;c<o.length;c++)(n=o[c]).key===u&&(i?o.splice(c--,1):(i=!0,n.value=a));i||o.push({key:u,value:a}),e.updateURL()},sort:function(){var t,r,n,e=m(this),o=e.entries,i=o.slice();for(o.length=0,n=0;n<i.length;n++){for(t=i[n],r=0;r<n;r++)if(o[r].key>t.key){o.splice(r,0,t);break}r===n&&o.push(t)}e.updateURL()},forEach:function(t){for(var r,n=m(this).entries,e=h(t,arguments.length>1?arguments[1]:void 0,3),o=0;o<n.length;)e((r=n[o++]).value,r.key,this)},keys:function(){return new N(this,"keys")},values:function(){return new N(this,"values")},entries:function(){return new N(this,"entries")}},{enumerable:!0}),i(U,y,U.entries),i(U,"toString",function(){for(var t,r=m(this).entries,n=[],e=0;e<r.length;)t=r[e++],n.push(k(t.key)+"="+k(t.value));return n.join("&")},{enumerable:!0}),a(T,"URLSearchParams"),e({global:!0,forced:!o},{URLSearchParams:T}),t.exports={URLSearchParams:T,getState:m}},function(t,r,n){n(107),n(111),n(114),n(116),n(117),n(118),n(119),n(120),n(121),n(122),n(89),n(124),n(125),n(126),n(127),n(128),n(129),n(130),n(131),n(132),n(133),n(134),n(135),n(136),n(137),n(138),n(140),n(141),n(142),n(143),n(144),n(145),n(147),n(149),n(151),n(152),n(153),n(154),n(155),n(156),n(157),n(158),n(159),n(161),n(162),n(163),n(164),n(165),n(166),n(167),n(168),n(169),n(170),n(171),n(173),n(174),n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(99),n(182),n(183),n(184),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(214),n(217),t.exports=n(105)},function(t,r,n){"use strict";var e=n(0),o=n(1),i=n(45),u=n(2),a=n(8),c=n(6),s=n(22),f=n(33),l=n(34),h=n(3)("isConcatSpreadable"),p=!o(function(){var t=[];return t[h]=!1,t.concat()[0]!==t}),v=l("concat"),g=function(t){if(!u(t))return!1;var r=t[h];return void 0!==r?!!r:i(t)};e({target:"Array",proto:!0,forced:!p||!v},{concat:function(t){var r,n,e,o,i,u=a(this),l=f(u,0),h=0;for(r=-1,e=arguments.length;r<e;r++)if(i=-1===r?u:arguments[r],g(i)){if(h+(o=c(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,h++)n in i&&s(l,h,i[n])}else{if(h>=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(l,h++,i)}return l.length=h,l}})},function(t,r,n){var e=n(11),o=n(79),i=n(20),u=n(10);t.exports=function(t,r){for(var n=o(r),a=u.f,c=i.f,s=0;s<n.length;s++){var f=n[s];e(t,f)||a(t,f,c(r,f))}}},function(t,r,n){t.exports=n(4)},function(t,r,n){var e=n(1);t.exports=!!Object.getOwnPropertySymbols&&!e(function(){return!String(Symbol())})},function(t,r,n){var e=n(0),o=n(112),i=n(19);e({target:"Array",proto:!0},{copyWithin:o}),i("copyWithin")},function(t,r,n){"use strict";var e=n(8),o=n(26),i=n(6),u=Math.min;t.exports=[].copyWithin||function(t,r){var n=e(this),a=i(n.length),c=o(t,a),s=o(r,a),f=arguments.length>2?arguments[2]:void 0,l=u((void 0===f?a:o(f,a))-s,a-c),h=1;for(s<c&&c<s+l&&(h=-1,s+=l-1,c+=l-1);l-- >0;)s in n?n[c]=n[s]:delete n[c],c+=h,s+=h;return n}},function(t,r,n){var e=n(42);t.exports=e("document","documentElement")},function(t,r,n){var e=n(0),o=n(115),i=n(19);e({target:"Array",proto:!0},{fill:o}),i("fill")},function(t,r,n){"use strict";var e=n(8),o=n(26),i=n(6);t.exports=function(t){for(var r=e(this),n=i(r.length),u=arguments.length,a=o(u>1?arguments[1]:void 0,n),c=u>2?arguments[2]:void 0,s=void 0===c?n:o(c,n);s>a;)r[a++]=t;return r}},function(t,r,n){"use strict";var e=n(0),o=n(27).filter;e({target:"Array",proto:!0,forced:!n(34)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,r,n){"use strict";var e=n(0),o=n(27).find,i=n(19),u=!0;"find"in[]&&Array(1).find(function(){u=!1}),e({target:"Array",proto:!0,forced:u},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("find")},function(t,r,n){"use strict";var e=n(0),o=n(27).findIndex,i=n(19),u=!0;"findIndex"in[]&&Array(1).findIndex(function(){u=!1}),e({target:"Array",proto:!0,forced:u},{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("findIndex")},function(t,r,n){"use strict";var e=n(0),o=n(84),i=n(8),u=n(6),a=n(18),c=n(33);e({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,r=i(this),n=u(r.length),e=c(r,0);return e.length=o(e,r,r,n,0,void 0===t?1:a(t)),e}})},function(t,r,n){"use strict";var e=n(0),o=n(84),i=n(8),u=n(6),a=n(29),c=n(33);e({target:"Array",proto:!0},{flatMap:function(t){var r,n=i(this),e=u(n.length);return a(t),(r=c(n,0)).length=o(r,n,n,e,0,1,t,arguments.length>1?arguments[1]:void 0),r}})},function(t,r,n){var e=n(0),o=n(85);e({target:"Array",stat:!0,forced:!n(88)(function(t){Array.from(t)})},{from:o})},function(t,r,n){"use strict";var e=n(0),o=n(81).includes,i=n(19);e({target:"Array",proto:!0},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("includes")},function(t,r,n){var e=n(2);t.exports=function(t){if(!e(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,r,n){"use strict";var e=n(0),o=n(39),i=n(14),u=n(93),a=[].join,c=o!=Object,s=u("join",",");e({target:"Array",proto:!0,forced:c||s},{join:function(t){return a.call(i(this),void 0===t?",":t)}})},function(t,r,n){"use strict";var e=n(0),o=n(27).map;e({target:"Array",proto:!0,forced:!n(34)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,r,n){"use strict";var e=n(0),o=n(1),i=n(22);e({target:"Array",stat:!0,forced:o(function(){function t(){}return!(Array.of.call(t)instanceof t)})},{of:function(){for(var t=0,r=arguments.length,n=new("function"==typeof this?this:Array)(r);r>t;)i(n,t,arguments[t++]);return n.length=r,n}})},function(t,r,n){"use strict";var e=n(0),o=n(2),i=n(45),u=n(26),a=n(6),c=n(14),s=n(22),f=n(34),l=n(3)("species"),h=[].slice,p=Math.max;e({target:"Array",proto:!0,forced:!f("slice")},{slice:function(t,r){var n,e,f,v=c(this),g=a(v.length),d=u(t,g),y=u(void 0===r?g:r,g);if(i(v)&&("function"!=typeof(n=v.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[l])&&(n=void 0):n=void 0,n===Array||void 0===n))return h.call(v,d,y);for(e=new(void 0===n?Array:n)(p(y-d,0)),f=0;d<y;d++,f++)d in v&&s(e,f,v[d]);return e.length=f,e}})},function(t,r,n){n(67)("Array")},function(t,r,n){"use strict";var e=n(0),o=n(26),i=n(18),u=n(6),a=n(8),c=n(33),s=n(22),f=n(34),l=Math.max,h=Math.min;e({target:"Array",proto:!0,forced:!f("splice")},{splice:function(t,r){var n,e,f,p,v,g,d=a(this),y=u(d.length),x=o(t,y),m=arguments.length;if(0===m?n=e=0:1===m?(n=0,e=y-x):(n=m-2,e=h(l(i(r),0),y-x)),y+n-e>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(f=c(d,e),p=0;p<e;p++)(v=x+p)in d&&s(f,p,d[v]);if(f.length=e,n<e){for(p=x;p<y-e;p++)g=p+n,(v=p+e)in d?d[g]=d[v]:delete d[g];for(p=y;p>y-e+n;p--)delete d[p-1]}else if(n>e)for(p=y-e;p>x;p--)g=p+n-1,(v=p+e-1)in d?d[g]=d[v]:delete d[g];for(p=0;p<n;p++)d[p+x]=arguments[p+2];return d.length=y-e+n,f}})},function(t,r,n){n(19)("flat")},function(t,r,n){n(19)("flatMap")},function(t,r,n){"use strict";var e=n(2),o=n(10),i=n(30),u=n(3)("hasInstance"),a=Function.prototype;u in a||o.f(a,u,{value:function(t){if("function"!=typeof this||!e(t))return!1;if(!e(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,r,n){var e=n(5),o=n(10).f,i=Function.prototype,u=i.toString,a=/^\s*function ([^ (]*)/;!e||"name"in i||o(i,"name",{configurable:!0,get:function(){try{return u.call(this).match(a)[1]}catch(t){return""}}})},function(t,r,n){var e=n(4);n(31)(e.JSON,"JSON",!0)},function(t,r,n){"use strict";var e=n(49),o=n(94);t.exports=e("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},o,!0)},function(t,r,n){"use strict";var e=n(5),o=n(4),i=n(44),u=n(15),a=n(11),c=n(21),s=n(68),f=n(24),l=n(1),h=n(46),p=n(43).f,v=n(20).f,g=n(10).f,d=n(32).trim,y=o.Number,x=y.prototype,m="Number"==c(h(x)),b=function(t){var r,n,e,o,i,u,a,c,s=f(t,!1);if("string"==typeof s&&s.length>2)if(43===(r=(s=d(s)).charCodeAt(0))||45===r){if(88===(n=s.charCodeAt(2))||120===n)return NaN}else if(48===r){switch(s.charCodeAt(1)){case 66:case 98:e=2,o=49;break;case 79:case 111:e=8,o=55;break;default:return+s}for(u=(i=s.slice(2)).length,a=0;a<u;a++)if((c=i.charCodeAt(a))<48||c>o)return NaN;return parseInt(i,e)}return+s};if(i("Number",!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var S,w=function(t){var r=arguments.length<1?0:t,n=this;return n instanceof w&&(m?l(function(){x.valueOf.call(n)}):"Number"!=c(n))?s(new y(b(r)),n,w):b(r)},E=e?p(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),O=0;E.length>O;O++)a(y,S=E[O])&&!a(w,S)&&g(w,S,v(y,S));w.prototype=x,x.constructor=w,u(o,"Number",w)}},function(t,r,n){n(0)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(t,r,n){n(0)({target:"Number",stat:!0},{isFinite:n(139)})},function(t,r,n){var e=n(4).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&e(t)}},function(t,r,n){n(0)({target:"Number",stat:!0},{isInteger:n(95)})},function(t,r,n){n(0)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},function(t,r,n){var e=n(0),o=n(95),i=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},function(t,r,n){n(0)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(t,r,n){n(0)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(t,r,n){var e=n(0),o=n(146);e({target:"Number",stat:!0,forced:Number.parseFloat!=o},{parseFloat:o})},function(t,r,n){var e=n(4),o=n(32).trim,i=n(53),u=e.parseFloat,a=1/u(i+"-0")!=-1/0;t.exports=a?function(t){var r=o(String(t)),n=u(r);return 0===n&&"-"==r.charAt(0)?-0:n}:u},function(t,r,n){var e=n(0),o=n(148);e({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},function(t,r,n){var e=n(4),o=n(32).trim,i=n(53),u=e.parseInt,a=/^[+-]?0[Xx]/,c=8!==u(i+"08")||22!==u(i+"0x16");t.exports=c?function(t,r){var n=o(String(t));return u(n,r>>>0||(a.test(n)?16:10))}:u},function(t,r,n){"use strict";var e=n(0),o=n(18),i=n(150),u=n(69),a=n(1),c=1..toFixed,s=Math.floor,f=function(t,r,n){return 0===r?n:r%2==1?f(t,r-1,n*t):f(t*t,r/2,n)};e({target:"Number",proto:!0,forced:c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!a(function(){c.call({})})},{toFixed:function(t){var r,n,e,a,c=i(this),l=o(t),h=[0,0,0,0,0,0],p="",v="0",g=function(t,r){for(var n=-1,e=r;++n<6;)e+=t*h[n],h[n]=e%1e7,e=s(e/1e7)},d=function(t){for(var r=6,n=0;--r>=0;)n+=h[r],h[r]=s(n/t),n=n%t*1e7},y=function(){for(var t=6,r="";--t>=0;)if(""!==r||0===t||0!==h[t]){var n=String(h[t]);r=""===r?n:r+u.call("0",7-n.length)+n}return r};if(l<0||l>20)throw RangeError("Incorrect fraction digits");if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(p="-",c=-c),c>1e-21)if(n=(r=function(t){for(var r=0,n=t;n>=4096;)r+=12,n/=4096;for(;n>=2;)r+=1,n/=2;return r}(c*f(2,69,1))-69)<0?c*f(2,-r,1):c/f(2,r,1),n*=4503599627370496,(r=52-r)>0){for(g(0,n),e=l;e>=7;)g(1e7,0),e-=7;for(g(f(10,e,1),0),e=r-1;e>=23;)d(1<<23),e-=23;d(1<<e),g(1,1),d(2),v=y()}else g(0,n),g(1<<-r,0),v=y()+u.call("0",l);return v=l>0?p+((a=v.length)<=l?"0."+u.call("0",l-a)+v:v.slice(0,a-l)+"."+v.slice(a-l)):p+v}})},function(t,r,n){var e=n(21);t.exports=function(t){if("number"!=typeof t&&"Number"!=e(t))throw TypeError("Incorrect invocation");return+t}},function(t,r,n){var e=n(0),o=n(96);e({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,r,n){"use strict";var e=n(0),o=n(5),i=n(54),u=n(8),a=n(29),c=n(10);o&&e({target:"Object",proto:!0,forced:i},{__defineGetter__:function(t,r){c.f(u(this),t,{get:a(r),enumerable:!0,configurable:!0})}})},function(t,r,n){"use strict";var e=n(0),o=n(5),i=n(54),u=n(8),a=n(29),c=n(10);o&&e({target:"Object",proto:!0,forced:i},{__defineSetter__:function(t,r){c.f(u(this),t,{set:a(r),enumerable:!0,configurable:!0})}})},function(t,r,n){var e=n(0),o=n(97).entries;e({target:"Object",stat:!0},{entries:function(t){return o(t)}})},function(t,r,n){var e=n(0),o=n(50),i=n(1),u=n(2),a=n(23).onFreeze,c=Object.freeze;e({target:"Object",stat:!0,forced:i(function(){c(1)}),sham:!o},{freeze:function(t){return c&&u(t)?c(a(t)):t}})},function(t,r,n){var e=n(0),o=n(51),i=n(22);e({target:"Object",stat:!0},{fromEntries:function(t){var r={};return o(t,function(t,n){i(r,t,n)},void 0,!0),r}})},function(t,r,n){var e=n(0),o=n(1),i=n(14),u=n(20).f,a=n(5),c=o(function(){u(1)});e({target:"Object",stat:!0,forced:!a||c,sham:!a},{getOwnPropertyDescriptor:function(t,r){return u(i(t),r)}})},function(t,r,n){var e=n(0),o=n(5),i=n(79),u=n(14),a=n(20),c=n(22);e({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var r,n,e=u(t),o=a.f,s=i(e),f={},l=0;s.length>l;)void 0!==(n=o(e,r=s[l++]))&&c(f,r,n);return f}})},function(t,r,n){var e=n(0),o=n(1),i=n(160).f;e({target:"Object",stat:!0,forced:o(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:i})},function(t,r,n){var e=n(14),o=n(43).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(e(t))}},function(t,r,n){var e=n(0),o=n(1),i=n(8),u=n(30),a=n(91);e({target:"Object",stat:!0,forced:o(function(){u(1)}),sham:!a},{getPrototypeOf:function(t){return u(i(t))}})},function(t,r,n){n(0)({target:"Object",stat:!0},{is:n(98)})},function(t,r,n){var e=n(0),o=n(1),i=n(2),u=Object.isExtensible;e({target:"Object",stat:!0,forced:o(function(){u(1)})},{isExtensible:function(t){return!!i(t)&&(!u||u(t))}})},function(t,r,n){var e=n(0),o=n(1),i=n(2),u=Object.isFrozen;e({target:"Object",stat:!0,forced:o(function(){u(1)})},{isFrozen:function(t){return!i(t)||!!u&&u(t)}})},function(t,r,n){var e=n(0),o=n(1),i=n(2),u=Object.isSealed;e({target:"Object",stat:!0,forced:o(function(){u(1)})},{isSealed:function(t){return!i(t)||!!u&&u(t)}})},function(t,r,n){var e=n(0),o=n(8),i=n(47);e({target:"Object",stat:!0,forced:n(1)(function(){i(1)})},{keys:function(t){return i(o(t))}})},function(t,r,n){"use strict";var e=n(0),o=n(5),i=n(54),u=n(8),a=n(24),c=n(30),s=n(20).f;o&&e({target:"Object",proto:!0,forced:i},{__lookupGetter__:function(t){var r,n=u(this),e=a(t,!0);do{if(r=s(n,e))return r.get}while(n=c(n))}})},function(t,r,n){"use strict";var e=n(0),o=n(5),i=n(54),u=n(8),a=n(24),c=n(30),s=n(20).f;o&&e({target:"Object",proto:!0,forced:i},{__lookupSetter__:function(t){var r,n=u(this),e=a(t,!0);do{if(r=s(n,e))return r.set}while(n=c(n))}})},function(t,r,n){var e=n(0),o=n(2),i=n(23).onFreeze,u=n(50),a=n(1),c=Object.preventExtensions;e({target:"Object",stat:!0,forced:a(function(){c(1)}),sham:!u},{preventExtensions:function(t){return c&&o(t)?c(i(t)):t}})},function(t,r,n){var e=n(0),o=n(2),i=n(23).onFreeze,u=n(50),a=n(1),c=Object.seal;e({target:"Object",stat:!0,forced:a(function(){c(1)}),sham:!u},{seal:function(t){return c&&o(t)?c(i(t)):t}})},function(t,r,n){var e=n(15),o=n(172),i=Object.prototype;o!==i.toString&&e(i,"toString",o,{unsafe:!0})},function(t,r,n){"use strict";var e=n(64),o={};o[n(3)("toStringTag")]="z",t.exports="[object z]"!==String(o)?function(){return"[object "+e(this)+"]"}:o.toString},function(t,r,n){var e=n(0),o=n(97).values;e({target:"Object",stat:!0},{values:function(t){return o(t)}})},function(t,r,n){var e=n(5),o=n(4),i=n(44),u=n(68),a=n(10).f,c=n(43).f,s=n(70),f=n(37),l=n(15),h=n(1),p=n(67),v=n(3)("match"),g=o.RegExp,d=g.prototype,y=/a/g,x=/a/g,m=new g(y)!==y;if(e&&i("RegExp",!m||h(function(){return x[v]=!1,g(y)!=y||g(x)==x||"/a/i"!=g(y,"i")}))){for(var b=function(t,r){var n=this instanceof b,e=s(t),o=void 0===r;return!n&&e&&t.constructor===b&&o?t:u(m?new g(e&&!o?t.source:t,r):g((e=t instanceof b)?t.source:t,e&&o?f.call(t):r),n?this:d,b)},S=function(t){t in b||a(b,t,{configurable:!0,get:function(){return g[t]},set:function(r){g[t]=r}})},w=c(g),E=0;w.length>E;)S(w[E++]);d.constructor=b,b.prototype=d,l(o,"RegExp",b)}p("RegExp")},function(t,r,n){var e=n(5),o=n(10),i=n(37);e&&"g"!=/./g.flags&&o.f(RegExp.prototype,"flags",{configurable:!0,get:i})},function(t,r,n){"use strict";var e=n(15),o=n(7),i=n(1),u=n(37),a=RegExp.prototype,c=a.toString,s=i(function(){return"/a/b"!=c.call({source:"a",flags:"b"})}),f="toString"!=c.name;(s||f)&&e(RegExp.prototype,"toString",function(){var t=o(this),r=String(t.source),n=t.flags;return"/"+r+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in a)?u.call(t):n)},{unsafe:!0})},function(t,r,n){"use strict";var e=n(49),o=n(94);t.exports=e("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},o)},function(t,r,n){"use strict";var e=n(0),o=n(55).codeAt;e({target:"String",proto:!0},{codePointAt:function(t){return o(this,t)}})},function(t,r,n){"use strict";var e=n(0),o=n(6),i=n(71),u=n(9),a=n(72),c="".endsWith,s=Math.min;e({target:"String",proto:!0,forced:!a("endsWith")},{endsWith:function(t){var r=String(u(this));i(t);var n=arguments.length>1?arguments[1]:void 0,e=o(r.length),a=void 0===n?e:s(o(n),e),f=String(t);return c?c.call(r,f,a):r.slice(a-f.length,a)===f}})},function(t,r,n){var e=n(0),o=n(26),i=String.fromCharCode,u=String.fromCodePoint;e({target:"String",stat:!0,forced:!!u&&1!=u.length},{fromCodePoint:function(t){for(var r,n=[],e=arguments.length,u=0;e>u;){if(r=+arguments[u++],o(r,1114111)!==r)throw RangeError(r+" is not a valid code point");n.push(r<65536?i(r):i(55296+((r-=65536)>>10),r%1024+56320))}return n.join("")}})},function(t,r,n){"use strict";var e=n(0),o=n(71),i=n(9);e({target:"String",proto:!0,forced:!n(72)("includes")},{includes:function(t){return!!~String(i(this)).indexOf(o(t),arguments.length>1?arguments[1]:void 0)}})},function(t,r,n){"use strict";var e=n(56),o=n(7),i=n(6),u=n(9),a=n(57),c=n(58);e("match",1,function(t,r,n){return[function(r){var n=u(this),e=null==r?void 0:r[t];return void 0!==e?e.call(r,n):new RegExp(r)[t](String(n))},function(t){var e=n(r,t,this);if(e.done)return e.value;var u=o(t),s=String(this);if(!u.global)return c(u,s);var f=u.unicode;u.lastIndex=0;for(var l,h=[],p=0;null!==(l=c(u,s));){var v=String(l[0]);h[p]=v,""===v&&(u.lastIndex=a(s,i(u.lastIndex),f)),p++}return 0===p?null:h}]})},function(t,r,n){"use strict";var e=n(0),o=n(66),i=n(9),u=n(6),a=n(29),c=n(7),s=n(64),f=n(37),l=n(16),h=n(3),p=n(100),v=n(57),g=n(17),d=n(25),y=h("matchAll"),x=g.set,m=g.getterFor("RegExp String Iterator"),b=RegExp.prototype,S=b.exec,w=o(function(t,r,n,e){x(this,{type:"RegExp String Iterator",regexp:t,string:r,global:n,unicode:e,done:!1})},"RegExp String",function(){var t=m(this);if(t.done)return{value:void 0,done:!0};var r=t.regexp,n=t.string,e=function(t,r){var n,e=t.exec;if("function"==typeof e){if("object"!=typeof(n=e.call(t,r)))throw TypeError("Incorrect exec result");return n}return S.call(t,r)}(r,n);return null===e?{value:void 0,done:t.done=!0}:t.global?(""==String(e[0])&&(r.lastIndex=v(n,u(r.lastIndex),t.unicode)),{value:e,done:!1}):(t.done=!0,{value:e,done:!1})}),E=function(t){var r,n,e,o,i,a,s=c(this),l=String(t);return r=p(s,RegExp),void 0===(n=s.flags)&&s instanceof RegExp&&!("flags"in b)&&(n=f.call(s)),e=void 0===n?"":String(n),o=new r(r===RegExp?s.source:s,e),i=!!~e.indexOf("g"),a=!!~e.indexOf("u"),o.lastIndex=u(s.lastIndex),new w(o,l,i,a)};e({target:"String",proto:!0},{matchAll:function(t){var r,n,e,o=i(this);return null!=t&&(void 0===(n=t[y])&&d&&"RegExp"==s(t)&&(n=E),null!=n)?a(n).call(t,o):(r=String(o),e=new RegExp(t,"g"),d?E.call(e,r):e[y](r))}}),d||y in b||l(b,y,E)},function(t,r,n){"use strict";var e=n(0),o=n(101).end;e({target:"String",proto:!0,forced:n(102)},{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,r,n){var e=n(42);t.exports=e("navigator","userAgent")||""},function(t,r,n){"use strict";var e=n(0),o=n(101).start;e({target:"String",proto:!0,forced:n(102)},{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,r,n){var e=n(0),o=n(14),i=n(6);e({target:"String",stat:!0},{raw:function(t){for(var r=o(t.raw),n=i(r.length),e=arguments.length,u=[],a=0;n>a;)u.push(String(r[a++])),a<e&&u.push(String(arguments[a]));return u.join("")}})},function(t,r,n){n(0)({target:"String",proto:!0},{repeat:n(69)})},function(t,r,n){"use strict";var e=n(56),o=n(7),i=n(8),u=n(6),a=n(18),c=n(9),s=n(57),f=n(58),l=Math.max,h=Math.min,p=Math.floor,v=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g;e("replace",2,function(t,r,n){return[function(n,e){var o=c(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,e):r.call(String(o),n,e)},function(t,i){var c=n(r,t,this,i);if(c.done)return c.value;var p=o(t),v=String(this),g="function"==typeof i;g||(i=String(i));var d=p.global;if(d){var y=p.unicode;p.lastIndex=0}for(var x=[];;){var m=f(p,v);if(null===m)break;if(x.push(m),!d)break;""===String(m[0])&&(p.lastIndex=s(v,u(p.lastIndex),y))}for(var b,S="",w=0,E=0;E<x.length;E++){m=x[E];for(var O=String(m[0]),A=l(h(a(m.index),v.length),0),I=[],R=1;R<m.length;R++)I.push(void 0===(b=m[R])?b:String(b));var j=m.groups;if(g){var k=[O].concat(I,A,v);void 0!==j&&k.push(j);var L=String(i.apply(void 0,k))}else L=e(O,v,A,I,j,i);A>=w&&(S+=v.slice(w,A)+L,w=A+O.length)}return S+v.slice(w)}];function e(t,n,e,o,u,a){var c=e+t.length,s=o.length,f=g;return void 0!==u&&(u=i(u),f=v),r.call(a,f,function(r,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,e);case"'":return n.slice(c);case"<":a=u[i.slice(1,-1)];break;default:var f=+i;if(0===f)return r;if(f>s){var l=p(f/10);return 0===l?r:l<=s?void 0===o[l-1]?i.charAt(1):o[l-1]+i.charAt(1):r}a=o[f-1]}return void 0===a?"":a})}})},function(t,r,n){"use strict";var e=n(56),o=n(7),i=n(9),u=n(98),a=n(58);e("search",1,function(t,r,n){return[function(r){var n=i(this),e=null==r?void 0:r[t];return void 0!==e?e.call(r,n):new RegExp(r)[t](String(n))},function(t){var e=n(r,t,this);if(e.done)return e.value;var i=o(t),c=String(this),s=i.lastIndex;u(s,0)||(i.lastIndex=0);var f=a(i,c);return u(i.lastIndex,s)||(i.lastIndex=s),null===f?-1:f.index}]})},function(t,r,n){"use strict";var e=n(56),o=n(70),i=n(7),u=n(9),a=n(100),c=n(57),s=n(6),f=n(58),l=n(73),h=n(1),p=[].push,v=Math.min,g=!h(function(){return!RegExp(4294967295,"y")});e("split",2,function(t,r,n){var e;return e="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,n){var e=String(u(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===t)return[e];if(!o(t))return r.call(e,t,i);for(var a,c,s,f=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,g=new RegExp(t.source,h+"g");(a=l.call(g,e))&&!((c=g.lastIndex)>v&&(f.push(e.slice(v,a.index)),a.length>1&&a.index<e.length&&p.apply(f,a.slice(1)),s=a[0].length,v=c,f.length>=i));)g.lastIndex===a.index&&g.lastIndex++;return v===e.length?!s&&g.test("")||f.push(""):f.push(e.slice(v)),f.length>i?f.slice(0,i):f}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:r.call(this,t,n)}:r,[function(r,n){var o=u(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,o,n):e.call(String(o),r,n)},function(t,o){var u=n(e,t,this,o,e!==r);if(u.done)return u.value;var l=i(t),h=String(this),p=a(l,RegExp),d=l.unicode,y=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(g?"y":"g"),x=new p(g?l:"^(?:"+l.source+")",y),m=void 0===o?4294967295:o>>>0;if(0===m)return[];if(0===h.length)return null===f(x,h)?[h]:[];for(var b=0,S=0,w=[];S<h.length;){x.lastIndex=g?S:0;var E,O=f(x,g?h:h.slice(S));if(null===O||(E=v(s(x.lastIndex+(g?0:S)),h.length))===b)S=c(h,S,d);else{if(w.push(h.slice(b,S)),w.length===m)return w;for(var A=1;A<=O.length-1;A++)if(w.push(O[A]),w.length===m)return w;S=b=E}}return w.push(h.slice(b)),w}]},!g)},function(t,r,n){"use strict";var e=n(0),o=n(6),i=n(71),u=n(9),a=n(72),c="".startsWith,s=Math.min;e({target:"String",proto:!0,forced:!a("startsWith")},{startsWith:function(t){var r=String(u(this));i(t);var n=o(s(arguments.length>1?arguments[1]:void 0,r.length)),e=String(t);return c?c.call(r,e,n):r.slice(n,n+e.length)===e}})},function(t,r,n){"use strict";var e=n(0),o=n(32).trim;e({target:"String",proto:!0,forced:n(74)("trim")},{trim:function(){return o(this)}})},function(t,r,n){"use strict";var e=n(0),o=n(32).end,i=n(74)("trimEnd"),u=i?function(){return o(this)}:"".trimEnd;e({target:"String",proto:!0,forced:i},{trimEnd:u,trimRight:u})},function(t,r,n){"use strict";var e=n(0),o=n(32).start,i=n(74)("trimStart"),u=i?function(){return o(this)}:"".trimStart;e({target:"String",proto:!0,forced:i},{trimStart:u,trimLeft:u})},function(t,r,n){"use strict";var e=n(0),o=n(12);e({target:"String",proto:!0,forced:n(13)("anchor")},{anchor:function(t){return o(this,"a","name",t)}})},function(t,r,n){"use strict";var e=n(0),o=n(12);e({target:"String",proto:!0,forced:n(13)("big")},{big:function(){return o(this,"big","","")}})},function(t,r,n){"use strict";var e=n(0),o=n(12);e({target:"String",proto:!0,forced:n(13)("blink")},{blink:function(){return o(this,"blink","","")}})},function(t,r,n){"use strict";var e=n(0),o=n(12);e({target:"String",proto:!0,forced:n(13)("bold")},{bold:function(){return o(this,"b","","")}})},function(t,r,n){"use strict";var e=n(0),o=n(12);e({target:"String",proto:!0,forced:n(13)("fixed")},{fixed:function(){return o(this,"tt","","")}})},function(t,r,n){"use strict";var e=n(0),o=n(12);e({target:"String",proto:!0,forced:n(13)("fontcolor")},{fontcolor:function(t){return o(this,"font","color",t)}})},function(t,r,n){"use strict";var e=n(0),o=n(12);e({target:"String",proto:!0,forced:n(13)("fontsize")},{fontsize:function(t){return o(this,"font","size",t)}})},function(t,r,n){"use strict";var e=n(0),o=n(12);e({target:"String",proto:!0,forced:n(13)("italics")},{italics:function(){return o(this,"i","","")}})},function(t,r,n){"use strict";var e=n(0),o=n(12);e({target:"String",proto:!0,forced:n(13)("link")},{link:function(t){return o(this,"a","href",t)}})},function(t,r,n){"use strict";var e=n(0),o=n(12);e({target:"String",proto:!0,forced:n(13)("small")},{small:function(){return o(this,"small","","")}})},function(t,r,n){"use strict";var e=n(0),o=n(12);e({target:"String",proto:!0,forced:n(13)("strike")},{strike:function(){return o(this,"strike","","")}})},function(t,r,n){"use strict";var e=n(0),o=n(12);e({target:"String",proto:!0,forced:n(13)("sub")},{sub:function(){return o(this,"sub","","")}})},function(t,r,n){"use strict";var e=n(0),o=n(12);e({target:"String",proto:!0,forced:n(13)("sup")},{sup:function(){return o(this,"sup","","")}})},function(t,r,n){"use strict";var e,o=n(4),i=n(52),u=n(23),a=n(49),c=n(103),s=n(2),f=n(17).enforce,l=n(78),h=!o.ActiveXObject&&"ActiveXObject"in o,p=Object.isExtensible,v=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},g=t.exports=a("WeakMap",v,c,!0,!0);if(l&&h){e=c.getConstructor(v,"WeakMap",!0),u.REQUIRED=!0;var d=g.prototype,y=d.delete,x=d.has,m=d.get,b=d.set;i(d,{delete:function(t){if(s(t)&&!p(t)){var r=f(this);return r.frozen||(r.frozen=new e),y.call(this,t)||r.frozen.delete(t)}return y.call(this,t)},has:function(t){if(s(t)&&!p(t)){var r=f(this);return r.frozen||(r.frozen=new e),x.call(this,t)||r.frozen.has(t)}return x.call(this,t)},get:function(t){if(s(t)&&!p(t)){var r=f(this);return r.frozen||(r.frozen=new e),x.call(this,t)?m.call(this,t):r.frozen.get(t)}return m.call(this,t)},set:function(t,r){if(s(t)&&!p(t)){var n=f(this);n.frozen||(n.frozen=new e),x.call(this,t)?b.call(this,t,r):n.frozen.set(t,r)}else b.call(this,t,r);return this}})}},function(t,r,n){"use strict";n(49)("WeakSet",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},n(103),!1,!0)},function(t,r,n){var e=n(4),o=n(212),i=n(213),u=n(16);for(var a in o){var c=e[a],s=c&&c.prototype;if(s&&s.forEach!==i)try{u(s,"forEach",i)}catch(t){s.forEach=i}}},function(t,r){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,r,n){"use strict";var e=n(27).forEach,o=n(93);t.exports=o("forEach")?function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}:[].forEach},function(t,r,n){"use strict";n(99);var e,o=n(0),i=n(5),u=n(104),a=n(4),c=n(83),s=n(15),f=n(36),l=n(11),h=n(96),p=n(85),v=n(55).codeAt,g=n(215),d=n(31),y=n(105),x=n(17),m=a.URL,b=y.URLSearchParams,S=y.getState,w=x.set,E=x.getterFor("URL"),O=Math.floor,A=Math.pow,I=/[A-Za-z]/,R=/[\d+\-.A-Za-z]/,j=/\d/,k=/^(0x|0X)/,L=/^[0-7]+$/,P=/^\d+$/,_=/^[\dA-Fa-f]+$/,N=/[\u0000\u0009\u000A\u000D #%\/:?@[\\]]/,T=/[\u0000\u0009\u000A\u000D #\/:?@[\\]]/,U=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,F=/[\u0009\u000A\u000D]/g,M=function(t,r){var n,e,o;if("["==r.charAt(0)){if("]"!=r.charAt(r.length-1))return"Invalid host";if(!(n=z(r.slice(1,-1))))return"Invalid host";t.host=n}else if(X(t)){if(r=g(r),N.test(r))return"Invalid host";if(null===(n=C(r)))return"Invalid host";t.host=n}else{if(T.test(r))return"Invalid host";for(n="",e=p(r),o=0;o<e.length;o++)n+=V(e[o],B);t.host=n}},C=function(t){var r,n,e,o,i,u,a,c=t.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(r=c.length)>4)return t;for(n=[],e=0;e<r;e++){if(""==(o=c[e]))return t;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=k.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)u=0;else{if(!(10==i?P:8==i?L:_).test(o))return t;u=parseInt(o,i)}n.push(u)}for(e=0;e<r;e++)if(u=n[e],e==r-1){if(u>=A(256,5-r))return null}else if(u>255)return null;for(a=n.pop(),e=0;e<n.length;e++)a+=n[e]*A(256,3-e);return a},z=function(t){var r,n,e,o,i,u,a,c=[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(r=n=0;n<4&&_.test(h());)r=16*r+parseInt(h(),16),l++,n++;if("."==h()){if(0==n)return;if(l-=n,s>6)return;for(e=0;h();){if(o=null,e>0){if(!("."==h()&&e<4))return;l++}if(!j.test(h()))return;for(;j.test(h());){if(i=parseInt(h(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}c[s]=256*c[s]+o,2!=++e&&4!=e||s++}if(4!=e)return;break}if(":"==h()){if(l++,!h())return}else if(h())return;c[s++]=r}else{if(null!==f)return;l++,f=++s}}if(null!==f)for(u=s-f,s=7;0!=s&&u>0;)a=c[s],c[s--]=c[f+u-1],c[f+--u]=a;else if(8!=s)return;return c},q=function(t){var r,n,e,o;if("number"==typeof t){for(r=[],n=0;n<4;n++)r.unshift(t%256),t=O(t/256);return r.join(".")}if("object"==typeof t){for(r="",e=function(t){for(var r=null,n=1,e=null,o=0,i=0;i<8;i++)0!==t[i]?(o>n&&(r=e,n=o),e=null,o=0):(null===e&&(e=i),++o);return o>n&&(r=e,n=o),r}(t),n=0;n<8;n++)o&&0===t[n]||(o&&(o=!1),e===n?(r+=n?":":"::",o=!0):(r+=t[n].toString(16),n<7&&(r+=":")));return"["+r+"]"}return t},B={},D=h({},B,{" ":1,'"':1,"<":1,">":1,"`":1}),G=h({},D,{"#":1,"?":1,"{":1,"}":1}),W=h({},G,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),V=function(t,r){var n=v(t,0);return n>32&&n<127&&!l(r,t)?t:encodeURIComponent(t)},$={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},X=function(t){return l($,t.scheme)},J=function(t){return""!=t.username||""!=t.password},Y=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},H=function(t,r){var n;return 2==t.length&&I.test(t.charAt(0))&&(":"==(n=t.charAt(1))||!r&&"|"==n)},Q=function(t){var r;return t.length>1&&H(t.slice(0,2))&&(2==t.length||"/"===(r=t.charAt(2))||"\\"===r||"?"===r||"#"===r)},K=function(t){var r=t.path,n=r.length;!n||"file"==t.scheme&&1==n&&H(r[0],!0)||r.pop()},Z=function(t){return"."===t||"%2e"===t.toLowerCase()},tt={},rt={},nt={},et={},ot={},it={},ut={},at={},ct={},st={},ft={},lt={},ht={},pt={},vt={},gt={},dt={},yt={},xt={},mt={},bt={},St=function(t,r,n,o){var i,u,a,c,s,f=n||tt,h=0,v="",g=!1,d=!1,y=!1;for(n||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,r=r.replace(U,"")),r=r.replace(F,""),i=p(r);h<=i.length;){switch(u=i[h],f){case tt:if(!u||!I.test(u)){if(n)return"Invalid scheme";f=nt;continue}v+=u.toLowerCase(),f=rt;break;case rt:if(u&&(R.test(u)||"+"==u||"-"==u||"."==u))v+=u.toLowerCase();else{if(":"!=u){if(n)return"Invalid scheme";v="",f=nt,h=0;continue}if(n&&(X(t)!=l($,v)||"file"==v&&(J(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=v,n)return void(X(t)&&$[t.scheme]==t.port&&(t.port=null));v="","file"==t.scheme?f=pt:X(t)&&o&&o.scheme==t.scheme?f=et:X(t)?f=at:"/"==i[h+1]?(f=ot,h++):(t.cannotBeABaseURL=!0,t.path.push(""),f=xt)}break;case nt:if(!o||o.cannotBeABaseURL&&"#"!=u)return"Invalid scheme";if(o.cannotBeABaseURL&&"#"==u){t.scheme=o.scheme,t.path=o.path.slice(),t.query=o.query,t.fragment="",t.cannotBeABaseURL=!0,f=bt;break}f="file"==o.scheme?pt:it;continue;case et:if("/"!=u||"/"!=i[h+1]){f=it;continue}f=ct,h++;break;case ot:if("/"==u){f=st;break}f=yt;continue;case it:if(t.scheme=o.scheme,u==e)t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query=o.query;else if("/"==u||"\\"==u&&X(t))f=ut;else if("?"==u)t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query="",f=mt;else{if("#"!=u){t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.path.pop(),f=yt;continue}t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query=o.query,t.fragment="",f=bt}break;case ut:if(!X(t)||"/"!=u&&"\\"!=u){if("/"!=u){t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,f=yt;continue}f=st}else f=ct;break;case at:if(f=ct,"/"!=u||"/"!=v.charAt(h+1))continue;h++;break;case ct:if("/"!=u&&"\\"!=u){f=st;continue}break;case st:if("@"==u){g&&(v="%40"+v),g=!0,a=p(v);for(var x=0;x<a.length;x++){var m=a[x];if(":"!=m||y){var b=V(m,W);y?t.password+=b:t.username+=b}else y=!0}v=""}else if(u==e||"/"==u||"?"==u||"#"==u||"\\"==u&&X(t)){if(g&&""==v)return"Invalid authority";h-=p(v).length+1,v="",f=ft}else v+=u;break;case ft:case lt:if(n&&"file"==t.scheme){f=gt;continue}if(":"!=u||d){if(u==e||"/"==u||"?"==u||"#"==u||"\\"==u&&X(t)){if(X(t)&&""==v)return"Invalid host";if(n&&""==v&&(J(t)||null!==t.port))return;if(c=M(t,v))return c;if(v="",f=dt,n)return;continue}"["==u?d=!0:"]"==u&&(d=!1),v+=u}else{if(""==v)return"Invalid host";if(c=M(t,v))return c;if(v="",f=ht,n==lt)return}break;case ht:if(!j.test(u)){if(u==e||"/"==u||"?"==u||"#"==u||"\\"==u&&X(t)||n){if(""!=v){var S=parseInt(v,10);if(S>65535)return"Invalid port";t.port=X(t)&&S===$[t.scheme]?null:S,v=""}if(n)return;f=dt;continue}return"Invalid port"}v+=u;break;case pt:if(t.scheme="file","/"==u||"\\"==u)f=vt;else{if(!o||"file"!=o.scheme){f=yt;continue}if(u==e)t.host=o.host,t.path=o.path.slice(),t.query=o.query;else if("?"==u)t.host=o.host,t.path=o.path.slice(),t.query="",f=mt;else{if("#"!=u){Q(i.slice(h).join(""))||(t.host=o.host,t.path=o.path.slice(),K(t)),f=yt;continue}t.host=o.host,t.path=o.path.slice(),t.query=o.query,t.fragment="",f=bt}}break;case vt:if("/"==u||"\\"==u){f=gt;break}o&&"file"==o.scheme&&!Q(i.slice(h).join(""))&&(H(o.path[0],!0)?t.path.push(o.path[0]):t.host=o.host),f=yt;continue;case gt:if(u==e||"/"==u||"\\"==u||"?"==u||"#"==u){if(!n&&H(v))f=yt;else if(""==v){if(t.host="",n)return;f=dt}else{if(c=M(t,v))return c;if("localhost"==t.host&&(t.host=""),n)return;v="",f=dt}continue}v+=u;break;case dt:if(X(t)){if(f=yt,"/"!=u&&"\\"!=u)continue}else if(n||"?"!=u)if(n||"#"!=u){if(u!=e&&(f=yt,"/"!=u))continue}else t.fragment="",f=bt;else t.query="",f=mt;break;case yt:if(u==e||"/"==u||"\\"==u&&X(t)||!n&&("?"==u||"#"==u)){if(".."===(s=(s=v).toLowerCase())||"%2e."===s||".%2e"===s||"%2e%2e"===s?(K(t),"/"==u||"\\"==u&&X(t)||t.path.push("")):Z(v)?"/"==u||"\\"==u&&X(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&H(v)&&(t.host&&(t.host=""),v=v.charAt(0)+":"),t.path.push(v)),v="","file"==t.scheme&&(u==e||"?"==u||"#"==u))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==u?(t.query="",f=mt):"#"==u&&(t.fragment="",f=bt)}else v+=V(u,G);break;case xt:"?"==u?(t.query="",f=mt):"#"==u?(t.fragment="",f=bt):u!=e&&(t.path[0]+=V(u,B));break;case mt:n||"#"!=u?u!=e&&("'"==u&&X(t)?t.query+="%27":t.query+="#"==u?"%23":V(u,B)):(t.fragment="",f=bt);break;case bt:u!=e&&(t.fragment+=V(u,D))}h++}},wt=function(t){var r,n,e=f(this,wt,"URL"),o=arguments.length>1?arguments[1]:void 0,u=String(t),a=w(e,{type:"URL"});if(void 0!==o)if(o instanceof wt)r=E(o);else if(n=St(r={},String(o)))throw TypeError(n);if(n=St(a,u,null,r))throw TypeError(n);var c=a.searchParams=new b,s=S(c);s.updateSearchParams(a.query),s.updateURL=function(){a.query=String(c)||null},i||(e.href=Ot.call(e),e.origin=At.call(e),e.protocol=It.call(e),e.username=Rt.call(e),e.password=jt.call(e),e.host=kt.call(e),e.hostname=Lt.call(e),e.port=Pt.call(e),e.pathname=_t.call(e),e.search=Nt.call(e),e.searchParams=Tt.call(e),e.hash=Ut.call(e))},Et=wt.prototype,Ot=function(){var t=E(this),r=t.scheme,n=t.username,e=t.password,o=t.host,i=t.port,u=t.path,a=t.query,c=t.fragment,s=r+":";return null!==o?(s+="//",J(t)&&(s+=n+(e?":"+e:"")+"@"),s+=q(o),null!==i&&(s+=":"+i)):"file"==r&&(s+="//"),s+=t.cannotBeABaseURL?u[0]:u.length?"/"+u.join("/"):"",null!==a&&(s+="?"+a),null!==c&&(s+="#"+c),s},At=function(){var t=E(this),r=t.scheme,n=t.port;if("blob"==r)try{return new URL(r.path[0]).origin}catch(t){return"null"}return"file"!=r&&X(t)?r+"://"+q(t.host)+(null!==n?":"+n:""):"null"},It=function(){return E(this).scheme+":"},Rt=function(){return E(this).username},jt=function(){return E(this).password},kt=function(){var t=E(this),r=t.host,n=t.port;return null===r?"":null===n?q(r):q(r)+":"+n},Lt=function(){var t=E(this).host;return null===t?"":q(t)},Pt=function(){var t=E(this).port;return null===t?"":String(t)},_t=function(){var t=E(this),r=t.path;return t.cannotBeABaseURL?r[0]:r.length?"/"+r.join("/"):""},Nt=function(){var t=E(this).query;return t?"?"+t:""},Tt=function(){return E(this).searchParams},Ut=function(){var t=E(this).fragment;return t?"#"+t:""},Ft=function(t,r){return{get:t,set:r,configurable:!0,enumerable:!0}};if(i&&c(Et,{href:Ft(Ot,function(t){var r=E(this),n=String(t),e=St(r,n);if(e)throw TypeError(e);S(r.searchParams).updateSearchParams(r.query)}),origin:Ft(At),protocol:Ft(It,function(t){var r=E(this);St(r,String(t)+":",tt)}),username:Ft(Rt,function(t){var r=E(this),n=p(String(t));if(!Y(r)){r.username="";for(var e=0;e<n.length;e++)r.username+=V(n[e],W)}}),password:Ft(jt,function(t){var r=E(this),n=p(String(t));if(!Y(r)){r.password="";for(var e=0;e<n.length;e++)r.password+=V(n[e],W)}}),host:Ft(kt,function(t){var r=E(this);r.cannotBeABaseURL||St(r,String(t),ft)}),hostname:Ft(Lt,function(t){var r=E(this);r.cannotBeABaseURL||St(r,String(t),lt)}),port:Ft(Pt,function(t){var r=E(this);Y(r)||(""==(t=String(t))?r.port=null:St(r,t,ht))}),pathname:Ft(_t,function(t){var r=E(this);r.cannotBeABaseURL||(r.path=[],St(r,t+"",dt))}),search:Ft(Nt,function(t){var r=E(this);""==(t=String(t))?r.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),r.query="",St(r,t,mt)),S(r.searchParams).updateSearchParams(r.query)}),searchParams:Ft(Tt),hash:Ft(Ut,function(t){var r=E(this);""!=(t=String(t))?("#"==t.charAt(0)&&(t=t.slice(1)),r.fragment="",St(r,t,bt)):r.fragment=null})}),s(Et,"toJSON",function(){return Ot.call(this)},{enumerable:!0}),s(Et,"toString",function(){return Ot.call(this)},{enumerable:!0}),m){var Mt=m.createObjectURL,Ct=m.revokeObjectURL;Mt&&s(wt,"createObjectURL",function(t){return Mt.apply(m,arguments)}),Ct&&s(wt,"revokeObjectURL",function(t){return Ct.apply(m,arguments)})}d(wt,"URL"),o({global:!0,forced:!u,sham:!i},{URL:wt})},function(t,r,n){"use strict";var e=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",u=Math.floor,a=String.fromCharCode,c=function(t){return t+22+75*(t<26)},s=function(t,r,n){var e=0;for(t=n?u(t/700):t>>1,t+=u(t/r);t>455;e+=36)t=u(t/35);return u(e+36*t/(t+38))},f=function(t){var r,n,e=[],o=(t=function(t){for(var r=[],n=0,e=t.length;n<e;){var o=t.charCodeAt(n++);if(o>=55296&&o<=56319&&n<e){var i=t.charCodeAt(n++);56320==(64512&i)?r.push(((1023&o)<<10)+(1023&i)+65536):(r.push(o),n--)}else r.push(o)}return r}(t)).length,f=128,l=0,h=72;for(r=0;r<t.length;r++)(n=t[r])<128&&e.push(a(n));var p=e.length,v=p;for(p&&e.push("-");v<o;){var g=2147483647;for(r=0;r<t.length;r++)(n=t[r])>=f&&n<g&&(g=n);var d=v+1;if(g-f>u((2147483647-l)/d))throw RangeError(i);for(l+=(g-f)*d,f=g,r=0;r<t.length;r++){if((n=t[r])<f&&++l>2147483647)throw RangeError(i);if(n==f){for(var y=l,x=36;;x+=36){var m=x<=h?1:x>=h+26?26:x-h;if(y<m)break;var b=y-m,S=36-m;e.push(a(c(m+b%S))),y=u(b/S)}e.push(a(c(y))),h=s(l,d,v==p),l=0,++v}}++l,++f}return e.join("")};t.exports=function(t){var r,n,i=[],u=t.toLowerCase().replace(o,".").split(".");for(r=0;r<u.length;r++)n=u[r],i.push(e.test(n)?"xn--"+f(n):n);return i.join(".")}},function(t,r,n){var e=n(7),o=n(48);t.exports=function(t){var r=o(t);if("function"!=typeof r)throw TypeError(String(t)+" is not iterable");return e(r.call(t))}},function(t,r,n){"use strict";n(0)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})}]); }();
27
28//!fetch 3.0.0, global "this" must be replaced with "window"
29!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.WHATWGFetch={})}(window,function(t){"use strict";var e={searchParams:"URLSearchParams"in self,iterable:"Symbol"in self&&"iterator"in Symbol,blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self};if(e.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function i(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var r={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return e.iterable&&(r[Symbol.iterator]=function(){return r}),r}function a(t){this.map={},t instanceof a?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function h(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function u(t){var e=new FileReader,r=f(e);return e.readAsArrayBuffer(t),r}function d(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function c(){return this.bodyUsed=!1,this._initBody=function(t){var r;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:e.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:e.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():e.arrayBuffer&&e.blob&&(r=t)&&DataView.prototype.isPrototypeOf(r)?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||o(t))?this._bodyArrayBuffer=d(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=h(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(u)}),this.text=function(){var t,e,r,o=h(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,r=f(e=new FileReader),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),o=0;o<e.length;o++)r[o]=String.fromCharCode(e[o]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(p)}),this.json=function(){return this.text().then(JSON.parse)},this}a.prototype.append=function(t,e){t=n(t),e=i(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},a.prototype.delete=function(t){delete this.map[n(t)]},a.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},a.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},a.prototype.set=function(t,e){this.map[n(t)]=i(e)},a.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},a.prototype.keys=function(){var t=[];return this.forEach(function(e,r){t.push(r)}),s(t)},a.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),s(t)},a.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),s(t)},e.iterable&&(a.prototype[Symbol.iterator]=a.prototype.entries);var l=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var r,o,n=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new a(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new a(e.headers)),this.method=(o=(r=e.method||this.method||"GET").toUpperCase(),l.indexOf(o)>-1?o:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function p(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),o=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(n))}}),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new a(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},c.call(y.prototype),c.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new a(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},t.DOMException=self.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function w(r,o){return new Promise(function(n,i){var s=new y(r,o);if(s.signal&&s.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var h=new XMLHttpRequest;function f(){h.abort()}h.onload=function(){var t,e,r={status:h.status,statusText:h.statusText,headers:(t=h.getAllResponseHeaders()||"",e=new a,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var r=t.split(":"),o=r.shift().trim();if(o){var n=r.join(":").trim();e.append(o,n)}}),e)};r.url="responseURL"in h?h.responseURL:r.headers.get("X-Request-URL");var o="response"in h?h.response:h.responseText;n(new b(o,r))},h.onerror=function(){i(new TypeError("Network request failed"))},h.ontimeout=function(){i(new TypeError("Network request failed"))},h.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},h.open(s.method,s.url,!0),"include"===s.credentials?h.withCredentials=!0:"omit"===s.credentials&&(h.withCredentials=!1),"responseType"in h&&e.blob&&(h.responseType="blob"),s.headers.forEach(function(t,e){h.setRequestHeader(e,t)}),s.signal&&(s.signal.addEventListener("abort",f),h.onreadystatechange=function(){4===h.readyState&&s.signal.removeEventListener("abort",f)}),h.send(void 0===s._bodyInit?null:s._bodyInit)})}w.polyfill=!0,self.fetch||(self.fetch=w,self.Headers=a,self.Request=y,self.Response=b),t.Headers=a,t.Request=y,t.Response=b,t.fetch=w,Object.defineProperty(t,"__esModule",{value:!0})});
30
31(function(){
32 /*
33 Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
34 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
35 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
36 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
37 Code distributed by Google as part of the polymer project is also
38 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
39 */
40 'use strict';var aa=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function g(a){var b=aa.has(a);a=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a);return!b&&a}function l(a){var b=a.isConnected;if(void 0!==b)return b;for(;a&&!(a.__CE_isImportDocument||a instanceof Document);)a=a.parentNode||(window.ShadowRoot&&a instanceof ShadowRoot?a.host:void 0);return!(!a||!(a.__CE_isImportDocument||a instanceof Document))}
41 function n(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}
42 function p(a,b,d){d=void 0===d?new Set:d;for(var c=a;c;){if(c.nodeType===Node.ELEMENT_NODE){var e=c;b(e);var f=e.localName;if("link"===f&&"import"===e.getAttribute("rel")){c=e.import;if(c instanceof Node&&!d.has(c))for(d.add(c),c=c.firstChild;c;c=c.nextSibling)p(c,b,d);c=n(a,e);continue}else if("template"===f){c=n(a,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)p(e,b,d)}c=c.firstChild?c.firstChild:n(a,c)}}function r(a,b,d){a[b]=d};function u(){this.a=new Map;this.g=new Map;this.c=[];this.f=[];this.b=!1}function ba(a,b,d){a.a.set(b,d);a.g.set(d.constructorFunction,d)}function ca(a,b){a.b=!0;a.c.push(b)}function da(a,b){a.b=!0;a.f.push(b)}function v(a,b){a.b&&p(b,function(b){return w(a,b)})}function w(a,b){if(a.b&&!b.__CE_patched){b.__CE_patched=!0;for(var d=0;d<a.c.length;d++)a.c[d](b);for(d=0;d<a.f.length;d++)a.f[d](b)}}
43 function x(a,b){var d=[];p(b,function(b){return d.push(b)});for(b=0;b<d.length;b++){var c=d[b];1===c.__CE_state?a.connectedCallback(c):y(a,c)}}function z(a,b){var d=[];p(b,function(b){return d.push(b)});for(b=0;b<d.length;b++){var c=d[b];1===c.__CE_state&&a.disconnectedCallback(c)}}
44 function A(a,b,d){d=void 0===d?{}:d;var c=d.u||new Set,e=d.i||function(b){return y(a,b)},f=[];p(b,function(b){if("link"===b.localName&&"import"===b.getAttribute("rel")){var d=b.import;d instanceof Node&&(d.__CE_isImportDocument=!0,d.__CE_hasRegistry=!0);d&&"complete"===d.readyState?d.__CE_documentLoadHandled=!0:b.addEventListener("load",function(){var d=b.import;if(!d.__CE_documentLoadHandled){d.__CE_documentLoadHandled=!0;var f=new Set(c);f.delete(d);A(a,d,{u:f,i:e})}})}else f.push(b)},c);if(a.b)for(b=
45 0;b<f.length;b++)w(a,f[b]);for(b=0;b<f.length;b++)e(f[b])}
46 function y(a,b){if(void 0===b.__CE_state){var d=b.ownerDocument;if(d.defaultView||d.__CE_isImportDocument&&d.__CE_hasRegistry)if(d=a.a.get(b.localName)){d.constructionStack.push(b);var c=d.constructorFunction;try{try{if(new c!==b)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{d.constructionStack.pop()}}catch(t){throw b.__CE_state=2,t;}b.__CE_state=1;b.__CE_definition=d;if(d.attributeChangedCallback)for(d=d.observedAttributes,c=0;c<d.length;c++){var e=
47 d[c],f=b.getAttribute(e);null!==f&&a.attributeChangedCallback(b,e,null,f,null)}l(b)&&a.connectedCallback(b)}}}u.prototype.connectedCallback=function(a){var b=a.__CE_definition;b.connectedCallback&&b.connectedCallback.call(a)};u.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;b.disconnectedCallback&&b.disconnectedCallback.call(a)};
48 u.prototype.attributeChangedCallback=function(a,b,d,c,e){var f=a.__CE_definition;f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(b)&&f.attributeChangedCallback.call(a,b,d,c,e)};function B(a){var b=document;this.c=a;this.a=b;this.b=void 0;A(this.c,this.a);"loading"===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function C(a){a.b&&a.b.disconnect()}B.prototype.f=function(a){var b=this.a.readyState;"interactive"!==b&&"complete"!==b||C(this);for(b=0;b<a.length;b++)for(var d=a[b].addedNodes,c=0;c<d.length;c++)A(this.c,d[c])};function ea(){var a=this;this.b=this.a=void 0;this.c=new Promise(function(b){a.b=b;a.a&&b(a.a)})}function D(a){if(a.a)throw Error("Already resolved.");a.a=void 0;a.b&&a.b(void 0)};function E(a){this.c=!1;this.a=a;this.j=new Map;this.f=function(b){return b()};this.b=!1;this.g=[];this.o=new B(a)}
49 E.prototype.l=function(a,b){var d=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!g(a))throw new SyntaxError("The element name '"+a+"' is not valid.");if(this.a.a.get(a))throw Error("A custom element with name '"+a+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var c=function(b){var a=e[b];if(void 0!==a&&!(a instanceof Function))throw Error("The '"+b+"' callback must be a function.");
50 return a},e=b.prototype;if(!(e instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var f=c("connectedCallback");var t=c("disconnectedCallback");var k=c("adoptedCallback");var h=c("attributeChangedCallback");var m=b.observedAttributes||[]}catch(q){return}finally{this.c=!1}b={localName:a,constructorFunction:b,connectedCallback:f,disconnectedCallback:t,adoptedCallback:k,attributeChangedCallback:h,observedAttributes:m,constructionStack:[]};ba(this.a,
51 a,b);this.g.push(b);this.b||(this.b=!0,this.f(function(){return fa(d)}))};E.prototype.i=function(a){A(this.a,a)};
52 function fa(a){if(!1!==a.b){a.b=!1;for(var b=a.g,d=[],c=new Map,e=0;e<b.length;e++)c.set(b[e].localName,[]);A(a.a,document,{i:function(b){if(void 0===b.__CE_state){var e=b.localName,f=c.get(e);f?f.push(b):a.a.a.get(e)&&d.push(b)}}});for(e=0;e<d.length;e++)y(a.a,d[e]);for(;0<b.length;){var f=b.shift();e=f.localName;f=c.get(f.localName);for(var t=0;t<f.length;t++)y(a.a,f[t]);(e=a.j.get(e))&&D(e)}}}E.prototype.get=function(a){if(a=this.a.a.get(a))return a.constructorFunction};
53 E.prototype.m=function(a){if(!g(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this.j.get(a);if(b)return b.c;b=new ea;this.j.set(a,b);this.a.a.get(a)&&!this.g.some(function(b){return b.localName===a})&&D(b);return b.c};E.prototype.s=function(a){C(this.o);var b=this.f;this.f=function(d){return a(function(){return b(d)})}};window.CustomElementRegistry=E;E.prototype.define=E.prototype.l;E.prototype.upgrade=E.prototype.i;E.prototype.get=E.prototype.get;
54 E.prototype.whenDefined=E.prototype.m;E.prototype.polyfillWrapFlushCallback=E.prototype.s;var F=window.Document.prototype.createElement,G=window.Document.prototype.createElementNS,ha=window.Document.prototype.importNode,ia=window.Document.prototype.prepend,ja=window.Document.prototype.append,ka=window.DocumentFragment.prototype.prepend,la=window.DocumentFragment.prototype.append,H=window.Node.prototype.cloneNode,I=window.Node.prototype.appendChild,J=window.Node.prototype.insertBefore,K=window.Node.prototype.removeChild,L=window.Node.prototype.replaceChild,M=Object.getOwnPropertyDescriptor(window.Node.prototype,
55 "textContent"),N=window.Element.prototype.attachShadow,O=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),P=window.Element.prototype.getAttribute,Q=window.Element.prototype.setAttribute,R=window.Element.prototype.removeAttribute,S=window.Element.prototype.getAttributeNS,T=window.Element.prototype.setAttributeNS,U=window.Element.prototype.removeAttributeNS,ma=window.Element.prototype.insertAdjacentElement,na=window.Element.prototype.insertAdjacentHTML,oa=window.Element.prototype.prepend,
56 pa=window.Element.prototype.append,V=window.Element.prototype.before,qa=window.Element.prototype.after,ra=window.Element.prototype.replaceWith,sa=window.Element.prototype.remove,ta=window.HTMLElement,W=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),ua=window.HTMLElement.prototype.insertAdjacentElement,va=window.HTMLElement.prototype.insertAdjacentHTML;var wa=new function(){};function xa(){var a=X;window.HTMLElement=function(){function b(){var b=this.constructor,c=a.g.get(b);if(!c)throw Error("The custom element being constructed was not registered with `customElements`.");var e=c.constructionStack;if(0===e.length)return e=F.call(document,c.localName),Object.setPrototypeOf(e,b.prototype),e.__CE_state=1,e.__CE_definition=c,w(a,e),e;c=e.length-1;var f=e[c];if(f===wa)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");
57 e[c]=wa;Object.setPrototypeOf(f,b.prototype);w(a,f);return f}b.prototype=ta.prototype;Object.defineProperty(b.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:b});return b}()};function Y(a,b,d){function c(b){return function(d){for(var e=[],c=0;c<arguments.length;++c)e[c]=arguments[c];c=[];for(var f=[],m=0;m<e.length;m++){var q=e[m];q instanceof Element&&l(q)&&f.push(q);if(q instanceof DocumentFragment)for(q=q.firstChild;q;q=q.nextSibling)c.push(q);else c.push(q)}b.apply(this,e);for(e=0;e<f.length;e++)z(a,f[e]);if(l(this))for(e=0;e<c.length;e++)f=c[e],f instanceof Element&&x(a,f)}}void 0!==d.h&&(b.prepend=c(d.h));void 0!==d.append&&(b.append=c(d.append))};function ya(){var a=X;r(Document.prototype,"createElement",function(b){if(this.__CE_hasRegistry){var d=a.a.get(b);if(d)return new d.constructorFunction}b=F.call(this,b);w(a,b);return b});r(Document.prototype,"importNode",function(b,d){b=ha.call(this,b,!!d);this.__CE_hasRegistry?A(a,b):v(a,b);return b});r(Document.prototype,"createElementNS",function(b,d){if(this.__CE_hasRegistry&&(null===b||"http://www.w3.org/1999/xhtml"===b)){var c=a.a.get(d);if(c)return new c.constructorFunction}b=G.call(this,b,
58 d);w(a,b);return b});Y(a,Document.prototype,{h:ia,append:ja})};function za(){function a(a,c){Object.defineProperty(a,"textContent",{enumerable:c.enumerable,configurable:!0,get:c.get,set:function(a){if(this.nodeType===Node.TEXT_NODE)c.set.call(this,a);else{var d=void 0;if(this.firstChild){var e=this.childNodes,k=e.length;if(0<k&&l(this)){d=Array(k);for(var h=0;h<k;h++)d[h]=e[h]}}c.set.call(this,a);if(d)for(a=0;a<d.length;a++)z(b,d[a])}}})}var b=X;r(Node.prototype,"insertBefore",function(a,c){if(a instanceof DocumentFragment){var e=Array.prototype.slice.apply(a.childNodes);
59 a=J.call(this,a,c);if(l(this))for(c=0;c<e.length;c++)x(b,e[c]);return a}e=l(a);c=J.call(this,a,c);e&&z(b,a);l(this)&&x(b,a);return c});r(Node.prototype,"appendChild",function(a){if(a instanceof DocumentFragment){var c=Array.prototype.slice.apply(a.childNodes);a=I.call(this,a);if(l(this))for(var e=0;e<c.length;e++)x(b,c[e]);return a}c=l(a);e=I.call(this,a);c&&z(b,a);l(this)&&x(b,a);return e});r(Node.prototype,"cloneNode",function(a){a=H.call(this,!!a);this.ownerDocument.__CE_hasRegistry?A(b,a):v(b,
60 a);return a});r(Node.prototype,"removeChild",function(a){var c=l(a),e=K.call(this,a);c&&z(b,a);return e});r(Node.prototype,"replaceChild",function(a,c){if(a instanceof DocumentFragment){var e=Array.prototype.slice.apply(a.childNodes);a=L.call(this,a,c);if(l(this))for(z(b,c),c=0;c<e.length;c++)x(b,e[c]);return a}e=l(a);var f=L.call(this,a,c),d=l(this);d&&z(b,c);e&&z(b,a);d&&x(b,a);return f});M&&M.get?a(Node.prototype,M):ca(b,function(b){a(b,{enumerable:!0,configurable:!0,get:function(){for(var a=[],
61 b=0;b<this.childNodes.length;b++){var f=this.childNodes[b];f.nodeType!==Node.COMMENT_NODE&&a.push(f.textContent)}return a.join("")},set:function(a){for(;this.firstChild;)K.call(this,this.firstChild);null!=a&&""!==a&&I.call(this,document.createTextNode(a))}})})};function Aa(a){function b(b){return function(e){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];d=[];for(var k=[],h=0;h<c.length;h++){var m=c[h];m instanceof Element&&l(m)&&k.push(m);if(m instanceof DocumentFragment)for(m=m.firstChild;m;m=m.nextSibling)d.push(m);else d.push(m)}b.apply(this,c);for(c=0;c<k.length;c++)z(a,k[c]);if(l(this))for(c=0;c<d.length;c++)k=d[c],k instanceof Element&&x(a,k)}}var d=Element.prototype;void 0!==V&&(d.before=b(V));void 0!==V&&(d.after=b(qa));void 0!==ra&&
62 r(d,"replaceWith",function(b){for(var e=[],c=0;c<arguments.length;++c)e[c]=arguments[c];c=[];for(var d=[],k=0;k<e.length;k++){var h=e[k];h instanceof Element&&l(h)&&d.push(h);if(h instanceof DocumentFragment)for(h=h.firstChild;h;h=h.nextSibling)c.push(h);else c.push(h)}k=l(this);ra.apply(this,e);for(e=0;e<d.length;e++)z(a,d[e]);if(k)for(z(a,this),e=0;e<c.length;e++)d=c[e],d instanceof Element&&x(a,d)});void 0!==sa&&r(d,"remove",function(){var b=l(this);sa.call(this);b&&z(a,this)})};function Ba(){function a(a,b){Object.defineProperty(a,"innerHTML",{enumerable:b.enumerable,configurable:!0,get:b.get,set:function(a){var e=this,d=void 0;l(this)&&(d=[],p(this,function(a){a!==e&&d.push(a)}));b.set.call(this,a);if(d)for(var f=0;f<d.length;f++){var t=d[f];1===t.__CE_state&&c.disconnectedCallback(t)}this.ownerDocument.__CE_hasRegistry?A(c,this):v(c,this);return a}})}function b(a,b){r(a,"insertAdjacentElement",function(a,e){var d=l(e);a=b.call(this,a,e);d&&z(c,e);l(a)&&x(c,e);return a})}
63 function d(a,b){function e(a,b){for(var e=[];a!==b;a=a.nextSibling)e.push(a);for(b=0;b<e.length;b++)A(c,e[b])}r(a,"insertAdjacentHTML",function(a,c){a=a.toLowerCase();if("beforebegin"===a){var d=this.previousSibling;b.call(this,a,c);e(d||this.parentNode.firstChild,this)}else if("afterbegin"===a)d=this.firstChild,b.call(this,a,c),e(this.firstChild,d);else if("beforeend"===a)d=this.lastChild,b.call(this,a,c),e(d||this.firstChild,null);else if("afterend"===a)d=this.nextSibling,b.call(this,a,c),e(this.nextSibling,
64 d);else throw new SyntaxError("The value provided ("+String(a)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");})}var c=X;N&&r(Element.prototype,"attachShadow",function(a){a=N.call(this,a);var b=c;if(b.b&&!a.__CE_patched){a.__CE_patched=!0;for(var e=0;e<b.c.length;e++)b.c[e](a)}return this.__CE_shadowRoot=a});O&&O.get?a(Element.prototype,O):W&&W.get?a(HTMLElement.prototype,W):da(c,function(b){a(b,{enumerable:!0,configurable:!0,get:function(){return H.call(this,!0).innerHTML},
65 set:function(a){var b="template"===this.localName,c=b?this.content:this,e=G.call(document,this.namespaceURI,this.localName);for(e.innerHTML=a;0<c.childNodes.length;)K.call(c,c.childNodes[0]);for(a=b?e.content:e;0<a.childNodes.length;)I.call(c,a.childNodes[0])}})});r(Element.prototype,"setAttribute",function(a,b){if(1!==this.__CE_state)return Q.call(this,a,b);var e=P.call(this,a);Q.call(this,a,b);b=P.call(this,a);c.attributeChangedCallback(this,a,e,b,null)});r(Element.prototype,"setAttributeNS",function(a,
66 b,d){if(1!==this.__CE_state)return T.call(this,a,b,d);var e=S.call(this,a,b);T.call(this,a,b,d);d=S.call(this,a,b);c.attributeChangedCallback(this,b,e,d,a)});r(Element.prototype,"removeAttribute",function(a){if(1!==this.__CE_state)return R.call(this,a);var b=P.call(this,a);R.call(this,a);null!==b&&c.attributeChangedCallback(this,a,b,null,null)});r(Element.prototype,"removeAttributeNS",function(a,b){if(1!==this.__CE_state)return U.call(this,a,b);var d=S.call(this,a,b);U.call(this,a,b);var e=S.call(this,
67 a,b);d!==e&&c.attributeChangedCallback(this,b,d,e,a)});ua?b(HTMLElement.prototype,ua):ma?b(Element.prototype,ma):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");va?d(HTMLElement.prototype,va):na?d(Element.prototype,na):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched.");Y(c,Element.prototype,{h:oa,append:pa});Aa(c)};var Z=window.customElements;if(!Z||Z.forcePolyfill||"function"!=typeof Z.define||"function"!=typeof Z.get){var X=new u;xa();ya();Y(X,DocumentFragment.prototype,{h:ka,append:la});za();Ba();document.__CE_hasRegistry=!0;var customElements=new E(X);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:customElements})};
68}).call(self);
69
70// Polyfill document.baseURI
71if (typeof document.baseURI !== 'string') {
72 Object.defineProperty(Document.prototype, 'baseURI', {
73 enumerable: true,
74 configurable: true,
75 get: function () {
76 var base = document.querySelector('base');
77 if (base) {
78 return base.href;
79 }
80 return document.URL;
81 }
82 });
83}
84
85// Polyfill CustomEvent
86if (typeof window.CustomEvent !== 'function') {
87 window.CustomEvent = function CustomEvent(event, params) {
88 params = params || { bubbles: false, cancelable: false, detail: undefined };
89 var evt = document.createEvent( 'CustomEvent' );
90 evt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail );
91 return evt;
92 }
93 window.CustomEvent.prototype = window.Event.prototype;
94}
95
96// Event.composedPath
97(function(E, d, w) {
98 if(!E.composedPath) {
99 E.composedPath = function() {
100 if (this.path) {
101 return this.path;
102 }
103 var target = this.target;
104
105 this.path = [];
106 while (target.parentNode !== null) {
107 this.path.push(target);
108 target = target.parentNode;
109 }
110 this.path.push(d, w);
111 return this.path;
112 }
113 }
114})(Event.prototype, document, window);
115
116/*!
117Element.closest and Element.matches
118https://github.com/jonathantneal/closest
119Creative Commons Zero v1.0 Universal
120*/
121(function(a){"function"!==typeof a.matches&&(a.matches=a.msMatchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||function(a){a=(this.document||this.ownerDocument).querySelectorAll(a);for(var b=0;a[b]&&a[b]!==this;)++b;return!!a[b]});"function"!==typeof a.closest&&(a.closest=function(a){for(var b=this;b&&1===b.nodeType;){if(b.matches(a))return b;b=b.parentNode}return null})})(window.Element.prototype);
122
123/*!
124Element.getRootNode()
125*/
126(function(c){function d(a){a=b(a);return a&&11===a.nodeType?d(a.host):a}function b(a){return a&&a.parentNode?b(a.parentNode):a}"function"!==typeof c.getRootNode&&(c.getRootNode=function(a){return a&&a.composed?d(this):b(this)})})(Element.prototype);
127
128/*!
129Element.isConnected()
130*/
131(function(prototype) {
132 if (!("isConnected" in prototype)) {
133 Object.defineProperty(prototype, 'isConnected', {
134 configurable: true,
135 enumerable: true,
136 get: function() {
137 var root = this.getRootNode({composed: true});
138 return root && root.nodeType === 9;
139 }
140 })
141 }
142})(Element.prototype);
143
144/*!
145Element.remove()
146*/
147(function(b){b.forEach(function(a){a.hasOwnProperty("remove")||Object.defineProperty(a,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})})})([Element.prototype,CharacterData.prototype,DocumentType.prototype]);
148
149/*!
150Element.classList
151*/
152!function(e){'classList'in e||Object.defineProperty(e,"classList",{get:function(){var e=this,t=(e.getAttribute("class")||"").replace(/^\s+|\s$/g,"").split(/\s+/g);function n(){t.length>0?e.setAttribute("class",t.join(" ")):e.removeAttribute("class")}return""===t[0]&&t.splice(0,1),t.toggle=function(e,i){void 0!==i?i?t.add(e):t.remove(e):-1!==t.indexOf(e)?t.splice(t.indexOf(e),1):t.push(e),n()},t.add=function(){for(var e=[].slice.call(arguments),i=0,s=e.length;i<s;i++)-1===t.indexOf(e[i])&&t.push(e[i]);n()},t.remove=function(){for(var e=[].slice.call(arguments),i=0,s=e.length;i<s;i++)-1!==t.indexOf(e[i])&&t.splice(t.indexOf(e[i]),1);n()},t.item=function(e){return t[e]},t.contains=function(e){return-1!==t.indexOf(e)},t.replace=function(e,i){-1!==t.indexOf(e)&&t.splice(t.indexOf(e),1,i),n()},t.value=e.getAttribute("class")||"",t}})}(Element.prototype);
153
154/*!
155DOMTokenList
156*/
157(function(prototype){
158 try {
159 document.body.classList.add();
160 } catch (e) {
161 var originalAdd = prototype.add;
162 var originalRemove = prototype.remove;
163
164 prototype.add = function() {
165 for (var i = 0; i < arguments.length; i++) {
166 originalAdd.call(this, arguments[i]);
167 }
168 };
169
170 prototype.remove = function() {
171 for (var i = 0; i < arguments.length; i++) {
172 originalRemove.call(this, arguments[i]);
173 }
174 };
175 }
176}(DOMTokenList.prototype));
177
178(function() {
179 if (
180 // No Reflect, no classes, no need for shim because native custom elements
181 // require ES2015 classes or Reflect.
182 window.Reflect === undefined ||
183 window.customElements === undefined
184 ) {
185 return;
186 }
187 var BuiltInHTMLElement = HTMLElement;
188 window.HTMLElement = /** @this {!Object} */ function HTMLElement() {
189 return Reflect.construct(
190 BuiltInHTMLElement, [], /** @type {!Function} */ (this.constructor));
191 };
192 HTMLElement.prototype = BuiltInHTMLElement.prototype;
193 HTMLElement.prototype.constructor = HTMLElement;
194 Object.setPrototypeOf(HTMLElement, BuiltInHTMLElement);
195})();
196
197/**
198 * SystemJS 4.0.2
199 * MANUAL PATCH: remove script.crossOrigin = "anonymous"
200 */
201!function(){var e="undefined"!=typeof self,n=e?self:global;var t;if("undefined"!=typeof document){var e=document.querySelector("base[href]");e&&(t=e.href)}if(!t&&"undefined"!=typeof location){var e=(t=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==e&&(t=t.slice(0,e+1))}var r=/\\/g,o="undefined"!=typeof Symbol,i=o&&Symbol.toStringTag,c=o?Symbol():"@";function u(){this[c]={}}var s=u.prototype;var l;s.import=function(e,n){var t=this;return Promise.resolve(t.resolve(e,n)).then(function(e){var n=function e(n,t,r){var o=n[c][t];if(o)return o;var u=[],s=Object.create(null);i&&Object.defineProperty(s,i,{value:"Module"});var l=Promise.resolve().then(function(){return n.instantiate(t,r)}).then(function(e){if(!e)throw Error("Module "+t+" did not instantiate");var r=e[1](function(e,n){o.h=!0;var t=!1;if("object"!=typeof e)e in s&&s[e]===n||(s[e]=n,t=!0);else for(var n in e){var r=e[n];n in s&&s[n]===r||(s[n]=r,t=!0)}if(t)for(var e=0;e<u.length;e++)u[e](s);return n},2===e[1].length?{import:function(e){return n.import(e,t)},meta:n.createContext(t)}:void 0);return o.e=r.execute||function(){},[e[0],r.setters||[]]});var f=l.then(function(r){return Promise.all(r[0].map(function(o,i){var c=r[1][i];return Promise.resolve(n.resolve(o,t)).then(function(r){var o=e(n,r,t);return Promise.resolve(o.I).then(function(){return c&&(o.i.push(c),!o.h&&o.I||c(o.n)),o})})})).then(function(e){o.d=e})});return f.catch(function(e){o.e=null,o.er=e}),o=n[c][t]={id:t,i:u,n:s,I:l,L:f,h:!1,d:void 0,e:void 0,er:void 0,E:void 0,C:void 0}}(t,e);return n.C||function(e,n){return n.C=function e(n,t,r){if(!r[t.id])return r[t.id]=!0,Promise.resolve(t.L).then(function(){return Promise.all(t.d.map(function(t){return e(n,t,r)}))})}(e,n,{}).then(function(){return function e(n,t,r){if(r[t.id])return;if(r[t.id]=!0,!t.e){if(t.er)throw t.er;return t.E?t.E:void 0}var o;return t.d.forEach(function(t){{var i=e(n,t,r);i&&(o=o||[]).push(i)}}),o?Promise.all(o).then(i):i();function i(){try{var e=t.e.call(f);if(e)return e=e.then(function(){t.C=t.n,t.E=null}),t.E=t.E||e;t.C=t.n}catch(e){throw t.er=e,e}finally{t.L=t.I=void 0,t.e=null}}}(e,n,{})}).then(function(){return n.n})}(t,n)})},s.createContext=function(e){return{url:e}},s.register=function(e,n){l=[e,n]},s.getRegister=function(){var e=l;return l=void 0,e};var f=Object.freeze(Object.create(null));n.System=new u;var d=s.register;s.register=function(e,n){d.call(this,e,n)},s.instantiate=function(e,n){var t=this;return".json"===e.substr(-5)?fetch(e).then(function(e){return e.text()}).then(function(e){return[[],function(n){return{execute:function(){n("default",JSON.parse(e))}}}]}):new Promise(function(r,o){var i;function c(n){n.filename===e&&(i=n.error)}window.addEventListener("error",c);var u=document.createElement("script");u.charset="utf-8",u.async=!0,u.addEventListener("error",function(){window.removeEventListener("error",c),o(Error("Error loading "+e+(n?" from "+n:"")))}),u.addEventListener("load",function(){window.removeEventListener("error",c),document.head.removeChild(u),i?o(i):r(t.getRegister())}),u.src=e,document.head.appendChild(u)})},e&&"function"==typeof importScripts&&(s.instantiate=function(e){var n=this;return new Promise(function(t,r){try{importScripts(e)}catch(e){r(e)}t(n.getRegister())})}),s.resolve=function(e,n){var o=function(e,n){if(-1!==e.indexOf("\\")&&(e=e.replace(r,"/")),"/"===e[0]&&"/"===e[1])return n.slice(0,n.indexOf(":")+1)+e;if("."===e[0]&&("/"===e[1]||"."===e[1]&&("/"===e[2]||2===e.length&&(e+="/"))||1===e.length&&(e+="/"))||"/"===e[0]){var t=n.slice(0,n.indexOf(":")+1);var r;if(r="/"===n[t.length+1]?"file:"!==t?(r=n.slice(t.length+2)).slice(r.indexOf("/")+1):n.slice(8):n.slice(t.length+("/"===n[t.length])),"/"===e[0])return n.slice(0,n.length-r.length-1)+e;var o=r.slice(0,r.lastIndexOf("/")+1)+e,i=[];var c=-1;for(var e=0;e<o.length;e++)-1!==c?"/"===o[e]&&(i.push(o.slice(c,e+1)),c=-1):"."===o[e]?"."!==o[e+1]||"/"!==o[e+2]&&e+2!==o.length?"/"===o[e+1]||e+1===o.length?e+=1:c=e:(i.pop(),e+=2):c=e;return-1!==c&&i.push(o.slice(c)),n.slice(0,n.length-r.length)+i.join("")}}(e,n||t);if(!o){if(-1!==e.indexOf(":"))return Promise.resolve(e);throw Error('Cannot resolve "'+e+(n?'" from '+n:'"'))}return Promise.resolve(o)}}();
202/*
203Extremely simple css parser. Intended to be not more than what we need
204and definitely not necessarily correct =).
205*/
206/** @unrestricted */
207var StyleNode = /** @class */ (function () {
208 function StyleNode() {
209 this.start = 0;
210 this.end = 0;
211 this.previous = null;
212 this.parent = null;
213 this.rules = null;
214 this.parsedCssText = '';
215 this.cssText = '';
216 this.atRule = false;
217 this.type = 0;
218 this.keyframesName = '';
219 this.selector = '';
220 this.parsedSelector = '';
221 }
222 return StyleNode;
223}());
224// given a string of css, return a simple rule tree
225/**
226 * @param {string} text
227 * @return {StyleNode}
228 */
229function parse(text) {
230 text = clean(text);
231 return parseCss(lex(text), text);
232}
233// remove stuff we don't care about that may hinder parsing
234/**
235 * @param {string} cssText
236 * @return {string}
237 */
238function clean(cssText) {
239 return cssText.replace(RX.comments, '').replace(RX.port, '');
240}
241// super simple {...} lexer that returns a node tree
242/**
243 * @param {string} text
244 * @return {StyleNode}
245 */
246function lex(text) {
247 var root = new StyleNode();
248 root['start'] = 0;
249 root['end'] = text.length;
250 var n = root;
251 for (var i = 0, l = text.length; i < l; i++) {
252 if (text[i] === OPEN_BRACE) {
253 if (!n['rules']) {
254 n['rules'] = [];
255 }
256 var p = n;
257 var previous = p['rules'][p['rules'].length - 1] || null;
258 n = new StyleNode();
259 n['start'] = i + 1;
260 n['parent'] = p;
261 n['previous'] = previous;
262 p['rules'].push(n);
263 }
264 else if (text[i] === CLOSE_BRACE) {
265 n['end'] = i + 1;
266 n = n['parent'] || root;
267 }
268 }
269 return root;
270}
271// add selectors/cssText to node tree
272/**
273 * @param {StyleNode} node
274 * @param {string} text
275 * @return {StyleNode}
276 */
277function parseCss(node, text) {
278 var t = text.substring(node['start'], node['end'] - 1);
279 node['parsedCssText'] = node['cssText'] = t.trim();
280 if (node.parent) {
281 var ss = node.previous ? node.previous['end'] : node.parent['start'];
282 t = text.substring(ss, node['start'] - 1);
283 t = _expandUnicodeEscapes(t);
284 t = t.replace(RX.multipleSpaces, ' ');
285 // TODO(sorvell): ad hoc; make selector include only after last ;
286 // helps with mixin syntax
287 t = t.substring(t.lastIndexOf(';') + 1);
288 var s = node['parsedSelector'] = node['selector'] = t.trim();
289 node['atRule'] = (s.indexOf(AT_START) === 0);
290 // note, support a subset of rule types...
291 if (node['atRule']) {
292 if (s.indexOf(MEDIA_START) === 0) {
293 node['type'] = types.MEDIA_RULE;
294 }
295 else if (s.match(RX.keyframesRule)) {
296 node['type'] = types.KEYFRAMES_RULE;
297 node['keyframesName'] = node['selector'].split(RX.multipleSpaces).pop();
298 }
299 }
300 else {
301 if (s.indexOf(VAR_START) === 0) {
302 node['type'] = types.MIXIN_RULE;
303 }
304 else {
305 node['type'] = types.STYLE_RULE;
306 }
307 }
308 }
309 var r$ = node['rules'];
310 if (r$) {
311 for (var i = 0, l = r$.length, r = void 0; (i < l) && (r = r$[i]); i++) {
312 parseCss(r, text);
313 }
314 }
315 return node;
316}
317/**
318 * conversion of sort unicode escapes with spaces like `\33 ` (and longer) into
319 * expanded form that doesn't require trailing space `\000033`
320 * @param {string} s
321 * @return {string}
322 */
323function _expandUnicodeEscapes(s) {
324 return s.replace(/\\([0-9a-f]{1,6})\s/gi, function () {
325 var code = arguments[1], repeat = 6 - code.length;
326 while (repeat--) {
327 code = '0' + code;
328 }
329 return '\\' + code;
330 });
331}
332/** @enum {number} */
333var types = {
334 STYLE_RULE: 1,
335 KEYFRAMES_RULE: 7,
336 MEDIA_RULE: 4,
337 MIXIN_RULE: 1000
338};
339var OPEN_BRACE = '{';
340var CLOSE_BRACE = '}';
341// helper regexp's
342var RX = {
343 comments: /\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,
344 port: /@import[^;]*;/gim,
345 customProp: /(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,
346 mixinProp: /(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,
347 mixinApply: /@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,
348 varApply: /[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,
349 keyframesRule: /^@[^\s]*keyframes/,
350 multipleSpaces: /\s+/g
351};
352var VAR_START = '--';
353var MEDIA_START = '@media';
354var AT_START = '@';
355function findRegex(regex, cssText, offset) {
356 regex['lastIndex'] = 0;
357 var r = cssText.substring(offset).match(regex);
358 if (r) {
359 var start = offset + r['index'];
360 return {
361 start: start,
362 end: start + r[0].length
363 };
364 }
365 return null;
366}
367var VAR_USAGE_START = /\bvar\(/;
368var VAR_ASSIGN_START = /\B--[\w-]+\s*:/;
369var COMMENTS = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim;
370var TRAILING_LINES = /^[\t ]+\n/gm;
371function resolveVar(props, prop, fallback) {
372 if (props[prop]) {
373 return props[prop];
374 }
375 if (fallback) {
376 return executeTemplate(fallback, props);
377 }
378 return '';
379}
380function findVarEndIndex(cssText, offset) {
381 var count = 0;
382 var i = offset;
383 for (; i < cssText.length; i++) {
384 var c = cssText[i];
385 if (c === '(') {
386 count++;
387 }
388 else if (c === ')') {
389 count--;
390 if (count <= 0) {
391 return i + 1;
392 }
393 }
394 }
395 return i;
396}
397function parseVar(cssText, offset) {
398 var varPos = findRegex(VAR_USAGE_START, cssText, offset);
399 if (!varPos) {
400 return null;
401 }
402 var endVar = findVarEndIndex(cssText, varPos.start);
403 var varContent = cssText.substring(varPos.end, endVar - 1);
404 var _a = varContent.split(','), propName = _a[0], fallback = _a.slice(1);
405 return {
406 start: varPos.start,
407 end: endVar,
408 propName: propName.trim(),
409 fallback: fallback.length > 0 ? fallback.join(',').trim() : undefined
410 };
411}
412function compileVar(cssText, template, offset) {
413 var varMeta = parseVar(cssText, offset);
414 if (!varMeta) {
415 template.push(cssText.substring(offset, cssText.length));
416 return cssText.length;
417 }
418 var propName = varMeta.propName;
419 var fallback = varMeta.fallback != null ? compileTemplate(varMeta.fallback) : undefined;
420 template.push(cssText.substring(offset, varMeta.start), function (params) { return resolveVar(params, propName, fallback); });
421 return varMeta.end;
422}
423function executeTemplate(template, props) {
424 var final = '';
425 for (var i = 0; i < template.length; i++) {
426 var s = template[i];
427 final += (typeof s === 'string')
428 ? s
429 : s(props);
430 }
431 return final;
432}
433function findEndValue(cssText, offset) {
434 var onStr = false;
435 var double = false;
436 var i = offset;
437 for (; i < cssText.length; i++) {
438 var c = cssText[i];
439 if (onStr) {
440 if (double && c === '"') {
441 onStr = false;
442 }
443 if (!double && c === '\'') {
444 onStr = false;
445 }
446 }
447 else {
448 if (c === '"') {
449 onStr = true;
450 double = true;
451 }
452 else if (c === '\'') {
453 onStr = true;
454 double = false;
455 }
456 else if (c === ';') {
457 return i + 1;
458 }
459 else if (c === '}') {
460 return i;
461 }
462 }
463 }
464 return i;
465}
466function removeCustomAssigns(cssText) {
467 var final = '';
468 var offset = 0;
469 while (true) {
470 var assignPos = findRegex(VAR_ASSIGN_START, cssText, offset);
471 var start = assignPos ? assignPos.start : cssText.length;
472 final += cssText.substring(offset, start);
473 if (assignPos) {
474 offset = findEndValue(cssText, start);
475 }
476 else {
477 break;
478 }
479 }
480 return final;
481}
482function compileTemplate(cssText) {
483 var index = 0;
484 cssText = cssText.replace(COMMENTS, '');
485 cssText = removeCustomAssigns(cssText)
486 .replace(TRAILING_LINES, '');
487 var segments = [];
488 while (index < cssText.length) {
489 index = compileVar(cssText, segments, index);
490 }
491 return segments;
492}
493function resolveValues(selectors) {
494 var props = {};
495 selectors.forEach(function (selector) {
496 selector.declarations.forEach(function (dec) {
497 props[dec.prop] = dec.value;
498 });
499 });
500 var propsValues = {};
501 var entries = Object.entries(props);
502 var _loop_1 = function (i) {
503 var dirty = false;
504 entries.forEach(function (_a) {
505 var key = _a[0], value = _a[1];
506 var propValue = executeTemplate(value, propsValues);
507 if (propValue !== propsValues[key]) {
508 propsValues[key] = propValue;
509 dirty = true;
510 }
511 });
512 if (!dirty) {
513 return "break";
514 }
515 };
516 for (var i = 0; i < 10; i++) {
517 var state_1 = _loop_1(i);
518 if (state_1 === "break")
519 break;
520 }
521 return propsValues;
522}
523function getSelectors(root, index) {
524 if (index === void 0) { index = 0; }
525 if (!root.rules) {
526 return [];
527 }
528 var selectors = [];
529 root.rules
530 .filter(function (rule) { return rule.type === types.STYLE_RULE; })
531 .forEach(function (rule) {
532 var declarations = getDeclarations(rule.cssText);
533 if (declarations.length > 0) {
534 rule.parsedSelector.split(',').forEach(function (selector) {
535 selector = selector.trim();
536 selectors.push({
537 selector: selector,
538 declarations: declarations,
539 specificity: computeSpecificity(),
540 nu: index
541 });
542 });
543 }
544 index++;
545 });
546 return selectors;
547}
548function computeSpecificity(_selector) {
549 return 1;
550}
551var IMPORTANT = '!important';
552var FIND_DECLARATIONS = /(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;
553function getDeclarations(cssText) {
554 var declarations = [];
555 var xArray;
556 while (xArray = FIND_DECLARATIONS.exec(cssText.trim())) {
557 var _a = normalizeValue(xArray[2]), value = _a.value, important = _a.important;
558 declarations.push({
559 prop: xArray[1].trim(),
560 value: compileTemplate(value),
561 important: important,
562 });
563 }
564 return declarations;
565}
566function normalizeValue(value) {
567 var regex = /\s+/gim;
568 value = value.replace(regex, ' ').trim();
569 var important = value.endsWith(IMPORTANT);
570 if (important) {
571 value = value.substr(0, value.length - IMPORTANT.length).trim();
572 }
573 return {
574 value: value,
575 important: important
576 };
577}
578function getActiveSelectors(hostEl, hostScopeMap, globalScopes) {
579 // computes the css scopes that might affect this particular element
580 // avoiding using spread arrays to avoid ts helper fns when in es5
581 var scopes = [];
582 var scopesForElement = getScopesForElement(hostScopeMap, hostEl);
583 // globalScopes are always took into account
584 globalScopes.forEach(function (s) { return scopes.push(s); });
585 // the parent scopes are computed by walking parent dom until <html> is reached
586 scopesForElement.forEach(function (s) { return scopes.push(s); });
587 // each scope might have an array of associated selectors
588 // let's flatten the complete array of selectors from all the scopes
589 var selectorSet = getSelectorsForScopes(scopes);
590 // we filter to only the selectors that matches the hostEl
591 var activeSelectors = selectorSet.filter(function (selector) { return matches(hostEl, selector.selector); });
592 // sort selectors by specifity
593 return sortSelectors(activeSelectors);
594}
595function getScopesForElement(hostTemplateMap, node) {
596 var scopes = [];
597 while (node) {
598 var scope = hostTemplateMap.get(node);
599 if (scope) {
600 scopes.push(scope);
601 }
602 node = node.parentElement;
603 }
604 return scopes;
605}
606function getSelectorsForScopes(scopes) {
607 var selectors = [];
608 scopes.forEach(function (scope) {
609 selectors.push.apply(selectors, scope.selectors);
610 });
611 return selectors;
612}
613function sortSelectors(selectors) {
614 selectors.sort(function (a, b) {
615 if (a.specificity === b.specificity) {
616 return a.nu - b.nu;
617 }
618 return a.specificity - b.specificity;
619 });
620 return selectors;
621}
622function matches(el, selector) {
623 return selector === ':root' || selector === 'html' || el.matches(selector);
624}
625function parseCSS(original) {
626 var ast = parse(original);
627 var template = compileTemplate(original);
628 var selectors = getSelectors(ast);
629 return {
630 original: original,
631 template: template,
632 selectors: selectors,
633 usesCssVars: template.length > 1
634 };
635}
636function addGlobalStyle(globalScopes, styleEl) {
637 if (globalScopes.some(function (css) { return css.styleEl === styleEl; })) {
638 return false;
639 }
640 var css = parseCSS(styleEl.textContent);
641 css.styleEl = styleEl;
642 globalScopes.push(css);
643 return true;
644}
645function updateGlobalScopes(scopes) {
646 var selectors = getSelectorsForScopes(scopes);
647 var props = resolveValues(selectors);
648 scopes.forEach(function (scope) {
649 if (scope.usesCssVars) {
650 scope.styleEl.textContent = executeTemplate(scope.template, props);
651 }
652 });
653}
654function reScope(scope, scopeId) {
655 var template = scope.template.map(function (segment) {
656 return (typeof segment === 'string')
657 ? replaceScope(segment, scope.scopeId, scopeId)
658 : segment;
659 });
660 var selectors = scope.selectors.map(function (sel) {
661 return Object.assign(Object.assign({}, sel), { selector: replaceScope(sel.selector, scope.scopeId, scopeId) });
662 });
663 return Object.assign(Object.assign({}, scope), { template: template,
664 selectors: selectors,
665 scopeId: scopeId });
666}
667function replaceScope(original, oldScopeId, newScopeId) {
668 original = replaceAll(original, "\\." + oldScopeId, "." + newScopeId);
669 return original;
670}
671function replaceAll(input, find, replace) {
672 return input.replace(new RegExp(find, 'g'), replace);
673}
674function loadDocument(doc, globalScopes) {
675 loadDocumentStyles(doc, globalScopes);
676 return loadDocumentLinks(doc, globalScopes);
677}
678function startWatcher(doc, globalScopes) {
679 var mutation = new MutationObserver(function () {
680 if (loadDocumentStyles(doc, globalScopes)) {
681 updateGlobalScopes(globalScopes);
682 }
683 });
684 mutation.observe(document.head, { childList: true });
685}
686function loadDocumentLinks(doc, globalScopes) {
687 var promises = [];
688 var linkElms = doc.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])');
689 for (var i = 0; i < linkElms.length; i++) {
690 promises.push(addGlobalLink(doc, globalScopes, linkElms[i]));
691 }
692 return Promise.all(promises);
693}
694function loadDocumentStyles(doc, globalScopes) {
695 var styleElms = Array.from(doc.querySelectorAll('style:not([data-styles]):not([data-no-shim])'));
696 return styleElms
697 .map(function (style) { return addGlobalStyle(globalScopes, style); })
698 .some(Boolean);
699}
700function addGlobalLink(doc, globalScopes, linkElm) {
701 var url = linkElm.href;
702 return fetch(url).then(function (rsp) { return rsp.text(); }).then(function (text) {
703 if (hasCssVariables(text) && linkElm.parentNode) {
704 if (hasRelativeUrls(text)) {
705 text = fixRelativeUrls(text, url);
706 }
707 var styleEl = doc.createElement('style');
708 styleEl.setAttribute('data-styles', '');
709 styleEl.textContent = text;
710 addGlobalStyle(globalScopes, styleEl);
711 linkElm.parentNode.insertBefore(styleEl, linkElm);
712 linkElm.remove();
713 }
714 }).catch(function (err) {
715 console.error(err);
716 });
717}
718// This regexp tries to determine when a variable is declared, for example:
719//
720// .my-el { --highlight-color: green; }
721//
722// but we don't want to trigger when a classname uses "--" or a pseudo-class is
723// used. We assume that the only characters that can preceed a variable
724// declaration are "{", from an opening block, ";" from a preceeding rule, or a
725// space. This prevents the regexp from matching a word in a selector, since
726// they would need to start with a "." or "#". (We assume element names don't
727// start with "--").
728var CSS_VARIABLE_REGEXP = /[\s;{]--[-a-zA-Z0-9]+\s*:/m;
729function hasCssVariables(css) {
730 return css.indexOf('var(') > -1 || CSS_VARIABLE_REGEXP.test(css);
731}
732// This regexp find all url() usages with relative urls
733var CSS_URL_REGEXP = /url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;
734function hasRelativeUrls(css) {
735 CSS_URL_REGEXP.lastIndex = 0;
736 return CSS_URL_REGEXP.test(css);
737}
738function fixRelativeUrls(css, originalUrl) {
739 // get the basepath from the original import url
740 var basePath = originalUrl.replace(/[^/]*$/, '');
741 // replace the relative url, with the new relative url
742 return css.replace(CSS_URL_REGEXP, function (fullMatch, url) {
743 // rhe new relative path is the base path + uri
744 // TODO: normalize relative URL
745 var relativeUrl = basePath + url;
746 return fullMatch.replace(url, relativeUrl);
747 });
748}
749var CustomStyle = /** @class */ (function () {
750 function CustomStyle(win, doc) {
751 this.win = win;
752 this.doc = doc;
753 this.count = 0;
754 this.hostStyleMap = new WeakMap();
755 this.hostScopeMap = new WeakMap();
756 this.globalScopes = [];
757 this.scopesMap = new Map();
758 this.didInit = false;
759 }
760 CustomStyle.prototype.initShim = function () {
761 var _this = this;
762 if (this.didInit) {
763 return Promise.resolve();
764 }
765 else {
766 this.didInit = true;
767 return new Promise(function (resolve) {
768 _this.win.requestAnimationFrame(function () {
769 startWatcher(_this.doc, _this.globalScopes);
770 loadDocument(_this.doc, _this.globalScopes).then(function () { return resolve(); });
771 });
772 });
773 }
774 };
775 CustomStyle.prototype.addLink = function (linkEl) {
776 var _this = this;
777 return addGlobalLink(this.doc, this.globalScopes, linkEl).then(function () {
778 _this.updateGlobal();
779 });
780 };
781 CustomStyle.prototype.addGlobalStyle = function (styleEl) {
782 if (addGlobalStyle(this.globalScopes, styleEl)) {
783 this.updateGlobal();
784 }
785 };
786 CustomStyle.prototype.createHostStyle = function (hostEl, cssScopeId, cssText, isScoped) {
787 if (this.hostScopeMap.has(hostEl)) {
788 throw new Error('host style already created');
789 }
790 var baseScope = this.registerHostTemplate(cssText, cssScopeId, isScoped);
791 var styleEl = this.doc.createElement('style');
792 styleEl.setAttribute('data-no-shim', '');
793 if (!baseScope.usesCssVars) {
794 // This component does not use (read) css variables
795 styleEl.textContent = cssText;
796 }
797 else if (isScoped) {
798 // This component is dynamic: uses css var and is scoped
799 styleEl['s-sc'] = cssScopeId = baseScope.scopeId + "-" + this.count;
800 styleEl.textContent = '/*needs update*/';
801 this.hostStyleMap.set(hostEl, styleEl);
802 this.hostScopeMap.set(hostEl, reScope(baseScope, cssScopeId));
803 this.count++;
804 }
805 else {
806 // This component uses css vars, but it's no-encapsulation (global static)
807 baseScope.styleEl = styleEl;
808 if (!baseScope.usesCssVars) {
809 styleEl.textContent = executeTemplate(baseScope.template, {});
810 }
811 this.globalScopes.push(baseScope);
812 this.updateGlobal();
813 this.hostScopeMap.set(hostEl, baseScope);
814 }
815 return styleEl;
816 };
817 CustomStyle.prototype.removeHost = function (hostEl) {
818 var css = this.hostStyleMap.get(hostEl);
819 if (css) {
820 css.remove();
821 }
822 this.hostStyleMap.delete(hostEl);
823 this.hostScopeMap.delete(hostEl);
824 };
825 CustomStyle.prototype.updateHost = function (hostEl) {
826 var scope = this.hostScopeMap.get(hostEl);
827 if (scope && scope.usesCssVars && scope.isScoped) {
828 var styleEl = this.hostStyleMap.get(hostEl);
829 if (styleEl) {
830 var selectors = getActiveSelectors(hostEl, this.hostScopeMap, this.globalScopes);
831 var props = resolveValues(selectors);
832 styleEl.textContent = executeTemplate(scope.template, props);
833 }
834 }
835 };
836 CustomStyle.prototype.updateGlobal = function () {
837 updateGlobalScopes(this.globalScopes);
838 };
839 CustomStyle.prototype.registerHostTemplate = function (cssText, scopeId, isScoped) {
840 var scope = this.scopesMap.get(scopeId);
841 if (!scope) {
842 scope = parseCSS(cssText);
843 scope.scopeId = scopeId;
844 scope.isScoped = isScoped;
845 this.scopesMap.set(scopeId, scope);
846 }
847 return scope;
848 };
849 return CustomStyle;
850}());
851var win = window;
852function needsShim() {
853 return !(win.CSS && win.CSS.supports && win.CSS.supports('color', 'var(--c)'));
854}
855if (!win.__stencil_cssshim && needsShim()) {
856 win.__stencil_cssshim = new CustomStyle(win, document);
857}
858
859 // Figure out currentScript (for IE11, since it does not support currentScript)
860 var regex = /\/anjuna-docs(\.esm)?\.js($|\?|#)/;
861 var scriptElm = currentScript || Array.from(doc.querySelectorAll('script')).find(function(s) {
862 return regex.test(s.src) || s.getAttribute('data-stencil-namespace') === "anjuna-docs";
863 });
864
865 var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
866 var start = function() {
867 var url = new URL('./p-b2a76174.system.js', resourcesUrl);
868 System.import(url.href);
869 };
870
871 if (win.__stencil_cssshim) {
872 win.__stencil_cssshim.initShim().then(start);
873 } else {
874 start();
875 }
876
877 // Note: using .call(window) here because the self-executing function needs
878 // to be scoped to the window object for the ES6Promise polyfill to work
879 }
880}).call(window);