summaryrefslogtreecommitdiffstats
path: root/dist/polyfills.js
blob: 10b88bf2ba28fb0da33f3fb7bcffff37b8481c55 (plain)
1
!function(){"use strict";var b=function(t){return"object"==typeof t?null!==t:"function"==typeof t},h=function(t){if(!b(t))throw TypeError(t+" is not an object!");return t},m=function(t){try{return!!t()}catch(t){return!0}},u=!m(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a});function t(t,e){return t(e={exports:{}},e.exports),e.exports}var g=t(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),e=g.document,n=b(e)&&b(e.createElement),r=function(t){return n?e.createElement(t):{}},o=!u&&!m(function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}),i=function(t,e){if(!b(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!b(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!b(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!b(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},c=Object.defineProperty,f={f:u?Object.defineProperty:function(t,e,n){if(h(t),e=i(e,!0),h(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},a=f.f,s=Function.prototype,l=/^\s*function ([^ (]*)/,p="name";p in s||u&&a(s,p,{configurable:!0,get:function(){try{return(""+this).match(l)[1]}catch(t){return""}}});var v=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t},y=function(t){return Object(v(t))},d={}.hasOwnProperty,E=function(t,e){return d.call(t,e)},w={}.toString,_=function(t){return w.call(t).slice(8,-1)},O=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==_(t)?t.split(""):Object(t)},S=function(t){return O(v(t))},j=Math.ceil,k=Math.floor,P=function(t){return isNaN(t=+t)?0:(0<t?k:j)(t)},F=Math.min,T=function(t){return 0<t?F(P(t),9007199254740991):0},x=Math.max,A=Math.min,N=function(a){return function(t,e,n){var r,o,i,u=S(t),c=T(u.length),f=(o=c,(r=P(r=n))<0?x(r+o,0):A(r,o));if(a&&e!=e){for(;f<c;)if((i=u[f++])!=i)return!0}else for(;f<c;f++)if((a||f in u)&&u[f]===e)return a||f||0;return!a&&-1}},C=t(function(t){var e=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=e)}),I=(C.version,t(function(t){var e="__core-js_shared__",n=g[e]||(g[e]={});(t.exports=function(t,e){return n[t]||(n[t]=void 0!==e?e:{})})("versions",[]).push({version:C.version,mode:"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})})),M=0,D=Math.random(),W=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++M+D).toString(36))},L=I("keys"),B=function(t){return L[t]||(L[t]=W(t))},R=N(!1),K=B("IE_PROTO"),z=function(t,e){var n,r=S(t),o=0,i=[];for(n in r)n!=K&&E(r,n)&&i.push(n);for(;e.length>o;)E(r,n=e[o++])&&(~R(i,n)||i.push(n));return i},Y="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),G=Object.keys||function(t){return z(t,Y)},J=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},U=u?function(t,e,n){return f.f(t,e,J(1,n))}:function(t,e,n){return t[e]=n,t},X=t(function(t){var i=W("src"),e="toString",n=Function[e],u=(""+n).split(e);C.inspectSource=function(t){return n.call(t)},(t.exports=function(t,e,n,r){var o="function"==typeof n;o&&(E(n,"name")||U(n,"name",e)),t[e]!==n&&(o&&(E(n,i)||U(n,i,t[e]?""+t[e]:u.join(String(e)))),t===g?t[e]=n:r?t[e]?t[e]=n:U(t,e,n):(delete t[e],U(t,e,n)))})(Function.prototype,e,function(){return"function"==typeof this&&this[i]||n.call(this)})}),q=function(r,o,t){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(r),void 0===o)return r;switch(t){case 1:return function(t){return r.call(o,t)};case 2:return function(t,e){return r.call(o,t,e)};case 3:return function(t,e,n){return r.call(o,t,e,n)}}return function(){return r.apply(o,arguments)}},Q="prototype",V=function(t,e,n){var r,o,i,u,c=t&V.F,f=t&V.G,a=t&V.S,s=t&V.P,l=t&V.B,p=f?g:a?g[e]||(g[e]={}):(g[e]||{})[Q],v=f?C:C[e]||(C[e]={}),y=v[Q]||(v[Q]={});for(r in f&&(n=e),n)i=((o=!c&&p&&void 0!==p[r])?p:n)[r],u=l&&o?q(i,g):s&&"function"==typeof i?q(Function.call,i):i,p&&X(p,r,i,t&V.U),v[r]!=i&&U(v,r,u),s&&y[r]!=i&&(y[r]=i)};g.core=C,V.F=1,V.G=2,V.S=4,V.P=8,V.B=16,V.W=32,V.U=64,V.R=128;var H,Z,$,tt,et=V;H="keys",Z=function(){return function(t){return G(y(t))}},$=(C.Object||{})[H]||Object[H],(tt={})[H]=Z($),et(et.S+et.F*m(function(){$(1)}),"Object",tt);var nt,rt,ot=t(function(t){var n=W("meta"),e=f.f,r=0,o=Object.isExtensible||function(){return!0},i=!m(function(){return o(Object.preventExtensions({}))}),u=function(t){e(t,n,{value:{i:"O"+ ++r,w:{}}})},c=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!b(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!E(t,n)){if(!o(t))return"F";if(!e)return"E";u(t)}return t[n].i},getWeak:function(t,e){if(!E(t,n)){if(!o(t))return!0;if(!e)return!1;u(t)}return t[n].w},onFreeze:function(t){return i&&c.NEED&&o(t)&&!E(t,n)&&u(t),t}}}),it=(ot.KEY,ot.NEED,ot.fastKey,ot.getWeak,ot.onFreeze,t(function(t){var e=I("wks"),n=g.Symbol,r="function"==typeof n;(t.exports=function(t){return e[t]||(e[t]=r&&n[t]||(r?n:W)("Symbol."+t))}).store=e})),ut=f.f,ct=it("toStringTag"),ft=function(t,e,n){t&&!E(t=n?t:t.prototype,ct)&&ut(t,ct,{configurable:!0,value:e})},at={f:it},st=f.f,lt={f:Object.getOwnPropertySymbols},pt={f:{}.propertyIsEnumerable},vt=Array.isArray||function(t){return"Array"==_(t)},yt=u?Object.defineProperties:function(t,e){h(t);for(var n,r=G(e),o=r.length,i=0;i<o;)f.f(t,n=r[i++],e[n]);return t},ht=g.document,dt=ht&&ht.documentElement,bt=B("IE_PROTO"),mt=function(){},gt="prototype",Et=function(){var t,e=r("iframe"),n=Y.length;for(e.style.display="none",dt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),Et=t.F;n--;)delete Et[gt][Y[n]];return Et()},wt=Object.create||function(t,e){var n;return null!==t?(mt[gt]=h(t),n=new mt,mt[gt]=null,n[bt]=t):n=Et(),void 0===e?n:yt(n,e)},_t=Y.concat("length","prototype"),Ot={f:Object.getOwnPropertyNames||function(t){return z(t,_t)}},St=Ot.f,jt={}.toString,kt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Pt={f:function(t){return kt&&"[object Window]"==jt.call(t)?function(t){try{return St(t)}catch(t){return kt.slice()}}(t):St(S(t))}},Ft=Object.getOwnPropertyDescriptor,Tt={f:u?Ft:function(t,e){if(t=S(t),e=i(e,!0),o)try{return Ft(t,e)}catch(t){}if(E(t,e))return J(!pt.f.call(t,e),t[e])}},xt=ot.KEY,At=Tt.f,Nt=f.f,Ct=Pt.f,It=g.Symbol,Mt=g.JSON,Dt=Mt&&Mt.stringify,Wt="prototype",Lt=it("_hidden"),Bt=it("toPrimitive"),Rt={}.propertyIsEnumerable,Kt=I("symbol-registry"),zt=I("symbols"),Yt=I("op-symbols"),Gt=Object[Wt],Jt="function"==typeof It,Ut=g.QObject,Xt=!Ut||!Ut[Wt]||!Ut[Wt].findChild,qt=u&&m(function(){return 7!=wt(Nt({},"a",{get:function(){return Nt(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=At(Gt,e);r&&delete Gt[e],Nt(t,e,n),r&&t!==Gt&&Nt(Gt,e,r)}:Nt,Qt=function(t){var e=zt[t]=wt(It[Wt]);return e._k=t,e},Vt=Jt&&"symbol"==typeof It.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof It},Ht=function(t,e,n){return t===Gt&&Ht(Yt,e,n),h(t),e=i(e,!0),h(n),E(zt,e)?(n.enumerable?(E(t,Lt)&&t[Lt][e]&&(t[Lt][e]=!1),n=wt(n,{enumerable:J(0,!1)})):(E(t,Lt)||Nt(t,Lt,J(1,{})),t[Lt][e]=!0),qt(t,e,n)):Nt(t,e,n)},Zt=function(t,e){h(t);for(var n,r=function(t){var e=G(t),n=lt.f;if(n)for(var r,o=n(t),i=pt.f,u=0;o.length>u;)i.call(t,r=o[u++])&&e.push(r);return e}(e=S(e)),o=0,i=r.length;o<i;)Ht(t,n=r[o++],e[n]);return t},$t=function(t){var e=Rt.call(this,t=i(t,!0));return!(this===Gt&&E(zt,t)&&!E(Yt,t))&&(!(e||!E(this,t)||!E(zt,t)||E(this,Lt)&&this[Lt][t])||e)},te=function(t,e){if(t=S(t),e=i(e,!0),t!==Gt||!E(zt,e)||E(Yt,e)){var n=At(t,e);return!n||!E(zt,e)||E(t,Lt)&&t[Lt][e]||(n.enumerable=!0),n}},ee=function(t){for(var e,n=Ct(S(t)),r=[],o=0;n.length>o;)E(zt,e=n[o++])||e==Lt||e==xt||r.push(e);return r},ne=function(t){for(var e,n=t===Gt,r=Ct(n?Yt:S(t)),o=[],i=0;r.length>i;)!E(zt,e=r[i++])||n&&!E(Gt,e)||o.push(zt[e]);return o};Jt||(X((It=function(){if(this instanceof It)throw TypeError("Symbol is not a constructor!");var e=W(0<arguments.length?arguments[0]:void 0),n=function(t){this===Gt&&n.call(Yt,t),E(this,Lt)&&E(this[Lt],e)&&(this[Lt][e]=!1),qt(this,e,J(1,t))};return u&&Xt&&qt(Gt,e,{configurable:!0,set:n}),Qt(e)})[Wt],"toString",function(){return this._k}),Tt.f=te,f.f=Ht,Ot.f=Pt.f=ee,pt.f=$t,lt.f=ne,u&&X(Gt,"propertyIsEnumerable",$t,!0),at.f=function(t){return Qt(it(t))}),et(et.G+et.W+et.F*!Jt,{Symbol:It});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),oe=0;re.length>oe;)it(re[oe++]);for(var ie=G(it.store),ue=0;ie.length>ue;)nt=ie[ue++],void 0,rt=C.Symbol||(C.Symbol=g.Symbol||{}),"_"==nt.charAt(0)||nt in rt||st(rt,nt,{value:at.f(nt)});et(et.S+et.F*!Jt,"Symbol",{for:function(t){return E(Kt,t+="")?Kt[t]:Kt[t]=It(t)},keyFor:function(t){if(!Vt(t))throw TypeError(t+" is not a symbol!");for(var e in Kt)if(Kt[e]===t)return e},useSetter:function(){Xt=!0},useSimple:function(){Xt=!1}}),et(et.S+et.F*!Jt,"Object",{create:function(t,e){return void 0===e?wt(t):Zt(wt(t),e)},defineProperty:Ht,defineProperties:Zt,getOwnPropertyDescriptor:te,getOwnPropertyNames:ee,getOwnPropertySymbols:ne}),Mt&&et(et.S+et.F*(!Jt||m(function(){var t=It();return"[null]"!=Dt([t])||"{}"!=Dt({a:t})||"{}"!=Dt(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(b(e)||void 0!==t)&&!Vt(t))return vt(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Vt(e))return e}),r[1]=e,Dt.apply(Mt,r)}}),It[Wt][Bt]||U(It[Wt],Bt,It[Wt].valueOf),ft(It,"Symbol"),ft(Math,"Math",!0),ft(g.JSON,"JSON",!0);var ce=function(t,e,n){for(var r in e)X(t,r,e[r],n);return t},fe=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t},ae=function(e,t,n,r){try{return r?t(h(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&h(o.call(e)),t}},se={},le=it("iterator"),pe=Array.prototype,ve=it("toStringTag"),ye="Arguments"==_(function(){return arguments}()),he=it("iterator"),de=C.getIteratorMethod=function(t){if(null!=t)return t[he]||t["@@iterator"]||se[(e=t,void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(n=Object(e),ve))?r:ye?_(n):"Object"==(o=_(n))&&"function"==typeof n.callee?"Arguments":o)];var e,n,r,o},be=t(function(t){var v={},y={},e=t.exports=function(t,e,n,r,o){var i,u,c,f,a,s=o?function(){return t}:de(t),l=q(n,r,e?2:1),p=0;if("function"!=typeof s)throw TypeError(t+" is not iterable!");if(void 0===(a=s)||se.Array!==a&&pe[le]!==a){for(c=s.call(t);!(u=c.next()).done;)if((f=ae(c,l,u.value,e))===v||f===y)return f}else for(i=T(t.length);p<i;p++)if((f=e?l(h(u=t[p])[0],u[1]):l(t[p]))===v||f===y)return f};e.BREAK=v,e.RETURN=y}),me={};U(me,it("iterator"),function(){return this});var ge=B("IE_PROTO"),Ee=Object.prototype,we=Object.getPrototypeOf||function(t){return t=y(t),E(t,ge)?t[ge]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Ee:null},_e=it("iterator"),Oe=!([].keys&&"next"in[].keys()),Se="values",je=function(){return this},ke=function(t,e,n,r,o,i,u){var c,f,a;f=e,a=r,(c=n).prototype=wt(me,{next:J(1,a)}),ft(c,f+" Iterator");var s,l,p,v=function(t){if(!Oe&&t in b)return b[t];switch(t){case"keys":case Se:return function(){return new n(this,t)}}return function(){return new n(this,t)}},y=e+" Iterator",h=o==Se,d=!1,b=t.prototype,m=b[_e]||b["@@iterator"]||o&&b[o],g=m||v(o),E=o?h?v("entries"):g:void 0,w="Array"==e&&b.entries||m;if(w&&(p=we(w.call(new t)))!==Object.prototype&&p.next&&(ft(p,y,!0),"function"!=typeof p[_e]&&U(p,_e,je)),h&&m&&m.name!==Se&&(d=!0,g=function(){return m.call(this)}),(Oe||d||!b[_e])&&U(b,_e,g),se[e]=g,se[y]=je,o)if(s={values:h?g:v(Se),keys:i?g:v("keys"),entries:E},u)for(l in s)l in b||X(b,l,s[l]);else et(et.P+et.F*(Oe||d),e,s);return s},Pe=function(t,e){return{value:e,done:!!t}},Fe=it("species"),Te=function(t,e){if(!b(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t},xe=f.f,Ae=ot.fastKey,Ne=u?"_s":"size",Ce=function(t,e){var n,r=Ae(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n},Ie={getConstructor:function(t,i,n,r){var o=t(function(t,e){fe(t,o,i,"_i"),t._t=i,t._i=wt(null),t._f=void 0,t._l=void 0,t[Ne]=0,null!=e&&be(e,n,t[r],t)});return ce(o.prototype,{clear:function(){for(var t=Te(this,i),e=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete e[n.i];t._f=t._l=void 0,t[Ne]=0},delete:function(t){var e=Te(this,i),n=Ce(e,t);if(n){var r=n.n,o=n.p;delete e._i[n.i],n.r=!0,o&&(o.n=r),r&&(r.p=o),e._f==n&&(e._f=r),e._l==n&&(e._l=o),e[Ne]--}return!!n},forEach:function(t){Te(this,i);for(var e,n=q(t,1<arguments.length?arguments[1]:void 0,3);e=e?e.n:this._f;)for(n(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!Ce(Te(this,i),t)}}),u&&xe(o.prototype,"size",{get:function(){return Te(this,i)[Ne]}}),o},def:function(t,e,n){var r,o,i=Ce(t,e);return i?i.v=n:(t._l=i={i:o=Ae(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[Ne]++,"F"!==o&&(t._i[o]=i)),t},getEntry:Ce,setStrong:function(t,n,e){var r;ke(t,n,function(t,e){this._t=Te(t,n),this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?Pe(0,"keys"==e?n.k:"values"==e?n.v:[n.k,n.v]):(t._t=void 0,Pe(1))},e?"entries":"values",!e,!0),r=g[n],u&&r&&!r[Fe]&&f.f(r,Fe,{configurable:!0,get:function(){return this}})}},Me=it("iterator"),De=!1;try{[7][Me]().return=function(){De=!0}}catch(t){}var We=function(t,e){if(h(t),!b(e)&&null!==e)throw TypeError(e+": can't set as prototype!")},Le={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{(r=q(Function.call,Tt.f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return We(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:We}.set,Be=(function(c,t,e,n,f,r){var a=g[c],s=a,l=f?"set":"add",o=s&&s.prototype,i={},u=function(t){var n=o[t];X(o,t,"delete"==t?function(t){return!(r&&!b(t))&&n.call(this,0===t?0:t)}:"has"==t?function(t){return!(r&&!b(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return r&&!b(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,e){return n.call(this,0===t?0:t,e),this})};if("function"==typeof s&&(r||o.forEach&&!m(function(){(new s).entries().next()}))){var p=new s,v=p[l](r?{}:-0,1)!=p,y=m(function(){p.has(1)}),h=function(t,e){if(!e&&!De)return!1;var n=!1;try{var r=[7],o=r[Me]();o.next=function(){return{done:n=!0}},r[Me]=function(){return o},t(r)}catch(t){}return n}(function(t){new s(t)}),d=!r&&m(function(){for(var t=new s,e=5;e--;)t[l](e,e);return!t.has(-0)});h||(((s=t(function(t,e){fe(t,s,c);var n,r,o,i,u=(n=new a,r=s,(i=t.constructor)!==r&&"function"==typeof i&&(o=i.prototype)!==r.prototype&&b(o)&&Le&&Le(n,o),n);return null!=e&&be(e,f,u[l],u),u})).prototype=o).constructor=s),(y||d)&&(u("delete"),u("has"),f&&u("get")),(d||v)&&u(l),r&&o.clear&&delete o.clear}else s=n.getConstructor(t,c,f,l),ce(s.prototype,e),ot.NEED=!0;ft(s,c),i[c]=s,et(et.G+et.W+et.F*(s!=a),i),r||n.setStrong(s,c,f)}("Set",function(t){return function(){return t(this,0<arguments.length?arguments[0]:void 0)}},{add:function(t){return Ie.def(Te(this,"Set"),t=0===t?0:t,t)}},Ie),it("unscopables")),Re=Array.prototype;null==Re[Be]&&U(Re,Be,{});var Ke=function(t){Re[Be][t]=!0},ze=N(!0);et(et.P,"Array",{includes:function(t){return ze(this,t,1<arguments.length?arguments[1]:void 0)}}),Ke("includes");var Ye=it("match"),Ge=function(t,e,n){if(b(r=e)&&(void 0!==(o=r[Ye])?o:"RegExp"==_(r)))throw TypeError("String#"+n+" doesn't accept regex!");var r,o;return String(v(t))},Je=it("match"),Ue="includes";et(et.P+et.F*function(e){var n=/./;try{"/./"[e](n)}catch(t){try{return n[Je]=!1,!"/./"[e](n)}catch(t){}}return!0}(Ue),"String",{includes:function(t){return!!~Ge(this,t,Ue).indexOf(t,1<arguments.length?arguments[1]:void 0)}});ke(Array,"Array",function(t,e){this._t=S(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,Pe(1)):Pe(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values");se.Arguments=se.Array,Ke("keys"),Ke("values"),Ke("entries");var Xe,qe=pt.f,Qe=(Xe=!0,function(t){for(var e,n=S(t),r=G(n),o=r.length,i=0,u=[];i<o;)qe.call(n,e=r[i++])&&u.push(Xe?[e,n[e]]:n[e]);return u});et(et.S,"Object",{entries:function(t){return Qe(t)}});var Ve=Object.assign,He=!Ve||m(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=Ve({},t)[n]||Object.keys(Ve({},e)).join("")!=r})?function(t,e){for(var n=y(t),r=arguments.length,o=1,i=lt.f,u=pt.f;o<r;)for(var c,f=O(arguments[o++]),a=i?G(f).concat(i(f)):G(f),s=a.length,l=0;l<s;)u.call(f,c=a[l++])&&(n[c]=f[c]);return n}:Ve;et(et.S+et.F,"Object",{assign:He}),function(i){(function(t){if(!("Event"in t))return!1;if("function"==typeof t.Event)return!0;try{return new Event("click"),!0}catch(t){return!1}})(this)||function(){var n={click:1,dblclick:1,keyup:1,keypress:1,keydown:1,mousedown:1,mouseup:1,mousemove:1,mouseover:1,mouseenter:1,mouseleave:1,mouseout:1,storage:1,storagecommit:1,textinput:1};function c(t,e){for(var n=-1,r=t.length;++n<r;)if(n in t&&t[n]===e)return n;return-1}var t=window.Event&&window.Event.prototype||null;window.Event=Window.prototype.Event=function(t,e){if(!t)throw new Error("Not enough arguments");if("createEvent"in document){var n=document.createEvent("Event"),r=!(!e||e.bubbles===i)&&e.bubbles,o=!(!e||e.cancelable===i)&&e.cancelable;return n.initEvent(t,r,o),n}return(n=document.createEventObject()).type=t,n.bubbles=!(!e||e.bubbles===i)&&e.bubbles,n.cancelable=!(!e||e.cancelable===i)&&e.cancelable,n},t&&Object.defineProperty(window.Event,"prototype",{configurable:!1,enumerable:!1,writable:!0,value:t}),"createEvent"in document||(window.addEventListener=Window.prototype.addEventListener=Document.prototype.addEventListener=Element.prototype.addEventListener=function(){var u=this,t=arguments[0],e=arguments[1];if(u===window&&t in n)throw new Error("In IE8 the event: "+t+" is not available on the window object.");u._events||(u._events={}),u._events[t]||(u._events[t]=function(t){var e,n=u._events[t.type].list,r=n.slice(),o=-1,i=r.length;for(t.preventDefault=function(){!1!==t.cancelable&&(t.returnValue=!1)},t.stopPropagation=function(){t.cancelBubble=!0},t.stopImmediatePropagation=function(){t.cancelBubble=!0,t.cancelImmediate=!0},t.currentTarget=u,t.relatedTarget=t.fromElement||null,t.target=t.target||t.srcElement||u,t.timeStamp=(new Date).getTime(),t.clientX&&(t.pageX=t.clientX+document.documentElement.scrollLeft,t.pageY=t.clientY+document.documentElement.scrollTop);++o<i&&!t.cancelImmediate;)o in r&&-1!==c(n,e=r[o])&&"function"==typeof e&&e.call(u,t)},u._events[t].list=[],u.attachEvent&&u.attachEvent("on"+t,u._events[t])),u._events[t].list.push(e)},window.removeEventListener=Window.prototype.removeEventListener=Document.prototype.removeEventListener=Element.prototype.removeEventListener=function(){var t,e=this,n=arguments[0],r=arguments[1];e._events&&e._events[n]&&e._events[n].list&&-1!==(t=c(e._events[n].list,r))&&(e._events[n].list.splice(t,1),e._events[n].list.length||(e.detachEvent&&e.detachEvent("on"+n,e._events[n]),delete e._events[n]))},window.dispatchEvent=Window.prototype.dispatchEvent=Document.prototype.dispatchEvent=Element.prototype.dispatchEvent=function(e){if(!arguments.length)throw new Error("Not enough arguments");if(!e||"string"!=typeof e.type)throw new Error("DOM Events Exception 0");var n=this,r=e.type;try{if(!e.bubbles){e.cancelBubble=!0;var o=function(t){t.cancelBubble=!0,(n||window).detachEvent("on"+r,o)};this.attachEvent("on"+r,o)}this.fireEvent("on"+r,e)}catch(t){for(e.target=n;"_events"in(e.currentTarget=n)&&"function"==typeof n._events[r]&&n._events[r].call(n,e),"function"==typeof n["on"+r]&&n["on"+r].call(n,e),(n=9===n.nodeType?n.parentWindow:n.parentNode)&&!e.cancelBubble;);}return!0},document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&document.dispatchEvent(new Event("DOMContentLoaded",{bubbles:!0}))}))}(),"CustomEvent"in this&&("function"==typeof this.CustomEvent||-1<this.CustomEvent.toString().indexOf("CustomEventConstructor"))||(this.CustomEvent=function(e,n){if(!e)throw Error('TypeError: Failed to construct "CustomEvent": An event name must be provided.');var r;if(n=n||{bubbles:!1,cancelable:!1,detail:null},"createEvent"in document)try{(r=document.createEvent("CustomEvent")).initCustomEvent(e,n.bubbles,n.cancelable,n.detail)}catch(t){(r=document.createEvent("Event")).initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail}else(r=new Event(e,n)).detail=n&&n.detail||null;return r},CustomEvent.prototype=Event.prototype)}.call("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||{})}();