!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n=n||self).ReduxSaga={})}(this,function(n){"use strict";var t=function(n){return"@@redux-saga/"+n},e=t("CANCEL_PROMISE"),r=t("CHANNEL_END"),o=t("IO"),c=t("MATCH"),a=t("MULTICAST"),u=t("SAGA_ACTION"),f=t("SELF_CANCELLATION"),i=t("TASK"),l=t("TASK_CANCEL"),s=t("TERMINATE"),v=t("LOCATION");function d(){return(d=Object.assign||function(n){for(var t=1;arguments.length>t;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n}).apply(this,arguments)}var p=function(n){return null==n},h=function(n){return null!=n},y=function(n){return"function"==typeof n},g=function(n){return"string"==typeof n},E=Array.isArray,b=function(n){return n&&y(n.then)},S=function(n){return n&&y(n.next)&&y(n.throw)},m=function n(t){return t&&(g(t)||C(t)||y(t)||E(t)&&t.every(n))},A=function(n){return n&&y(n.take)&&y(n.close)},x=function(n){return y(n)&&n.hasOwnProperty("toString")},C=function(n){return!!n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype},q=function(n){return A(n)&&n[a]},T=function(n){return function(){return n}}(!0),k=function(){},O=function(n){return n},L=function(n,t){d(n,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(function(e){n[e]=t[e]})},N=function(n,t){var e;return(e=[]).concat.apply(e,t.map(n))};function j(n,t){var e=n.indexOf(t);0>e||n.splice(e,1)}function w(n){var t=!1;return function(){t||(t=!0,n())}}var R=function(n){throw n},M=function(n){return{value:n,done:!0}};function I(n,t,e){void 0===t&&(t=R),void 0===e&&(e="iterator");var r={meta:{name:e},next:n,throw:t,return:M,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function U(n,t){var e=t.sagaStack;console.error(n),console.error(e)}var P=function(n){return Array.apply(null,Array(n))},_=function(n){return function(t){return n(Object.defineProperty(t,u,{value:!0}))}},D=function(n){return n===s},F=function(n){return n===l},H=function(n){return D(n)||F(n)};function K(n,t){var e,r=Object.keys(n),o=r.length,c=0,a=E(n)?P(o):{},u={};return r.forEach(function(n){var r=function(r,u){e||(u||H(r)?(t.cancel(),t(r,u)):(a[n]=r,++c===o&&(e=!0,t(a))))};r.cancel=k,u[n]=r}),t.cancel=function(){e||(e=!0,r.forEach(function(n){return u[n].cancel()}))},u}function z(n){return{name:n.name||"anonymous",location:G(n)}}function G(n){return n[v]}var X="Channel's Buffer overflow!",J=1,B=3,Q=4,V={isEmpty:T,put:k,take:k};function W(n,t){void 0===n&&(n=10);var e=Array(n),r=0,o=0,c=0,a=function(t){e[o]=t,o=(o+1)%n,r++},u=function(){if(0!=r){var t=e[c];return e[c]=null,r--,c=(c+1)%n,t}},f=function(){for(var n=[];r;)n.push(u());return n};return{isEmpty:function(){return 0==r},put:function(u){var i;if(n>r)a(u);else switch(t){case J:throw Error(X);case B:e[o]=u,c=o=(o+1)%n;break;case Q:i=2*n,e=f(),r=e.length,o=e.length,c=0,e.length=i,n=i,a(u)}},take:u,flush:f}}var Y=function(){return V},Z=function(n){return W(n,B)},$=function(n){return W(n,Q)},nn=Object.freeze({none:Y,fixed:function(n){return W(n,J)},dropping:function(n){return W(n,2)},sliding:Z,expanding:$}),tn=[],en=0;function rn(n){try{an(),n()}finally{un()}}function on(n){tn.push(n),en||(an(),fn())}function cn(n){try{return an(),n()}finally{fn()}}function an(){en++}function un(){en--}function fn(){var n;for(un();!en&&void 0!==(n=tn.shift());)rn(n)}var ln=function(n){return function(t){return n.some(function(n){return hn(n)(t)})}},sn=function(n){return function(t){return n(t)}},vn=function(n){return function(t){return t.type===n+""}},dn=function(n){return function(t){return t.type===n}},pn=function(){return T};function hn(n){var t="*"===n?pn:g(n)?vn:E(n)?ln:x(n)?vn:y(n)?sn:C(n)?dn:null;if(null===t)throw Error("invalid pattern: "+n);return t(n)}var yn={type:r},gn=function(n){return n&&n.type===r};function En(n){void 0===n&&(n=$());var t=!1,e=[];return{take:function(r){t&&n.isEmpty()?r(yn):n.isEmpty()?(e.push(r),r.cancel=function(){j(e,r)}):r(n.take())},put:function(r){if(!t){if(0===e.length)return n.put(r);e.shift()(r)}},flush:function(e){t&&n.isEmpty()?e(yn):e(n.flush())},close:function(){if(!t){t=!0;var n=e;e=[];for(var r=0,o=n.length;o>r;r++)(0,n[r])(yn)}}}}function bn(){var n,t=!1,e=[],r=e,o=function(){r===e&&(r=e.slice())},u=function(){t=!0;var n=e=r;r=[],n.forEach(function(n){n(yn)})};return(n={})[a]=!0,n.put=function(n){if(!t)if(gn(n))u();else for(var o=e=r,a=0,f=o.length;f>a;a++){var i=o[a];i[c](n)&&(i.cancel(),i(n))}},n.take=function(n,e){void 0===e&&(e=pn),t?n(yn):(n[c]=e,o(),r.push(n),n.cancel=w(function(){o(),j(r,n)}))},n.close=u,n}function Sn(){var n=bn(),t=n.put;return n.put=function(n){n[u]?t(n):on(function(){t(n)})},n}!function(n){var t,e=n.Symbol;"function"==typeof e?e.observable?t=e.observable:(t=e("observable"),e.observable=t):t="@@observable"}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")());var mn=function(){return Math.random().toString(36).substring(7).split("").join(".")};mn(),mn();var An=0,xn=1,Cn=2,qn=3,Tn="TAKE",kn="PUT",On="ALL",Ln="RACE",Nn="CALL",jn="CPS",wn="FORK",Rn="JOIN",Mn="CANCEL",In="SELECT",Un="ACTION_CHANNEL",Pn="CANCELLED",_n="FLUSH",Dn="GET_CONTEXT",Fn="SET_CONTEXT",Hn=Object.freeze({TAKE:Tn,PUT:kn,ALL:On,RACE:Ln,CALL:Nn,CPS:jn,FORK:wn,JOIN:Rn,CANCEL:Mn,SELECT:In,ACTION_CHANNEL:Un,CANCELLED:Pn,FLUSH:_n,GET_CONTEXT:Dn,SET_CONTEXT:Fn});function Kn(n,t){var r=n[e];y(r)&&(t.cancel=r),n.then(t,function(n){t(n,!0)})}var zn,Gn=0,Xn=function(){return++Gn};function Jn(n){n.isRunning()&&n.cancel()}var Bn=((zn={})[Tn]=function(n,t,e){var r=t.channel,o=void 0===r?n.channel:r,c=t.pattern,a=t.maybe,u=function(n){n instanceof Error?e(n,!0):!gn(n)||a?e(n):e(s)};try{o.take(u,h(c)?hn(c):null)}catch(n){return void e(n,!0)}e.cancel=u.cancel},zn[kn]=function(n,t,e){var r=t.channel,o=t.action,c=t.resolve;on(function(){var t;try{t=(r?r.put:n.dispatch)(o)}catch(n){return void e(n,!0)}c&&b(t)?Kn(t,e):e(t)})},zn[On]=function(n,t,e,r){var o=r.digestEffect,c=Gn,a=Object.keys(t);if(0!==a.length){var u=K(t,e);a.forEach(function(n){o(t[n],c,u[n],n)})}else e(E(t)?[]:{})},zn[Ln]=function(n,t,e,r){var o=r.digestEffect,c=Gn,a=Object.keys(t),u=E(t)?P(a.length):{},f={},i=!1;a.forEach(function(n){var t=function(t,r){i||(r||H(t)?(e.cancel(),e(t,r)):(e.cancel(),i=!0,u[n]=t,e(u)))};t.cancel=k,f[n]=t}),e.cancel=function(){i||(i=!0,a.forEach(function(n){return f[n].cancel()}))},a.forEach(function(n){i||o(t[n],c,f[n],n)})},zn[Nn]=function(n,t,e,r){var o=t.context,c=t.fn,a=t.args,u=r.task;try{var f=c.apply(o,a);if(b(f))return void Kn(f,e);if(S(f))return void ot(n,f,u.context,Gn,z(c),!1,e);e(f)}catch(n){e(n,!0)}},zn[jn]=function(n,t,e){var r=t.context,o=t.fn,c=t.args;try{var a=function(n,t){p(n)?e(t):e(n,!0)};o.apply(r,c.concat(a)),a.cancel&&(e.cancel=a.cancel)}catch(n){e(n,!0)}},zn[wn]=function(n,t,e,r){var o=t.fn,c=t.detached,a=r.task,u=function(n){var t=n.context,e=n.fn,r=n.args;try{var o=e.apply(t,r);if(S(o))return o;var c=!1;return I(function(n){return c?{value:n,done:!0}:(c=!0,{value:o,done:!b(o)})})}catch(n){return I(function(){throw n})}}({context:t.context,fn:o,args:t.args}),f=function(n,t){return n.isSagaIterator?{name:n.meta.name}:z(t)}(u,o);cn(function(){var t=ot(n,u,a.context,Gn,f,c,void 0);c?e(t):t.isRunning()?(a.queue.addTask(t),e(t)):t.isAborted()?a.queue.abort(t.error()):e(t)})},zn[Rn]=function(n,t,e,r){var o=r.task,c=function(n,t){if(n.isRunning()){var e={task:o,cb:t};t.cancel=function(){n.isRunning()&&j(n.joiners,e)},n.joiners.push(e)}else n.isAborted()?t(n.error(),!0):t(n.result())};if(E(t)){if(0===t.length)return void e([]);var a=K(t,e);t.forEach(function(n,t){c(n,a[t])})}else c(t,e)},zn[Mn]=function(n,t,e,r){t===f?Jn(r.task):E(t)?t.forEach(Jn):Jn(t),e()},zn[In]=function(n,t,e){var r=t.selector,o=t.args;try{e(r.apply(void 0,[n.getState()].concat(o)))}catch(n){e(n,!0)}},zn[Un]=function(n,t,e){var r=t.pattern,o=En(t.buffer),c=hn(r),a=function t(e){gn(e)||n.channel.take(t,c),o.put(e)},u=o.close;o.close=function(){a.cancel(),u()},n.channel.take(a,c),e(o)},zn[Pn]=function(n,t,e,r){e(r.task.isCancelled())},zn[_n]=function(n,t,e){t.flush(e)},zn[Dn]=function(n,t,e,r){e(r.task.context[t])},zn[Fn]=function(n,t,e,r){L(r.task.context,t),e()},zn);function Qn(n,t){return n+"?"+t}function Vn(n){var t=n.name,e=n.location;return e?t+"  "+Qn(e.fileName,e.lineNumber):t}function Wn(n){var t=N(function(n){return n.cancelledTasks},n);return t.length?["Tasks cancelled due to error:"].concat(t).join("\n"):""}var Yn=null,Zn=[],$n=function(n){n.crashedEffect=Yn,Zn.push(n)},nt=function(){Yn=null,Zn.length=0},tt=function(n){Yn=n},et=function(){var n,t=Zn[0],e=Zn.slice(1),r=t.crashedEffect?(n=G(t.crashedEffect))?n.code+"  "+Qn(n.fileName,n.lineNumber):"":null;return["The above error occurred in task "+Vn(t.meta)+(r?" \n when executing effect "+r:"")].concat(e.map(function(n){return"    created by "+Vn(n.meta)}),[Wn(Zn)]).join("\n")};function rt(n,t,e,r,o,c,a){var u;void 0===a&&(a=k);var f,s,v=An,d=null,p=[],h=Object.create(e),y=function(n,t,e){var r,o=[],c=!1;function a(n){t(),f(),e(n,!0)}function u(t){o.push(t),t.cont=function(u,f){c||(j(o,t),t.cont=k,f?a(u):(t===n&&(r=u),o.length||(c=!0,e(r))))}}function f(){c||(c=!0,o.forEach(function(n){n.cont=k,n.cancel()}),o=[])}return u(n),{addTask:u,cancelAll:f,abort:a,getTasks:function(){return o}}}(t,function(){p.push.apply(p,y.getTasks().map(function(n){return n.meta.name}))},g);function g(t,e){if(e){if(v=Cn,$n({meta:o,cancelledTasks:p}),E.isRoot){var r=et();nt(),n.onError(t,{sagaStack:r})}s=t,d&&d.reject(t)}else t===l?v=xn:v!==xn&&(v=qn),f=t,d&&d.resolve(t);E.cont(t,e),E.joiners.forEach(function(n){n.cb(t,e)}),E.joiners=null}var E=((u={})[i]=!0,u.id=r,u.meta=o,u.isRoot=c,u.context=h,u.joiners=[],u.queue=y,u.cancel=function(){v===An&&(v=xn,y.cancelAll(),g(l,!1))},u.cont=a,u.end=g,u.setContext=function(n){L(h,n)},u.toPromise=function(){return d?d.promise:((n={}).promise=new Promise(function(t,e){n.resolve=t,n.reject=e}),d=n,v===Cn?d.reject(s):v!==An&&d.resolve(f),d.promise);var n},u.isRunning=function(){return v===An},u.isCancelled=function(){return v===xn||v===An&&t.status===xn},u.isAborted=function(){return v===Cn},u.result=function(){return f},u.error=function(){return s},u);return E}function ot(n,t,e,r,c,a,u){var f=n.finalizeRunEffect(function(t,e,r){if(b(t))Kn(t,r);else if(S(t))ot(n,t,s.context,e,c,!1,r);else if(t&&t[o]){var a=Bn[t.type];a(n,t.payload,r,v)}else r(t)});d.cancel=k;var i={meta:c,cancel:function(){i.status===An&&(i.status=xn,d(l))},status:An},s=rt(n,i,e,r,c,a,u),v={task:s,digestEffect:p};return u&&(u.cancel=s.cancel),d(),s;function d(n,e){try{var o;e?(o=t.throw(n),nt()):F(n)?(i.status=xn,d.cancel(),o=y(t.return)?t.return(l):{done:!0,value:l}):o=D(n)?y(t.return)?t.return():{done:!0}:t.next(n),o.done?(i.status!==xn&&(i.status=qn),i.cont(o.value)):p(o.value,r,d)}catch(n){if(i.status===xn)throw n;i.status=Cn,i.cont(n,!0)}}function p(t,e,r,o){void 0===o&&(o="");var c,a=Xn();function u(e,o){c||(c=!0,r.cancel=k,n.sagaMonitor&&(o?n.sagaMonitor.effectRejected(a,e):n.sagaMonitor.effectResolved(a,e)),o&&tt(t),r(e,o))}n.sagaMonitor&&n.sagaMonitor.effectTriggered({effectId:a,parentEffectId:e,label:o,effect:t}),u.cancel=k,r.cancel=function(){c||(c=!0,u.cancel(),u.cancel=k,n.sagaMonitor&&n.sagaMonitor.effectCancelled(a))},f(t,a,u)}}function ct(n,t){for(var e=n.channel,r=void 0===e?Sn():e,o=n.dispatch,c=n.getState,a=n.context,u=void 0===a?{}:a,f=n.sagaMonitor,i=n.effectMiddlewares,l=n.onError,s=void 0===l?U:l,v=arguments.length,d=Array(v>2?v-2:0),p=2;v>p;p++)d[p-2]=arguments[p];var h,y=t.apply(void 0,d),g=Xn();if(f&&(f.rootSagaStarted=f.rootSagaStarted||k,f.effectTriggered=f.effectTriggered||k,f.effectResolved=f.effectResolved||k,f.effectRejected=f.effectRejected||k,f.effectCancelled=f.effectCancelled||k,f.actionDispatched=f.actionDispatched||k,f.rootSagaStarted({effectId:g,saga:t,args:d})),i){var E=function(){for(var n=arguments.length,t=Array(n),e=0;n>e;e++)t[e]=arguments[e];return 0===t.length?function(n){return n}:1===t.length?t[0]:t.reduce(function(n,t){return function(){return n(t.apply(void 0,arguments))}})}.apply(void 0,i);h=function(n){return function(t,e,r){return E(function(t){return n(t,e,r)})(t)}}}else h=O;var b={channel:r,dispatch:_(o),getState:c,sagaMonitor:f,onError:s,finalizeRunEffect:h};return cn(function(){var n=ot(b,y,u,g,z(t),!0,void 0);return f&&f.effectResolved(g,n),n})}function at(n,t){var r;void 0===t&&(t=!0);var o=new Promise(function(e){r=setTimeout(e,n,t)});return o[e]=function(){clearTimeout(r)},o}var ut=function(n,t){var e;return(e={})[o]=!0,e.combinator=!1,e.type=n,e.payload=t,e},ft=function(n){return ut(wn,d({},n.payload,{detached:!0}))};function it(n,t){return void 0===n&&(n="*"),m(n)?ut(Tn,{pattern:n}):q(n)&&h(t)&&m(t)?ut(Tn,{channel:n,pattern:t}):A(n)?ut(Tn,{channel:n}):void 0}function lt(n,t){return p(t)&&(t=n,n=void 0),ut(kn,{channel:n,action:t})}function st(n){var t=ut(Ln,n);return t.combinator=!0,t}function vt(n,t){var e,r=null;return y(n)?e=n:(E(n)?(r=n[0],e=n[1]):(r=n.context,e=n.fn),r&&g(e)&&y(r[e])&&(e=r[e])),{context:r,fn:e,args:t}}function dt(n){for(var t=arguments.length,e=Array(t>1?t-1:0),r=1;t>r;r++)e[r-1]=arguments[r];return ut(Nn,vt(n,e))}function pt(n){for(var t=arguments.length,e=Array(t>1?t-1:0),r=1;t>r;r++)e[r-1]=arguments[r];return ut(wn,vt(n,e))}function ht(n){return void 0===n&&(n=f),ut(Mn,n)}function yt(n,t){return ut(Un,{pattern:n,buffer:t})}var gt=dt.bind(null,at),Et=function(n){return{done:!0,value:n}},bt={};function St(n){return A(n)?"channel":x(n)?n+"":y(n)?n.name:n+""}function mt(n,t,e){var r,o,c,a=t;function u(t,e){if(a===bt)return Et(t);if(e&&!o)throw a=bt,e;r&&r(t);var u=e?n[o](e):n[a]();return c=u.effect,r=u.stateUpdater,o=u.errorState,(a=u.nextState)===bt?Et(t):c}return I(u,function(n){return u(null,n)},e)}function At(n,t){for(var e=arguments.length,r=Array(e>2?e-2:0),o=2;e>o;o++)r[o-2]=arguments[o];var c,a={done:!1,value:it(n)},u=function(n){return c=n};return mt({q1:function(){return{nextState:"q2",effect:a,stateUpdater:u}},q2:function(){return{nextState:"q1",effect:(n=c,{done:!1,value:pt.apply(void 0,[t].concat(r,[n]))})};var n}},"q1","takeEvery("+St(n)+", "+t.name+")")}function xt(n,t){for(var e=arguments.length,r=Array(e>2?e-2:0),o=2;e>o;o++)r[o-2]=arguments[o];var c,a,u={done:!1,value:it(n)},f=function(n){return{done:!1,value:pt.apply(void 0,[t].concat(r,[n]))}},i=function(n){return{done:!1,value:ht(n)}},l=function(n){return c=n},s=function(n){return a=n};return mt({q1:function(){return{nextState:"q2",effect:u,stateUpdater:s}},q2:function(){return c?{nextState:"q3",effect:i(c)}:{nextState:"q1",effect:f(a),stateUpdater:l}},q3:function(){return{nextState:"q1",effect:f(a),stateUpdater:l}}},"q1","takeLatest("+St(n)+", "+t.name+")")}function Ct(n,t){for(var e=arguments.length,r=Array(e>2?e-2:0),o=2;e>o;o++)r[o-2]=arguments[o];var c,a={done:!1,value:it(n)},u=function(n){return c=n};return mt({q1:function(){return{nextState:"q2",effect:a,stateUpdater:u}},q2:function(){return{nextState:"q1",effect:(n=c,{done:!1,value:dt.apply(void 0,[t].concat(r,[n]))})};var n}},"q1","takeLeading("+St(n)+", "+t.name+")")}function qt(n,t,e){for(var r=arguments.length,o=Array(r>3?r-3:0),c=3;r>c;c++)o[c-3]=arguments[c];var a,u,f={done:!1,value:yt(t,Z(1))},i={done:!1,value:gt(n)},l=function(n){return a=n},s=function(n){return u=n};return mt({q1:function(){return{nextState:"q2",effect:f,stateUpdater:s}},q2:function(){return{nextState:"q3",effect:{done:!1,value:it(u)},stateUpdater:l}},q3:function(){return{nextState:"q4",effect:(n=a,{done:!1,value:pt.apply(void 0,[e].concat(o,[n]))})};var n},q4:function(){return{nextState:"q2",effect:i}}},"q1","throttle("+St(t)+", "+e.name+")")}function Tt(n,t,e){for(var r=n,o=arguments.length,c=Array(o>3?o-3:0),a=3;o>a;a++)c[a-3]=arguments[a];var u={done:!1,value:dt.apply(void 0,[e].concat(c))},f={done:!1,value:gt(t)};return mt({q1:function(){return{nextState:"q2",effect:u,errorState:"q10"}},q2:function(){return{nextState:bt}},q10:function(n){if(0>=(r-=1))throw n;return{nextState:"q1",effect:f}}},"q1","retry("+e.name+")")}function kt(n,t,e){for(var r=arguments.length,o=Array(r>3?r-3:0),c=3;r>c;c++)o[c-3]=arguments[c];var a,u,f={done:!1,value:it(t)},i={done:!1,value:st({action:it(t),debounce:gt(n)})},l=function(n){return a=n},s=function(n){return u=n};return mt({q1:function(){return{nextState:"q2",effect:f,stateUpdater:l}},q2:function(){return{nextState:"q3",effect:i,stateUpdater:s}},q3:function(){return u.debounce?{nextState:"q1",effect:(t=a,{done:!1,value:pt.apply(void 0,[e].concat(o,[t]))})}:{nextState:"q2",effect:(n=u.action,{done:!1,value:n}),stateUpdater:l};var n,t}},"q1","debounce("+St(t)+", "+e.name+")")}var Ot=Object.freeze({effectTypes:Hn,take:it,takeMaybe:function(){var n=it.apply(void 0,arguments);return n.payload.maybe=!0,n},put:lt,putResolve:function(){var n=lt.apply(void 0,arguments);return n.payload.resolve=!0,n},all:function(n){var t=ut(On,n);return t.combinator=!0,t},race:st,call:dt,apply:function(n,t,e){return void 0===e&&(e=[]),ut(Nn,vt([n,t],e))},cps:function(n){for(var t=arguments.length,e=Array(t>1?t-1:0),r=1;t>r;r++)e[r-1]=arguments[r];return ut(jn,vt(n,e))},fork:pt,spawn:function(n){for(var t=arguments.length,e=Array(t>1?t-1:0),r=1;t>r;r++)e[r-1]=arguments[r];return ft(pt.apply(void 0,[n].concat(e)))},join:function(n){return ut(Rn,n)},cancel:ht,select:function(n){void 0===n&&(n=O);for(var t=arguments.length,e=Array(t>1?t-1:0),r=1;t>r;r++)e[r-1]=arguments[r];return ut(In,{selector:n,args:e})},actionChannel:yt,cancelled:function(){return ut(Pn,{})},flush:function(n){return ut(_n,n)},getContext:function(n){return ut(Dn,n)},setContext:function(n){return ut(Fn,n)},delay:gt,debounce:function(n,t,e){for(var r=arguments.length,o=Array(r>3?r-3:0),c=3;r>c;c++)o[c-3]=arguments[c];return pt.apply(void 0,[kt,n,t,e].concat(o))},retry:function(n,t,e){for(var r=arguments.length,o=Array(r>3?r-3:0),c=3;r>c;c++)o[c-3]=arguments[c];return dt.apply(void 0,[Tt,n,t,e].concat(o))},takeEvery:function(n,t){for(var e=arguments.length,r=Array(e>2?e-2:0),o=2;e>o;o++)r[o-2]=arguments[o];return pt.apply(void 0,[At,n,t].concat(r))},takeLatest:function(n,t){for(var e=arguments.length,r=Array(e>2?e-2:0),o=2;e>o;o++)r[o-2]=arguments[o];return pt.apply(void 0,[xt,n,t].concat(r))},takeLeading:function(n,t){for(var e=arguments.length,r=Array(e>2?e-2:0),o=2;e>o;o++)r[o-2]=arguments[o];return pt.apply(void 0,[Ct,n,t].concat(r))},throttle:function(n,t,e){for(var r=arguments.length,o=Array(r>3?r-3:0),c=3;r>c;c++)o[c-3]=arguments[c];return pt.apply(void 0,[qt,n,t,e].concat(o))}});n.CANCEL=e,n.END=yn,n.SAGA_LOCATION=v,n.buffers=nn,n.channel=En,n.default=function(n){void 0===n&&(n={});var t,e=n,r=e.context,o=void 0===r?{}:r,c=e.channel,a=void 0===c?Sn():c,u=e.sagaMonitor,f=function(n,t){if(null==n)return{};var e,r,o={},c=Object.keys(n);for(r=0;c.length>r;r++)0>t.indexOf(e=c[r])&&(o[e]=n[e]);return o}(e,["context","channel","sagaMonitor"]);function i(n){return t=ct.bind(null,d({},f,{context:o,channel:a,dispatch:n.dispatch,getState:n.getState,sagaMonitor:u})),function(n){return function(t){u&&u.actionDispatched&&u.actionDispatched(t);var e=n(t);return a.put(t),e}}}return i.run=function(){return t.apply(void 0,arguments)},i.setContext=function(n){L(o,n)},i},n.detach=ft,n.effects=Ot,n.eventChannel=function(n,t){void 0===t&&(t=Y());var e,r=!1,o=En(t),c=function(){r||(r=!0,y(e)&&e(),o.close())};return e=w(e=n(function(n){gn(n)?c():o.put(n)})),r&&e(),{take:o.take,flush:o.flush,close:c}},n.isEnd=gn,n.multicastChannel=bn,n.runSaga=ct,n.stdChannel=Sn,Object.defineProperty(n,"__esModule",{value:!0})});
