UNPKG

state-updater-on-actions

Version:

Update a shared state by asynchronous actions which execute over a system which responds when the state isn't up to date and expose a refresh operation which returns the value which represents that updated state for enabling the action to proceed.

1 lines 34.1 kB
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("stateUpdaterOnActions",[],n):"object"==typeof exports?exports.stateUpdaterOnActions=n():t.stateUpdaterOnActions=n()}("undefined"!=typeof self?self:this,function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=97)}([function(t,n,e){var r=e(25)("wks"),o=e(16),i=e(1).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){var e=t.exports={version:"2.5.5"};"number"==typeof __e&&(__e=e)},function(t,n,e){var r=e(7);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n,e){var r=e(3),o=e(52),i=e(29),u=Object.defineProperty;n.f=e(6)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){t.exports=!e(17)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(4),o=e(13);t.exports=e(6)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(87),o=e(31);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(1),o=e(2),i=e(14),u=e(8),c=e(5),a=function(t,n,e){var f,s,l,p=t&a.F,h=t&a.G,v=t&a.S,y=t&a.P,d=t&a.B,m=t&a.W,g=h?o:o[n]||(o[n]={}),x=g.prototype,w=h?r:v?r[n]:(r[n]||{}).prototype;for(f in h&&(e=n),e)(s=!p&&w&&void 0!==w[f])&&c(g,f)||(l=s?w[f]:e[f],g[f]=h&&"function"!=typeof w[f]?e[f]:d&&s?i(l,r):m&&w[f]==l?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(l):y&&"function"==typeof l?i(Function.call,l):l,y&&((g.virtual||(g.virtual={}))[f]=l,t&a.R&&x&&!x[f]&&u(x,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){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports={}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){var r=e(18);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n,e){var r=e(4).f,o=e(5),i=e(0)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){t.exports=!0},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(1),o=e(2),i=e(19),u=e(22),c=e(4).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,e){n.f=e(0)},function(t,n,e){"use strict";var r=e(18);t.exports.f=function(t){return new function(t){var n,e;this.promise=new t(function(t,r){if(void 0!==n||void 0!==e)throw TypeError("Bad Promise constructor");n=t,e=r}),this.resolve=r(n),this.reject=r(e)}(t)}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(1),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n,e){var r=e(25)("keys"),o=e(16);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var r=e(32),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n,e){var r=e(49),o=e(24);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n,e){var r=e(7);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(7),o=e(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){"use strict";var r=e(90)(!0);e(53)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){var r=e(49),o=e(24).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(3),o=e(7),i=e(23);t.exports=function(t,n){if(r(t),o(n)&&n.constructor===t)return n;var e=i.f(t);return(0,e.resolve)(n),e.promise}},function(t,n){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,n,e){var r,o,i,u=e(14),c=e(72),a=e(48),f=e(30),s=e(1),l=s.process,p=s.setImmediate,h=s.clearImmediate,v=s.MessageChannel,y=s.Dispatch,d=0,m={},g=function(){var t=+this;if(m.hasOwnProperty(t)){var n=m[t];delete m[t],n()}},x=function(t){g.call(t.data)};p&&h||(p=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return m[++d]=function(){c("function"==typeof t?t:Function(t),n)},r(d),d},h=function(t){delete m[t]},"process"==e(11)(l)?r=function(t){l.nextTick(u(g,t,1))}:y&&y.now?r=function(t){y.now(u(g,t,1))}:v?(i=(o=new v).port2,o.port1.onmessage=x,r=u(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(r=function(t){s.postMessage(t+"","*")},s.addEventListener("message",x,!1)):r="onreadystatechange"in f("script")?function(t){a.appendChild(f("script")).onreadystatechange=function(){a.removeChild(this),g.call(t)}}:function(t){setTimeout(u(g,t,1),0)}),t.exports={set:p,clear:h}},function(t,n,e){var r=e(3),o=e(18),i=e(0)("species");t.exports=function(t,n){var e,u=r(t).constructor;return void 0===u||void 0==(e=r(u)[i])?n:o(e)}},function(t,n,e){e(78);for(var r=e(1),o=e(8),i=e(12),u=e(0)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),a=0;a<c.length;a++){var f=c[a],s=r[f],l=s&&s.prototype;l&&!l[u]&&o(l,u,f),i[f]=i.Array}},function(t,n){},function(t,n,e){var r=e(0)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!o)return!1;var e=!1;try{var i=[7],u=i[r]();u.next=function(){return{done:e=!0}},i[r]=function(){return u},t(i)}catch(t){}return e}},function(t,n,e){var r=e(11),o=e(0)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var n,e,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),o))?e:i?r(n):"Object"==(u=r(n))&&"function"==typeof n.callee?"Arguments":u}},function(t,n,e){var r=e(43),o=e(0)("iterator"),i=e(12);t.exports=e(2).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,n,e){var r=e(12),o=e(0)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,n,e){var r=e(3);t.exports=function(t,n,e,o){try{return o?n(r(e)[0],e[1]):n(e)}catch(n){var i=t.return;throw void 0!==i&&r(i.call(t)),n}}},function(t,n,e){var r=e(31);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(1).document;t.exports=r&&r.documentElement},function(t,n,e){var r=e(5),o=e(9),i=e(86)(!1),u=e(26)("IE_PROTO");t.exports=function(t,n){var e,c=o(t),a=0,f=[];for(e in c)e!=u&&r(c,e)&&f.push(e);for(;n.length>a;)r(c,e=n[a++])&&(~i(f,e)||f.push(e));return f}},function(t,n,e){var r=e(3),o=e(88),i=e(24),u=e(26)("IE_PROTO"),c=function(){},a=function(){var t,n=e(30)("iframe"),r=i.length;for(n.style.display="none",e(48).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;r--;)delete a.prototype[i[r]];return a()};t.exports=Object.create||function(t,n){var e;return null!==t?(c.prototype=r(t),e=new c,c.prototype=null,e[u]=t):e=a(),void 0===n?e:o(e,n)}},function(t,n,e){t.exports=e(8)},function(t,n,e){t.exports=!e(6)&&!e(17)(function(){return 7!=Object.defineProperty(e(30)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){"use strict";var r=e(19),o=e(10),i=e(51),u=e(8),c=e(12),a=e(89),f=e(15),s=e(84),l=e(0)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,n,e,v,y,d,m){a(e,n,v);var g,x,w,b=function(t){if(!p&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},_=n+" Iterator",O="values"==y,S=!1,j=t.prototype,E=j[l]||j["@@iterator"]||y&&j[y],P=E||b(y),L=y?O?b("entries"):P:void 0,T="Array"==n&&j.entries||E;if(T&&(w=s(T.call(new t)))!==Object.prototype&&w.next&&(f(w,_,!0),r||"function"==typeof w[l]||u(w,l,h)),O&&E&&"values"!==E.name&&(S=!0,P=function(){return E.call(this)}),r&&!m||!p&&!S&&j[l]||u(j,l,P),c[n]=P,c[_]=h,y)if(g={values:O?P:b("values"),keys:d?P:b("keys"),entries:L},m)for(x in g)x in j||i(j,x,g[x]);else o(o.P+o.F*(p||S),n,g);return g}},function(t,n,e){e(21)("observable")},function(t,n,e){e(21)("asyncIterator")},function(t,n,e){var r=e(20),o=e(13),i=e(9),u=e(29),c=e(5),a=e(52),f=Object.getOwnPropertyDescriptor;n.f=e(6)?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(!r.f.call(t,n),t[n])}},function(t,n,e){var r=e(9),o=e(34).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},function(t,n,e){var r=e(11);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(28),o=e(35),i=e(20);t.exports=function(t){var n=r(t),e=o.f;if(e)for(var u,c=e(t),a=i.f,f=0;c.length>f;)a.call(t,u=c[f++])&&n.push(u);return n}},function(t,n,e){var r=e(16)("meta"),o=e(7),i=e(5),u=e(4).f,c=0,a=Object.isExtensible||function(){return!0},f=!e(17)(function(){return a(Object.preventExtensions({}))}),s=function(t){u(t,r,{value:{i:"O"+ ++c,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!a(t))return"F";if(!n)return"E";s(t)}return t[r].i},getWeak:function(t,n){if(!i(t,r)){if(!a(t))return!0;if(!n)return!1;s(t)}return t[r].w},onFreeze:function(t){return f&&l.NEED&&a(t)&&!i(t,r)&&s(t),t}}},function(t,n,e){"use strict";var r=e(1),o=e(5),i=e(6),u=e(10),c=e(51),a=e(60).KEY,f=e(17),s=e(25),l=e(15),p=e(16),h=e(0),v=e(22),y=e(21),d=e(59),m=e(58),g=e(3),x=e(7),w=e(9),b=e(29),_=e(13),O=e(50),S=e(57),j=e(56),E=e(4),P=e(28),L=j.f,T=E.f,A=S.f,M=r.Symbol,k=r.JSON,F=k&&k.stringify,N=h("_hidden"),R=h("toPrimitive"),C={}.propertyIsEnumerable,I=s("symbol-registry"),G=s("symbols"),D=s("op-symbols"),U=Object.prototype,W="function"==typeof M,V=r.QObject,B=!V||!V.prototype||!V.prototype.findChild,H=i&&f(function(){return 7!=O(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=L(U,n);r&&delete U[n],T(t,n,e),r&&t!==U&&T(U,n,r)}:T,K=function(t){var n=G[t]=O(M.prototype);return n._k=t,n},J=W&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},Y=function(t,n,e){return t===U&&Y(D,n,e),g(t),n=b(n,!0),g(e),o(G,n)?(e.enumerable?(o(t,N)&&t[N][n]&&(t[N][n]=!1),e=O(e,{enumerable:_(0,!1)})):(o(t,N)||T(t,N,_(1,{})),t[N][n]=!0),H(t,n,e)):T(t,n,e)},q=function(t,n){g(t);for(var e,r=d(n=w(n)),o=0,i=r.length;i>o;)Y(t,e=r[o++],n[e]);return t},z=function(t){var n=C.call(this,t=b(t,!0));return!(this===U&&o(G,t)&&!o(D,t))&&(!(n||!o(this,t)||!o(G,t)||o(this,N)&&this[N][t])||n)},Q=function(t,n){if(t=w(t),n=b(n,!0),t!==U||!o(G,n)||o(D,n)){var e=L(t,n);return!e||!o(G,n)||o(t,N)&&t[N][n]||(e.enumerable=!0),e}},X=function(t){for(var n,e=A(w(t)),r=[],i=0;e.length>i;)o(G,n=e[i++])||n==N||n==a||r.push(n);return r},Z=function(t){for(var n,e=t===U,r=A(e?D:w(t)),i=[],u=0;r.length>u;)!o(G,n=r[u++])||e&&!o(U,n)||i.push(G[n]);return i};W||(c((M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(e){this===U&&n.call(D,e),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),H(this,t,_(1,e))};return i&&B&&H(U,t,{configurable:!0,set:n}),K(t)}).prototype,"toString",function(){return this._k}),j.f=Q,E.f=Y,e(34).f=S.f=X,e(20).f=z,e(35).f=Z,i&&!e(19)&&c(U,"propertyIsEnumerable",z,!0),v.f=function(t){return K(h(t))}),u(u.G+u.W+u.F*!W,{Symbol:M});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;$.length>tt;)h($[tt++]);for(var nt=P(h.store),et=0;nt.length>et;)y(nt[et++]);u(u.S+u.F*!W,"Symbol",{for:function(t){return o(I,t+="")?I[t]:I[t]=M(t)},keyFor:function(t){if(!J(t))throw TypeError(t+" is not a symbol!");for(var n in I)if(I[n]===t)return n},useSetter:function(){B=!0},useSimple:function(){B=!1}}),u(u.S+u.F*!W,"Object",{create:function(t,n){return void 0===n?O(t):q(O(t),n)},defineProperty:Y,defineProperties:q,getOwnPropertyDescriptor:Q,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),k&&u(u.S+u.F*(!W||f(function(){var t=M();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))})),"JSON",{stringify:function(t){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(e=n=r[1],(x(n)||void 0!==t)&&!J(t))return m(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!J(n))return n}),r[1]=n,F.apply(k,r)}}),M.prototype[R]||e(8)(M.prototype,R,M.prototype.valueOf),l(M,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){e(61),e(41),e(55),e(54),t.exports=e(2).Symbol},function(t,n,e){t.exports={default:e(62),__esModule:!0}},function(t,n,e){e(33),e(40),t.exports=e(22).f("iterator")},function(t,n,e){t.exports={default:e(64),__esModule:!0}},function(t,n,e){"use strict";n.__esModule=!0;var r=u(e(65)),o=u(e(63)),i="function"==typeof o.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":typeof t};function u(t){return t&&t.__esModule?t:{default:t}}n.default="function"==typeof o.default&&"symbol"===i(r.default)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":void 0===t?"undefined":i(t)}},function(t,n,e){"use strict";var r=e(10),o=e(23),i=e(37);r(r.S,"Promise",{try:function(t){var n=o.f(this),e=i(t);return(e.e?n.reject:n.resolve)(e.v),n.promise}})},function(t,n,e){"use strict";var r=e(10),o=e(2),i=e(1),u=e(39),c=e(36);r(r.P+r.R,"Promise",{finally:function(t){var n=u(this,o.Promise||i.Promise),e="function"==typeof t;return this.then(e?function(e){return c(n,t()).then(function(){return e})}:t,e?function(e){return c(n,t()).then(function(){throw e})}:t)}})},function(t,n,e){"use strict";var r=e(1),o=e(2),i=e(4),u=e(6),c=e(0)("species");t.exports=function(t){var n="function"==typeof o[t]?o[t]:r[t];u&&n&&!n[c]&&i.f(n,c,{configurable:!0,get:function(){return this}})}},function(t,n,e){var r=e(8);t.exports=function(t,n,e){for(var o in n)e&&t[o]?t[o]=n[o]:r(t,o,n[o]);return t}},function(t,n,e){var r=e(1),o=e(38).set,i=r.MutationObserver||r.WebKitMutationObserver,u=r.process,c=r.Promise,a="process"==e(11)(u);t.exports=function(){var t,n,e,f=function(){var r,o;for(a&&(r=u.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?e():n=void 0,r}}n=void 0,r&&r.enter()};if(a)e=function(){u.nextTick(f)};else if(!i||r.navigator&&r.navigator.standalone)if(c&&c.resolve){var s=c.resolve();e=function(){s.then(f)}}else e=function(){o.call(r,f)};else{var l=!0,p=document.createTextNode("");new i(f).observe(p,{characterData:!0}),e=function(){p.data=l=!l}}return function(r){var o={fn:r,next:void 0};n&&(n.next=o),t||(t=o,e()),n=o}}},function(t,n){t.exports=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)}},function(t,n,e){var r=e(14),o=e(46),i=e(45),u=e(3),c=e(27),a=e(44),f={},s={};(n=t.exports=function(t,n,e,l,p){var h,v,y,d,m=p?function(){return t}:a(t),g=r(e,l,n?2:1),x=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(i(m)){for(h=c(t.length);h>x;x++)if((d=n?g(u(v=t[x])[0],v[1]):g(t[x]))===f||d===s)return d}else for(y=m.call(t);!(v=y.next()).done;)if((d=o(y,g,v.value,n))===f||d===s)return d}).BREAK=f,n.RETURN=s},function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},function(t,n,e){"use strict";var r,o,i,u,c=e(19),a=e(1),f=e(14),s=e(43),l=e(10),p=e(7),h=e(18),v=e(74),y=e(73),d=e(39),m=e(38).set,g=e(71)(),x=e(23),w=e(37),b=e(36),_=a.TypeError,O=a.process,S=a.Promise,j="process"==s(O),E=function(){},P=o=x.f,L=!!function(){try{var t=S.resolve(1),n=(t.constructor={})[e(0)("species")]=function(t){t(E,E)};return(j||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof n}catch(t){}}(),T=function(t){var n;return!(!p(t)||"function"!=typeof(n=t.then))&&n},A=function(t,n){if(!t._n){t._n=!0;var e=t._c;g(function(){for(var r=t._v,o=1==t._s,i=0,u=function(n){var e,i,u,c=o?n.ok:n.fail,a=n.resolve,f=n.reject,s=n.domain;try{c?(o||(2==t._h&&F(t),t._h=1),!0===c?e=r:(s&&s.enter(),e=c(r),s&&(s.exit(),u=!0)),e===n.promise?f(_("Promise-chain cycle")):(i=T(e))?i.call(e,a,f):a(e)):f(r)}catch(t){s&&!u&&s.exit(),f(t)}};e.length>i;)u(e[i++]);t._c=[],t._n=!1,n&&!t._h&&M(t)})}},M=function(t){m.call(a,function(){var n,e,r,o=t._v,i=k(t);if(i&&(n=w(function(){j?O.emit("unhandledRejection",o,t):(e=a.onunhandledrejection)?e({promise:t,reason:o}):(r=a.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=j||k(t)?2:1),t._a=void 0,i&&n.e)throw n.v})},k=function(t){return 1!==t._h&&0===(t._a||t._c).length},F=function(t){m.call(a,function(){var n;j?O.emit("rejectionHandled",t):(n=a.onrejectionhandled)&&n({promise:t,reason:t._v})})},N=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),A(n,!0))},R=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw _("Promise can't be resolved itself");(n=T(t))?g(function(){var r={_w:e,_d:!1};try{n.call(t,f(R,r,1),f(N,r,1))}catch(t){N.call(r,t)}}):(e._v=t,e._s=1,A(e,!1))}catch(t){N.call({_w:e,_d:!1},t)}}};L||(S=function(t){v(this,S,"Promise","_h"),h(t),r.call(this);try{t(f(R,this,1),f(N,this,1))}catch(t){N.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=e(70)(S.prototype,{then:function(t,n){var e=P(d(this,S));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=j?O.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&A(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=f(R,t,1),this.reject=f(N,t,1)},x.f=P=function(t){return t===S||t===u?new i(t):o(t)}),l(l.G+l.W+l.F*!L,{Promise:S}),e(15)(S,"Promise"),e(69)("Promise"),u=e(2).Promise,l(l.S+l.F*!L,"Promise",{reject:function(t){var n=P(this);return(0,n.reject)(t),n.promise}}),l(l.S+l.F*(c||!L),"Promise",{resolve:function(t){return b(c&&this===u?S:this,t)}}),l(l.S+l.F*!(L&&e(42)(function(t){S.all(t).catch(E)})),"Promise",{all:function(t){var n=this,e=P(n),r=e.resolve,o=e.reject,i=w(function(){var e=[],i=0,u=1;y(t,!1,function(t){var c=i++,a=!1;e.push(void 0),u++,n.resolve(t).then(function(t){a||(a=!0,e[c]=t,--u||r(e))},o)}),--u||r(e)});return i.e&&o(i.v),e.promise},race:function(t){var n=this,e=P(n),r=e.reject,o=w(function(){y(t,!1,function(t){n.resolve(t).then(e.resolve,r)})});return o.e&&r(o.v),e.promise}})},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n){t.exports=function(){}},function(t,n,e){"use strict";var r=e(77),o=e(76),i=e(12),u=e(9);t.exports=e(53)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n,e){e(41),e(33),e(40),e(75),e(68),e(67),t.exports=e(2).Promise},function(t,n,e){t.exports={default:e(79),__esModule:!0}},function(t,n,e){"use strict";n.__esModule=!0;var r,o=e(80),i=(r=o)&&r.__esModule?r:{default:r};n.default=function(t){return function(){var n=t.apply(this,arguments);return new i.default(function(t,e){return function r(o,u){try{var c=n[o](u),a=c.value}catch(t){return void e(t)}if(!c.done)return i.default.resolve(a).then(function(t){r("next",t)},function(t){r("throw",t)});t(a)}("next")})}}},function(t,n,e){"use strict";var r=e(4),o=e(13);t.exports=function(t,n,e){n in t?r.f(t,n,o(0,e)):t[n]=e}},function(t,n,e){"use strict";var r=e(14),o=e(10),i=e(47),u=e(46),c=e(45),a=e(27),f=e(82),s=e(44);o(o.S+o.F*!e(42)(function(t){Array.from(t)}),"Array",{from:function(t){var n,e,o,l,p=i(t),h="function"==typeof this?this:Array,v=arguments.length,y=v>1?arguments[1]:void 0,d=void 0!==y,m=0,g=s(p);if(d&&(y=r(y,v>2?arguments[2]:void 0,2)),void 0==g||h==Array&&c(g))for(e=new h(n=a(p.length));n>m;m++)f(e,m,d?y(p[m],m):p[m]);else for(l=g.call(p),e=new h;!(o=l.next()).done;m++)f(e,m,d?u(l,y,[o.value,m],!0):o.value);return e.length=m,e}})},function(t,n,e){var r=e(5),o=e(47),i=e(26)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){var r=e(32),o=Math.max,i=Math.min;t.exports=function(t,n){return(t=r(t))<0?o(t+n,0):i(t,n)}},function(t,n,e){var r=e(9),o=e(27),i=e(85);t.exports=function(t){return function(n,e,u){var c,a=r(n),f=o(a.length),s=i(u,f);if(t&&e!=e){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===e)return t||s||0;return!t&&-1}}},function(t,n,e){var r=e(11);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(4),o=e(3),i=e(28);t.exports=e(6)?Object.defineProperties:function(t,n){o(t);for(var e,u=i(n),c=u.length,a=0;c>a;)r.f(t,e=u[a++],n[e]);return t}},function(t,n,e){"use strict";var r=e(50),o=e(13),i=e(15),u={};e(8)(u,e(0)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){var r=e(32),o=e(31);t.exports=function(t){return function(n,e){var i,u,c=String(o(n)),a=r(e),f=c.length;return a<0||a>=f?t?"":void 0:(i=c.charCodeAt(a))<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,e){e(33),e(83),t.exports=e(2).Array.from},function(t,n,e){t.exports={default:e(91),__esModule:!0}},function(t,n,e){"use strict";n.__esModule=!0;var r,o=e(92),i=(r=o)&&r.__esModule?r:{default:r};n.default=function(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n<t.length;n++)e[n]=t[n];return e}return(0,i.default)(t)}},function(t,n){!function(n){"use strict";var e,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag",f="object"==typeof t,s=n.regeneratorRuntime;if(s)f&&(t.exports=s);else{(s=n.regeneratorRuntime=f?t.exports:{}).wrap=w;var l="suspendedStart",p="suspendedYield",h="executing",v="completed",y={},d={};d[u]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(M([])));g&&g!==r&&o.call(g,u)&&(d=g);var x=S.prototype=_.prototype=Object.create(d);O.prototype=x.constructor=S,S.constructor=O,S[a]=O.displayName="GeneratorFunction",s.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===O||"GeneratorFunction"===(n.displayName||n.name))},s.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(x),t},s.awrap=function(t){return{__await:t}},j(E.prototype),E.prototype[c]=function(){return this},s.AsyncIterator=E,s.async=function(t,n,e,r){var o=new E(w(t,n,e,r));return s.isGeneratorFunction(n)?o:o.next().then(function(t){return t.done?t.value:o.next()})},j(x),x[a]="Generator",x[u]=function(){return this},x.toString=function(){return"[object Generator]"},s.keys=function(t){var n=[];for(var e in t)n.push(e);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},s.values=M,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var u=this.tryEntries[i],c=u.completion;if("root"===u.tryLoc)return r("end");if(u.tryLoc<=this.prev){var a=o.call(u,"catchLoc"),f=o.call(u,"finallyLoc");if(a&&f){if(this.prev<u.catchLoc)return r(u.catchLoc,!0);if(this.prev<u.finallyLoc)return r(u.finallyLoc)}else if(a){if(this.prev<u.catchLoc)return r(u.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return r(u.finallyLoc)}}}},abrupt:function(t,n){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var u=i?i.completion:{};return u.type=t,u.arg=n,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(u)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),y},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),T(e),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var o=r.arg;T(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}}}function w(t,n,e,r){var o=n&&n.prototype instanceof _?n:_,i=Object.create(o.prototype),u=new A(r||[]);return i._invoke=function(t,n,e){var r=l;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===v){if("throw"===o)throw i;return k()}for(e.method=o,e.arg=i;;){var u=e.delegate;if(u){var c=P(u,e);if(c){if(c===y)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(r===l)throw r=v,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);r=h;var a=b(t,n,e);if("normal"===a.type){if(r=e.done?v:p,a.arg===y)continue;return{value:a.arg,done:e.done}}"throw"===a.type&&(r=v,e.method="throw",e.arg=a.arg)}}}(t,e,u),i}function b(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}function _(){}function O(){}function S(){}function j(t){["next","throw","return"].forEach(function(n){t[n]=function(t){return this._invoke(n,t)}})}function E(t){var n;this._invoke=function(e,r){function i(){return new Promise(function(n,i){!function n(e,r,i,u){var c=b(t[e],t,r);if("throw"!==c.type){var a=c.arg,f=a.value;return f&&"object"==typeof f&&o.call(f,"__await")?Promise.resolve(f.__await).then(function(t){n("next",t,i,u)},function(t){n("throw",t,i,u)}):Promise.resolve(f).then(function(t){a.value=t,i(a)},u)}u(c.arg)}(e,r,n,i)})}return n=n?n.then(i,i):i()}}function P(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,P(t,n),"throw"===n.method))return y;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=b(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function L(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function T(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function M(t){if(t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}return{next:k}}function k(){return{value:e,done:!0}}}(function(){return this}()||Function("return this")())},function(t,n,e){var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=e(94),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},function(t,n,e){t.exports=e(95)},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=c(e(96)),o=c(e(93)),i=c(e(81)),u=c(e(66));function c(t){return t&&t.__esModule?t:{default:t}}function a(t,n){for(var e=arguments.length,c=Array(e>2?e-2:0),a=2;a<e;a++)c[a-2]=arguments[a];var f,s=(f=(0,i.default)(r.default.mark(function t(n,e){for(var i=arguments.length,u=Array(i>2?i-2:0),c=2;c<i;c++)u[c-2]=arguments[c];var a,f;return r.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!p){t.next=12;break}return t.prev=1,t.next=4,p;case 4:t.next=9;break;case 6:throw t.prev=6,t.t0=t.catch(1),t.t0;case 9:return t.prev=9,p=null,t.finish(9);case 12:return a=void 0,a=null===e?n.apply(void 0,(0,o.default)(u)):n.call.apply(n,[e].concat((0,o.default)(u))),t.next=16,a;case 16:if((f=t.sent)===l){t.next=19;break}return t.abrupt("return",f);case 19:return p||(p=h()),t.abrupt("return",s.apply(void 0,[n,e].concat((0,o.default)(u))));case 21:case"end":return t.stop()}},t,this,[[1,6,9,12]])})),function(t,n){return f.apply(this,arguments)}),l={},p=null,h=t.bind.apply(t,[n].concat(c));return{call:function(t){if("function"!=typeof t)throw new TypeError("action must be a function");for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return s.apply(void 0,[t,null].concat(e))},callCtx:function(t,n){if("function"!=typeof t)throw new TypeError("action must be a function");if(!n)switch(void 0===n?"undefined":(0,u.default)(n)){case"undefined":throw new TypeError("context is required");case"object":throw new TypeError("context cannot be null")}for(var e=arguments.length,r=Array(e>2?e-2:0),o=2;o<e;o++)r[o-2]=arguments[o];return s.apply(void 0,[t,n].concat(r))},updateState:function(){return l}}}n.createStateUpdater=function(t){if("function"!=typeof t)throw new TypeError("updateAction must be a function");for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return a.apply(void 0,[t,null].concat(e))},n.createStateUpdaterCtx=function(t,n){if("function"!=typeof t)throw new TypeError("updateAction must be a function");if(!n)switch(void 0===n?"undefined":(0,u.default)(n)){case"undefined":throw new TypeError("context is required");case"object":throw new TypeError("context cannot be null")}for(var e=arguments.length,r=Array(e>2?e-2:0),o=2;o<e;o++)r[o-2]=arguments[o];return a.apply(void 0,[t,n].concat(r))}}])});