From c2f5ade9d23c35fb0ee46532b28c0033affbf380 Mon Sep 17 00:00:00 2001 From: Paulo Silveira Date: Tue, 27 Aug 2019 15:07:55 -0300 Subject: [PATCH] Spliting enhancer and creating a helpers folder --- dist/index.js | 2 +- src/components/Staw/index.js | 2 +- src/container/handlers.js | 28 ++++++++ src/container/hooks.js | 25 +++++++ src/container/index.js | 12 ++++ src/container/propsMapper.js | 35 ++++++++++ src/container/state.js | 10 +++ src/containers/Staw.js | 125 ----------------------------------- src/helpers/getPosition.js | 43 ++++++++++++ src/helpers/isClient.js | 1 + 10 files changed, 156 insertions(+), 127 deletions(-) create mode 100644 src/container/handlers.js create mode 100644 src/container/hooks.js create mode 100644 src/container/index.js create mode 100644 src/container/propsMapper.js create mode 100644 src/container/state.js delete mode 100644 src/containers/Staw.js create mode 100644 src/helpers/getPosition.js create mode 100644 src/helpers/isClient.js diff --git a/dist/index.js b/dist/index.js index 5cf234b..5a42994 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1 +1 @@ -module.exports=function(t){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}var r={};return n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get: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,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=128)}([function(t,n,r){var e=r(1),o=r(7),i=r(14),u=r(11),c=r(17),a=function(t,n,r){var f,s,l,p,h=t&a.F,v=t&a.G,d=t&a.S,y=t&a.P,g=t&a.B,m=v?e:d?e[n]||(e[n]={}):(e[n]||{}).prototype,b=v?o:o[n]||(o[n]={}),w=b.prototype||(b.prototype={});v&&(r=n);for(f in r)s=!h&&m&&void 0!==m[f],l=(s?m:r)[f],p=g&&s?c(l,e):y&&"function"==typeof l?c(Function.call,l):l,m&&u(m,f,l,t&a.U),b[f]!=l&&i(b,f,p),y&&w[f]!=l&&(w[f]=l)};e.core=o,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,r){var e=r(4);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,r){var e=r(49)("wks"),o=r(29),i=r(1).Symbol,u="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=e},function(t,n,r){var e=r(19),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,n){var r=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=r)},function(t,n,r){var e=r(3),o=r(91),i=r(26),u=Object.defineProperty;n.f=r(9)?Object.defineProperty:function(t,n,r){if(e(t),n=i(n,!0),e(r),o)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){t.exports=!r(2)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,r){var e=r(24);t.exports=function(t){return Object(e(t))}},function(t,n,r){var e=r(1),o=r(14),i=r(13),u=r(29)("src"),c=r(135),a=(""+c).split("toString");r(7).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,r,c){var f="function"==typeof r;f&&(i(r,"name")||o(r,"name",n)),t[n]!==r&&(f&&(i(r,u)||o(r,u,t[n]?""+t[n]:a.join(String(n)))),t===e?t[n]=r:c?t[n]?t[n]=r:o(t,n,r):(delete t[n],o(t,n,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||c.call(this)})},function(t,n,r){var e=r(0),o=r(2),i=r(24),u=/"/g,c=function(t,n,r,e){var o=String(i(t)),c="<"+n;return""!==r&&(c+=" "+r+'="'+String(e).replace(u,""")+'"'),c+">"+o+""};t.exports=function(t,n){var r={};r[t]=n(c),e(e.P+e.F*o(function(){var n=""[t]('"');return n!==n.toLowerCase()||n.split('"').length>3}),"String",r)}},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n,r){var e=r(8),o=r(28);t.exports=r(9)?function(t,n,r){return e.f(t,n,o(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(45),o=r(24);t.exports=function(t){return e(o(t))}},function(t,n,r){"use strict";var e=r(2);t.exports=function(t,n){return!!t&&e(function(){n?t.call(null,function(){},1):t.call(null)})}},function(t,n,r){var e=r(18);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(46),o=r(28),i=r(15),u=r(26),c=r(13),a=r(91),f=Object.getOwnPropertyDescriptor;n.f=r(9)?f:function(t,n){if(t=i(t),n=u(n,!0),a)try{return f(t,n)}catch(t){}if(c(t,n))return o(!e.f.call(t,n),t[n])}},function(t,n,r){var e=r(0),o=r(7),i=r(2);t.exports=function(t,n){var r=(o.Object||{})[t]||Object[t],u={};u[t]=n(r),e(e.S+e.F*i(function(){r(1)}),"Object",u)}},function(t,n,r){var e=r(17),o=r(45),i=r(10),u=r(6),c=r(107);t.exports=function(t,n){var r=1==t,a=2==t,f=3==t,s=4==t,l=6==t,p=5==t||l,h=n||c;return function(n,c,v){for(var d,y,g=i(n),m=o(g),b=e(c,v,3),w=u(m.length),S=0,x=r?h(n,w):a?h(n,0):void 0;w>S;S++)if((p||S in m)&&(d=m[S],y=b(d,S,g),t))if(r)x[S]=y;else if(y)switch(t){case 3:return!0;case 5:return d;case 6:return S;case 2:x.push(d)}else if(s)return!1;return l?-1:f||s?s:x}}},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,r){"use strict";if(r(9)){var e=r(30),o=r(1),i=r(2),u=r(0),c=r(60),a=r(86),f=r(17),s=r(43),l=r(28),p=r(14),h=r(44),v=r(19),d=r(6),y=r(118),g=r(32),m=r(26),b=r(13),w=r(47),S=r(4),x=r(10),_=r(78),O=r(33),E=r(35),P=r(34).f,j=r(80),F=r(29),A=r(5),M=r(22),N=r(50),I=r(48),C=r(82),T=r(41),R=r(53),k=r(42),L=r(81),W=r(109),D=r(8),U=r(20),V=D.f,B=U.f,G=o.RangeError,z=o.TypeError,Y=o.Uint8Array,$=Array.prototype,q=a.ArrayBuffer,H=a.DataView,X=M(0),K=M(2),J=M(3),Z=M(4),Q=M(5),tt=M(6),nt=N(!0),rt=N(!1),et=C.values,ot=C.keys,it=C.entries,ut=$.lastIndexOf,ct=$.reduce,at=$.reduceRight,ft=$.join,st=$.sort,lt=$.slice,pt=$.toString,ht=$.toLocaleString,vt=A("iterator"),dt=A("toStringTag"),yt=F("typed_constructor"),gt=F("def_constructor"),mt=c.CONSTR,bt=c.TYPED,wt=c.VIEW,St=M(1,function(t,n){return Pt(I(t,t[gt]),n)}),xt=i(function(){return 1===new Y(new Uint16Array([1]).buffer)[0]}),_t=!!Y&&!!Y.prototype.set&&i(function(){new Y(1).set({})}),Ot=function(t,n){var r=v(t);if(r<0||r%n)throw G("Wrong offset!");return r},Et=function(t){if(S(t)&&bt in t)return t;throw z(t+" is not a typed array!")},Pt=function(t,n){if(!(S(t)&&yt in t))throw z("It is not a typed array constructor!");return new t(n)},jt=function(t,n){return Ft(I(t,t[gt]),n)},Ft=function(t,n){for(var r=0,e=n.length,o=Pt(t,e);e>r;)o[r]=n[r++];return o},At=function(t,n,r){V(t,n,{get:function(){return this._d[r]}})},Mt=function(t){var n,r,e,o,i,u,c=x(t),a=arguments.length,s=a>1?arguments[1]:void 0,l=void 0!==s,p=j(c);if(void 0!=p&&!_(p)){for(u=p.call(c),e=[],n=0;!(i=u.next()).done;n++)e.push(i.value);c=e}for(l&&a>2&&(s=f(s,arguments[2],2)),n=0,r=d(c.length),o=Pt(this,r);r>n;n++)o[n]=l?s(c[n],n):c[n];return o},Nt=function(){for(var t=0,n=arguments.length,r=Pt(this,n);n>t;)r[t]=arguments[t++];return r},It=!!Y&&i(function(){ht.call(new Y(1))}),Ct=function(){return ht.apply(It?lt.call(Et(this)):Et(this),arguments)},Tt={copyWithin:function(t,n){return W.call(Et(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function(t){return Z(Et(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return L.apply(Et(this),arguments)},filter:function(t){return jt(this,K(Et(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Q(Et(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Et(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){X(Et(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return rt(Et(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return nt(Et(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ft.apply(Et(this),arguments)},lastIndexOf:function(t){return ut.apply(Et(this),arguments)},map:function(t){return St(Et(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ct.apply(Et(this),arguments)},reduceRight:function(t){return at.apply(Et(this),arguments)},reverse:function(){for(var t,n=this,r=Et(n).length,e=Math.floor(r/2),o=0;o1?arguments[1]:void 0)},sort:function(t){return st.call(Et(this),t)},subarray:function(t,n){var r=Et(this),e=r.length,o=g(t,e);return new(I(r,r[gt]))(r.buffer,r.byteOffset+o*r.BYTES_PER_ELEMENT,d((void 0===n?e:g(n,e))-o))}},Rt=function(t,n){return jt(this,lt.call(Et(this),t,n))},kt=function(t){Et(this);var n=Ot(arguments[1],1),r=this.length,e=x(t),o=d(e.length),i=0;if(o+n>r)throw G("Wrong length!");for(;i255?255:255&e),o.v[h](r*n+o.o,e,xt)},A=function(t,n){V(t,n,{get:function(){return j(this,n)},set:function(t){return F(this,n,t)},enumerable:!0})};b?(v=r(function(t,r,e,o){s(t,v,f,"_d");var i,u,c,a,l=0,h=0;if(S(r)){if(!(r instanceof q||"ArrayBuffer"==(a=w(r))||"SharedArrayBuffer"==a))return bt in r?Ft(v,r):Mt.call(v,r);i=r,h=Ot(e,n);var g=r.byteLength;if(void 0===o){if(g%n)throw G("Wrong length!");if((u=g-h)<0)throw G("Wrong length!")}else if((u=d(o)*n)+h>g)throw G("Wrong length!");c=u/n}else c=y(r),u=c*n,i=new q(u);for(p(t,"_d",{b:i,o:h,l:u,e:c,v:new H(i)});ldocument.F=Object<\/script>"),t.close(),a=t.F;e--;)delete a.prototype[i[e]];return a()};t.exports=Object.create||function(t,n){var r;return null!==t?(c.prototype=e(t),r=new c,c.prototype=null,r[u]=t):r=a(),void 0===n?r:o(r,n)}},function(t,n,r){var e=r(93),o=r(65).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},function(t,n,r){var e=r(13),o=r(10),i=r(64)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),e(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,r){var e=r(5)("unscopables"),o=Array.prototype;void 0==o[e]&&r(14)(o,e,{}),t.exports=function(t){o[e][t]=!0}},function(t,n,r){var e=r(4);t.exports=function(t,n){if(!e(t)||t._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return t}},function(t,n){t.exports=require("react")},function(t,n,r){var e=r(8).f,o=r(13),i=r(5)("toStringTag");t.exports=function(t,n,r){t&&!o(t=r?t:t.prototype,i)&&e(t,i,{configurable:!0,value:n})}},function(t,n,r){var e=r(0),o=r(24),i=r(2),u=r(68),c="["+u+"]",a="​…",f=RegExp("^"+c+c+"*"),s=RegExp(c+c+"*$"),l=function(t,n,r){var o={},c=i(function(){return!!u[t]()||a[t]()!=a}),f=o[t]=c?n(p):u[t];r&&(o[r]=f),e(e.P+e.F*c,"String",o)},p=l.trim=function(t,n){return t=String(o(t)),1&n&&(t=t.replace(f,"")),2&n&&(t=t.replace(s,"")),t};t.exports=l},function(t,n){t.exports={}},function(t,n,r){"use strict";var e=r(1),o=r(8),i=r(9),u=r(5)("species");t.exports=function(t){var n=e[t];i&&n&&!n[u]&&o.f(n,u,{configurable:!0,get:function(){return this}})}},function(t,n){t.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,n,r){var e=r(11);t.exports=function(t,n,r){for(var o in n)e(t,o,n[o],r);return t}},function(t,n,r){var e=r(23);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,r){var e=r(23),o=r(5)("toStringTag"),i="Arguments"==e(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(t){}};t.exports=function(t){var n,r,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=u(n=Object(t),o))?r:i?e(n):"Object"==(c=e(n))&&"function"==typeof n.callee?"Arguments":c}},function(t,n,r){var e=r(3),o=r(18),i=r(5)("species");t.exports=function(t,n){var r,u=e(t).constructor;return void 0===u||void 0==(r=e(u)[i])?n:o(r)}},function(t,n,r){var e=r(7),o=r(1),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,n){return i[t]||(i[t]=void 0!==n?n:{})})("versions",[]).push({version:e.version,mode:r(30)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,n,r){var e=r(15),o=r(6),i=r(32);t.exports=function(t){return function(n,r,u){var c,a=e(n),f=o(a.length),s=i(u,f);if(t&&r!=r){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===r)return t||s||0;return!t&&-1}}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,r){var e=r(23);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,n,r){var e=r(5)("iterator"),o=!1;try{var i=[7][e]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!o)return!1;var r=!1;try{var i=[7],u=i[e]();u.next=function(){return{done:r=!0}},i[e]=function(){return u},t(i)}catch(t){}return r}},function(t,n,r){"use strict";var e=r(3);t.exports=function(){var t=e(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,r){"use strict";var e=r(47),o=RegExp.prototype.exec;t.exports=function(t,n){var r=t.exec;if("function"==typeof r){var i=r.call(t,n);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==e(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,n)}},function(t,n,r){"use strict";r(111);var e=r(11),o=r(14),i=r(2),u=r(24),c=r(5),a=r(83),f=c("species"),s=!i(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}),l=function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var r="ab".split(t);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();t.exports=function(t,n,r){var p=c(t),h=!i(function(){var n={};return n[p]=function(){return 7},7!=""[t](n)}),v=h?!i(function(){var n=!1,r=/a/;return r.exec=function(){return n=!0,null},"split"===t&&(r.constructor={},r.constructor[f]=function(){return r}),r[p](""),!n}):void 0;if(!h||!v||"replace"===t&&!s||"split"===t&&!l){var d=/./[p],y=r(u,p,""[t],function(t,n,r,e,o){return n.exec===a?h&&!o?{done:!0,value:d.call(n,r,e)}:{done:!0,value:t.call(r,n,e)}:{done:!1}}),g=y[0],m=y[1];e(String.prototype,t,g),o(RegExp.prototype,p,2==n?function(t,n){return m.call(t,this,n)}:function(t){return m.call(t,this)})}}},function(t,n,r){var e=r(17),o=r(106),i=r(78),u=r(3),c=r(6),a=r(80),f={},s={},n=t.exports=function(t,n,r,l,p){var h,v,d,y,g=p?function(){return t}:a(t),m=e(r,l,n?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(h=c(t.length);h>b;b++)if((y=n?m(u(v=t[b])[0],v[1]):m(t[b]))===f||y===s)return y}else for(d=g.call(t);!(v=d.next()).done;)if((y=o(d,m,v.value,n))===f||y===s)return y};n.BREAK=f,n.RETURN=s},function(t,n,r){var e=r(1),o=e.navigator;t.exports=o&&o.userAgent||""},function(t,n,r){"use strict";var e=r(1),o=r(0),i=r(11),u=r(44),c=r(27),a=r(57),f=r(43),s=r(4),l=r(2),p=r(53),h=r(39),v=r(69);t.exports=function(t,n,r,d,y,g){var m=e[t],b=m,w=y?"set":"add",S=b&&b.prototype,x={},_=function(t){var n=S[t];i(S,t,"delete"==t?function(t){return!(g&&!s(t))&&n.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!s(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!s(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,r){return n.call(this,0===t?0:t,r),this})};if("function"==typeof b&&(g||S.forEach&&!l(function(){(new b).entries().next()}))){var O=new b,E=O[w](g?{}:-0,1)!=O,P=l(function(){O.has(1)}),j=p(function(t){new b(t)}),F=!g&&l(function(){for(var t=new b,n=5;n--;)t[w](n,n);return!t.has(-0)});j||(b=n(function(n,r){f(n,b,t);var e=v(new m,n,b);return void 0!=r&&a(r,y,e[w],e),e}),b.prototype=S,S.constructor=b),(P||F)&&(_("delete"),_("has"),y&&_("get")),(F||E)&&_(w),g&&S.clear&&delete S.clear}else b=d.getConstructor(n,t,y,w),u(b.prototype,r),c.NEED=!0;return h(b,t),x[t]=b,o(o.G+o.W+o.F*(b!=m),x),g||d.setStrong(b,t,y),b}},function(t,n,r){for(var e,o=r(1),i=r(14),u=r(29),c=u("typed_array"),a=u("view"),f=!(!o.ArrayBuffer||!o.DataView),s=f,l=0,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(e=o[p[l++]])?(i(e.prototype,c,!0),i(e.prototype,a,!0)):s=!1;t.exports={ABV:f,CONSTR:s,TYPED:c,VIEW:a}},function(t,n){function r(t){return t&&t.__esModule?t:{default:t}}t.exports=r},function(t,n,r){var e=r(4),o=r(1).document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,r){n.f=r(5)},function(t,n,r){var e=r(49)("keys"),o=r(29);t.exports=function(t){return e[t]||(e[t]=o(t))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,r){var e=r(1).document;t.exports=e&&e.documentElement},function(t,n,r){var e=r(4),o=r(3),i=function(t,n){if(o(t),!e(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,e){try{e=r(17)(Function.call,r(20).f(Object.prototype,"__proto__").set,2),e(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,r){return i(t,r),n?t.__proto__=r:e(t,r),t}}({},!1):void 0),check:i}},function(t,n){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,n,r){var e=r(4),o=r(67).set;t.exports=function(t,n,r){var i,u=n.constructor;return u!==r&&"function"==typeof u&&(i=u.prototype)!==r.prototype&&e(i)&&o&&o(t,i),t}},function(t,n,r){"use strict";var e=r(19),o=r(24);t.exports=function(t){var n=String(o(this)),r="",i=e(t);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(n+=n))1&i&&(r+=n);return r}},function(t,n){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,n){var r=Math.expm1;t.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:r},function(t,n,r){var e=r(19),o=r(24);t.exports=function(t){return function(n,r){var i,u,c=String(o(n)),a=e(r),f=c.length;return a<0||a>=f?t?"":void 0:(i=c.charCodeAt(a),i<55296||i>56319||a+1===f||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536)}}},function(t,n,r){"use strict";var e=r(30),o=r(0),i=r(11),u=r(14),c=r(41),a=r(105),f=r(39),s=r(35),l=r(5)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,n,r,v,d,y,g){a(r,n,v);var m,b,w,S=function(t){if(!p&&t in E)return E[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},x=n+" Iterator",_="values"==d,O=!1,E=t.prototype,P=E[l]||E["@@iterator"]||d&&E[d],j=P||S(d),F=d?_?S("entries"):j:void 0,A="Array"==n?E.entries||P:P;if(A&&(w=s(A.call(new t)))!==Object.prototype&&w.next&&(f(w,x,!0),e||"function"==typeof w[l]||u(w,l,h)),_&&P&&"values"!==P.name&&(O=!0,j=function(){return P.call(this)}),e&&!g||!p&&!O&&E[l]||u(E,l,j),c[n]=j,c[x]=h,d)if(m={values:_?j:S("values"),keys:y?j:S("keys"),entries:F},g)for(b in m)b in E||i(E,b,m[b]);else o(o.P+o.F*(p||O),n,m);return m}},function(t,n,r){var e=r(76),o=r(24);t.exports=function(t,n,r){if(e(n))throw TypeError("String#"+r+" doesn't accept regex!");return String(o(t))}},function(t,n,r){var e=r(4),o=r(23),i=r(5)("match");t.exports=function(t){var n;return e(t)&&(void 0!==(n=t[i])?!!n:"RegExp"==o(t))}},function(t,n,r){var e=r(5)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(r){try{return n[e]=!1,!"/./"[t](n)}catch(t){}}return!0}},function(t,n,r){var e=r(41),o=r(5)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(e.Array===t||i[o]===t)}},function(t,n,r){"use strict";var e=r(8),o=r(28);t.exports=function(t,n,r){n in t?e.f(t,n,o(0,r)):t[n]=r}},function(t,n,r){var e=r(47),o=r(5)("iterator"),i=r(41);t.exports=r(7).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[e(t)]}},function(t,n,r){"use strict";var e=r(10),o=r(32),i=r(6);t.exports=function(t){for(var n=e(this),r=i(n.length),u=arguments.length,c=o(u>1?arguments[1]:void 0,r),a=u>2?arguments[2]:void 0,f=void 0===a?r:o(a,r);f>c;)n[c++]=t;return n}},function(t,n,r){"use strict";var e=r(36),o=r(110),i=r(41),u=r(15);t.exports=r(74)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,r):"values"==n?o(0,t[r]):o(0,[r,t[r]])},"values"),i.Arguments=i.Array,e("keys"),e("values"),e("entries")},function(t,n,r){"use strict";var e=r(54),o=RegExp.prototype.exec,i=String.prototype.replace,u=o,c=function(){var t=/a/,n=/b*/g;return o.call(t,"a"),o.call(n,"a"),0!==t.lastIndex||0!==n.lastIndex}(),a=void 0!==/()??/.exec("")[1];(c||a)&&(u=function(t){var n,r,u,f,s=this;return a&&(r=new RegExp("^"+s.source+"$(?!\\s)",e.call(s))),c&&(n=s.lastIndex),u=o.call(s,t),c&&u&&(s.lastIndex=s.global?u.index+u[0].length:n),a&&u&&u.length>1&&i.call(u[0],r,function(){for(f=1;fr;)n.push(arguments[r++]);return g[++y]=function(){c("function"==typeof t?t:Function(t),n)},e(y),y},h=function(t){delete g[t]},"process"==r(23)(l)?e=function(t){l.nextTick(u(m,t,1))}:d&&d.now?e=function(t){d.now(u(m,t,1))}:v?(o=new v,i=o.port2,o.port1.onmessage=b,e=u(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(e=function(t){s.postMessage(t+"","*")},s.addEventListener("message",b,!1)):e="onreadystatechange"in f("script")?function(t){a.appendChild(f("script")).onreadystatechange=function(){a.removeChild(this),m.call(t)}}:function(t){setTimeout(u(m,t,1),0)}),t.exports={set:p,clear:h}},function(t,n,r){"use strict";function e(t,n,r){var e,o,i,u=new Array(r),c=8*r-n-1,a=(1<>1,s=23===n?W(2,-24)-W(2,-77):0,l=0,p=t<0||0===t&&1/t<0?1:0;for(t=L(t),t!=t||t===R?(o=t!=t?1:0,e=a):(e=D(U(t)/V),t*(i=W(2,-e))<1&&(e--,i*=2),t+=e+f>=1?s/i:s*W(2,1-f),t*i>=2&&(e++,i/=2),e+f>=a?(o=0,e=a):e+f>=1?(o=(t*i-1)*W(2,n),e+=f):(o=t*W(2,f-1)*W(2,n),e=0));n>=8;u[l++]=255&o,o/=256,n-=8);for(e=e<0;u[l++]=255&e,e/=256,c-=8);return u[--l]|=128*p,u}function o(t,n,r){var e,o=8*r-n-1,i=(1<>1,c=o-7,a=r-1,f=t[a--],s=127&f;for(f>>=7;c>0;s=256*s+t[a],a--,c-=8);for(e=s&(1<<-c)-1,s>>=-c,c+=n;c>0;e=256*e+t[a],a--,c-=8);if(0===s)s=1-u;else{if(s===i)return e?NaN:f?-R:R;e+=W(2,n),s-=u}return(f?-1:1)*e*W(2,s-n)}function i(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function u(t){return[255&t]}function c(t){return[255&t,t>>8&255]}function a(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function f(t){return e(t,52,8)}function s(t){return e(t,23,4)}function l(t,n,r){P(t[A],n,{get:function(){return this[r]}})}function p(t,n,r,e){var o=+r,i=O(o);if(i+n>t[G])throw T(M);var u=t[B]._b,c=i+t[z],a=u.slice(c,c+n);return e?a:a.reverse()}function h(t,n,r,e,o,i){var u=+r,c=O(u);if(c+n>t[G])throw T(M);for(var a=t[B]._b,f=c+t[z],s=e(+o),l=0;lH;)(Y=q[H++])in N||m(N,Y,k[Y]);y||($.constructor=N)}var X=new I(new N(2)),K=I[A].setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),!X.getInt8(0)&&X.getInt8(1)||b(I[A],{setInt8:function(t,n){K.call(this,t,n<<24>>24)},setUint8:function(t,n){K.call(this,t,n<<24>>24)}},!0)}else N=function(t){S(this,N,"ArrayBuffer");var n=O(t);this._b=j.call(new Array(n),0),this[G]=n},I=function(t,n,r){S(this,I,"DataView"),S(t,N,"DataView");var e=t[G],o=x(n);if(o<0||o>e)throw T("Wrong offset!");if(r=void 0===r?e-o:_(r),o+r>e)throw T("Wrong length!");this[B]=t,this[z]=o,this[G]=r},d&&(l(N,"byteLength","_l"),l(I,"buffer","_b"),l(I,"byteLength","_l"),l(I,"byteOffset","_o")),b(I[A],{getInt8:function(t){return p(this,1,t)[0]<<24>>24},getUint8:function(t){return p(this,1,t)[0]},getInt16:function(t){var n=p(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=p(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return i(p(this,4,t,arguments[1]))},getUint32:function(t){return i(p(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return o(p(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return o(p(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){h(this,1,t,u,n)},setUint8:function(t,n){h(this,1,t,u,n)},setInt16:function(t,n){h(this,2,t,c,n,arguments[2])},setUint16:function(t,n){h(this,2,t,c,n,arguments[2])},setInt32:function(t,n){h(this,4,t,a,n,arguments[2])},setUint32:function(t,n){h(this,4,t,a,n,arguments[2])},setFloat32:function(t,n){h(this,4,t,s,n,arguments[2])},setFloat64:function(t,n){h(this,8,t,f,n,arguments[2])}});F(N,"ArrayBuffer"),F(I,"DataView"),m(I[A],g.VIEW,!0),n.ArrayBuffer=N,n.DataView=I},function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,r){t.exports=!r(123)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,n,r){t.exports=!r(9)&&!r(2)(function(){return 7!=Object.defineProperty(r(62)("div"),"a",{get:function(){return 7}}).a})},function(t,n,r){var e=r(1),o=r(7),i=r(30),u=r(63),c=r(8).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:e.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,r){var e=r(13),o=r(15),i=r(50)(!1),u=r(64)("IE_PROTO");t.exports=function(t,n){var r,c=o(t),a=0,f=[];for(r in c)r!=u&&e(c,r)&&f.push(r);for(;n.length>a;)e(c,r=n[a++])&&(~i(f,r)||f.push(r));return f}},function(t,n,r){var e=r(8),o=r(3),i=r(31);t.exports=r(9)?Object.defineProperties:function(t,n){o(t);for(var r,u=i(n),c=u.length,a=0;c>a;)e.f(t,r=u[a++],n[r]);return t}},function(t,n,r){var e=r(15),o=r(34).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?c(t):o(e(t))}},function(t,n,r){"use strict";var e=r(31),o=r(51),i=r(46),u=r(10),c=r(45),a=Object.assign;t.exports=!a||r(2)(function(){var t={},n={},r=Symbol(),e="abcdefghijklmnopqrst";return t[r]=7,e.split("").forEach(function(t){n[t]=t}),7!=a({},t)[r]||Object.keys(a({},n)).join("")!=e})?function(t,n){for(var r=u(t),a=arguments.length,f=1,s=o.f,l=i.f;a>f;)for(var p,h=c(arguments[f++]),v=s?e(h).concat(s(h)):e(h),d=v.length,y=0;d>y;)l.call(h,p=v[y++])&&(r[p]=h[p]);return r}:a},function(t,n){t.exports=Object.is||function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}},function(t,n,r){"use strict";var e=r(18),o=r(4),i=r(99),u=[].slice,c={},a=function(t,n,r){if(!(n in c)){for(var e=[],o=0;o>>0||(u.test(r)?16:10))}:e},function(t,n,r){var e=r(1).parseFloat,o=r(40).trim;t.exports=1/e(r(68)+"-0")!=-1/0?function(t){var n=o(String(t),3),r=e(n);return 0===r&&"-"==n.charAt(0)?-0:r}:e},function(t,n,r){var e=r(23);t.exports=function(t,n){if("number"!=typeof t&&"Number"!=e(t))throw TypeError(n);return+t}},function(t,n,r){var e=r(4),o=Math.floor;t.exports=function(t){return!e(t)&&isFinite(t)&&o(t)===t}},function(t,n){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,n,r){"use strict";var e=r(33),o=r(28),i=r(39),u={};r(14)(u,r(5)("iterator"),function(){return this}),t.exports=function(t,n,r){t.prototype=e(u,{next:o(1,r)}),i(t,n+" Iterator")}},function(t,n,r){var e=r(3);t.exports=function(t,n,r,o){try{return o?n(e(r)[0],r[1]):n(r)}catch(n){var i=t.return;throw void 0!==i&&e(i.call(t)),n}}},function(t,n,r){var e=r(225);t.exports=function(t,n){return new(e(t))(n)}},function(t,n,r){var e=r(18),o=r(10),i=r(45),u=r(6);t.exports=function(t,n,r,c,a){e(n);var f=o(t),s=i(f),l=u(f.length),p=a?l-1:0,h=a?-1:1;if(r<2)for(;;){if(p in s){c=s[p],p+=h;break}if(p+=h,a?p<0:l<=p)throw TypeError("Reduce of empty array with no initial value")}for(;a?p>=0:l>p;p+=h)p in s&&(c=n(c,s[p],p,f));return c}},function(t,n,r){"use strict";var e=r(10),o=r(32),i=r(6);t.exports=[].copyWithin||function(t,n){var r=e(this),u=i(r.length),c=o(t,u),a=o(n,u),f=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===f?u:o(f,u))-a,u-c),l=1;for(a0;)a in r?r[c]=r[a]:delete r[c],c+=l,a+=l;return r}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,r){"use strict";var e=r(83);r(0)({target:"RegExp",proto:!0,forced:e!==/./.exec},{exec:e})},function(t,n,r){r(9)&&"g"!=/./g.flags&&r(8).f(RegExp.prototype,"flags",{configurable:!0,get:r(54)})},function(t,n,r){"use strict";var e,o,i,u,c=r(30),a=r(1),f=r(17),s=r(47),l=r(0),p=r(4),h=r(18),v=r(43),d=r(57),y=r(48),g=r(85).set,m=r(245)(),b=r(114),w=r(246),S=r(58),x=r(115),_=a.TypeError,O=a.process,E=O&&O.versions,P=E&&E.v8||"",j=a.Promise,F="process"==s(O),A=function(){},M=o=b.f,N=!!function(){try{var t=j.resolve(1),n=(t.constructor={})[r(5)("species")]=function(t){t(A,A)};return(F||"function"==typeof PromiseRejectionEvent)&&t.then(A)instanceof n&&0!==P.indexOf("6.6")&&-1===S.indexOf("Chrome/66")}catch(t){}}(),I=function(t){var n;return!(!p(t)||"function"!=typeof(n=t.then))&&n},C=function(t,n){if(!t._n){t._n=!0;var r=t._c;m(function(){for(var e=t._v,o=1==t._s,i=0;r.length>i;)!function(n){var r,i,u,c=o?n.ok:n.fail,a=n.resolve,f=n.reject,s=n.domain;try{c?(o||(2==t._h&&k(t),t._h=1),!0===c?r=e:(s&&s.enter(),r=c(e),s&&(s.exit(),u=!0)),r===n.promise?f(_("Promise-chain cycle")):(i=I(r))?i.call(r,a,f):a(r)):f(e)}catch(t){s&&!u&&s.exit(),f(t)}}(r[i++]);t._c=[],t._n=!1,n&&!t._h&&T(t)})}},T=function(t){g.call(a,function(){var n,r,e,o=t._v,i=R(t);if(i&&(n=w(function(){F?O.emit("unhandledRejection",o,t):(r=a.onunhandledrejection)?r({promise:t,reason:o}):(e=a.console)&&e.error&&e.error("Unhandled promise rejection",o)}),t._h=F||R(t)?2:1),t._a=void 0,i&&n.e)throw n.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},k=function(t){g.call(a,function(){var n;F?O.emit("rejectionHandled",t):(n=a.onrejectionhandled)&&n({promise:t,reason:t._v})})},L=function(t){var n=this;n._d||(n._d=!0,n=n._w||n,n._v=t,n._s=2,n._a||(n._a=n._c.slice()),C(n,!0))},W=function(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw _("Promise can't be resolved itself");(n=I(t))?m(function(){var e={_w:r,_d:!1};try{n.call(t,f(W,e,1),f(L,e,1))}catch(t){L.call(e,t)}}):(r._v=t,r._s=1,C(r,!1))}catch(t){L.call({_w:r,_d:!1},t)}}};N||(j=function(t){v(this,j,"Promise","_h"),h(t),e.call(this);try{t(f(W,this,1),f(L,this,1))}catch(t){L.call(this,t)}},e=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},e.prototype=r(44)(j.prototype,{then:function(t,n){var r=M(y(this,j));return r.ok="function"!=typeof t||t,r.fail="function"==typeof n&&n,r.domain=F?O.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&C(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new e;this.promise=t,this.resolve=f(W,t,1),this.reject=f(L,t,1)},b.f=M=function(t){return t===j||t===u?new i(t):o(t)}),l(l.G+l.W+l.F*!N,{Promise:j}),r(39)(j,"Promise"),r(42)("Promise"),u=r(7).Promise,l(l.S+l.F*!N,"Promise",{reject:function(t){var n=M(this);return(0,n.reject)(t),n.promise}}),l(l.S+l.F*(c||!N),"Promise",{resolve:function(t){return x(c&&this===u?j:this,t)}}),l(l.S+l.F*!(N&&r(53)(function(t){j.all(t).catch(A)})),"Promise",{all:function(t){var n=this,r=M(n),e=r.resolve,o=r.reject,i=w(function(){var r=[],i=0,u=1;d(t,!1,function(t){var c=i++,a=!1;r.push(void 0),u++,n.resolve(t).then(function(t){a||(a=!0,r[c]=t,--u||e(r))},o)}),--u||e(r)});return i.e&&o(i.v),r.promise},race:function(t){var n=this,r=M(n),e=r.reject,o=w(function(){d(t,!1,function(t){n.resolve(t).then(r.resolve,e)})});return o.e&&e(o.v),r.promise}})},function(t,n,r){"use strict";function e(t){var n,r;this.promise=new t(function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e}),this.resolve=o(n),this.reject=o(r)}var o=r(18);t.exports.f=function(t){return new e(t)}},function(t,n,r){var e=r(3),o=r(4),i=r(114);t.exports=function(t,n){if(e(t),o(n)&&n.constructor===t)return n;var r=i.f(t);return(0,r.resolve)(n),r.promise}},function(t,n,r){"use strict";var e=r(8).f,o=r(33),i=r(44),u=r(17),c=r(43),a=r(57),f=r(74),s=r(110),l=r(42),p=r(9),h=r(27).fastKey,v=r(37),d=p?"_s":"size",y=function(t,n){var r,e=h(n);if("F"!==e)return t._i[e];for(r=t._f;r;r=r.n)if(r.k==n)return r};t.exports={getConstructor:function(t,n,r,f){var s=t(function(t,e){c(t,s,n,"_i"),t._t=n,t._i=o(null),t._f=void 0,t._l=void 0,t[d]=0,void 0!=e&&a(e,r,t[f],t)});return i(s.prototype,{clear:function(){for(var t=v(this,n),r=t._i,e=t._f;e;e=e.n)e.r=!0,e.p&&(e.p=e.p.n=void 0),delete r[e.i];t._f=t._l=void 0,t[d]=0},delete:function(t){var r=v(this,n),e=y(r,t);if(e){var o=e.n,i=e.p;delete r._i[e.i],e.r=!0,i&&(i.n=o),o&&(o.p=i),r._f==e&&(r._f=o),r._l==e&&(r._l=i),r[d]--}return!!e},forEach:function(t){v(this,n);for(var r,e=u(t,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(e(r.v,r.k,this);r&&r.r;)r=r.p},has:function(t){return!!y(v(this,n),t)}}),p&&e(s.prototype,"size",{get:function(){return v(this,n)[d]}}),s},def:function(t,n,r){var e,o,i=y(t,n);return i?i.v=r:(t._l=i={i:o=h(n,!0),k:n,v:r,p:e=t._l,n:void 0,r:!1},t._f||(t._f=i),e&&(e.n=i),t[d]++,"F"!==o&&(t._i[o]=i)),t},getEntry:y,setStrong:function(t,n,r){f(t,n,function(t,r){this._t=v(t,n),this._k=r,this._l=void 0},function(){for(var t=this,n=t._k,r=t._l;r&&r.r;)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?"keys"==n?s(0,r.k):"values"==n?s(0,r.v):s(0,[r.k,r.v]):(t._t=void 0,s(1))},r?"entries":"values",!r,!0),l(n)}}},function(t,n,r){"use strict";var e=r(44),o=r(27).getWeak,i=r(3),u=r(4),c=r(43),a=r(57),f=r(22),s=r(13),l=r(37),p=f(5),h=f(6),v=0,d=function(t){return t._l||(t._l=new y)},y=function(){this.a=[]},g=function(t,n){return p(t.a,function(t){return t[0]===n})};y.prototype={get:function(t){var n=g(this,t);if(n)return n[1]},has:function(t){return!!g(this,t)},set:function(t,n){var r=g(this,t);r?r[1]=n:this.a.push([t,n])},delete:function(t){var n=h(this.a,function(n){return n[0]===t});return~n&&this.a.splice(n,1),!!~n}},t.exports={getConstructor:function(t,n,r,i){var f=t(function(t,e){c(t,f,n,"_i"),t._t=n,t._i=v++,t._l=void 0,void 0!=e&&a(e,r,t[i],t)});return e(f.prototype,{delete:function(t){if(!u(t))return!1;var r=o(t);return!0===r?d(l(this,n)).delete(t):r&&s(r,this._i)&&delete r[this._i]},has:function(t){if(!u(t))return!1;var r=o(t);return!0===r?d(l(this,n)).has(t):r&&s(r,this._i)}}),f},def:function(t,n,r){var e=o(i(n),!0);return!0===e?d(t).set(n,r):e[t._i]=r,t},ufstore:d}},function(t,n,r){var e=r(19),o=r(6);t.exports=function(t){if(void 0===t)return 0;var n=e(t),r=o(n);if(n!==r)throw RangeError("Wrong length!");return r}},function(t,n,r){var e=r(34),o=r(51),i=r(3),u=r(1).Reflect;t.exports=u&&u.ownKeys||function(t){var n=e.f(i(t)),r=o.f;return r?n.concat(r(t)):n}},function(t,n,r){var e=r(6),o=r(70),i=r(24);t.exports=function(t,n,r,u){var c=String(i(t)),a=c.length,f=void 0===r?" ":String(r),s=e(n);if(s<=a||""==f)return c;var l=s-a,p=o.call(f,Math.ceil(l/f.length));return p.length>l&&(p=p.slice(0,l)),u?p+c:c+p}},function(t,n,r){var e=r(31),o=r(15),i=r(46).f;t.exports=function(t){return function(n){for(var r,u=o(n),c=e(u),a=c.length,f=0,s=[];a>f;)i.call(u,r=c[f++])&&s.push(t?[r,u[r]]:u[r]);return s}}},function(t,n){var r=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=r)},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){function r(){return t.exports=r=Object.assign||function(t){for(var n=1;no;)q(t,r=e[o++],n[r]);return t},X=function(t,n){return void 0===n?_(t):H(_(t),n)},K=function(t){var n=k.call(this,t=S(t,!0));return!(this===U&&o(W,t)&&!o(D,t))&&(!(n||!o(this,t)||!o(W,t)||o(this,T)&&this[T][t])||n)},J=function(t,n){if(t=w(t),n=S(n,!0),t!==U||!o(W,n)||o(D,n)){var r=F(t,n);return!r||!o(W,n)||o(t,T)&&t[T][n]||(r.enumerable=!0),r}},Z=function(t){for(var n,r=M(w(t)),e=[],i=0;r.length>i;)o(W,n=r[i++])||n==T||n==a||e.push(n);return e},Q=function(t){for(var n,r=t===U,e=M(r?D:w(t)),i=[],u=0;e.length>u;)!o(W,n=e[u++])||r&&!o(U,n)||i.push(W[n]);return i};V||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(r){this===U&&n.call(D,r),o(this,T)&&o(this[T],t)&&(this[T][t]=!1),z(this,t,x(1,r))};return i&&G&&z(U,t,{configurable:!0,set:n}),Y(t)},c(N.prototype,"toString",function(){return this._k}),E.f=J,P.f=q,r(34).f=O.f=Z,r(46).f=K,r(51).f=Q,i&&!r(30)&&c(U,"propertyIsEnumerable",K,!0),v.f=function(t){return Y(h(t))}),u(u.G+u.W+u.F*!V,{Symbol:N});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;tt.length>nt;)h(tt[nt++]);for(var rt=j(h.store),et=0;rt.length>et;)d(rt[et++]);u(u.S+u.F*!V,"Symbol",{for:function(t){return o(L,t+="")?L[t]:L[t]=N(t)},keyFor:function(t){if(!$(t))throw TypeError(t+" is not a symbol!");for(var n in L)if(L[n]===t)return n},useSetter:function(){G=!0},useSimple:function(){G=!1}}),u(u.S+u.F*!V,"Object",{create:X,defineProperty:q,defineProperties:H,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:Q}),I&&u(u.S+u.F*(!V||f(function(){var t=N();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))})),"JSON",{stringify:function(t){for(var n,r,e=[t],o=1;arguments.length>o;)e.push(arguments[o++]);if(r=n=e[1],(b(n)||void 0!==t)&&!$(t))return g(n)||(n=function(t,n){if("function"==typeof r&&(n=r.call(this,t,n)),!$(n))return n}),e[1]=n,C.apply(I,e)}}),N.prototype[R]||r(14)(N.prototype,R,N.prototype.valueOf),l(N,"Symbol"),l(Math,"Math",!0),l(e.JSON,"JSON",!0)},function(t,n,r){t.exports=r(49)("native-function-to-string",Function.toString)},function(t,n,r){var e=r(31),o=r(51),i=r(46);t.exports=function(t){var n=e(t),r=o.f;if(r)for(var u,c=r(t),a=i.f,f=0;c.length>f;)a.call(t,u=c[f++])&&n.push(u);return n}},function(t,n,r){var e=r(0);e(e.S,"Object",{create:r(33)})},function(t,n,r){var e=r(0);e(e.S+e.F*!r(9),"Object",{defineProperty:r(8).f})},function(t,n,r){var e=r(0);e(e.S+e.F*!r(9),"Object",{defineProperties:r(94)})},function(t,n,r){var e=r(15),o=r(20).f;r(21)("getOwnPropertyDescriptor",function(){return function(t,n){return o(e(t),n)}})},function(t,n,r){var e=r(10),o=r(35);r(21)("getPrototypeOf",function(){return function(t){return o(e(t))}})},function(t,n,r){var e=r(10),o=r(31);r(21)("keys",function(){return function(t){return o(e(t))}})},function(t,n,r){r(21)("getOwnPropertyNames",function(){return r(95).f})},function(t,n,r){var e=r(4),o=r(27).onFreeze;r(21)("freeze",function(t){return function(n){return t&&e(n)?t(o(n)):n}})},function(t,n,r){var e=r(4),o=r(27).onFreeze;r(21)("seal",function(t){return function(n){return t&&e(n)?t(o(n)):n}})},function(t,n,r){var e=r(4),o=r(27).onFreeze;r(21)("preventExtensions",function(t){return function(n){return t&&e(n)?t(o(n)):n}})},function(t,n,r){var e=r(4);r(21)("isFrozen",function(t){return function(n){return!e(n)||!!t&&t(n)}})},function(t,n,r){var e=r(4);r(21)("isSealed",function(t){return function(n){return!e(n)||!!t&&t(n)}})},function(t,n,r){var e=r(4);r(21)("isExtensible",function(t){return function(n){return!!e(n)&&(!t||t(n))}})},function(t,n,r){var e=r(0);e(e.S+e.F,"Object",{assign:r(96)})},function(t,n,r){var e=r(0);e(e.S,"Object",{is:r(97)})},function(t,n,r){var e=r(0);e(e.S,"Object",{setPrototypeOf:r(67).set})},function(t,n,r){"use strict";var e=r(47),o={};o[r(5)("toStringTag")]="z",o+""!="[object z]"&&r(11)(Object.prototype,"toString",function(){return"[object "+e(this)+"]"},!0)},function(t,n,r){var e=r(0);e(e.P,"Function",{bind:r(98)})},function(t,n,r){var e=r(8).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||r(9)&&e(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},function(t,n,r){"use strict";var e=r(4),o=r(35),i=r(5)("hasInstance"),u=Function.prototype;i in u||r(8).f(u,i,{value:function(t){if("function"!=typeof this||!e(t))return!1;if(!e(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,n,r){var e=r(0),o=r(100);e(e.G+e.F*(parseInt!=o),{parseInt:o})},function(t,n,r){var e=r(0),o=r(101);e(e.G+e.F*(parseFloat!=o),{parseFloat:o})},function(t,n,r){"use strict";var e=r(1),o=r(13),i=r(23),u=r(69),c=r(26),a=r(2),f=r(34).f,s=r(20).f,l=r(8).f,p=r(40).trim,h=e.Number,v=h,d=h.prototype,y="Number"==i(r(33)(d)),g="trim"in String.prototype,m=function(t){var n=c(t,!1);if("string"==typeof n&&n.length>2){n=g?n.trim():p(n,3);var r,e,o,i=n.charCodeAt(0);if(43===i||45===i){if(88===(r=n.charCodeAt(2))||120===r)return NaN}else if(48===i){switch(n.charCodeAt(1)){case 66:case 98:e=2,o=49;break;case 79:case 111:e=8,o=55;break;default:return+n}for(var u,a=n.slice(2),f=0,s=a.length;fo)return NaN;return parseInt(a,e)}}return+n};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(t){var n=arguments.length<1?0:t,r=this;return r instanceof h&&(y?a(function(){d.valueOf.call(r)}):"Number"!=i(r))?u(new v(m(n)),r,h):m(n)};for(var b,w=r(9)?f(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;w.length>S;S++)o(v,b=w[S])&&!o(h,b)&&l(h,b,s(v,b));h.prototype=d,d.constructor=h,r(11)(e,"Number",h)}},function(t,n,r){"use strict";var e=r(0),o=r(19),i=r(102),u=r(70),c=1..toFixed,a=Math.floor,f=[0,0,0,0,0,0],s="Number.toFixed: incorrect invocation!",l=function(t,n){for(var r=-1,e=n;++r<6;)e+=t*f[r],f[r]=e%1e7,e=a(e/1e7)},p=function(t){for(var n=6,r=0;--n>=0;)r+=f[n],f[n]=a(r/t),r=r%t*1e7},h=function(){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==f[t]){var r=String(f[t]);n=""===n?r:n+u.call("0",7-r.length)+r}return n},v=function(t,n,r){return 0===n?r:n%2==1?v(t,n-1,r*t):v(t*t,n/2,r)},d=function(t){for(var n=0,r=t;r>=4096;)n+=12,r/=4096;for(;r>=2;)n+=1,r/=2;return n};e(e.P+e.F*(!!c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(2)(function(){c.call({})})),"Number",{toFixed:function(t){var n,r,e,c,a=i(this,s),f=o(t),y="",g="0";if(f<0||f>20)throw RangeError(s);if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return String(a);if(a<0&&(y="-",a=-a),a>1e-21)if(n=d(a*v(2,69,1))-69,r=n<0?a*v(2,-n,1):a/v(2,n,1),r*=4503599627370496,(n=52-n)>0){for(l(0,r),e=f;e>=7;)l(1e7,0),e-=7;for(l(v(10,e,1),0),e=n-1;e>=23;)p(1<<23),e-=23;p(1<0?(c=g.length,g=y+(c<=f?"0."+u.call("0",f-c)+g:g.slice(0,c-f)+"."+g.slice(c-f))):g=y+g,g}})},function(t,n,r){"use strict";var e=r(0),o=r(2),i=r(102),u=1..toPrecision;e(e.P+e.F*(o(function(){return"1"!==u.call(1,void 0)})||!o(function(){u.call({})})),"Number",{toPrecision:function(t){var n=i(this,"Number#toPrecision: incorrect invocation!");return void 0===t?u.call(n):u.call(n,t)}})},function(t,n,r){var e=r(0);e(e.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,n,r){var e=r(0),o=r(1).isFinite;e(e.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,n,r){var e=r(0);e(e.S,"Number",{isInteger:r(103)})},function(t,n,r){var e=r(0);e(e.S,"Number",{isNaN:function(t){return t!=t}})},function(t,n,r){var e=r(0),o=r(103),i=Math.abs;e(e.S,"Number",{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},function(t,n,r){var e=r(0);e(e.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,n,r){var e=r(0);e(e.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,n,r){var e=r(0),o=r(101);e(e.S+e.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,n,r){var e=r(0),o=r(100);e(e.S+e.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,n,r){var e=r(0),o=r(104),i=Math.sqrt,u=Math.acosh;e(e.S+e.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))&&u(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+i(t-1)*i(t+1))}})},function(t,n,r){function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}var o=r(0),i=Math.asinh;o(o.S+o.F*!(i&&1/i(0)>0),"Math",{asinh:e})},function(t,n,r){var e=r(0),o=Math.atanh;e(e.S+e.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,n,r){var e=r(0),o=r(71);e(e.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,n,r){var e=r(0);e(e.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,n,r){var e=r(0),o=Math.exp;e(e.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,n,r){var e=r(0),o=r(72);e(e.S+e.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,n,r){var e=r(0);e(e.S,"Math",{fround:r(179)})},function(t,n,r){var e=r(71),o=Math.pow,i=o(2,-52),u=o(2,-23),c=o(2,127)*(2-u),a=o(2,-126),f=function(t){return t+1/i-1/i};t.exports=Math.fround||function(t){var n,r,o=Math.abs(t),s=e(t);return oc||r!=r?s*(1/0):s*r)}},function(t,n,r){var e=r(0),o=Math.abs;e(e.S,"Math",{hypot:function(t,n){for(var r,e,i=0,u=0,c=arguments.length,a=0;u0?(e=r/a,i+=e*e):i+=r;return a===1/0?1/0:a*Math.sqrt(i)}})},function(t,n,r){var e=r(0),o=Math.imul;e(e.S+e.F*r(2)(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(t,n){var r=+t,e=+n,o=65535&r,i=65535&e;return 0|o*i+((65535&r>>>16)*i+o*(65535&e>>>16)<<16>>>0)}})},function(t,n,r){var e=r(0);e(e.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,n,r){var e=r(0);e(e.S,"Math",{log1p:r(104)})},function(t,n,r){var e=r(0);e(e.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,n,r){var e=r(0);e(e.S,"Math",{sign:r(71)})},function(t,n,r){var e=r(0),o=r(72),i=Math.exp;e(e.S+e.F*r(2)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(i(t-1)-i(-t-1))*(Math.E/2)}})},function(t,n,r){var e=r(0),o=r(72),i=Math.exp;e(e.S,"Math",{tanh:function(t){var n=o(t=+t),r=o(-t);return n==1/0?1:r==1/0?-1:(n-r)/(i(t)+i(-t))}})},function(t,n,r){var e=r(0);e(e.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,n,r){var e=r(0),o=r(32),i=String.fromCharCode,u=String.fromCodePoint;e(e.S+e.F*(!!u&&1!=u.length),"String",{fromCodePoint:function(t){for(var n,r=[],e=arguments.length,u=0;e>u;){if(n=+arguments[u++],o(n,1114111)!==n)throw RangeError(n+" is not a valid code point");r.push(n<65536?i(n):i(55296+((n-=65536)>>10),n%1024+56320))}return r.join("")}})},function(t,n,r){var e=r(0),o=r(15),i=r(6);e(e.S,"String",{raw:function(t){for(var n=o(t.raw),r=i(n.length),e=arguments.length,u=[],c=0;r>c;)u.push(String(n[c++])),c=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})})},function(t,n,r){"use strict";var e=r(0),o=r(73)(!1);e(e.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,n,r){"use strict";var e=r(0),o=r(6),i=r(75),u="".endsWith;e(e.P+e.F*r(77)("endsWith"),"String",{endsWith:function(t){var n=i(this,t,"endsWith"),r=arguments.length>1?arguments[1]:void 0,e=o(n.length),c=void 0===r?e:Math.min(o(r),e),a=String(t);return u?u.call(n,a,c):n.slice(c-a.length,c)===a}})},function(t,n,r){"use strict";var e=r(0),o=r(75);e(e.P+e.F*r(77)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,n,r){var e=r(0);e(e.P,"String",{repeat:r(70)})},function(t,n,r){"use strict";var e=r(0),o=r(6),i=r(75),u="".startsWith;e(e.P+e.F*r(77)("startsWith"),"String",{startsWith:function(t){var n=i(this,t,"startsWith"),r=o(Math.min(arguments.length>1?arguments[1]:void 0,n.length)),e=String(t);return u?u.call(n,e,r):n.slice(r,r+e.length)===e}})},function(t,n,r){"use strict";r(12)("anchor",function(t){return function(n){return t(this,"a","name",n)}})},function(t,n,r){"use strict";r(12)("big",function(t){return function(){return t(this,"big","","")}})},function(t,n,r){"use strict";r(12)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,n,r){"use strict";r(12)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,n,r){"use strict";r(12)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,n,r){"use strict";r(12)("fontcolor",function(t){return function(n){return t(this,"font","color",n)}})},function(t,n,r){"use strict";r(12)("fontsize",function(t){return function(n){return t(this,"font","size",n)}})},function(t,n,r){"use strict";r(12)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,n,r){"use strict";r(12)("link",function(t){return function(n){return t(this,"a","href",n)}})},function(t,n,r){"use strict";r(12)("small",function(t){return function(){return t(this,"small","","")}})},function(t,n,r){"use strict";r(12)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,n,r){"use strict";r(12)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,n,r){"use strict";r(12)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,n,r){var e=r(0);e(e.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,n,r){"use strict";var e=r(0),o=r(10),i=r(26);e(e.P+e.F*r(2)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var n=o(this),r=i(n);return"number"!=typeof r||isFinite(r)?n.toISOString():null}})},function(t,n,r){var e=r(0),o=r(214);e(e.P+e.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,n,r){"use strict";var e=r(2),o=Date.prototype.getTime,i=Date.prototype.toISOString,u=function(t){return t>9?t:"0"+t};t.exports=e(function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-5e13-1))})||!e(function(){i.call(new Date(NaN))})?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,n=t.getUTCFullYear(),r=t.getUTCMilliseconds(),e=n<0?"-":n>9999?"+":"";return e+("00000"+Math.abs(n)).slice(e?-6:-4)+"-"+u(t.getUTCMonth()+1)+"-"+u(t.getUTCDate())+"T"+u(t.getUTCHours())+":"+u(t.getUTCMinutes())+":"+u(t.getUTCSeconds())+"."+(r>99?r:"0"+u(r))+"Z"}:i},function(t,n,r){var e=Date.prototype,o=e.toString,i=e.getTime;new Date(NaN)+""!="Invalid Date"&&r(11)(e,"toString",function(){var t=i.call(this);return t===t?o.call(this):"Invalid Date"})},function(t,n,r){var e=r(5)("toPrimitive"),o=Date.prototype;e in o||r(14)(o,e,r(217))},function(t,n,r){"use strict";var e=r(3),o=r(26);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(e(this),"number"!=t)}},function(t,n,r){var e=r(0);e(e.S,"Array",{isArray:r(52)})},function(t,n,r){"use strict";var e=r(17),o=r(0),i=r(10),u=r(106),c=r(78),a=r(6),f=r(79),s=r(80);o(o.S+o.F*!r(53)(function(t){Array.from(t)}),"Array",{from:function(t){var n,r,o,l,p=i(t),h="function"==typeof this?this:Array,v=arguments.length,d=v>1?arguments[1]:void 0,y=void 0!==d,g=0,m=s(p);if(y&&(d=e(d,v>2?arguments[2]:void 0,2)),void 0==m||h==Array&&c(m))for(n=a(p.length),r=new h(n);n>g;g++)f(r,g,y?d(p[g],g):p[g]);else for(l=m.call(p),r=new h;!(o=l.next()).done;g++)f(r,g,y?u(l,d,[o.value,g],!0):o.value);return r.length=g,r}})},function(t,n,r){"use strict";var e=r(0),o=r(79);e(e.S+e.F*r(2)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,n=arguments.length,r=new("function"==typeof this?this:Array)(n);n>t;)o(r,t,arguments[t++]);return r.length=n,r}})},function(t,n,r){"use strict";var e=r(0),o=r(15),i=[].join;e(e.P+e.F*(r(45)!=Object||!r(16)(i)),"Array",{join:function(t){return i.call(o(this),void 0===t?",":t)}})},function(t,n,r){"use strict";var e=r(0),o=r(66),i=r(23),u=r(32),c=r(6),a=[].slice;e(e.P+e.F*r(2)(function(){o&&a.call(o)}),"Array",{slice:function(t,n){var r=c(this.length),e=i(this);if(n=void 0===n?r:n,"Array"==e)return a.call(this,t,n);for(var o=u(t,r),f=u(n,r),s=c(f-o),l=new Array(s),p=0;p1&&(e=Math.min(e,i(arguments[1]))),e<0&&(e=r+e);e>=0;e--)if(e in n&&n[e]===t)return e||0;return-1}})},function(t,n,r){var e=r(0);e(e.P,"Array",{copyWithin:r(109)}),r(36)("copyWithin")},function(t,n,r){var e=r(0);e(e.P,"Array",{fill:r(81)}),r(36)("fill")},function(t,n,r){"use strict";var e=r(0),o=r(22)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),e(e.P+e.F*i,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),r(36)("find")},function(t,n,r){"use strict";var e=r(0),o=r(22)(6),i="findIndex",u=!0;i in[]&&Array(1)[i](function(){u=!1}),e(e.P+e.F*u,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),r(36)(i)},function(t,n,r){r(42)("Array")},function(t,n,r){var e=r(1),o=r(69),i=r(8).f,u=r(34).f,c=r(76),a=r(54),f=e.RegExp,s=f,l=f.prototype,p=/a/g,h=/a/g,v=new f(p)!==p;if(r(9)&&(!v||r(2)(function(){return h[r(5)("match")]=!1,f(p)!=p||f(h)==h||"/a/i"!=f(p,"i")}))){f=function(t,n){var r=this instanceof f,e=c(t),i=void 0===n;return!r&&e&&t.constructor===f&&i?t:o(v?new s(e&&!i?t.source:t,n):s((e=t instanceof f)?t.source:t,e&&i?a.call(t):n),r?this:l,f)};for(var d=u(s),y=0;d.length>y;)!function(t){t in f||i(f,t,{configurable:!0,get:function(){return s[t]},set:function(n){s[t]=n}})}(d[y++]);l.constructor=f,f.prototype=l,r(11)(e,"RegExp",f)}r(42)("RegExp")},function(t,n,r){"use strict";r(112);var e=r(3),o=r(54),i=r(9),u=/./.toString,c=function(t){r(11)(RegExp.prototype,"toString",t,!0)};r(2)(function(){return"/a/b"!=u.call({source:"a",flags:"b"})})?c(function(){var t=e(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)}):"toString"!=u.name&&c(function(){return u.call(this)})},function(t,n,r){"use strict";var e=r(3),o=r(6),i=r(84),u=r(55);r(56)("match",1,function(t,n,r,c){return[function(r){var e=t(this),o=void 0==r?void 0:r[n];return void 0!==o?o.call(r,e):new RegExp(r)[n](String(e))},function(t){var n=c(r,t,this);if(n.done)return n.value;var a=e(t),f=String(this);if(!a.global)return u(a,f);var s=a.unicode;a.lastIndex=0;for(var l,p=[],h=0;null!==(l=u(a,f));){var v=String(l[0]);p[h]=v,""===v&&(a.lastIndex=i(f,o(a.lastIndex),s)),h++}return 0===h?null:p}]})},function(t,n,r){"use strict";var e=r(3),o=r(10),i=r(6),u=r(19),c=r(84),a=r(55),f=Math.max,s=Math.min,l=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g,v=function(t){return void 0===t?t:String(t)};r(56)("replace",2,function(t,n,r,d){function y(t,n,e,i,u,c){var a=e+t.length,f=i.length,s=h;return void 0!==u&&(u=o(u),s=p),r.call(c,s,function(r,o){var c;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,e);case"'":return n.slice(a);case"<":c=u[o.slice(1,-1)];break;default:var s=+o;if(0===s)return r;if(s>f){var p=l(s/10);return 0===p?r:p<=f?void 0===i[p-1]?o.charAt(1):i[p-1]+o.charAt(1):r}c=i[s-1]}return void 0===c?"":c})}return[function(e,o){var i=t(this),u=void 0==e?void 0:e[n];return void 0!==u?u.call(e,i,o):r.call(String(i),e,o)},function(t,n){var o=d(r,t,this,n);if(o.done)return o.value;var l=e(t),p=String(this),h="function"==typeof n;h||(n=String(n));var g=l.global;if(g){var m=l.unicode;l.lastIndex=0}for(var b=[];;){var w=a(l,p);if(null===w)break;if(b.push(w),!g)break;""===String(w[0])&&(l.lastIndex=c(p,i(l.lastIndex),m))}for(var S="",x=0,_=0;_=x&&(S+=p.slice(x,E)+M,x=E+O.length)}return S+p.slice(x)}]})},function(t,n,r){"use strict";var e=r(3),o=r(97),i=r(55);r(56)("search",1,function(t,n,r,u){return[function(r){var e=t(this),o=void 0==r?void 0:r[n];return void 0!==o?o.call(r,e):new RegExp(r)[n](String(e))},function(t){var n=u(r,t,this);if(n.done)return n.value;var c=e(t),a=String(this),f=c.lastIndex;o(f,0)||(c.lastIndex=0);var s=i(c,a);return o(c.lastIndex,f)||(c.lastIndex=f),null===s?-1:s.index}]})},function(t,n,r){"use strict";var e=r(76),o=r(3),i=r(48),u=r(84),c=r(6),a=r(55),f=r(83),s=r(2),l=Math.min,p=[].push,h="length",v=!s(function(){RegExp(4294967295,"y")});r(56)("split",2,function(t,n,r,s){var d;return d="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[h]||2!="ab".split(/(?:ab)*/)[h]||4!=".".split(/(.?)(.?)/)[h]||".".split(/()()/)[h]>1||"".split(/.?/)[h]?function(t,n){var o=String(this);if(void 0===t&&0===n)return[];if(!e(t))return r.call(o,t,n);for(var i,u,c,a=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,v=void 0===n?4294967295:n>>>0,d=new RegExp(t.source,s+"g");(i=f.call(d,o))&&!((u=d.lastIndex)>l&&(a.push(o.slice(l,i.index)),i[h]>1&&i.index=v));)d.lastIndex===i.index&&d.lastIndex++;return l===o[h]?!c&&d.test("")||a.push(""):a.push(o.slice(l)),a[h]>v?a.slice(0,v):a}:"0".split(void 0,0)[h]?function(t,n){return void 0===t&&0===n?[]:r.call(this,t,n)}:r,[function(r,e){var o=t(this),i=void 0==r?void 0:r[n];return void 0!==i?i.call(r,o,e):d.call(String(o),r,e)},function(t,n){var e=s(d,t,this,n,d!==r);if(e.done)return e.value;var f=o(t),p=String(this),h=i(f,RegExp),y=f.unicode,g=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(v?"y":"g"),m=new h(v?f:"^(?:"+f.source+")",g),b=void 0===n?4294967295:n>>>0;if(0===b)return[];if(0===p.length)return null===a(m,p)?[p]:[];for(var w=0,S=0,x=[];S0?arguments[0]:void 0)}},{get:function(t){var n=e.getEntry(o(this,"Map"),t);return n&&n.v},set:function(t,n){return e.def(o(this,"Map"),0===t?0:t,n)}},e,!0)},function(t,n,r){"use strict";var e=r(116),o=r(37);t.exports=r(59)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return e.def(o(this,"Set"),t=0===t?0:t,t)}},e)},function(t,n,r){"use strict";var e,o=r(1),i=r(22)(0),u=r(11),c=r(27),a=r(96),f=r(117),s=r(4),l=r(37),p=r(37),h=!o.ActiveXObject&&"ActiveXObject"in o,v=c.getWeak,d=Object.isExtensible,y=f.ufstore,g=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},m={get:function(t){if(s(t)){var n=v(t);return!0===n?y(l(this,"WeakMap")).get(t):n?n[this._i]:void 0}},set:function(t,n){return f.def(l(this,"WeakMap"),t,n)}},b=t.exports=r(59)("WeakMap",g,m,f,!0,!0);p&&h&&(e=f.getConstructor(g,"WeakMap"),a(e.prototype,m),c.NEED=!0,i(["delete","has","get","set"],function(t){var n=b.prototype,r=n[t];u(n,t,function(n,o){if(s(n)&&!d(n)){this._f||(this._f=new e);var i=this._f[t](n,o);return"set"==t?this:i}return r.call(this,n,o)})}))},function(t,n,r){"use strict";var e=r(117),o=r(37);r(59)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return e.def(o(this,"WeakSet"),t,!0)}},e,!1,!0)},function(t,n,r){"use strict";var e=r(0),o=r(60),i=r(86),u=r(3),c=r(32),a=r(6),f=r(4),s=r(1).ArrayBuffer,l=r(48),p=i.ArrayBuffer,h=i.DataView,v=o.ABV&&s.isView,d=p.prototype.slice,y=o.VIEW;e(e.G+e.W+e.F*(s!==p),{ArrayBuffer:p}),e(e.S+e.F*!o.CONSTR,"ArrayBuffer",{isView:function(t){return v&&v(t)||f(t)&&y in t}}),e(e.P+e.U+e.F*r(2)(function(){return!new p(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,n){if(void 0!==d&&void 0===n)return d.call(u(this),t);for(var r=u(this).byteLength,e=c(t,r),o=c(void 0===n?r:n,r),i=new(l(this,p))(a(o-e)),f=new h(this),s=new h(i),v=0;e=r.length)return{value:void 0,done:!0}}while(!((t=r[n._i++])in n._t));return{value:t,done:!1}}),e(e.S,"Reflect",{enumerate:function(t){return new i(t)}})},function(t,n,r){function e(t,n){var r,c,s=arguments.length<3?t:arguments[2];return f(t)===s?t[n]:(r=o.f(t,n))?u(r,"value")?r.value:void 0!==r.get?r.get.call(s):void 0:a(c=i(t))?e(c,n,s):void 0}var o=r(20),i=r(35),u=r(13),c=r(0),a=r(4),f=r(3);c(c.S,"Reflect",{get:e})},function(t,n,r){var e=r(20),o=r(0),i=r(3);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,n){return e.f(i(t),n)}})},function(t,n,r){var e=r(0),o=r(35),i=r(3);e(e.S,"Reflect",{getPrototypeOf:function(t){return o(i(t))}})},function(t,n,r){var e=r(0);e(e.S,"Reflect",{has:function(t,n){return n in t}})},function(t,n,r){var e=r(0),o=r(3),i=Object.isExtensible;e(e.S,"Reflect",{isExtensible:function(t){return o(t),!i||i(t)}})},function(t,n,r){var e=r(0);e(e.S,"Reflect",{ownKeys:r(119)})},function(t,n,r){var e=r(0),o=r(3),i=Object.preventExtensions;e(e.S,"Reflect",{preventExtensions:function(t){o(t);try{return i&&i(t),!0}catch(t){return!1}}})},function(t,n,r){function e(t,n,r){var a,p,h=arguments.length<4?t:arguments[3],v=i.f(s(t),n);if(!v){if(l(p=u(t)))return e(p,n,r,h);v=f(0)}if(c(v,"value")){if(!1===v.writable||!l(h))return!1;if(a=i.f(h,n)){if(a.get||a.set||!1===a.writable)return!1;a.value=r,o.f(h,n,a)}else o.f(h,n,f(0,r));return!0}return void 0!==v.set&&(v.set.call(h,r),!0)}var o=r(8),i=r(20),u=r(35),c=r(13),a=r(0),f=r(28),s=r(3),l=r(4);a(a.S,"Reflect",{set:e})},function(t,n,r){var e=r(0),o=r(67);o&&e(e.S,"Reflect",{setPrototypeOf:function(t,n){o.check(t,n);try{return o.set(t,n),!0}catch(t){return!1}}})},function(t,n,r){r(277),t.exports=r(7).Array.includes},function(t,n,r){"use strict";var e=r(0),o=r(50)(!0);e(e.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),r(36)("includes")},function(t,n,r){r(279),t.exports=r(7).Array.flatMap},function(t,n,r){"use strict";var e=r(0),o=r(280),i=r(10),u=r(6),c=r(18),a=r(107);e(e.P,"Array",{flatMap:function(t){var n,r,e=i(this);return c(t),n=u(e.length),r=a(e,0),o(r,e,e,n,0,1,t,arguments[1]),r}}),r(36)("flatMap")},function(t,n,r){"use strict";function e(t,n,r,f,s,l,p,h){for(var v,d,y=s,g=0,m=!!p&&c(p,h,3);g0)y=e(t,n,v,u(v.length),y,l-1)-1;else{if(y>=9007199254740991)throw TypeError();t[y]=v}y++}g++}return y}var o=r(52),i=r(4),u=r(6),c=r(17),a=r(5)("isConcatSpreadable");t.exports=e},function(t,n,r){r(282),t.exports=r(7).String.padStart},function(t,n,r){"use strict";var e=r(0),o=r(120),i=r(58),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);e(e.P+e.F*u,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,n,r){r(284),t.exports=r(7).String.padEnd},function(t,n,r){"use strict";var e=r(0),o=r(120),i=r(58),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);e(e.P+e.F*u,"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,n,r){r(286),t.exports=r(7).String.trimLeft},function(t,n,r){"use strict";r(40)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,n,r){r(288),t.exports=r(7).String.trimRight},function(t,n,r){"use strict";r(40)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,n,r){r(290),t.exports=r(63).f("asyncIterator")},function(t,n,r){r(92)("asyncIterator")},function(t,n,r){r(292),t.exports=r(7).Object.getOwnPropertyDescriptors},function(t,n,r){var e=r(0),o=r(119),i=r(15),u=r(20),c=r(79);e(e.S,"Object",{getOwnPropertyDescriptors:function(t){for(var n,r,e=i(t),a=u.f,f=o(e),s={},l=0;f.length>l;)void 0!==(r=a(e,n=f[l++]))&&c(s,n,r);return s}})},function(t,n,r){r(294),t.exports=r(7).Object.values},function(t,n,r){var e=r(0),o=r(121)(!1);e(e.S,"Object",{values:function(t){return o(t)}})},function(t,n,r){r(296),t.exports=r(7).Object.entries},function(t,n,r){var e=r(0),o=r(121)(!0);e(e.S,"Object",{entries:function(t){return o(t)}})},function(t,n,r){"use strict";r(113),r(298),t.exports=r(7).Promise.finally},function(t,n,r){"use strict";var e=r(0),o=r(7),i=r(1),u=r(48),c=r(115);e(e.P+e.R,"Promise",{finally:function(t){var n=u(this,o.Promise||i.Promise),r="function"==typeof t;return this.then(r?function(r){return c(n,t()).then(function(){return r})}:t,r?function(r){return c(n,t()).then(function(){throw r})}:t)}})},function(t,n,r){r(300),r(301),r(302),t.exports=r(7)},function(t,n,r){var e=r(1),o=r(0),i=r(58),u=[].slice,c=/MSIE .\./.test(i),a=function(t){return function(n,r){var e=arguments.length>2,o=!!e&&u.call(arguments,2);return t(e?function(){("function"==typeof n?n:Function(n)).apply(this,o)}:n,r)}};o(o.G+o.B+o.F*c,{setTimeout:a(e.setTimeout),setInterval:a(e.setInterval)})},function(t,n,r){var e=r(0),o=r(85);e(e.G+e.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,n,r){for(var e=r(82),o=r(31),i=r(11),u=r(1),c=r(14),a=r(41),f=r(5),s=f("iterator"),l=f("toStringTag"),p=a.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},v=o(h),d=0;d=0;--e){var o=this.tryEntries[e],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var u=g.call(o,"catchLoc"),c=g.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var e=this.tryEntries[r];if(e.tryLoc<=this.prev&&g.call(e,"finallyLoc")&&this.prev=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),l(r),P}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if("throw"===e.type){var o=e.arg;l(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:h(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=d),P}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}},function(t,n,r){r(305),t.exports=r(122).global},function(t,n,r){var e=r(306);e(e.G,{global:r(87)})},function(t,n,r){var e=r(87),o=r(122),i=r(307),u=r(309),c=r(316),a=function(t,n,r){var f,s,l,p=t&a.F,h=t&a.G,v=t&a.S,d=t&a.P,y=t&a.B,g=t&a.W,m=h?o:o[n]||(o[n]={}),b=m.prototype,w=h?e:v?e[n]:(e[n]||{}).prototype;h&&(r=n);for(f in r)(s=!p&&w&&void 0!==w[f])&&c(m,f)||(l=s?w[f]:r[f],m[f]=h&&"function"!=typeof w[f]?r[f]:y&&s?i(l,e):g&&w[f]==l?function(t){var n=function(n,r,e){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,e)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(l):d&&"function"==typeof l?i(Function.call,l):l,d&&((m.virtual||(m.virtual={}))[f]=l,t&a.R&&b&&!b[f]&&u(b,f,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,n,r){var e=r(308);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,r){var e=r(310),o=r(315);t.exports=r(89)?function(t,n,r){return e.f(t,n,o(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(311),o=r(312),i=r(314),u=Object.defineProperty;n.f=r(89)?Object.defineProperty:function(t,n,r){if(e(t),n=i(n,!0),e(r),o)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){var e=r(88);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},function(t,n,r){t.exports=!r(89)&&!r(123)(function(){return 7!=Object.defineProperty(r(313)("div"),"a",{get:function(){return 7}}).a})},function(t,n,r){var e=r(88),o=r(87).document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,r){var e=r(88);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n,r){"use strict";function e(t){if(Array.isArray(t)){for(var n=0,r=Array(t.length);n2&&void 0!==arguments[2]?arguments[2]:0,o=arguments[3],i=arguments[4],u=arguments[5],c=arguments[6],a=(arguments[7],0),f=void 0,s=[].concat(e(document.querySelectorAll("#"+c+" .staw__slide"))),l=s.length&&s[t].offsetWidth;if("auto"===u)for(var p=0;p1&&(f+=r/2*(t-1),t===o.length-1&&i&&(f-=r-r)),i&&s.length&&(f=-(-f+document.getElementById(c).offsetWidth/2-l/2-r)),-f},c=(0,o.compose)((0,o.withState)("currentSlide","setCurrentSlide",0),(0,o.withState)("containerWidth","setContainerWidth",0),(0,o.withState)("itemWidth","setItemWidth",0),(0,o.withState)("slideItems","setSlideItems",[]),(0,o.withState)("stawId","setStawId",function(){return"staw-"+Date.now()}),(0,o.withHandlers)({next:function(t){var n=t.children,r=t.currentSlide,e=t.setCurrentSlide;t.transitionDuration;return function(){r1?r-1:0),i=1;i=0||(o[r]=t[r]);return o}n.a=e},function(t,n,r){"use strict";function e(t,n,r){if("string"!=typeof n){if(l){var p=s(n);p&&p!==l&&e(t,p,r)}var h=c(n);a&&(h=h.concat(a(n)));for(var v=0;v=0||Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e]);return r}Object.defineProperty(n,"__esModule",{value:!0});var i=r(330),u=e(i),c=r(333),a=e(c),f=r(335),s=e(f),l=(0,s.default)((0,u.default)("startReference","changeStartReference",null),(0,a.default)({onTouchStart:function(t){var n=t.changeStartReference;return function(t){n(t.touches[0].pageX)}},onTouchEnd:function(t){var n=t.changeStartReference,r=t.onSwipeLeftToRight,e=t.onSwipeRightToLeft,o=t.startReference;return function(t){var i=t.changedTouches[0].pageX,u=i-o;u>0&&u-50>0?"function"==typeof r&&r(t):u+50<0&&"function"==typeof e&&e(t),n(0)}}})),p=function(n){var r=n.children,e=n.onTouchEnd,i=n.onTouchStart,u=o(n,["children","onTouchEnd","onTouchStart"]);return t.createElement("div",{onTouchEnd:e,onTouchStart:i,className:u.className},r)};n.default=l(p)}).call(n,r(38))},function(t,n,r){"use strict";var e=r(61);n.__esModule=!0,n.default=void 0;var o=e(r(124)),i=e(r(125)),u=r(38),c=(e(r(126)),e(r(127)),function(t,n,r){return function(e){var c=(0,u.createFactory)(e),a=function(e){function u(){for(var t,n=arguments.length,o=new Array(n),i=0;i0?i(e(t),9007199254740991):0}},function(t,n){var r=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=r)},function(t,n,r){t.exports=!r(2)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,r){var e=r(3),i=r(96),o=r(26),u=Object.defineProperty;n.f=r(8)?Object.defineProperty:function(t,n,r){if(e(t),n=o(n,!0),e(r),i)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){var e=r(24);t.exports=function(t){return Object(e(t))}},function(t,n,r){var e=r(1),i=r(14),o=r(13),u=r(30)("src"),c=r(139),a=(""+c).split("toString");r(7).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,r,c){var f="function"==typeof r;f&&(o(r,"name")||i(r,"name",n)),t[n]!==r&&(f&&(o(r,u)||i(r,u,t[n]?""+t[n]:a.join(String(n)))),t===e?t[n]=r:c?t[n]?t[n]=r:i(t,n,r):(delete t[n],i(t,n,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||c.call(this)})},function(t,n,r){var e=r(0),i=r(2),o=r(24),u=/"/g,c=function(t,n,r,e){var i=String(o(t)),c="<"+n;return""!==r&&(c+=" "+r+'="'+String(e).replace(u,""")+'"'),c+">"+i+""};t.exports=function(t,n){var r={};r[t]=n(c),e(e.P+e.F*i(function(){var n=""[t]('"');return n!==n.toLowerCase()||n.split('"').length>3}),"String",r)}},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n,r){var e=r(9),i=r(29);t.exports=r(8)?function(t,n,r){return e.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(46),i=r(24);t.exports=function(t){return e(i(t))}},function(t,n,r){"use strict";var e=r(2);t.exports=function(t,n){return!!t&&e(function(){n?t.call(null,function(){},1):t.call(null)})}},function(t,n,r){var e=r(18);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,i){return t.call(n,r,e,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(47),i=r(29),o=r(15),u=r(26),c=r(13),a=r(96),f=Object.getOwnPropertyDescriptor;n.f=r(8)?f:function(t,n){if(t=o(t),n=u(n,!0),a)try{return f(t,n)}catch(t){}if(c(t,n))return i(!e.f.call(t,n),t[n])}},function(t,n,r){var e=r(0),i=r(7),o=r(2);t.exports=function(t,n){var r=(i.Object||{})[t]||Object[t],u={};u[t]=n(r),e(e.S+e.F*o(function(){r(1)}),"Object",u)}},function(t,n,r){var e=r(17),i=r(46),o=r(10),u=r(6),c=r(112);t.exports=function(t,n){var r=1==t,a=2==t,f=3==t,s=4==t,l=6==t,h=5==t||l,v=n||c;return function(n,c,p){for(var d,y,g=o(n),m=i(g),w=e(c,p,3),_=u(m.length),x=0,b=r?v(n,_):a?v(n,0):void 0;_>x;x++)if((h||x in m)&&(d=m[x],y=w(d,x,g),t))if(r)b[x]=y;else if(y)switch(t){case 3:return!0;case 5:return d;case 6:return x;case 2:b.push(d)}else if(s)return!1;return l?-1:f||s?s:b}}},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,r){"use strict";if(r(8)){var e=r(31),i=r(1),o=r(2),u=r(0),c=r(63),a=r(89),f=r(17),s=r(44),l=r(29),h=r(14),v=r(45),p=r(19),d=r(6),y=r(123),g=r(33),m=r(26),w=r(13),_=r(48),x=r(4),b=r(10),S=r(81),E=r(34),O=r(36),M=r(35).f,P=r(83),A=r(30),F=r(5),N=r(22),I=r(53),j=r(49),T=r(85),R=r(42),L=r(56),k=r(43),C=r(84),W=r(114),D=r(9),V=r(20),G=D.f,B=V.f,U=i.RangeError,z=i.TypeError,Y=i.Uint8Array,q=Array.prototype,X=a.ArrayBuffer,$=a.DataView,K=N(0),J=N(2),H=N(3),Z=N(4),Q=N(5),tt=N(6),nt=I(!0),rt=I(!1),et=T.values,it=T.keys,ot=T.entries,ut=q.lastIndexOf,ct=q.reduce,at=q.reduceRight,ft=q.join,st=q.sort,lt=q.slice,ht=q.toString,vt=q.toLocaleString,pt=F("iterator"),dt=F("toStringTag"),yt=A("typed_constructor"),gt=A("def_constructor"),mt=c.CONSTR,wt=c.TYPED,_t=c.VIEW,xt=N(1,function(t,n){return Mt(j(t,t[gt]),n)}),bt=o(function(){return 1===new Y(new Uint16Array([1]).buffer)[0]}),St=!!Y&&!!Y.prototype.set&&o(function(){new Y(1).set({})}),Et=function(t,n){var r=p(t);if(r<0||r%n)throw U("Wrong offset!");return r},Ot=function(t){if(x(t)&&wt in t)return t;throw z(t+" is not a typed array!")},Mt=function(t,n){if(!(x(t)&&yt in t))throw z("It is not a typed array constructor!");return new t(n)},Pt=function(t,n){return At(j(t,t[gt]),n)},At=function(t,n){for(var r=0,e=n.length,i=Mt(t,e);e>r;)i[r]=n[r++];return i},Ft=function(t,n,r){G(t,n,{get:function(){return this._d[r]}})},Nt=function(t){var n,r,e,i,o,u,c=b(t),a=arguments.length,s=a>1?arguments[1]:void 0,l=void 0!==s,h=P(c);if(void 0!=h&&!S(h)){for(u=h.call(c),e=[],n=0;!(o=u.next()).done;n++)e.push(o.value);c=e}for(l&&a>2&&(s=f(s,arguments[2],2)),n=0,r=d(c.length),i=Mt(this,r);r>n;n++)i[n]=l?s(c[n],n):c[n];return i},It=function(){for(var t=0,n=arguments.length,r=Mt(this,n);n>t;)r[t]=arguments[t++];return r},jt=!!Y&&o(function(){vt.call(new Y(1))}),Tt=function(){return vt.apply(jt?lt.call(Ot(this)):Ot(this),arguments)},Rt={copyWithin:function(t,n){return W.call(Ot(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function(t){return Z(Ot(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return C.apply(Ot(this),arguments)},filter:function(t){return Pt(this,J(Ot(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Q(Ot(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){K(Ot(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return rt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return nt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ft.apply(Ot(this),arguments)},lastIndexOf:function(t){return ut.apply(Ot(this),arguments)},map:function(t){return xt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ct.apply(Ot(this),arguments)},reduceRight:function(t){return at.apply(Ot(this),arguments)},reverse:function(){for(var t,n=this,r=Ot(n).length,e=Math.floor(r/2),i=0;i1?arguments[1]:void 0)},sort:function(t){return st.call(Ot(this),t)},subarray:function(t,n){var r=Ot(this),e=r.length,i=g(t,e);return new(j(r,r[gt]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,d((void 0===n?e:g(n,e))-i))}},Lt=function(t,n){return Pt(this,lt.call(Ot(this),t,n))},kt=function(t){Ot(this);var n=Et(arguments[1],1),r=this.length,e=b(t),i=d(e.length),o=0;if(i+n>r)throw U("Wrong length!");for(;o255?255:255&e),i.v[v](r*n+i.o,e,bt)},F=function(t,n){G(t,n,{get:function(){return P(this,n)},set:function(t){return A(this,n,t)},enumerable:!0})};w?(p=r(function(t,r,e,i){s(t,p,f,"_d");var o,u,c,a,l=0,v=0;if(x(r)){if(!(r instanceof X||"ArrayBuffer"==(a=_(r))||"SharedArrayBuffer"==a))return wt in r?At(p,r):Nt.call(p,r);o=r,v=Et(e,n);var g=r.byteLength;if(void 0===i){if(g%n)throw U("Wrong length!");if((u=g-v)<0)throw U("Wrong length!")}else if((u=d(i)*n)+v>g)throw U("Wrong length!");c=u/n}else c=y(r),u=c*n,o=new X(u);for(h(t,"_d",{b:o,o:v,l:u,e:c,v:new $(o)});ldocument.F=Object<\/script>"),t.close(),a=t.F;e--;)delete a.prototype[o[e]];return a()};t.exports=Object.create||function(t,n){var r;return null!==t?(c.prototype=e(t),r=new c,c.prototype=null,r[u]=t):r=a(),void 0===n?r:i(r,n)}},function(t,n,r){var e=r(98),i=r(68).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,i)}},function(t,n,r){var e=r(13),i=r(10),o=r(67)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),e(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,r){var e=r(5)("unscopables"),i=Array.prototype;void 0==i[e]&&r(14)(i,e,{}),t.exports=function(t){i[e][t]=!0}},function(t,n,r){var e=r(4);t.exports=function(t,n){if(!e(t)||t._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return t}},function(t,n){function r(t){return t&&t.__esModule?t:{default:t}}t.exports=r},function(t,n,r){var e=r(9).f,i=r(13),o=r(5)("toStringTag");t.exports=function(t,n,r){t&&!i(t=r?t:t.prototype,o)&&e(t,o,{configurable:!0,value:n})}},function(t,n,r){var e=r(0),i=r(24),o=r(2),u=r(71),c="["+u+"]",a="​…",f=RegExp("^"+c+c+"*"),s=RegExp(c+c+"*$"),l=function(t,n,r){var i={},c=o(function(){return!!u[t]()||a[t]()!=a}),f=i[t]=c?n(h):u[t];r&&(i[r]=f),e(e.P+e.F*c,"String",i)},h=l.trim=function(t,n){return t=String(i(t)),1&n&&(t=t.replace(f,"")),2&n&&(t=t.replace(s,"")),t};t.exports=l},function(t,n){t.exports={}},function(t,n,r){"use strict";var e=r(1),i=r(9),o=r(8),u=r(5)("species");t.exports=function(t){var n=e[t];o&&n&&!n[u]&&i.f(n,u,{configurable:!0,get:function(){return this}})}},function(t,n){t.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,n,r){var e=r(11);t.exports=function(t,n,r){for(var i in n)e(t,i,n[i],r);return t}},function(t,n,r){var e=r(23);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,r){var e=r(23),i=r(5)("toStringTag"),o="Arguments"==e(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(t){}};t.exports=function(t){var n,r,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=u(n=Object(t),i))?r:o?e(n):"Object"==(c=e(n))&&"function"==typeof n.callee?"Arguments":c}},function(t,n,r){var e=r(3),i=r(18),o=r(5)("species");t.exports=function(t,n){var r,u=e(t).constructor;return void 0===u||void 0==(r=e(u)[o])?n:i(r)}},function(t,n,r){"use strict";var e=r(39);n.__esModule=!0,n.default=void 0;var i=e(r(323)),o=function(t){return(0,i.default)("displayName",t)},u=o;n.default=u},function(t,n,r){"use strict";var e=r(39);n.__esModule=!0,n.default=void 0;var i=e(r(324)),o=function(t,n){return n+"("+(0,i.default)(t)+")"},u=o;n.default=u},function(t,n,r){var e=r(7),i=r(1),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:e.version,mode:r(31)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,n,r){var e=r(15),i=r(6),o=r(33);t.exports=function(t){return function(n,r,u){var c,a=e(n),f=i(a.length),s=o(u,f);if(t&&r!=r){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===r)return t||s||0;return!t&&-1}}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,r){var e=r(23);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,n,r){var e=r(5)("iterator"),i=!1;try{var o=[7][e]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var r=!1;try{var o=[7],u=o[e]();u.next=function(){return{done:r=!0}},o[e]=function(){return u},t(o)}catch(t){}return r}},function(t,n,r){"use strict";var e=r(3);t.exports=function(){var t=e(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,r){"use strict";var e=r(48),i=RegExp.prototype.exec;t.exports=function(t,n){var r=t.exec;if("function"==typeof r){var o=r.call(t,n);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==e(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,n)}},function(t,n,r){"use strict";r(116);var e=r(11),i=r(14),o=r(2),u=r(24),c=r(5),a=r(86),f=c("species"),s=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}),l=function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var r="ab".split(t);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();t.exports=function(t,n,r){var h=c(t),v=!o(function(){var n={};return n[h]=function(){return 7},7!=""[t](n)}),p=v?!o(function(){var n=!1,r=/a/;return r.exec=function(){return n=!0,null},"split"===t&&(r.constructor={},r.constructor[f]=function(){return r}),r[h](""),!n}):void 0;if(!v||!p||"replace"===t&&!s||"split"===t&&!l){var d=/./[h],y=r(u,h,""[t],function(t,n,r,e,i){return n.exec===a?v&&!i?{done:!0,value:d.call(n,r,e)}:{done:!0,value:t.call(r,n,e)}:{done:!1}}),g=y[0],m=y[1];e(String.prototype,t,g),i(RegExp.prototype,h,2==n?function(t,n){return m.call(t,this,n)}:function(t){return m.call(t,this)})}}},function(t,n,r){var e=r(17),i=r(111),o=r(81),u=r(3),c=r(6),a=r(83),f={},s={},n=t.exports=function(t,n,r,l,h){var v,p,d,y,g=h?function(){return t}:a(t),m=e(r,l,n?2:1),w=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(v=c(t.length);v>w;w++)if((y=n?m(u(p=t[w])[0],p[1]):m(t[w]))===f||y===s)return y}else for(d=g.call(t);!(p=d.next()).done;)if((y=i(d,m,p.value,n))===f||y===s)return y};n.BREAK=f,n.RETURN=s},function(t,n,r){var e=r(1),i=e.navigator;t.exports=i&&i.userAgent||""},function(t,n,r){"use strict";var e=r(1),i=r(0),o=r(11),u=r(45),c=r(27),a=r(60),f=r(44),s=r(4),l=r(2),h=r(56),v=r(40),p=r(72);t.exports=function(t,n,r,d,y,g){var m=e[t],w=m,_=y?"set":"add",x=w&&w.prototype,b={},S=function(t){var n=x[t];o(x,t,"delete"==t?function(t){return!(g&&!s(t))&&n.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!s(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!s(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,r){return n.call(this,0===t?0:t,r),this})};if("function"==typeof w&&(g||x.forEach&&!l(function(){(new w).entries().next()}))){var E=new w,O=E[_](g?{}:-0,1)!=E,M=l(function(){E.has(1)}),P=h(function(t){new w(t)}),A=!g&&l(function(){for(var t=new w,n=5;n--;)t[_](n,n);return!t.has(-0)});P||(w=n(function(n,r){f(n,w,t);var e=p(new m,n,w);return void 0!=r&&a(r,y,e[_],e),e}),w.prototype=x,x.constructor=w),(M||A)&&(S("delete"),S("has"),y&&S("get")),(A||O)&&S(_),g&&x.clear&&delete x.clear}else w=d.getConstructor(n,t,y,_),u(w.prototype,r),c.NEED=!0;return v(w,t),b[t]=w,i(i.G+i.W+i.F*(w!=m),b),g||d.setStrong(w,t,y),w}},function(t,n,r){for(var e,i=r(1),o=r(14),u=r(30),c=u("typed_array"),a=u("view"),f=!(!i.ArrayBuffer||!i.DataView),s=f,l=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(e=i[h[l++]])?(o(e.prototype,c,!0),o(e.prototype,a,!0)):s=!1;t.exports={ABV:f,CONSTR:s,TYPED:c,VIEW:a}},function(t,n){function r(){return t.exports=r=Object.assign||function(t){for(var n=1;n0;(o>>>=1)&&(n+=n))1&o&&(r+=n);return r}},function(t,n){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,n){var r=Math.expm1;t.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:r},function(t,n,r){var e=r(19),i=r(24);t.exports=function(t){return function(n,r){var o,u,c=String(i(n)),a=e(r),f=c.length;return a<0||a>=f?t?"":void 0:(o=c.charCodeAt(a),o<55296||o>56319||a+1===f||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):o:t?c.slice(a,a+2):u-56320+(o-55296<<10)+65536)}}},function(t,n,r){"use strict";var e=r(31),i=r(0),o=r(11),u=r(14),c=r(42),a=r(110),f=r(40),s=r(36),l=r(5)("iterator"),h=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,n,r,p,d,y,g){a(r,n,p);var m,w,_,x=function(t){if(!h&&t in O)return O[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},b=n+" Iterator",S="values"==d,E=!1,O=t.prototype,M=O[l]||O["@@iterator"]||d&&O[d],P=M||x(d),A=d?S?x("entries"):P:void 0,F="Array"==n?O.entries||M:M;if(F&&(_=s(F.call(new t)))!==Object.prototype&&_.next&&(f(_,b,!0),e||"function"==typeof _[l]||u(_,l,v)),S&&M&&"values"!==M.name&&(E=!0,P=function(){return M.call(this)}),e&&!g||!h&&!E&&O[l]||u(O,l,P),c[n]=P,c[b]=v,d)if(m={values:S?P:x("values"),keys:y?P:x("keys"),entries:A},g)for(w in m)w in O||o(O,w,m[w]);else i(i.P+i.F*(h||E),n,m);return m}},function(t,n,r){var e=r(79),i=r(24);t.exports=function(t,n,r){if(e(n))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(t))}},function(t,n,r){var e=r(4),i=r(23),o=r(5)("match");t.exports=function(t){var n;return e(t)&&(void 0!==(n=t[o])?!!n:"RegExp"==i(t))}},function(t,n,r){var e=r(5)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(r){try{return n[e]=!1,!"/./"[t](n)}catch(t){}}return!0}},function(t,n,r){var e=r(42),i=r(5)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(e.Array===t||o[i]===t)}},function(t,n,r){"use strict";var e=r(9),i=r(29);t.exports=function(t,n,r){n in t?e.f(t,n,i(0,r)):t[n]=r}},function(t,n,r){var e=r(48),i=r(5)("iterator"),o=r(42);t.exports=r(7).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[e(t)]}},function(t,n,r){"use strict";var e=r(10),i=r(33),o=r(6);t.exports=function(t){for(var n=e(this),r=o(n.length),u=arguments.length,c=i(u>1?arguments[1]:void 0,r),a=u>2?arguments[2]:void 0,f=void 0===a?r:i(a,r);f>c;)n[c++]=t;return n}},function(t,n,r){"use strict";var e=r(37),i=r(115),o=r(42),u=r(15);t.exports=r(77)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):"keys"==n?i(0,r):"values"==n?i(0,t[r]):i(0,[r,t[r]])},"values"),o.Arguments=o.Array,e("keys"),e("values"),e("entries")},function(t,n,r){"use strict";var e=r(57),i=RegExp.prototype.exec,o=String.prototype.replace,u=i,c=function(){var t=/a/,n=/b*/g;return i.call(t,"a"),i.call(n,"a"),0!==t.lastIndex||0!==n.lastIndex}(),a=void 0!==/()??/.exec("")[1];(c||a)&&(u=function(t){var n,r,u,f,s=this;return a&&(r=new RegExp("^"+s.source+"$(?!\\s)",e.call(s))),c&&(n=s.lastIndex),u=i.call(s,t),c&&u&&(s.lastIndex=s.global?u.index+u[0].length:n),a&&u&&u.length>1&&o.call(u[0],r,function(){for(f=1;fr;)n.push(arguments[r++]);return g[++y]=function(){c("function"==typeof t?t:Function(t),n)},e(y),y},v=function(t){delete g[t]},"process"==r(23)(l)?e=function(t){l.nextTick(u(m,t,1))}:d&&d.now?e=function(t){d.now(u(m,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=w,e=u(o.postMessage,o,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(e=function(t){s.postMessage(t+"","*")},s.addEventListener("message",w,!1)):e="onreadystatechange"in f("script")?function(t){a.appendChild(f("script")).onreadystatechange=function(){a.removeChild(this),m.call(t)}}:function(t){setTimeout(u(m,t,1),0)}),t.exports={set:h,clear:v}},function(t,n,r){"use strict";function e(t,n,r){var e,i,o,u=new Array(r),c=8*r-n-1,a=(1<>1,s=23===n?W(2,-24)-W(2,-77):0,l=0,h=t<0||0===t&&1/t<0?1:0;for(t=C(t),t!=t||t===L?(i=t!=t?1:0,e=a):(e=D(V(t)/G),t*(o=W(2,-e))<1&&(e--,o*=2),t+=e+f>=1?s/o:s*W(2,1-f),t*o>=2&&(e++,o/=2),e+f>=a?(i=0,e=a):e+f>=1?(i=(t*o-1)*W(2,n),e+=f):(i=t*W(2,f-1)*W(2,n),e=0));n>=8;u[l++]=255&i,i/=256,n-=8);for(e=e<0;u[l++]=255&e,e/=256,c-=8);return u[--l]|=128*h,u}function i(t,n,r){var e,i=8*r-n-1,o=(1<>1,c=i-7,a=r-1,f=t[a--],s=127&f;for(f>>=7;c>0;s=256*s+t[a],a--,c-=8);for(e=s&(1<<-c)-1,s>>=-c,c+=n;c>0;e=256*e+t[a],a--,c-=8);if(0===s)s=1-u;else{if(s===o)return e?NaN:f?-L:L;e+=W(2,n),s-=u}return(f?-1:1)*e*W(2,s-n)}function o(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function u(t){return[255&t]}function c(t){return[255&t,t>>8&255]}function a(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function f(t){return e(t,52,8)}function s(t){return e(t,23,4)}function l(t,n,r){M(t[F],n,{get:function(){return this[r]}})}function h(t,n,r,e){var i=+r,o=E(i);if(o+n>t[U])throw R(N);var u=t[B]._b,c=o+t[z],a=u.slice(c,c+n);return e?a:a.reverse()}function v(t,n,r,e,i,o){var u=+r,c=E(u);if(c+n>t[U])throw R(N);for(var a=t[B]._b,f=c+t[z],s=e(+i),l=0;l$;)(Y=X[$++])in I||m(I,Y,k[Y]);y||(q.constructor=I)}var K=new j(new I(2)),J=j[F].setInt8;K.setInt8(0,2147483648),K.setInt8(1,2147483649),!K.getInt8(0)&&K.getInt8(1)||w(j[F],{setInt8:function(t,n){J.call(this,t,n<<24>>24)},setUint8:function(t,n){J.call(this,t,n<<24>>24)}},!0)}else I=function(t){x(this,I,"ArrayBuffer");var n=E(t);this._b=P.call(new Array(n),0),this[U]=n},j=function(t,n,r){x(this,j,"DataView"),x(t,I,"DataView");var e=t[U],i=b(n);if(i<0||i>e)throw R("Wrong offset!");if(r=void 0===r?e-i:S(r),i+r>e)throw R("Wrong length!");this[B]=t,this[z]=i,this[U]=r},d&&(l(I,"byteLength","_l"),l(j,"buffer","_b"),l(j,"byteLength","_l"),l(j,"byteOffset","_o")),w(j[F],{getInt8:function(t){return h(this,1,t)[0]<<24>>24},getUint8:function(t){return h(this,1,t)[0]},getInt16:function(t){var n=h(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=h(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return o(h(this,4,t,arguments[1]))},getUint32:function(t){return o(h(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return i(h(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return i(h(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){v(this,1,t,u,n)},setUint8:function(t,n){v(this,1,t,u,n)},setInt16:function(t,n){v(this,2,t,c,n,arguments[2])},setUint16:function(t,n){v(this,2,t,c,n,arguments[2])},setInt32:function(t,n){v(this,4,t,a,n,arguments[2])},setUint32:function(t,n){v(this,4,t,a,n,arguments[2])},setFloat32:function(t,n){v(this,4,t,s,n,arguments[2])},setFloat64:function(t,n){v(this,8,t,f,n,arguments[2])}});A(I,"ArrayBuffer"),A(j,"DataView"),m(j[F],g.VIEW,!0),n.ArrayBuffer=I,n.DataView=j},function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,r){t.exports=!r(128)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,r){"use strict";n.__esModule=!0,n.default=void 0;var e=function(){for(var t=arguments.length,n=new Array(t),r=0;ra;)e(c,r=n[a++])&&(~o(f,r)||f.push(r));return f}},function(t,n,r){var e=r(9),i=r(3),o=r(32);t.exports=r(8)?Object.defineProperties:function(t,n){i(t);for(var r,u=o(n),c=u.length,a=0;c>a;)e.f(t,r=u[a++],n[r]);return t}},function(t,n,r){var e=r(15),i=r(35).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return i(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?c(t):i(e(t))}},function(t,n,r){"use strict";var e=r(8),i=r(32),o=r(54),u=r(47),c=r(10),a=r(46),f=Object.assign;t.exports=!f||r(2)(function(){var t={},n={},r=Symbol(),e="abcdefghijklmnopqrst";return t[r]=7,e.split("").forEach(function(t){n[t]=t}),7!=f({},t)[r]||Object.keys(f({},n)).join("")!=e})?function(t,n){for(var r=c(t),f=arguments.length,s=1,l=o.f,h=u.f;f>s;)for(var v,p=a(arguments[s++]),d=l?i(p).concat(l(p)):i(p),y=d.length,g=0;y>g;)v=d[g++],e&&!h.call(p,v)||(r[v]=p[v]);return r}:f},function(t,n){t.exports=Object.is||function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}},function(t,n,r){"use strict";var e=r(18),i=r(4),o=r(104),u=[].slice,c={},a=function(t,n,r){if(!(n in c)){for(var e=[],i=0;i>>0||(u.test(r)?16:10))}:e},function(t,n,r){var e=r(1).parseFloat,i=r(41).trim;t.exports=1/e(r(71)+"-0")!=-1/0?function(t){var n=i(String(t),3),r=e(n);return 0===r&&"-"==n.charAt(0)?-0:r}:e},function(t,n,r){var e=r(23);t.exports=function(t,n){if("number"!=typeof t&&"Number"!=e(t))throw TypeError(n);return+t}},function(t,n,r){var e=r(4),i=Math.floor;t.exports=function(t){return!e(t)&&isFinite(t)&&i(t)===t}},function(t,n){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,n,r){"use strict";var e=r(34),i=r(29),o=r(40),u={};r(14)(u,r(5)("iterator"),function(){return this}),t.exports=function(t,n,r){t.prototype=e(u,{next:i(1,r)}),o(t,n+" Iterator")}},function(t,n,r){var e=r(3);t.exports=function(t,n,r,i){try{return i?n(e(r)[0],r[1]):n(r)}catch(n){var o=t.return;throw void 0!==o&&e(o.call(t)),n}}},function(t,n,r){var e=r(229);t.exports=function(t,n){return new(e(t))(n)}},function(t,n,r){var e=r(18),i=r(10),o=r(46),u=r(6);t.exports=function(t,n,r,c,a){e(n);var f=i(t),s=o(f),l=u(f.length),h=a?l-1:0,v=a?-1:1;if(r<2)for(;;){if(h in s){c=s[h],h+=v;break}if(h+=v,a?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;a?h>=0:l>h;h+=v)h in s&&(c=n(c,s[h],h,f));return c}},function(t,n,r){"use strict";var e=r(10),i=r(33),o=r(6);t.exports=[].copyWithin||function(t,n){var r=e(this),u=o(r.length),c=i(t,u),a=i(n,u),f=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===f?u:i(f,u))-a,u-c),l=1;for(a0;)a in r?r[c]=r[a]:delete r[c],c+=l,a+=l;return r}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,r){"use strict";var e=r(86);r(0)({target:"RegExp",proto:!0,forced:e!==/./.exec},{exec:e})},function(t,n,r){r(8)&&"g"!=/./g.flags&&r(9).f(RegExp.prototype,"flags",{configurable:!0,get:r(57)})},function(t,n,r){"use strict";var e,i,o,u,c=r(31),a=r(1),f=r(17),s=r(48),l=r(0),h=r(4),v=r(18),p=r(44),d=r(60),y=r(49),g=r(88).set,m=r(249)(),w=r(119),_=r(250),x=r(61),b=r(120),S=a.TypeError,E=a.process,O=E&&E.versions,M=O&&O.v8||"",P=a.Promise,A="process"==s(E),F=function(){},N=i=w.f,I=!!function(){try{var t=P.resolve(1),n=(t.constructor={})[r(5)("species")]=function(t){t(F,F)};return(A||"function"==typeof PromiseRejectionEvent)&&t.then(F)instanceof n&&0!==M.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),j=function(t){var n;return!(!h(t)||"function"!=typeof(n=t.then))&&n},T=function(t,n){if(!t._n){t._n=!0;var r=t._c;m(function(){for(var e=t._v,i=1==t._s,o=0;r.length>o;)!function(n){var r,o,u,c=i?n.ok:n.fail,a=n.resolve,f=n.reject,s=n.domain;try{c?(i||(2==t._h&&k(t),t._h=1),!0===c?r=e:(s&&s.enter(),r=c(e),s&&(s.exit(),u=!0)),r===n.promise?f(S("Promise-chain cycle")):(o=j(r))?o.call(r,a,f):a(r)):f(e)}catch(t){s&&!u&&s.exit(),f(t)}}(r[o++]);t._c=[],t._n=!1,n&&!t._h&&R(t)})}},R=function(t){g.call(a,function(){var n,r,e,i=t._v,o=L(t);if(o&&(n=_(function(){A?E.emit("unhandledRejection",i,t):(r=a.onunhandledrejection)?r({promise:t,reason:i}):(e=a.console)&&e.error&&e.error("Unhandled promise rejection",i)}),t._h=A||L(t)?2:1),t._a=void 0,o&&n.e)throw n.v})},L=function(t){return 1!==t._h&&0===(t._a||t._c).length},k=function(t){g.call(a,function(){var n;A?E.emit("rejectionHandled",t):(n=a.onrejectionhandled)&&n({promise:t,reason:t._v})})},C=function(t){var n=this;n._d||(n._d=!0,n=n._w||n,n._v=t,n._s=2,n._a||(n._a=n._c.slice()),T(n,!0))},W=function(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw S("Promise can't be resolved itself");(n=j(t))?m(function(){var e={_w:r,_d:!1};try{n.call(t,f(W,e,1),f(C,e,1))}catch(t){C.call(e,t)}}):(r._v=t,r._s=1,T(r,!1))}catch(t){C.call({_w:r,_d:!1},t)}}};I||(P=function(t){p(this,P,"Promise","_h"),v(t),e.call(this);try{t(f(W,this,1),f(C,this,1))}catch(t){C.call(this,t)}},e=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},e.prototype=r(45)(P.prototype,{then:function(t,n){var r=N(y(this,P));return r.ok="function"!=typeof t||t,r.fail="function"==typeof n&&n,r.domain=A?E.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&T(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new e;this.promise=t,this.resolve=f(W,t,1),this.reject=f(C,t,1)},w.f=N=function(t){return t===P||t===u?new o(t):i(t)}),l(l.G+l.W+l.F*!I,{Promise:P}),r(40)(P,"Promise"),r(43)("Promise"),u=r(7).Promise,l(l.S+l.F*!I,"Promise",{reject:function(t){var n=N(this);return(0,n.reject)(t),n.promise}}),l(l.S+l.F*(c||!I),"Promise",{resolve:function(t){return b(c&&this===u?P:this,t)}}),l(l.S+l.F*!(I&&r(56)(function(t){P.all(t).catch(F)})),"Promise",{all:function(t){var n=this,r=N(n),e=r.resolve,i=r.reject,o=_(function(){var r=[],o=0,u=1;d(t,!1,function(t){var c=o++,a=!1;r.push(void 0),u++,n.resolve(t).then(function(t){a||(a=!0,r[c]=t,--u||e(r))},i)}),--u||e(r)});return o.e&&i(o.v),r.promise},race:function(t){var n=this,r=N(n),e=r.reject,i=_(function(){d(t,!1,function(t){n.resolve(t).then(r.resolve,e)})});return i.e&&e(i.v),r.promise}})},function(t,n,r){"use strict";function e(t){var n,r;this.promise=new t(function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e}),this.resolve=i(n),this.reject=i(r)}var i=r(18);t.exports.f=function(t){return new e(t)}},function(t,n,r){var e=r(3),i=r(4),o=r(119);t.exports=function(t,n){if(e(t),i(n)&&n.constructor===t)return n;var r=o.f(t);return(0,r.resolve)(n),r.promise}},function(t,n,r){"use strict";var e=r(9).f,i=r(34),o=r(45),u=r(17),c=r(44),a=r(60),f=r(77),s=r(115),l=r(43),h=r(8),v=r(27).fastKey,p=r(38),d=h?"_s":"size",y=function(t,n){var r,e=v(n);if("F"!==e)return t._i[e];for(r=t._f;r;r=r.n)if(r.k==n)return r};t.exports={getConstructor:function(t,n,r,f){var s=t(function(t,e){c(t,s,n,"_i"),t._t=n,t._i=i(null),t._f=void 0,t._l=void 0,t[d]=0,void 0!=e&&a(e,r,t[f],t)});return o(s.prototype,{clear:function(){for(var t=p(this,n),r=t._i,e=t._f;e;e=e.n)e.r=!0,e.p&&(e.p=e.p.n=void 0),delete r[e.i];t._f=t._l=void 0,t[d]=0},delete:function(t){var r=p(this,n),e=y(r,t);if(e){var i=e.n,o=e.p;delete r._i[e.i],e.r=!0,o&&(o.n=i),i&&(i.p=o),r._f==e&&(r._f=i),r._l==e&&(r._l=o),r[d]--}return!!e},forEach:function(t){p(this,n);for(var r,e=u(t,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(e(r.v,r.k,this);r&&r.r;)r=r.p},has:function(t){return!!y(p(this,n),t)}}),h&&e(s.prototype,"size",{get:function(){return p(this,n)[d]}}),s},def:function(t,n,r){var e,i,o=y(t,n);return o?o.v=r:(t._l=o={i:i=v(n,!0),k:n,v:r,p:e=t._l,n:void 0,r:!1},t._f||(t._f=o),e&&(e.n=o),t[d]++,"F"!==i&&(t._i[i]=o)),t},getEntry:y,setStrong:function(t,n,r){f(t,n,function(t,r){this._t=p(t,n),this._k=r,this._l=void 0},function(){for(var t=this,n=t._k,r=t._l;r&&r.r;)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?"keys"==n?s(0,r.k):"values"==n?s(0,r.v):s(0,[r.k,r.v]):(t._t=void 0,s(1))},r?"entries":"values",!r,!0),l(n)}}},function(t,n,r){"use strict";var e=r(45),i=r(27).getWeak,o=r(3),u=r(4),c=r(44),a=r(60),f=r(22),s=r(13),l=r(38),h=f(5),v=f(6),p=0,d=function(t){return t._l||(t._l=new y)},y=function(){this.a=[]},g=function(t,n){return h(t.a,function(t){return t[0]===n})};y.prototype={get:function(t){var n=g(this,t);if(n)return n[1]},has:function(t){return!!g(this,t)},set:function(t,n){var r=g(this,t);r?r[1]=n:this.a.push([t,n])},delete:function(t){var n=v(this.a,function(n){return n[0]===t});return~n&&this.a.splice(n,1),!!~n}},t.exports={getConstructor:function(t,n,r,o){var f=t(function(t,e){c(t,f,n,"_i"),t._t=n,t._i=p++,t._l=void 0,void 0!=e&&a(e,r,t[o],t)});return e(f.prototype,{delete:function(t){if(!u(t))return!1;var r=i(t);return!0===r?d(l(this,n)).delete(t):r&&s(r,this._i)&&delete r[this._i]},has:function(t){if(!u(t))return!1;var r=i(t);return!0===r?d(l(this,n)).has(t):r&&s(r,this._i)}}),f},def:function(t,n,r){var e=i(o(n),!0);return!0===e?d(t).set(n,r):e[t._i]=r,t},ufstore:d}},function(t,n,r){var e=r(19),i=r(6);t.exports=function(t){if(void 0===t)return 0;var n=e(t),r=i(n);if(n!==r)throw RangeError("Wrong length!");return r}},function(t,n,r){var e=r(35),i=r(54),o=r(3),u=r(1).Reflect;t.exports=u&&u.ownKeys||function(t){var n=e.f(o(t)),r=i.f;return r?n.concat(r(t)):n}},function(t,n,r){var e=r(6),i=r(73),o=r(24);t.exports=function(t,n,r,u){var c=String(o(t)),a=c.length,f=void 0===r?" ":String(r),s=e(n);if(s<=a||""==f)return c;var l=s-a,h=i.call(f,Math.ceil(l/f.length));return h.length>l&&(h=h.slice(0,l)),u?h+c:c+h}},function(t,n,r){var e=r(8),i=r(32),o=r(15),u=r(47).f;t.exports=function(t){return function(n){for(var r,c=o(n),a=i(c),f=a.length,s=0,l=[];f>s;)r=a[s++],e&&!u.call(c,r)||l.push(t?[r,c[r]]:c[r]);return l}}},function(t,n){var r=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=r)},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,r){"use strict";var e=r(39);n.__esModule=!0,n.default=void 0;var i=e(r(64)),o=e(r(94)),u=r(28),c=(e(r(50)),e(r(51)),function(t,n,r){return function(e){var c=(0,u.createFactory)(e),a=function(e){function u(){for(var t,n=arguments.length,i=new Array(n),o=0;oi;)K(t,r=e[i++],n[r]);return t},H=function(t,n){return void 0===n?E(t):J(E(t),n)},Z=function(t){var n=W.call(this,t=b(t,!0));return!(this===B&&i(V,t)&&!i(G,t))&&(!(n||!i(this,t)||!i(V,t)||i(this,k)&&this[k][t])||n)},Q=function(t,n){if(t=x(t),n=b(n,!0),t!==B||!i(V,n)||i(G,n)){var r=N(t,n);return!r||!i(V,n)||i(t,k)&&t[k][n]||(r.enumerable=!0),r}},tt=function(t){for(var n,r=j(x(t)),e=[],o=0;r.length>o;)i(V,n=r[o++])||n==k||n==a||e.push(n);return e},nt=function(t){for(var n,r=t===B,e=j(r?G:x(t)),o=[],u=0;e.length>u;)!i(V,n=e[u++])||r&&!i(B,n)||o.push(V[n]);return o};U||(T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(r){this===B&&n.call(G,r),i(this,k)&&i(this[k],t)&&(this[k][t]=!1),q(this,t,S(1,r))};return o&&Y&&q(B,t,{configurable:!0,set:n}),X(t)},c(T.prototype,"toString",function(){return this._k}),M.f=Q,A.f=K,r(35).f=O.f=tt,r(47).f=Z,P.f=nt,o&&!r(31)&&c(B,"propertyIsEnumerable",Z,!0),p.f=function(t){return X(v(t))}),u(u.G+u.W+u.F*!U,{Symbol:T});for(var rt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;rt.length>et;)v(rt[et++]);for(var it=F(v.store),ot=0;it.length>ot;)d(it[ot++]);u(u.S+u.F*!U,"Symbol",{for:function(t){return i(D,t+="")?D[t]:D[t]=T(t)},keyFor:function(t){if(!$(t))throw TypeError(t+" is not a symbol!");for(var n in D)if(D[n]===t)return n},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),u(u.S+u.F*!U,"Object",{create:H,defineProperty:K,defineProperties:J,getOwnPropertyDescriptor:Q,getOwnPropertyNames:tt,getOwnPropertySymbols:nt});var ut=f(function(){P.f(1)});u(u.S+u.F*ut,"Object",{getOwnPropertySymbols:function(t){return P.f(_(t))}}),R&&u(u.S+u.F*(!U||f(function(){var t=T();return"[null]"!=L([t])||"{}"!=L({a:t})||"{}"!=L(Object(t))})),"JSON",{stringify:function(t){for(var n,r,e=[t],i=1;arguments.length>i;)e.push(arguments[i++]);if(r=n=e[1],(w(n)||void 0!==t)&&!$(t))return g(n)||(n=function(t,n){if("function"==typeof r&&(n=r.call(this,t,n)),!$(n))return n}),e[1]=n,L.apply(R,e)}}),T.prototype[C]||r(14)(T.prototype,C,T.prototype.valueOf),l(T,"Symbol"),l(Math,"Math",!0),l(e.JSON,"JSON",!0)},function(t,n,r){t.exports=r(52)("native-function-to-string",Function.toString)},function(t,n,r){var e=r(32),i=r(54),o=r(47);t.exports=function(t){var n=e(t),r=i.f;if(r)for(var u,c=r(t),a=o.f,f=0;c.length>f;)a.call(t,u=c[f++])&&n.push(u);return n}},function(t,n,r){var e=r(0);e(e.S,"Object",{create:r(34)})},function(t,n,r){var e=r(0);e(e.S+e.F*!r(8),"Object",{defineProperty:r(9).f})},function(t,n,r){var e=r(0);e(e.S+e.F*!r(8),"Object",{defineProperties:r(99)})},function(t,n,r){var e=r(15),i=r(20).f;r(21)("getOwnPropertyDescriptor",function(){return function(t,n){return i(e(t),n)}})},function(t,n,r){var e=r(10),i=r(36);r(21)("getPrototypeOf",function(){return function(t){return i(e(t))}})},function(t,n,r){var e=r(10),i=r(32);r(21)("keys",function(){return function(t){return i(e(t))}})},function(t,n,r){r(21)("getOwnPropertyNames",function(){return r(100).f})},function(t,n,r){var e=r(4),i=r(27).onFreeze;r(21)("freeze",function(t){return function(n){return t&&e(n)?t(i(n)):n}})},function(t,n,r){var e=r(4),i=r(27).onFreeze;r(21)("seal",function(t){return function(n){return t&&e(n)?t(i(n)):n}})},function(t,n,r){var e=r(4),i=r(27).onFreeze;r(21)("preventExtensions",function(t){return function(n){return t&&e(n)?t(i(n)):n}})},function(t,n,r){var e=r(4);r(21)("isFrozen",function(t){return function(n){return!e(n)||!!t&&t(n)}})},function(t,n,r){var e=r(4);r(21)("isSealed",function(t){return function(n){return!e(n)||!!t&&t(n)}})},function(t,n,r){var e=r(4);r(21)("isExtensible",function(t){return function(n){return!!e(n)&&(!t||t(n))}})},function(t,n,r){var e=r(0);e(e.S+e.F,"Object",{assign:r(101)})},function(t,n,r){var e=r(0);e(e.S,"Object",{is:r(102)})},function(t,n,r){var e=r(0);e(e.S,"Object",{setPrototypeOf:r(70).set})},function(t,n,r){"use strict";var e=r(48),i={};i[r(5)("toStringTag")]="z",i+""!="[object z]"&&r(11)(Object.prototype,"toString",function(){return"[object "+e(this)+"]"},!0)},function(t,n,r){var e=r(0);e(e.P,"Function",{bind:r(103)})},function(t,n,r){var e=r(9).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||r(8)&&e(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,n,r){"use strict";var e=r(4),i=r(36),o=r(5)("hasInstance"),u=Function.prototype;o in u||r(9).f(u,o,{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,n,r){var e=r(0),i=r(105);e(e.G+e.F*(parseInt!=i),{parseInt:i})},function(t,n,r){var e=r(0),i=r(106);e(e.G+e.F*(parseFloat!=i),{parseFloat:i})},function(t,n,r){"use strict";var e=r(1),i=r(13),o=r(23),u=r(72),c=r(26),a=r(2),f=r(35).f,s=r(20).f,l=r(9).f,h=r(41).trim,v=e.Number,p=v,d=v.prototype,y="Number"==o(r(34)(d)),g="trim"in String.prototype,m=function(t){var n=c(t,!1);if("string"==typeof n&&n.length>2){n=g?n.trim():h(n,3);var r,e,i,o=n.charCodeAt(0);if(43===o||45===o){if(88===(r=n.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(n.charCodeAt(1)){case 66:case 98:e=2,i=49;break;case 79:case 111:e=8,i=55;break;default:return+n}for(var u,a=n.slice(2),f=0,s=a.length;fi)return NaN;return parseInt(a,e)}}return+n};if(!v(" 0o1")||!v("0b1")||v("+0x1")){v=function(t){var n=arguments.length<1?0:t,r=this;return r instanceof v&&(y?a(function(){d.valueOf.call(r)}):"Number"!=o(r))?u(new p(m(n)),r,v):m(n)};for(var w,_=r(8)?f(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;_.length>x;x++)i(p,w=_[x])&&!i(v,w)&&l(v,w,s(p,w));v.prototype=d,d.constructor=v,r(11)(e,"Number",v)}},function(t,n,r){"use strict";var e=r(0),i=r(19),o=r(107),u=r(73),c=1..toFixed,a=Math.floor,f=[0,0,0,0,0,0],s="Number.toFixed: incorrect invocation!",l=function(t,n){for(var r=-1,e=n;++r<6;)e+=t*f[r],f[r]=e%1e7,e=a(e/1e7)},h=function(t){for(var n=6,r=0;--n>=0;)r+=f[n],f[n]=a(r/t),r=r%t*1e7},v=function(){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==f[t]){var r=String(f[t]);n=""===n?r:n+u.call("0",7-r.length)+r}return n},p=function(t,n,r){return 0===n?r:n%2==1?p(t,n-1,r*t):p(t*t,n/2,r)},d=function(t){for(var n=0,r=t;r>=4096;)n+=12,r/=4096;for(;r>=2;)n+=1,r/=2;return n};e(e.P+e.F*(!!c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(2)(function(){c.call({})})),"Number",{toFixed:function(t){var n,r,e,c,a=o(this,s),f=i(t),y="",g="0";if(f<0||f>20)throw RangeError(s);if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return String(a);if(a<0&&(y="-",a=-a),a>1e-21)if(n=d(a*p(2,69,1))-69,r=n<0?a*p(2,-n,1):a/p(2,n,1),r*=4503599627370496,(n=52-n)>0){for(l(0,r),e=f;e>=7;)l(1e7,0),e-=7;for(l(p(10,e,1),0),e=n-1;e>=23;)h(1<<23),e-=23;h(1<0?(c=g.length,g=y+(c<=f?"0."+u.call("0",f-c)+g:g.slice(0,c-f)+"."+g.slice(c-f))):g=y+g,g}})},function(t,n,r){"use strict";var e=r(0),i=r(2),o=r(107),u=1..toPrecision;e(e.P+e.F*(i(function(){return"1"!==u.call(1,void 0)})||!i(function(){u.call({})})),"Number",{toPrecision:function(t){var n=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?u.call(n):u.call(n,t)}})},function(t,n,r){var e=r(0);e(e.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,n,r){var e=r(0),i=r(1).isFinite;e(e.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,n,r){var e=r(0);e(e.S,"Number",{isInteger:r(108)})},function(t,n,r){var e=r(0);e(e.S,"Number",{isNaN:function(t){return t!=t}})},function(t,n,r){var e=r(0),i=r(108),o=Math.abs;e(e.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,n,r){var e=r(0);e(e.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,n,r){var e=r(0);e(e.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,n,r){var e=r(0),i=r(106);e(e.S+e.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,n,r){var e=r(0),i=r(105);e(e.S+e.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,n,r){var e=r(0),i=r(109),o=Math.sqrt,u=Math.acosh;e(e.S+e.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))&&u(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,n,r){function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}var i=r(0),o=Math.asinh;i(i.S+i.F*!(o&&1/o(0)>0),"Math",{asinh:e})},function(t,n,r){var e=r(0),i=Math.atanh;e(e.S+e.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,n,r){var e=r(0),i=r(74);e(e.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,n,r){var e=r(0);e(e.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,n,r){var e=r(0),i=Math.exp;e(e.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,n,r){var e=r(0),i=r(75);e(e.S+e.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,n,r){var e=r(0);e(e.S,"Math",{fround:r(183)})},function(t,n,r){var e=r(74),i=Math.pow,o=i(2,-52),u=i(2,-23),c=i(2,127)*(2-u),a=i(2,-126),f=function(t){return t+1/o-1/o};t.exports=Math.fround||function(t){var n,r,i=Math.abs(t),s=e(t);return ic||r!=r?s*(1/0):s*r)}},function(t,n,r){var e=r(0),i=Math.abs;e(e.S,"Math",{hypot:function(t,n){for(var r,e,o=0,u=0,c=arguments.length,a=0;u0?(e=r/a,o+=e*e):o+=r;return a===1/0?1/0:a*Math.sqrt(o)}})},function(t,n,r){var e=r(0),i=Math.imul;e(e.S+e.F*r(2)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(t,n){var r=+t,e=+n,i=65535&r,o=65535&e;return 0|i*o+((65535&r>>>16)*o+i*(65535&e>>>16)<<16>>>0)}})},function(t,n,r){var e=r(0);e(e.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,n,r){var e=r(0);e(e.S,"Math",{log1p:r(109)})},function(t,n,r){var e=r(0);e(e.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,n,r){var e=r(0);e(e.S,"Math",{sign:r(74)})},function(t,n,r){var e=r(0),i=r(75),o=Math.exp;e(e.S+e.F*r(2)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,n,r){var e=r(0),i=r(75),o=Math.exp;e(e.S,"Math",{tanh:function(t){var n=i(t=+t),r=i(-t);return n==1/0?1:r==1/0?-1:(n-r)/(o(t)+o(-t))}})},function(t,n,r){var e=r(0);e(e.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,n,r){var e=r(0),i=r(33),o=String.fromCharCode,u=String.fromCodePoint;e(e.S+e.F*(!!u&&1!=u.length),"String",{fromCodePoint:function(t){for(var n,r=[],e=arguments.length,u=0;e>u;){if(n=+arguments[u++],i(n,1114111)!==n)throw RangeError(n+" is not a valid code point");r.push(n<65536?o(n):o(55296+((n-=65536)>>10),n%1024+56320))}return r.join("")}})},function(t,n,r){var e=r(0),i=r(15),o=r(6);e(e.S,"String",{raw:function(t){for(var n=i(t.raw),r=o(n.length),e=arguments.length,u=[],c=0;r>c;)u.push(String(n[c++])),c=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})})},function(t,n,r){"use strict";var e=r(0),i=r(76)(!1);e(e.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,n,r){"use strict";var e=r(0),i=r(6),o=r(78),u="".endsWith;e(e.P+e.F*r(80)("endsWith"),"String",{endsWith:function(t){var n=o(this,t,"endsWith"),r=arguments.length>1?arguments[1]:void 0,e=i(n.length),c=void 0===r?e:Math.min(i(r),e),a=String(t);return u?u.call(n,a,c):n.slice(c-a.length,c)===a}})},function(t,n,r){"use strict";var e=r(0),i=r(78);e(e.P+e.F*r(80)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,n,r){var e=r(0);e(e.P,"String",{repeat:r(73)})},function(t,n,r){"use strict";var e=r(0),i=r(6),o=r(78),u="".startsWith;e(e.P+e.F*r(80)("startsWith"),"String",{startsWith:function(t){var n=o(this,t,"startsWith"),r=i(Math.min(arguments.length>1?arguments[1]:void 0,n.length)),e=String(t);return u?u.call(n,e,r):n.slice(r,r+e.length)===e}})},function(t,n,r){"use strict";r(12)("anchor",function(t){return function(n){return t(this,"a","name",n)}})},function(t,n,r){"use strict";r(12)("big",function(t){return function(){return t(this,"big","","")}})},function(t,n,r){"use strict";r(12)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,n,r){"use strict";r(12)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,n,r){"use strict";r(12)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,n,r){"use strict";r(12)("fontcolor",function(t){return function(n){return t(this,"font","color",n)}})},function(t,n,r){"use strict";r(12)("fontsize",function(t){return function(n){return t(this,"font","size",n)}})},function(t,n,r){"use strict";r(12)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,n,r){"use strict";r(12)("link",function(t){return function(n){return t(this,"a","href",n)}})},function(t,n,r){"use strict";r(12)("small",function(t){return function(){return t(this,"small","","")}})},function(t,n,r){"use strict";r(12)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,n,r){"use strict";r(12)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,n,r){"use strict";r(12)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,n,r){var e=r(0);e(e.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,n,r){"use strict";var e=r(0),i=r(10),o=r(26);e(e.P+e.F*r(2)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var n=i(this),r=o(n);return"number"!=typeof r||isFinite(r)?n.toISOString():null}})},function(t,n,r){var e=r(0),i=r(218);e(e.P+e.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,n,r){"use strict";var e=r(2),i=Date.prototype.getTime,o=Date.prototype.toISOString,u=function(t){return t>9?t:"0"+t};t.exports=e(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!e(function(){o.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,n=t.getUTCFullYear(),r=t.getUTCMilliseconds(),e=n<0?"-":n>9999?"+":"";return e+("00000"+Math.abs(n)).slice(e?-6:-4)+"-"+u(t.getUTCMonth()+1)+"-"+u(t.getUTCDate())+"T"+u(t.getUTCHours())+":"+u(t.getUTCMinutes())+":"+u(t.getUTCSeconds())+"."+(r>99?r:"0"+u(r))+"Z"}:o},function(t,n,r){var e=Date.prototype,i=e.toString,o=e.getTime;new Date(NaN)+""!="Invalid Date"&&r(11)(e,"toString",function(){var t=o.call(this);return t===t?i.call(this):"Invalid Date"})},function(t,n,r){var e=r(5)("toPrimitive"),i=Date.prototype;e in i||r(14)(i,e,r(221))},function(t,n,r){"use strict";var e=r(3),i=r(26);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(e(this),"number"!=t)}},function(t,n,r){var e=r(0);e(e.S,"Array",{isArray:r(55)})},function(t,n,r){"use strict";var e=r(17),i=r(0),o=r(10),u=r(111),c=r(81),a=r(6),f=r(82),s=r(83);i(i.S+i.F*!r(56)(function(t){Array.from(t)}),"Array",{from:function(t){var n,r,i,l,h=o(t),v="function"==typeof this?this:Array,p=arguments.length,d=p>1?arguments[1]:void 0,y=void 0!==d,g=0,m=s(h);if(y&&(d=e(d,p>2?arguments[2]:void 0,2)),void 0==m||v==Array&&c(m))for(n=a(h.length),r=new v(n);n>g;g++)f(r,g,y?d(h[g],g):h[g]);else for(l=m.call(h),r=new v;!(i=l.next()).done;g++)f(r,g,y?u(l,d,[i.value,g],!0):i.value);return r.length=g,r}})},function(t,n,r){"use strict";var e=r(0),i=r(82);e(e.S+e.F*r(2)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,n=arguments.length,r=new("function"==typeof this?this:Array)(n);n>t;)i(r,t,arguments[t++]);return r.length=n,r}})},function(t,n,r){"use strict";var e=r(0),i=r(15),o=[].join;e(e.P+e.F*(r(46)!=Object||!r(16)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,n,r){"use strict";var e=r(0),i=r(69),o=r(23),u=r(33),c=r(6),a=[].slice;e(e.P+e.F*r(2)(function(){i&&a.call(i)}),"Array",{slice:function(t,n){var r=c(this.length),e=o(this);if(n=void 0===n?r:n,"Array"==e)return a.call(this,t,n);for(var i=u(t,r),f=u(n,r),s=c(f-i),l=new Array(s),h=0;h1&&(e=Math.min(e,o(arguments[1]))),e<0&&(e=r+e);e>=0;e--)if(e in n&&n[e]===t)return e||0;return-1}})},function(t,n,r){var e=r(0);e(e.P,"Array",{copyWithin:r(114)}),r(37)("copyWithin")},function(t,n,r){var e=r(0);e(e.P,"Array",{fill:r(84)}),r(37)("fill")},function(t,n,r){"use strict";var e=r(0),i=r(22)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),e(e.P+e.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(37)("find")},function(t,n,r){"use strict";var e=r(0),i=r(22)(6),o="findIndex",u=!0;o in[]&&Array(1)[o](function(){u=!1}),e(e.P+e.F*u,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(37)(o)},function(t,n,r){r(43)("Array")},function(t,n,r){var e=r(1),i=r(72),o=r(9).f,u=r(35).f,c=r(79),a=r(57),f=e.RegExp,s=f,l=f.prototype,h=/a/g,v=/a/g,p=new f(h)!==h;if(r(8)&&(!p||r(2)(function(){return v[r(5)("match")]=!1,f(h)!=h||f(v)==v||"/a/i"!=f(h,"i")}))){f=function(t,n){var r=this instanceof f,e=c(t),o=void 0===n;return!r&&e&&t.constructor===f&&o?t:i(p?new s(e&&!o?t.source:t,n):s((e=t instanceof f)?t.source:t,e&&o?a.call(t):n),r?this:l,f)};for(var d=u(s),y=0;d.length>y;)!function(t){t in f||o(f,t,{configurable:!0,get:function(){return s[t]},set:function(n){s[t]=n}})}(d[y++]);l.constructor=f,f.prototype=l,r(11)(e,"RegExp",f)}r(43)("RegExp")},function(t,n,r){"use strict";r(117);var e=r(3),i=r(57),o=r(8),u=/./.toString,c=function(t){r(11)(RegExp.prototype,"toString",t,!0)};r(2)(function(){return"/a/b"!=u.call({source:"a",flags:"b"})})?c(function(){var t=e(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):"toString"!=u.name&&c(function(){return u.call(this)})},function(t,n,r){"use strict";var e=r(3),i=r(6),o=r(87),u=r(58);r(59)("match",1,function(t,n,r,c){return[function(r){var e=t(this),i=void 0==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},function(t){var n=c(r,t,this);if(n.done)return n.value;var a=e(t),f=String(this);if(!a.global)return u(a,f);var s=a.unicode;a.lastIndex=0;for(var l,h=[],v=0;null!==(l=u(a,f));){var p=String(l[0]);h[v]=p,""===p&&(a.lastIndex=o(f,i(a.lastIndex),s)),v++}return 0===v?null:h}]})},function(t,n,r){"use strict";var e=r(3),i=r(10),o=r(6),u=r(19),c=r(87),a=r(58),f=Math.max,s=Math.min,l=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,v=/\$([$&`']|\d\d?)/g,p=function(t){return void 0===t?t:String(t)};r(59)("replace",2,function(t,n,r,d){function y(t,n,e,o,u,c){var a=e+t.length,f=o.length,s=v;return void 0!==u&&(u=i(u),s=h),r.call(c,s,function(r,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,e);case"'":return n.slice(a);case"<":c=u[i.slice(1,-1)];break;default:var s=+i;if(0===s)return r;if(s>f){var h=l(s/10);return 0===h?r:h<=f?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):r}c=o[s-1]}return void 0===c?"":c})}return[function(e,i){var o=t(this),u=void 0==e?void 0:e[n];return void 0!==u?u.call(e,o,i):r.call(String(o),e,i)},function(t,n){var i=d(r,t,this,n);if(i.done)return i.value;var l=e(t),h=String(this),v="function"==typeof n;v||(n=String(n));var g=l.global;if(g){var m=l.unicode;l.lastIndex=0}for(var w=[];;){var _=a(l,h);if(null===_)break;if(w.push(_),!g)break;""===String(_[0])&&(l.lastIndex=c(h,o(l.lastIndex),m))}for(var x="",b=0,S=0;S=b&&(x+=h.slice(b,O)+N,b=O+E.length)}return x+h.slice(b)}]})},function(t,n,r){"use strict";var e=r(3),i=r(102),o=r(58);r(59)("search",1,function(t,n,r,u){return[function(r){var e=t(this),i=void 0==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},function(t){var n=u(r,t,this);if(n.done)return n.value;var c=e(t),a=String(this),f=c.lastIndex;i(f,0)||(c.lastIndex=0);var s=o(c,a);return i(c.lastIndex,f)||(c.lastIndex=f),null===s?-1:s.index}]})},function(t,n,r){"use strict";var e=r(79),i=r(3),o=r(49),u=r(87),c=r(6),a=r(58),f=r(86),s=r(2),l=Math.min,h=[].push,v="length",p=!s(function(){RegExp(4294967295,"y")});r(59)("split",2,function(t,n,r,s){var d;return d="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[v]||2!="ab".split(/(?:ab)*/)[v]||4!=".".split(/(.?)(.?)/)[v]||".".split(/()()/)[v]>1||"".split(/.?/)[v]?function(t,n){var i=String(this);if(void 0===t&&0===n)return[];if(!e(t))return r.call(i,t,n);for(var o,u,c,a=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,p=void 0===n?4294967295:n>>>0,d=new RegExp(t.source,s+"g");(o=f.call(d,i))&&!((u=d.lastIndex)>l&&(a.push(i.slice(l,o.index)),o[v]>1&&o.index=p));)d.lastIndex===o.index&&d.lastIndex++;return l===i[v]?!c&&d.test("")||a.push(""):a.push(i.slice(l)),a[v]>p?a.slice(0,p):a}:"0".split(void 0,0)[v]?function(t,n){return void 0===t&&0===n?[]:r.call(this,t,n)}:r,[function(r,e){var i=t(this),o=void 0==r?void 0:r[n];return void 0!==o?o.call(r,i,e):d.call(String(i),r,e)},function(t,n){var e=s(d,t,this,n,d!==r);if(e.done)return e.value;var f=i(t),h=String(this),v=o(f,RegExp),y=f.unicode,g=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(p?"y":"g"),m=new v(p?f:"^(?:"+f.source+")",g),w=void 0===n?4294967295:n>>>0;if(0===w)return[];if(0===h.length)return null===a(m,h)?[h]:[];for(var _=0,x=0,b=[];x0?arguments[0]:void 0)}},{get:function(t){var n=e.getEntry(i(this,"Map"),t);return n&&n.v},set:function(t,n){return e.def(i(this,"Map"),0===t?0:t,n)}},e,!0)},function(t,n,r){"use strict";var e=r(121),i=r(38);t.exports=r(62)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return e.def(i(this,"Set"),t=0===t?0:t,t)}},e)},function(t,n,r){"use strict";var e,i=r(1),o=r(22)(0),u=r(11),c=r(27),a=r(101),f=r(122),s=r(4),l=r(38),h=r(38),v=!i.ActiveXObject&&"ActiveXObject"in i,p=c.getWeak,d=Object.isExtensible,y=f.ufstore,g=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},m={get:function(t){if(s(t)){var n=p(t);return!0===n?y(l(this,"WeakMap")).get(t):n?n[this._i]:void 0}},set:function(t,n){return f.def(l(this,"WeakMap"),t,n)}},w=t.exports=r(62)("WeakMap",g,m,f,!0,!0);h&&v&&(e=f.getConstructor(g,"WeakMap"),a(e.prototype,m),c.NEED=!0,o(["delete","has","get","set"],function(t){var n=w.prototype,r=n[t];u(n,t,function(n,i){if(s(n)&&!d(n)){this._f||(this._f=new e);var o=this._f[t](n,i);return"set"==t?this:o}return r.call(this,n,i)})}))},function(t,n,r){"use strict";var e=r(122),i=r(38);r(62)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return e.def(i(this,"WeakSet"),t,!0)}},e,!1,!0)},function(t,n,r){"use strict";var e=r(0),i=r(63),o=r(89),u=r(3),c=r(33),a=r(6),f=r(4),s=r(1).ArrayBuffer,l=r(49),h=o.ArrayBuffer,v=o.DataView,p=i.ABV&&s.isView,d=h.prototype.slice,y=i.VIEW;e(e.G+e.W+e.F*(s!==h),{ArrayBuffer:h}),e(e.S+e.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return p&&p(t)||f(t)&&y in t}}),e(e.P+e.U+e.F*r(2)(function(){return!new h(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,n){if(void 0!==d&&void 0===n)return d.call(u(this),t);for(var r=u(this).byteLength,e=c(t,r),i=c(void 0===n?r:n,r),o=new(l(this,h))(a(i-e)),f=new v(this),s=new v(o),p=0;e=r.length)return{value:void 0,done:!0}}while(!((t=r[n._i++])in n._t));return{value:t,done:!1}}),e(e.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,n,r){function e(t,n){var r,c,s=arguments.length<3?t:arguments[2];return f(t)===s?t[n]:(r=i.f(t,n))?u(r,"value")?r.value:void 0!==r.get?r.get.call(s):void 0:a(c=o(t))?e(c,n,s):void 0}var i=r(20),o=r(36),u=r(13),c=r(0),a=r(4),f=r(3);c(c.S,"Reflect",{get:e})},function(t,n,r){var e=r(20),i=r(0),o=r(3);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,n){return e.f(o(t),n)}})},function(t,n,r){var e=r(0),i=r(36),o=r(3);e(e.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,n,r){var e=r(0);e(e.S,"Reflect",{has:function(t,n){return n in t}})},function(t,n,r){var e=r(0),i=r(3),o=Object.isExtensible;e(e.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,n,r){var e=r(0);e(e.S,"Reflect",{ownKeys:r(124)})},function(t,n,r){var e=r(0),i=r(3),o=Object.preventExtensions;e(e.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,n,r){function e(t,n,r){var a,h,v=arguments.length<4?t:arguments[3],p=o.f(s(t),n);if(!p){if(l(h=u(t)))return e(h,n,r,v);p=f(0)}if(c(p,"value")){if(!1===p.writable||!l(v))return!1;if(a=o.f(v,n)){if(a.get||a.set||!1===a.writable)return!1;a.value=r,i.f(v,n,a)}else i.f(v,n,f(0,r));return!0}return void 0!==p.set&&(p.set.call(v,r),!0)}var i=r(9),o=r(20),u=r(36),c=r(13),a=r(0),f=r(29),s=r(3),l=r(4);a(a.S,"Reflect",{set:e})},function(t,n,r){var e=r(0),i=r(70);i&&e(e.S,"Reflect",{setPrototypeOf:function(t,n){i.check(t,n);try{return i.set(t,n),!0}catch(t){return!1}}})},function(t,n,r){r(281),t.exports=r(7).Array.includes},function(t,n,r){"use strict";var e=r(0),i=r(53)(!0);e(e.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(37)("includes")},function(t,n,r){r(283),t.exports=r(7).Array.flatMap},function(t,n,r){"use strict";var e=r(0),i=r(284),o=r(10),u=r(6),c=r(18),a=r(112);e(e.P,"Array",{flatMap:function(t){var n,r,e=o(this);return c(t),n=u(e.length),r=a(e,0),i(r,e,e,n,0,1,t,arguments[1]),r}}),r(37)("flatMap")},function(t,n,r){"use strict";function e(t,n,r,f,s,l,h,v){for(var p,d,y=s,g=0,m=!!h&&c(h,v,3);g0)y=e(t,n,p,u(p.length),y,l-1)-1;else{if(y>=9007199254740991)throw TypeError();t[y]=p}y++}g++}return y}var i=r(55),o=r(4),u=r(6),c=r(17),a=r(5)("isConcatSpreadable");t.exports=e},function(t,n,r){r(286),t.exports=r(7).String.padStart},function(t,n,r){"use strict";var e=r(0),i=r(125),o=r(61),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);e(e.P+e.F*u,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,n,r){r(288),t.exports=r(7).String.padEnd},function(t,n,r){"use strict";var e=r(0),i=r(125),o=r(61),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);e(e.P+e.F*u,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,n,r){r(290),t.exports=r(7).String.trimLeft},function(t,n,r){"use strict";r(41)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,n,r){r(292),t.exports=r(7).String.trimRight},function(t,n,r){"use strict";r(41)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,n,r){r(294),t.exports=r(66).f("asyncIterator")},function(t,n,r){r(97)("asyncIterator")},function(t,n,r){r(296),t.exports=r(7).Object.getOwnPropertyDescriptors},function(t,n,r){var e=r(0),i=r(124),o=r(15),u=r(20),c=r(82);e(e.S,"Object",{getOwnPropertyDescriptors:function(t){for(var n,r,e=o(t),a=u.f,f=i(e),s={},l=0;f.length>l;)void 0!==(r=a(e,n=f[l++]))&&c(s,n,r);return s}})},function(t,n,r){r(298),t.exports=r(7).Object.values},function(t,n,r){var e=r(0),i=r(126)(!1);e(e.S,"Object",{values:function(t){return i(t)}})},function(t,n,r){r(300),t.exports=r(7).Object.entries},function(t,n,r){var e=r(0),i=r(126)(!0);e(e.S,"Object",{entries:function(t){return i(t)}})},function(t,n,r){"use strict";r(118),r(302),t.exports=r(7).Promise.finally},function(t,n,r){"use strict";var e=r(0),i=r(7),o=r(1),u=r(49),c=r(120);e(e.P+e.R,"Promise",{finally:function(t){var n=u(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return c(n,t()).then(function(){return r})}:t,r?function(r){return c(n,t()).then(function(){throw r})}:t)}})},function(t,n,r){r(304),r(305),r(306),t.exports=r(7)},function(t,n,r){var e=r(1),i=r(0),o=r(61),u=[].slice,c=/MSIE .\./.test(o),a=function(t){return function(n,r){var e=arguments.length>2,i=!!e&&u.call(arguments,2);return t(e?function(){("function"==typeof n?n:Function(n)).apply(this,i)}:n,r)}};i(i.G+i.B+i.F*c,{setTimeout:a(e.setTimeout),setInterval:a(e.setInterval)})},function(t,n,r){var e=r(0),i=r(88);e(e.G+e.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,n,r){for(var e=r(85),i=r(32),o=r(11),u=r(1),c=r(14),a=r(42),f=r(5),s=f("iterator"),l=f("toStringTag"),h=a.Array,v={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(v),d=0;d=0;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=g.call(i,"catchLoc"),c=g.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--r){var e=this.tryEntries[r];if(e.tryLoc<=this.prev&&g.call(e,"finallyLoc")&&this.prev=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),l(r),M}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if("throw"===e.type){var i=e.arg;l(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:v(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=d),M}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}},function(t,n,r){r(309),t.exports=r(127).global},function(t,n,r){var e=r(310);e(e.G,{global:r(90)})},function(t,n,r){var e=r(90),i=r(127),o=r(311),u=r(313),c=r(320),a=function(t,n,r){var f,s,l,h=t&a.F,v=t&a.G,p=t&a.S,d=t&a.P,y=t&a.B,g=t&a.W,m=v?i:i[n]||(i[n]={}),w=m.prototype,_=v?e:p?e[n]:(e[n]||{}).prototype;v&&(r=n);for(f in r)(s=!h&&_&&void 0!==_[f])&&c(m,f)||(l=s?_[f]:r[f],m[f]=v&&"function"!=typeof _[f]?r[f]:y&&s?o(l,e):g&&_[f]==l?function(t){var n=function(n,r,e){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,e)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(l):d&&"function"==typeof l?o(Function.call,l):l,d&&((m.virtual||(m.virtual={}))[f]=l,t&a.R&&w&&!w[f]&&u(w,f,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,n,r){var e=r(312);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,i){return t.call(n,r,e,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,r){var e=r(314),i=r(319);t.exports=r(92)?function(t,n,r){return e.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(315),i=r(316),o=r(318),u=Object.defineProperty;n.f=r(92)?Object.defineProperty:function(t,n,r){if(e(t),n=o(n,!0),e(r),i)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){var e=r(91);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},function(t,n,r){t.exports=!r(92)&&!r(128)(function(){return 7!=Object.defineProperty(r(317)("div"),"a",{get:function(){return 7}}).a})},function(t,n,r){var e=r(91),i=r(90).document,o=e(i)&&e(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,r){var e=r(91);t.exports=function(t,n){if(!e(t))return t;var r,i;if(n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!e(i=r.call(t)))return i;if(!n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(93),o=e(i),u=r(322),c=e(u),a=r(325),f=e(a),s=r(327),l=e(s),h=r(329),v=e(h);n.default=(0,o.default)(c.default,f.default,l.default,v.default)},function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(93),o=e(i),u=r(129),c=e(u);n.default=(0,o.default)((0,c.default)("currentSlide","setCurrentSlide",0),(0,c.default)("containerWidth","setContainerWidth",0),(0,c.default)("itemWidth","setItemWidth",0),(0,c.default)("slideItems","setSlideItems",[]),(0,c.default)("stawId","setStawId",function(){return"staw-"+Date.now()}))},function(t,n,r){"use strict";n.__esModule=!0,n.default=void 0;var e=function(t,n){return function(r){return r[t]=n,r}},i=e;n.default=i},function(t,n,r){"use strict";n.__esModule=!0,n.default=void 0;var e=function(t){if("string"==typeof t)return t;if(t)return t.displayName||t.name||"Component"},i=e;n.default=i},function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(130),o=e(i),u=r(95),c=e(u);n.default=(0,o.default)({next:function(t){var n=t.children,r=t.currentSlide,e=t.setCurrentSlide;t.transitionDuration;return function(){r1&&(l+=o/2*(n-1),n===u.length-1&&c&&(l-=o-o)),c&&h.length&&(l=-(-l+document.getElementById(f).offsetWidth/2-v/2-o)),-l};n.default=i},function(t,n,r){"use strict";(function(t){function e(t){return t&&t.__esModule?t:{default:t}}function i(t,n){var r={};for(var e in t)n.indexOf(e)>=0||Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e]);return r}Object.defineProperty(n,"__esModule",{value:!0});var o=r(129),u=e(o),c=r(130),a=e(c),f=r(93),s=e(f),l=(0,s.default)((0,u.default)("startReference","changeStartReference",null),(0,a.default)({onTouchStart:function(t){var n=t.changeStartReference;return function(t){n(t.touches[0].pageX)}},onTouchEnd:function(t){var n=t.changeStartReference,r=t.onSwipeLeftToRight,e=t.onSwipeRightToLeft,i=t.startReference;return function(t){var o=t.changedTouches[0].pageX,u=o-i;u>0&&u-50>0?"function"==typeof r&&r(t):u+50<0&&"function"==typeof e&&e(t),n(0)}}})),h=function(n){var r=n.children,e=n.onTouchEnd,o=n.onTouchStart,u=i(n,["children","onTouchEnd","onTouchStart"]);return t.createElement("div",{onTouchEnd:e,onTouchStart:o,className:u.className},r)};n.default=l(h)}).call(n,r(28))},function(t,n,r){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(n){var r=n.hasArrows,e=n.hasDots,i=n.customNavigation,o=n.currentSlide,u=n.children,c=n.onDotClick,a=n.onNextArrowClick,f=n.onPrevArrowClick,s=n.setCurrentSlide,l=n.hasCustomNavigation,h=(n.validCustomNavigation,n.renderCustomNavigation);return t.createElement("div",{className:"staw__controls"},r&&t.createElement("div",{className:"staw__arrows"},t.createElement("div",{onClick:function(){f(o),s(o-1)},className:"staw__arrow staw__arrow--prev"+(o?"":" staw__arrow--disabled")}),t.createElement("div",{onClick:function(){a(o),s(o+1)},className:"staw__arrow staw__arrow--next"+(o () => { + if (currentSlide < children.length - 1) { + setCurrentSlide(currentSlide + 1) + } + }, + prev: ({ currentSlide, setCurrentSlide }) => () => { + // !== 0 + if (currentSlide) { + setCurrentSlide(currentSlide - 1) + } + }, + onMountAndResize: ({ stawId, children, setContainerWidth, setItemWidth, visibleGutter = 0, slidesPerView = 1 }) => () => { + const newOffsetWidth = isClient() ? document.getElementById(stawId).offsetWidth : 0 + const newContainerWidth = newOffsetWidth * children.length + setContainerWidth(newContainerWidth - visibleGutter) + setItemWidth(slidesPerView === 'auto' ? slidesPerView : (newOffsetWidth / slidesPerView) - (visibleGutter * 3)) + }, + onItemClick: ({ navigateOnItemClick, setCurrentSlide, currentSlide }) => e => { + if (!!navigateOnItemClick) { + const dataKey = e.currentTarget.dataset.key + currentSlide !== dataKey && setCurrentSlide(~~dataKey) + } + } +}) diff --git a/src/container/hooks.js b/src/container/hooks.js new file mode 100644 index 0000000..ce3d877 --- /dev/null +++ b/src/container/hooks.js @@ -0,0 +1,25 @@ +import lifecycle from 'recompose/lifecycle' +import isClient from '../helpers/isClient' + +const NOOP = () => {} + +export default lifecycle({ + componentDidMount() { + const { onMountAndResize, startAt = 0, setCurrentSlide } = this.props + startAt && setCurrentSlide(startAt) + if (isClient()) { + onMountAndResize() + window.addEventListener('resize', onMountAndResize) + } + }, + componentWillUnmount() { + const { onMountAndResize } = this.props + if (isClient()) + window.removeEventListener('resize', onMountAndResize) + }, + componentDidUpdate(prevProps) { + const { slidesPerView, onMountAndResize, currentSlide, onChange = NOOP } = this.props + if (prevProps.slidesPerView !== slidesPerView) onMountAndResize() + if (prevProps.currentSlide !== currentSlide) onChange(currentSlide) + } +}) diff --git a/src/container/index.js b/src/container/index.js new file mode 100644 index 0000000..21eb91e --- /dev/null +++ b/src/container/index.js @@ -0,0 +1,12 @@ +import compose from 'recompose/compose' +import state from './state' +import handlers from './handlers' +import hooks from './hooks' +import propsMapper from './propsMapper' + +export default compose( + state, + handlers, + hooks, + propsMapper +) diff --git a/src/container/propsMapper.js b/src/container/propsMapper.js new file mode 100644 index 0000000..187dfee --- /dev/null +++ b/src/container/propsMapper.js @@ -0,0 +1,35 @@ +import withProps from 'recompose/withProps' +import getPosition from '../helpers/getPosition' +import isClient from '../helpers/isClient' + +export default withProps(({ + currentSlide, + itemWidth, + visibleGutter, + children, + customNavigation, + alignAll, + slidesPerView, + stawId, + containerWidth +}) => { + const hasCustomNavigation = !!(customNavigation && Array.isArray(customNavigation) && customNavigation.length) + const validCustomNavigation = hasCustomNavigation && customNavigation.length === children.length + const renderCustomNavigation = hasCustomNavigation && validCustomNavigation + + return { + position: isClient() && getPosition({ + currentSlide, + itemWidth, + visibleGutter, + children, + alignAll, + slidesPerView, + stawId, + containerWidth + }), + hasCustomNavigation, + validCustomNavigation, + renderCustomNavigation + } +}) diff --git a/src/container/state.js b/src/container/state.js new file mode 100644 index 0000000..7e62d85 --- /dev/null +++ b/src/container/state.js @@ -0,0 +1,10 @@ +import compose from 'recompose/compose' +import withState from 'recompose/withState' + +export default compose( + withState('currentSlide', 'setCurrentSlide', 0), + withState('containerWidth', 'setContainerWidth', 0), + withState('itemWidth', 'setItemWidth', 0), + withState('slideItems', 'setSlideItems', []), + withState('stawId', 'setStawId', () => `staw-${Date.now()}`) +) diff --git a/src/containers/Staw.js b/src/containers/Staw.js deleted file mode 100644 index 6950590..0000000 --- a/src/containers/Staw.js +++ /dev/null @@ -1,125 +0,0 @@ -import { compose, lifecycle, withHandlers, withState, withProps } from 'recompose' - -const isClient = () => !!(typeof window !== 'undefined' && window.document && window.document.createElement); - -const NOOP = () => {} - -const getPosition = (currentSlide, itemWidth, visibleGutter = 0, children, alignAll, slidesPerView, stawId, containerWidth) => { - - let slidesWidth = 0, - position - - const slides = [...document.querySelectorAll('#' + stawId + ' .staw__slide')] - const currentSlideWidth = slides.length && slides[currentSlide].offsetWidth - - if (slidesPerView === 'auto') { - for (let i = 0; i < currentSlide; i++) { - slidesWidth += slides[i].offsetWidth - } - } else { - slidesWidth = itemWidth * currentSlide - } - - position = currentSlide !== 0 ? slidesWidth - (visibleGutter / 2) : alignAll ? -visibleGutter : 0 - - if (currentSlide > 1) { - position += (visibleGutter / 2) * (currentSlide - 1) - if (currentSlide === children.length - 1) { - if (alignAll) { - position -= visibleGutter - visibleGutter - } - } - } - - if (alignAll && slides.length) { - position = -(-position + (document.getElementById(stawId).offsetWidth / 2) - (currentSlideWidth / 2) - visibleGutter) - } - - return -position -} - -const stawContainer = compose( - withState('currentSlide', 'setCurrentSlide', 0), - withState('containerWidth', 'setContainerWidth', 0), - withState('itemWidth', 'setItemWidth', 0), - withState('slideItems', 'setSlideItems', []), - withState('stawId', 'setStawId', () => `staw-${Date.now()}`), - withHandlers({ - next: ({ children, currentSlide, setCurrentSlide, transitionDuration }) => () => { - if (currentSlide < children.length - 1) { - setCurrentSlide(currentSlide + 1) - } - }, - prev: ({ currentSlide, setCurrentSlide }) => () => { - // !== 0 - if (currentSlide) { - setCurrentSlide(currentSlide - 1) - } - }, - onMountAndResize: ({ stawId, children, setContainerWidth, setItemWidth, visibleGutter = 0, slidesPerView = 1 }) => () => { - const newOffsetWidth = isClient() ? document.getElementById(stawId).offsetWidth : 0 - const newContainerWidth = newOffsetWidth * children.length - setContainerWidth(newContainerWidth - visibleGutter) - setItemWidth(slidesPerView === 'auto' ? slidesPerView : (newOffsetWidth / slidesPerView) - (visibleGutter * 3)) - }, - onItemClick: ({ navigateOnItemClick, setCurrentSlide, currentSlide }) => e => { - if (!!navigateOnItemClick) { - const dataKey = e.currentTarget.dataset.key - currentSlide !== dataKey && setCurrentSlide(~~dataKey) - } - } - }), - lifecycle({ - componentDidMount() { - const { onMountAndResize, startAt = 0, setCurrentSlide } = this.props - startAt && setCurrentSlide(startAt) - if (isClient()) { - onMountAndResize() - window.addEventListener('resize', onMountAndResize) - } - }, - componentWillUnmount() { - const { onMountAndResize } = this.props - if (isClient()) - window.removeEventListener('resize', onMountAndResize) - }, - componentDidUpdate(prevProps) { - const { slidesPerView, onMountAndResize, currentSlide, onChange = NOOP } = this.props - if (prevProps.slidesPerView !== slidesPerView) onMountAndResize() - if (prevProps.currentSlide !== currentSlide) onChange(currentSlide) - } - }), - withProps(({ - currentSlide, - itemWidth, - visibleGutter, - children, - customNavigation, - alignAll, - slidesPerView, - stawId, - containerWidth - }) => { - const hasCustomNavigation = !!(customNavigation && Array.isArray(customNavigation) && customNavigation.length) - const validCustomNavigation = hasCustomNavigation && customNavigation.length === children.length - const renderCustomNavigation = hasCustomNavigation && validCustomNavigation - - return { - position: isClient() && getPosition( - currentSlide, - itemWidth, - visibleGutter, - children, - alignAll, - slidesPerView, - stawId, - containerWidth - ), - hasCustomNavigation, - validCustomNavigation, - renderCustomNavigation - } - }) -) - -export default stawContainer diff --git a/src/helpers/getPosition.js b/src/helpers/getPosition.js new file mode 100644 index 0000000..6babaaa --- /dev/null +++ b/src/helpers/getPosition.js @@ -0,0 +1,43 @@ +const getPosition = ({ + currentSlide, + itemWidth, + visibleGutter = 0, + children, + alignAll, + slidesPerView, + stawId, + containerWidth +}) => { + let slidesWidth = 0, + position + + const slides = [...document.querySelectorAll('#' + stawId + ' .staw__slide')] + const currentSlideWidth = slides.length && slides[currentSlide].offsetWidth + + if (slidesPerView === 'auto') { + for (let i = 0; i < currentSlide; i++) { + slidesWidth += slides[i].offsetWidth + } + } else { + slidesWidth = itemWidth * currentSlide + } + + position = currentSlide !== 0 ? slidesWidth - (visibleGutter / 2) : alignAll ? -visibleGutter : 0 + + if (currentSlide > 1) { + position += (visibleGutter / 2) * (currentSlide - 1) + if (currentSlide === children.length - 1) { + if (alignAll) { + position -= visibleGutter - visibleGutter + } + } + } + + if (alignAll && slides.length) { + position = -(-position + (document.getElementById(stawId).offsetWidth / 2) - (currentSlideWidth / 2) - visibleGutter) + } + + return -position +} + +export default getPosition diff --git a/src/helpers/isClient.js b/src/helpers/isClient.js new file mode 100644 index 0000000..50d413b --- /dev/null +++ b/src/helpers/isClient.js @@ -0,0 +1 @@ +export default () => !!(typeof window !== 'undefined' && window.document && window.document.createElement)