import { nd as n, ne as t } from "./ant-design-icons-a81e6d18.js";
var e = function(n3) {
  return "@@redux-saga/" + n3;
}, r = e("CANCEL_PROMISE"), o = e("CHANNEL_END"), a = e("IO"), c = e("MATCH"), u = e("MULTICAST"), i = e("SAGA_ACTION"), f = e("SELF_CANCELLATION"), s = e("TASK"), l = e("TASK_CANCEL"), d = e("TERMINATE"), p = e("LOCATION"), v = function(n3) {
  return null == n3;
}, h = function(n3) {
  return null != n3;
}, g = function(n3) {
  return "function" == typeof n3;
}, E = function(n3) {
  return "string" == typeof n3;
}, y = Array.isArray, m = function(n3) {
  return n3 && !y(n3) && "object" == typeof n3;
}, N = function(n3) {
  return n3 && g(n3.then);
}, b = function(n3) {
  return n3 && g(n3.next) && g(n3.throw);
}, w = function(n3) {
  return n3 && n3[s];
}, k = function(n3) {
  return n3 && g(n3.isEmpty) && g(n3.take) && g(n3.put);
}, O = function n2(t2) {
  return t2 && (E(t2) || A(t2) || g(t2) || y(t2) && t2.every(n2));
}, S = function(n3) {
  return n3 && g(n3.take) && g(n3.close);
}, x = function(n3) {
  return g(n3) && n3.hasOwnProperty("toString");
}, A = function(n3) {
  return Boolean(n3) && "function" == typeof Symbol && n3.constructor === Symbol && n3 !== Symbol.prototype;
}, T = function(n3) {
  return n3 && n3[a];
}, C = 2147483647;
function _(n3, t2) {
  if (void 0 === t2 && (t2 = true), "production" !== process.env.NODE_ENV && n3 > C)
    throw new Error("delay only supports a maximum value of " + C + "ms");
  var e2, o2 = new Promise(function(r2) {
    e2 = setTimeout(r2, Math.min(C, n3), t2);
  });
  return o2[r] = function() {
    clearTimeout(e2);
  }, o2;
}
var D = function(n3) {
  return function() {
    return n3;
  };
}(true), V = function() {
};
"production" !== process.env.NODE_ENV && "undefined" != typeof Proxy && (V = new Proxy(V, { set: function() {
  throw H("There was an attempt to assign a property to internal `noop` function.");
} }));
var j = function(n3) {
  return n3;
}, M = "function" == typeof Symbol && Symbol.asyncIterator ? Symbol.asyncIterator : "@@asyncIterator";
function L(n3, t2, e2) {
  if (!t2(n3))
    throw new Error(e2);
}
var R = function(t2, e2) {
  n(t2, e2), Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(e2).forEach(function(n3) {
    t2[n3] = e2[n3];
  });
};
function I(n3, t2) {
  var e2 = n3.indexOf(t2);
  e2 >= 0 && n3.splice(e2, 1);
}
var q = function(n3) {
  throw n3;
}, P = function(n3) {
  return { value: n3, done: true };
};
function U(n3, t2, e2) {
  void 0 === t2 && (t2 = q), void 0 === e2 && (e2 = "iterator");
  var r2 = { meta: { name: e2 }, next: n3, throw: t2, return: P, isSagaIterator: true };
  return "undefined" != typeof Symbol && (r2[Symbol.iterator] = function() {
    return r2;
  }), r2;
}
function z(n3, t2) {
}
var H = function(n3) {
  return new Error("\n  redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\n  in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\n  Error: " + n3 + "\n");
}, F = function(n3, t2) {
  return (n3 ? n3 + "." : "") + "setContext(props): argument " + t2 + " is not a plain object";
}, K = function(n3) {
  return Array.apply(null, new Array(n3));
}, B = function(n3) {
  return function(t2) {
    return "production" !== process.env.NODE_ENV && L(t2, function(n4) {
      return !Object.isFrozen(n4);
    }, "You can't put (a.k.a. dispatch from saga) frozen actions.\nWe have to define a special non-enumerable property on those actions for scheduling purposes.\nOtherwise you wouldn't be able to communicate properly between sagas & other subscribers (action ordering would become far less predictable).\nIf you are using redux and you care about this behaviour (frozen actions),\nthen you might want to switch to freezing actions in a middleware rather than in action creator.\nExample implementation:\n\nconst freezeActions = store => next => action => next(Object.freeze(action))\n"), n3(Object.defineProperty(t2, i, { value: true }));
  };
}, G = function(n3) {
  return n3 === d;
}, X = function(n3) {
  return n3 === l;
}, J = function(n3) {
  return G(n3) || X(n3);
};
function W(n3, t2) {
  var e2 = Object.keys(n3), r2 = e2.length;
  "production" !== process.env.NODE_ENV && L(r2, function(n4) {
    return n4 > 0;
  }, "createAllStyleChildCallbacks: get an empty array or object");
  var o2, a2 = 0, c2 = y(n3) ? K(r2) : {}, u2 = {};
  return e2.forEach(function(n4) {
    var e3 = function(e4, u3) {
      o2 || (u3 || J(e4) ? (t2.cancel(), t2(e4, u3)) : (c2[n4] = e4, ++a2 === r2 && (o2 = true, t2(c2))));
    };
    e3.cancel = V, u2[n4] = e3;
  }), t2.cancel = function() {
    o2 || (o2 = true, e2.forEach(function(n4) {
      return u2[n4].cancel();
    }));
  }, u2;
}
function Y(n3) {
  return { name: n3.name || "anonymous", location: Q(n3) };
}
function Q(n3) {
  return n3[p];
}
function Z() {
  for (var n3 = arguments.length, t2 = new Array(n3), e2 = 0; e2 < n3; e2++)
    t2[e2] = arguments[e2];
  return 0 === t2.length ? function(n4) {
    return n4;
  } : 1 === t2.length ? t2[0] : t2.reduce(function(n4, t3) {
    return function() {
      return n4(t3.apply(void 0, arguments));
    };
  });
}
var $ = function(n3) {
  return function(n4, t2) {
    void 0 === n4 && (n4 = 10);
    var e2 = new Array(n4), r2 = 0, o2 = 0, a2 = 0, c2 = function(t3) {
      e2[o2] = t3, o2 = (o2 + 1) % n4, r2++;
    }, u2 = function() {
      if (0 != r2) {
        var t3 = e2[a2];
        return e2[a2] = null, r2--, a2 = (a2 + 1) % n4, t3;
      }
    }, i2 = function() {
      for (var n5 = []; r2; )
        n5.push(u2());
      return n5;
    };
    return { isEmpty: function() {
      return 0 == r2;
    }, put: function(u3) {
      var f2;
      if (r2 < n4)
        c2(u3);
      else
        switch (t2) {
          case 1:
            throw new Error("Channel's Buffer overflow!");
          case 3:
            e2[o2] = u3, a2 = o2 = (o2 + 1) % n4;
            break;
          case 4:
            f2 = 2 * n4, e2 = i2(), r2 = e2.length, o2 = e2.length, a2 = 0, e2.length = f2, n4 = f2, c2(u3);
        }
    }, take: u2, flush: i2 };
  }(n3, 4);
}, nn = "TAKE", tn = "CALL", en = "FORK", rn = "CANCEL", on = "SELECT", an = "\n(HINT: if you are getting these errors in tests, consider using createMockTask from @redux-saga/testing-utils)", cn = function(n3, t2) {
  var e2;
  return (e2 = {})[a] = true, e2.combinator = false, e2.type = n3, e2.payload = t2, e2;
}, un = function(n3) {
  return T(n3) && n3.type === en;
};
function fn(n3, t2) {
  if (void 0 === n3 && (n3 = "*"), "production" !== process.env.NODE_ENV && arguments.length && L(arguments[0], h, "take(patternOrChannel): patternOrChannel is undefined"), O(n3))
    return cn(nn, { pattern: n3 });
  if (S(e2 = n3) && e2[u] && h(t2) && O(t2))
    return cn(nn, { channel: n3, pattern: t2 });
  var e2;
  if (S(n3))
    return cn(nn, { channel: n3 });
  if ("production" !== process.env.NODE_ENV)
    throw new Error("take(patternOrChannel): argument " + n3 + " is not valid channel or a valid pattern");
}
function sn(n3, t2) {
  return "production" !== process.env.NODE_ENV && (arguments.length > 1 ? (L(n3, h, "put(channel, action): argument channel is undefined"), L(n3, S, "put(channel, action): argument " + n3 + " is not a valid channel"), L(t2, h, "put(channel, action): argument action is undefined")) : L(n3, h, "put(action): argument action is undefined")), v(t2) && (t2 = n3, n3 = void 0), cn("PUT", { channel: n3, action: t2 });
}
function ln(n3) {
  var t2 = cn("ALL", n3);
  return t2.combinator = true, t2;
}
var dn = function(n3, t2) {
  if (L(t2, h, n3 + ": argument fn is undefined or null"), !g(t2)) {
    var e2, r2 = null;
    if (y(t2))
      r2 = t2[0], L(e2 = t2[1], h, n3 + ": argument of type [context, fn] has undefined or null `fn`");
    else {
      if (!m(t2))
        return void L(t2, g, n3 + ": argument fn is not function");
      r2 = t2.context, L(e2 = t2.fn, h, n3 + ": argument of type {context, fn} has undefined or null `fn`");
    }
    r2 && E(e2) ? L(r2[e2], g, n3 + ': context arguments has no such method - "' + e2 + '"') : L(e2, g, n3 + ": unpacked fn argument (from [context, fn] or {context, fn}) is not a function");
  }
};
function pn(n3, t2) {
  var e2, r2 = null;
  return g(n3) ? e2 = n3 : (y(n3) ? (r2 = n3[0], e2 = n3[1]) : (r2 = n3.context, e2 = n3.fn), r2 && E(e2) && g(r2[e2]) && (e2 = r2[e2])), { context: r2, fn: e2, args: t2 };
}
var vn = function(n3) {
  return n3 !== Nn;
};
function hn(n3) {
  for (var t2 = arguments.length, e2 = new Array(t2 > 1 ? t2 - 1 : 0), r2 = 1; r2 < t2; r2++)
    e2[r2 - 1] = arguments[r2];
  if ("production" !== process.env.NODE_ENV) {
    var o2 = "number" == typeof e2[0] ? e2[0] : "ms";
    L(n3, vn, "instead of writing `yield call(delay, " + o2 + ")` where delay is an effect from `redux-saga/effects` you should write `yield delay(" + o2 + ")`"), dn("call", n3);
  }
  return cn(tn, pn(n3, e2));
}
function gn(n3) {
  "production" !== process.env.NODE_ENV && (dn("fork", n3), L(n3, function(n4) {
    return !T(n4);
  }, "fork: argument must not be an effect"));
  for (var t2 = arguments.length, e2 = new Array(t2 > 1 ? t2 - 1 : 0), r2 = 1; r2 < t2; r2++)
    e2[r2 - 1] = arguments[r2];
  return cn(en, pn(n3, e2));
}
function En(t2) {
  "production" !== process.env.NODE_ENV && dn("spawn", t2);
  for (var e2 = arguments.length, r2 = new Array(e2 > 1 ? e2 - 1 : 0), o2 = 1; o2 < e2; o2++)
    r2[o2 - 1] = arguments[o2];
  return a2 = gn.apply(void 0, [t2].concat(r2)), "production" !== process.env.NODE_ENV && L(a2, un, "detach(eff): argument must be a fork effect"), cn(en, n({}, a2.payload, { detached: true }));
  var a2;
}
function yn(n3) {
  if (void 0 === n3 && (n3 = f), "production" !== process.env.NODE_ENV) {
    if (arguments.length > 1)
      throw new Error("cancel(...tasks) is not supported any more. Please use cancel([...tasks]) to cancel multiple tasks.");
    y(n3) ? n3.forEach(function(n4) {
      L(n4, w, "cancel([...tasks]): argument " + n4 + " is not a valid Task object " + an);
    }) : n3 !== f && h(n3) && L(n3, w, "cancel(task): argument " + n3 + " is not a valid Task object " + an);
  }
  return cn(rn, n3);
}
function mn(n3) {
  void 0 === n3 && (n3 = j);
  for (var t2 = arguments.length, e2 = new Array(t2 > 1 ? t2 - 1 : 0), r2 = 1; r2 < t2; r2++)
    e2[r2 - 1] = arguments[r2];
  return "production" !== process.env.NODE_ENV && arguments.length && (L(arguments[0], h, "select(selector, [...]): argument selector is undefined"), L(n3, g, "select(selector, [...]): argument " + n3 + " is not a function")), cn(on, { selector: n3, args: e2 });
}
var Nn = hn.bind(null, _);
var bn = [], wn = 0;
function kn(n3) {
  try {
    xn(), n3();
  } finally {
    An();
  }
}
function On(n3) {
  bn.push(n3), wn || (xn(), Tn());
}
function Sn(n3) {
  try {
    return xn(), n3();
  } finally {
    Tn();
  }
}
function xn() {
  wn++;
}
function An() {
  wn--;
}
function Tn() {
  var n3;
  for (An(); !wn && void 0 !== (n3 = bn.shift()); )
    kn(n3);
}
var Cn = function(n3) {
  return function(t2) {
    return n3.some(function(n4) {
      return Mn(n4)(t2);
    });
  };
}, _n = function(n3) {
  return function(t2) {
    return n3(t2);
  };
}, Dn = function(n3) {
  return function(t2) {
    return t2.type === String(n3);
  };
}, Vn = function(n3) {
  return function(t2) {
    return t2.type === n3;
  };
}, jn = function() {
  return D;
};
function Mn(n3) {
  var t2 = "*" === n3 ? jn : E(n3) ? Dn : y(n3) ? Cn : x(n3) ? Dn : g(n3) ? _n : A(n3) ? Vn : null;
  if (null === t2)
    throw new Error("invalid pattern: " + n3);
  return t2(n3);
}
var Ln = { type: o }, Rn = function(n3) {
  return n3 && n3.type === o;
}, In = "Cannot have a closed channel with pending takers", qn = "Saga or channel was provided with an undefined action\nHints:\n  - check that your Action Creator returns a non-undefined value\n  - if the Saga was started using runSaga, check that your subscribe source provides the action to its listeners";
function Pn(n3) {
  void 0 === n3 && (n3 = $());
  var t2 = false, e2 = [];
  function r2() {
    if (t2 && e2.length)
      throw H(In);
    if (e2.length && !n3.isEmpty())
      throw H("Cannot have pending takers with non empty buffer");
  }
  return "production" !== process.env.NODE_ENV && L(n3, k, "invalid buffer passed to channel factory function"), { take: function(o2) {
    "production" !== process.env.NODE_ENV && (r2(), L(o2, g, "channel.take's callback must be a function")), t2 && n3.isEmpty() ? o2(Ln) : n3.isEmpty() ? (e2.push(o2), o2.cancel = function() {
      I(e2, o2);
    }) : o2(n3.take());
  }, put: function(o2) {
    if ("production" !== process.env.NODE_ENV && (r2(), L(o2, h, qn)), !t2) {
      if (0 === e2.length)
        return n3.put(o2);
      e2.shift()(o2);
    }
  }, flush: function(e3) {
    "production" !== process.env.NODE_ENV && (r2(), L(e3, g, "channel.flush' callback must be a function")), t2 && n3.isEmpty() ? e3(Ln) : e3(n3.flush());
  }, close: function() {
    if ("production" !== process.env.NODE_ENV && r2(), !t2) {
      t2 = true;
      var n4 = e2;
      e2 = [];
      for (var o2 = 0, a2 = n4.length; o2 < a2; o2++) {
        (0, n4[o2])(Ln);
      }
    }
  } };
}
function Un() {
  var n3 = function() {
    var n4, t3 = false, e2 = [], r2 = e2;
    function o2() {
      if (t3 && r2.length)
        throw H(In);
    }
    var a2 = function() {
      r2 === e2 && (r2 = e2.slice());
    }, i2 = function() {
      "production" !== process.env.NODE_ENV && o2(), t3 = true;
      var n5 = e2 = r2;
      r2 = [], n5.forEach(function(n6) {
        n6(Ln);
      });
    };
    return (n4 = {})[u] = true, n4.put = function(n5) {
      if ("production" !== process.env.NODE_ENV && (o2(), L(n5, h, qn)), !t3)
        if (Rn(n5))
          i2();
        else
          for (var a3 = e2 = r2, u2 = 0, f2 = a3.length; u2 < f2; u2++) {
            var s2 = a3[u2];
            s2[c](n5) && (s2.cancel(), s2(n5));
          }
    }, n4.take = function(n5, e3) {
      var u2, i3;
      void 0 === e3 && (e3 = jn), "production" !== process.env.NODE_ENV && o2(), t3 ? n5(Ln) : (n5[c] = e3, a2(), r2.push(n5), n5.cancel = (u2 = function() {
        a2(), I(r2, n5);
      }, i3 = false, function() {
        i3 || (i3 = true, u2());
      }));
    }, n4.close = i2, n4;
  }(), t2 = n3.put;
  return n3.put = function(n4) {
    n4[i] ? t2(n4) : On(function() {
      t2(n4);
    });
  }, n3;
}
function zn(n3, t2) {
  var e2 = n3[r];
  g(e2) && (t2.cancel = e2), n3.then(t2, function(n4) {
    t2(n4, true);
  });
}
var Hn, Fn = 0, Kn = function() {
  return ++Fn;
};
function Bn(n3) {
  n3.isRunning() && n3.cancel();
}
var Gn = ((Hn = {})[nn] = function(n3, t2, e2) {
  var r2 = t2.channel, o2 = void 0 === r2 ? n3.channel : r2, a2 = t2.pattern, c2 = t2.maybe, u2 = function(n4) {
    n4 instanceof Error ? e2(n4, true) : !Rn(n4) || c2 ? e2(n4) : e2(d);
  };
  try {
    o2.take(u2, h(a2) ? Mn(a2) : null);
  } catch (n4) {
    return void e2(n4, true);
  }
  e2.cancel = u2.cancel;
}, Hn.PUT = function(n3, t2, e2) {
  var r2 = t2.channel, o2 = t2.action, a2 = t2.resolve;
  On(function() {
    var t3;
    try {
      t3 = (r2 ? r2.put : n3.dispatch)(o2);
    } catch (n4) {
      return void e2(n4, true);
    }
    a2 && N(t3) ? zn(t3, e2) : e2(t3);
  });
}, Hn.ALL = function(n3, t2, e2, r2) {
  var o2 = r2.digestEffect, a2 = Fn, c2 = Object.keys(t2);
  if (0 !== c2.length) {
    var u2 = W(t2, e2);
    c2.forEach(function(n4) {
      o2(t2[n4], a2, u2[n4], n4);
    });
  } else
    e2(y(t2) ? [] : {});
}, Hn.RACE = function(n3, t2, e2, r2) {
  var o2 = r2.digestEffect, a2 = Fn, c2 = Object.keys(t2), u2 = y(t2) ? K(c2.length) : {}, i2 = {}, f2 = false;
  c2.forEach(function(n4) {
    var t3 = function(t4, r3) {
      f2 || (r3 || J(t4) ? (e2.cancel(), e2(t4, r3)) : (e2.cancel(), f2 = true, u2[n4] = t4, e2(u2)));
    };
    t3.cancel = V, i2[n4] = t3;
  }), e2.cancel = function() {
    f2 || (f2 = true, c2.forEach(function(n4) {
      return i2[n4].cancel();
    }));
  }, c2.forEach(function(n4) {
    f2 || o2(t2[n4], a2, i2[n4], n4);
  });
}, Hn[tn] = function(n3, t2, e2, r2) {
  var o2 = t2.context, a2 = t2.fn, c2 = t2.args, u2 = r2.task;
  try {
    var i2 = a2.apply(o2, c2);
    if (N(i2))
      return void zn(i2, e2);
    if (b(i2))
      return void rt(n3, i2, u2.context, Fn, Y(a2), false, e2);
    e2(i2);
  } catch (n4) {
    e2(n4, true);
  }
}, Hn.CPS = function(n3, t2, e2) {
  var r2 = t2.context, o2 = t2.fn, a2 = t2.args;
  try {
    var c2 = function(n4, t3) {
      v(n4) ? e2(t3) : e2(n4, true);
    };
    o2.apply(r2, a2.concat(c2)), c2.cancel && (e2.cancel = c2.cancel);
  } catch (n4) {
    e2(n4, true);
  }
}, Hn[en] = function(n3, t2, e2, r2) {
  var o2 = t2.context, a2 = t2.fn, c2 = t2.args, u2 = t2.detached, i2 = r2.task, f2 = function(n4) {
    var t3 = n4.context, e3 = n4.fn, r3 = n4.args;
    try {
      var o3 = e3.apply(t3, r3);
      if (b(o3))
        return o3;
      var a3 = false;
      return U(function(n5) {
        return a3 ? { value: n5, done: true } : (a3 = true, { value: o3, done: !N(o3) });
      });
    } catch (n5) {
      return U(function() {
        throw n5;
      });
    }
  }({ context: o2, fn: a2, args: c2 }), s2 = function(n4, t3) {
    return n4.isSagaIterator ? { name: n4.meta.name } : Y(t3);
  }(f2, a2);
  Sn(function() {
    var t3 = rt(n3, f2, i2.context, Fn, s2, u2, void 0);
    u2 ? e2(t3) : t3.isRunning() ? (i2.queue.addTask(t3), e2(t3)) : t3.isAborted() ? i2.queue.abort(t3.error()) : e2(t3);
  });
}, Hn.JOIN = function(n3, t2, e2, r2) {
  var o2 = r2.task, a2 = function(n4, t3) {
    if (n4.isRunning()) {
      var e3 = { task: o2, cb: t3 };
      t3.cancel = function() {
        n4.isRunning() && I(n4.joiners, e3);
      }, n4.joiners.push(e3);
    } else
      n4.isAborted() ? t3(n4.error(), true) : t3(n4.result());
  };
  if (y(t2)) {
    if (0 === t2.length)
      return void e2([]);
    var c2 = W(t2, e2);
    t2.forEach(function(n4, t3) {
      a2(n4, c2[t3]);
    });
  } else
    a2(t2, e2);
}, Hn[rn] = function(n3, t2, e2, r2) {
  var o2 = r2.task;
  t2 === f ? Bn(o2) : y(t2) ? t2.forEach(Bn) : Bn(t2), e2();
}, Hn[on] = function(n3, t2, e2) {
  var r2 = t2.selector, o2 = t2.args;
  try {
    e2(r2.apply(void 0, [n3.getState()].concat(o2)));
  } catch (n4) {
    e2(n4, true);
  }
}, Hn.ACTION_CHANNEL = function(n3, t2, e2) {
  var r2 = t2.pattern, o2 = Pn(t2.buffer), a2 = Mn(r2), c2 = function t3(e3) {
    Rn(e3) || n3.channel.take(t3, a2), o2.put(e3);
  }, u2 = o2.close;
  o2.close = function() {
    c2.cancel(), u2();
  }, n3.channel.take(c2, a2), e2(o2);
}, Hn.CANCELLED = function(n3, t2, e2, r2) {
  e2(r2.task.isCancelled());
}, Hn.FLUSH = function(n3, t2, e2) {
  t2.flush(e2);
}, Hn.GET_CONTEXT = function(n3, t2, e2, r2) {
  e2(r2.task.context[t2]);
}, Hn.SET_CONTEXT = function(n3, t2, e2, r2) {
  var o2 = r2.task;
  R(o2.context, t2), e2();
}, Hn);
function Xn(n3, t2) {
  return n3 + "?" + t2;
}
function Jn(n3) {
  var t2 = n3.name, e2 = n3.location;
  return e2 ? t2 + "  " + Xn(e2.fileName, e2.lineNumber) : t2;
}
function Wn(n3) {
  var t2, e2, r2, o2 = (t2 = function(n4) {
    return n4.cancelledTasks;
  }, e2 = n3, (r2 = []).concat.apply(r2, e2.map(t2)));
  return o2.length ? ["Tasks cancelled due to error:"].concat(o2).join("\n") : "";
}
var Yn = null, Qn = [], Zn = function(n3) {
  n3.crashedEffect = Yn, Qn.push(n3);
}, $n = function() {
  Yn = null, Qn.length = 0;
}, nt = function(n3) {
  Yn = n3;
}, tt = function() {
  var n3 = Qn[0], t2 = Qn.slice(1), e2 = n3.crashedEffect ? function(n4) {
    var t3 = Q(n4);
    return t3 ? t3.code + "  " + Xn(t3.fileName, t3.lineNumber) : "";
  }(n3.crashedEffect) : null;
  return ["The above error occurred in task " + Jn(n3.meta) + (e2 ? " \n when executing effect " + e2 : "")].concat(t2.map(function(n4) {
    return "    created by " + Jn(n4.meta);
  }), [Wn(Qn)]).join("\n");
};
function et(n3, t2, e2, r2, o2, a2, c2) {
  var u2;
  void 0 === c2 && (c2 = V);
  var i2, f2, d2 = 0, p2 = null, v2 = [], h2 = Object.create(e2), g2 = function(n4, t3, e3) {
    var r3, o3 = [], a3 = false;
    function c3(n5) {
      t3(), i3(), e3(n5, true);
    }
    function u3(t4) {
      o3.push(t4), t4.cont = function(u4, i4) {
        a3 || (I(o3, t4), t4.cont = V, i4 ? c3(u4) : (t4 === n4 && (r3 = u4), o3.length || (a3 = true, e3(r3))));
      };
    }
    function i3() {
      a3 || (a3 = true, o3.forEach(function(n5) {
        n5.cont = V, n5.cancel();
      }), o3 = []);
    }
    return u3(n4), { addTask: u3, cancelAll: i3, abort: c3, getTasks: function() {
      return o3;
    } };
  }(t2, function() {
    v2.push.apply(v2, g2.getTasks().map(function(n4) {
      return n4.meta.name;
    }));
  }, E2);
  function E2(t3, e3) {
    if (e3) {
      if (d2 = 2, Zn({ meta: o2, cancelledTasks: v2 }), y2.isRoot) {
        var r3 = tt();
        $n(), n3.onError(t3, { sagaStack: r3 });
      }
      f2 = t3, p2 && p2.reject(t3);
    } else
      t3 === l ? d2 = 1 : 1 !== d2 && (d2 = 3), i2 = t3, p2 && p2.resolve(t3);
    y2.cont(t3, e3), y2.joiners.forEach(function(n4) {
      n4.cb(t3, e3);
    }), y2.joiners = null;
  }
  var y2 = ((u2 = {})[s] = true, u2.id = r2, u2.meta = o2, u2.isRoot = a2, u2.context = h2, u2.joiners = [], u2.queue = g2, u2.cancel = function() {
    0 === d2 && (d2 = 1, g2.cancelAll(), E2(l, false));
  }, u2.cont = c2, u2.end = E2, u2.setContext = function(n4) {
    "production" !== process.env.NODE_ENV && L(n4, m, F("task", n4)), R(h2, n4);
  }, u2.toPromise = function() {
    return p2 || ((n4 = {}).promise = new Promise(function(t3, e3) {
      n4.resolve = t3, n4.reject = e3;
    }), p2 = n4, 2 === d2 ? p2.reject(f2) : 0 !== d2 && p2.resolve(i2)), p2.promise;
    var n4;
  }, u2.isRunning = function() {
    return 0 === d2;
  }, u2.isCancelled = function() {
    return 1 === d2 || 0 === d2 && 1 === t2.status;
  }, u2.isAborted = function() {
    return 2 === d2;
  }, u2.result = function() {
    return i2;
  }, u2.error = function() {
    return f2;
  }, u2);
  return y2;
}
function rt(n3, t2, e2, r2, o2, c2, u2) {
  if ("production" !== process.env.NODE_ENV && t2[M])
    throw new Error("redux-saga doesn't support async generators, please use only regular ones");
  var i2 = n3.finalizeRunEffect(function(t3, e3, r3) {
    if (N(t3))
      zn(t3, r3);
    else if (b(t3))
      rt(n3, t3, s2.context, e3, o2, false, r3);
    else if (t3 && t3[a]) {
      (0, Gn[t3.type])(n3, t3.payload, r3, d2);
    } else
      r3(t3);
  });
  p2.cancel = V;
  var f2 = { meta: o2, cancel: function() {
    0 === f2.status && (f2.status = 1, p2(l));
  }, status: 0 }, s2 = et(n3, f2, e2, r2, o2, c2, u2), d2 = { task: s2, digestEffect: v2 };
  return u2 && (u2.cancel = s2.cancel), p2(), s2;
  function p2(n4, e3) {
    try {
      var o3;
      e3 ? (o3 = t2.throw(n4), $n()) : X(n4) ? (f2.status = 1, p2.cancel(), o3 = g(t2.return) ? t2.return(l) : { done: true, value: l }) : o3 = G(n4) ? g(t2.return) ? t2.return() : { done: true } : t2.next(n4), o3.done ? (1 !== f2.status && (f2.status = 3), f2.cont(o3.value)) : v2(o3.value, r2, p2);
    } catch (n5) {
      if (1 === f2.status)
        throw n5;
      f2.status = 2, f2.cont(n5, true);
    }
  }
  function v2(t3, e3, r3, o3) {
    void 0 === o3 && (o3 = "");
    var a2, c3 = Kn();
    function u3(e4, o4) {
      a2 || (a2 = true, r3.cancel = V, n3.sagaMonitor && (o4 ? n3.sagaMonitor.effectRejected(c3, e4) : n3.sagaMonitor.effectResolved(c3, e4)), o4 && nt(t3), r3(e4, o4));
    }
    n3.sagaMonitor && n3.sagaMonitor.effectTriggered({ effectId: c3, parentEffectId: e3, label: o3, effect: t3 }), u3.cancel = V, r3.cancel = function() {
      a2 || (a2 = true, u3.cancel(), u3.cancel = V, n3.sagaMonitor && n3.sagaMonitor.effectCancelled(c3));
    }, i2(t3, c3, u3);
  }
}
var ot = "runSaga(options, saga, ...args): saga argument must be a Generator function!";
function at(n3, t2) {
  var e2 = n3.channel, r2 = void 0 === e2 ? Un() : e2, o2 = n3.dispatch, a2 = n3.getState, c2 = n3.context, u2 = void 0 === c2 ? {} : c2, i2 = n3.sagaMonitor, f2 = n3.effectMiddlewares, s2 = n3.onError, l2 = void 0 === s2 ? z : s2;
  "production" !== process.env.NODE_ENV && L(t2, g, ot);
  for (var d2 = arguments.length, p2 = new Array(d2 > 2 ? d2 - 2 : 0), v2 = 2; v2 < d2; v2++)
    p2[v2 - 2] = arguments[v2];
  var E2 = t2.apply(void 0, p2);
  "production" !== process.env.NODE_ENV && L(E2, b, ot);
  var m2, N2 = Kn();
  if (i2 && (i2.rootSagaStarted = i2.rootSagaStarted || V, i2.effectTriggered = i2.effectTriggered || V, i2.effectResolved = i2.effectResolved || V, i2.effectRejected = i2.effectRejected || V, i2.effectCancelled = i2.effectCancelled || V, i2.actionDispatched = i2.actionDispatched || V, i2.rootSagaStarted({ effectId: N2, saga: t2, args: p2 })), "production" !== process.env.NODE_ENV) {
    if (h(o2) && L(o2, g, "dispatch must be a function"), h(a2) && L(a2, g, "getState must be a function"), h(f2)) {
      var w2 = "effectMiddlewares must be an array of functions";
      L(f2, y, w2), f2.forEach(function(n4) {
        return L(n4, g, w2);
      });
    }
    L(l2, g, "onError passed to the redux-saga is not a function!");
  }
  if (f2) {
    var k2 = Z.apply(void 0, f2);
    m2 = function(n4) {
      return function(t3, e3, r3) {
        return k2(function(t4) {
          return n4(t4, e3, r3);
        })(t3);
      };
    };
  } else
    m2 = j;
  var O2 = { channel: r2, dispatch: B(o2), getState: a2, sagaMonitor: i2, onError: l2, finalizeRunEffect: m2 };
  return Sn(function() {
    var n4 = rt(O2, E2, u2, N2, Y(t2), true, void 0);
    return i2 && i2.effectResolved(N2, n4), n4;
  });
}
function ct(e2) {
  var r2, o2 = void 0 === e2 ? {} : e2, a2 = o2.context, c2 = void 0 === a2 ? {} : a2, u2 = o2.channel, i2 = void 0 === u2 ? Un() : u2, f2 = o2.sagaMonitor, s2 = t(o2, ["context", "channel", "sagaMonitor"]);
  function l2(t2) {
    var e3 = t2.getState, o3 = t2.dispatch;
    return r2 = at.bind(null, n({}, s2, { context: c2, channel: i2, dispatch: o3, getState: e3, sagaMonitor: f2 })), function(n3) {
      return function(t3) {
        f2 && f2.actionDispatched && f2.actionDispatched(t3);
        var e4 = n3(t3);
        return i2.put(t3), e4;
      };
    };
  }
  return "production" !== process.env.NODE_ENV && L(i2, S, "options.channel passed to the Saga middleware is not a channel"), l2.run = function() {
    if ("production" !== process.env.NODE_ENV && !r2)
      throw new Error("Before running a Saga, you must mount the Saga middleware on the Store using applyMiddleware");
    return r2.apply(void 0, arguments);
  }, l2.setContext = function(n3) {
    "production" !== process.env.NODE_ENV && L(n3, m, F("sagaMiddleware", n3)), R(c2, n3);
  }, l2;
}
var ut = function(n3) {
  return { done: true, value: n3 };
}, it = {};
function ft(n3) {
  return S(n3) ? "channel" : x(n3) ? String(n3) : g(n3) ? n3.name : String(n3);
}
function st(n3, t2, e2) {
  var r2, o2, a2, c2 = t2;
  function u2(t3, e3) {
    if (c2 === it)
      return ut(t3);
    if (e3 && !o2)
      throw c2 = it, e3;
    r2 && r2(t3);
    var u3 = e3 ? n3[o2](e3) : n3[c2]();
    return c2 = u3.nextState, a2 = u3.effect, r2 = u3.stateUpdater, o2 = u3.errorState, c2 === it ? ut(t3) : a2;
  }
  return U(u2, function(n4) {
    return u2(null, n4);
  }, e2);
}
function lt(n3, t2) {
  for (var e2 = arguments.length, r2 = new Array(e2 > 2 ? e2 - 2 : 0), o2 = 2; o2 < e2; o2++)
    r2[o2 - 2] = arguments[o2];
  var a2, c2 = { done: false, value: fn(n3) }, u2 = function(n4) {
    return a2 = n4;
  };
  return st({ q1: function() {
    return { nextState: "q2", effect: c2, stateUpdater: u2 };
  }, q2: function() {
    return { nextState: "q1", effect: (n4 = a2, { done: false, value: gn.apply(void 0, [t2].concat(r2, [n4])) }) };
    var n4;
  } }, "q1", "takeEvery(" + ft(n3) + ", " + t2.name + ")");
}
function dt(n3, t2) {
  for (var e2 = arguments.length, r2 = new Array(e2 > 2 ? e2 - 2 : 0), o2 = 2; o2 < e2; o2++)
    r2[o2 - 2] = arguments[o2];
  var a2, c2, u2 = { done: false, value: fn(n3) }, i2 = function(n4) {
    return { done: false, value: gn.apply(void 0, [t2].concat(r2, [n4])) };
  }, f2 = function(n4) {
    return { done: false, value: yn(n4) };
  }, s2 = function(n4) {
    return a2 = n4;
  }, l2 = function(n4) {
    return c2 = n4;
  };
  return st({ q1: function() {
    return { nextState: "q2", effect: u2, stateUpdater: l2 };
  }, q2: function() {
    return a2 ? { nextState: "q3", effect: f2(a2) } : { nextState: "q1", effect: i2(c2), stateUpdater: s2 };
  }, q3: function() {
    return { nextState: "q1", effect: i2(c2), stateUpdater: s2 };
  } }, "q1", "takeLatest(" + ft(n3) + ", " + t2.name + ")");
}
var pt = function(n3, t2, e2) {
  L(t2, h, n3.name + " requires a pattern or channel"), L(e2, h, n3.name + " requires a saga parameter");
};
function vt(n3, t2) {
  "production" !== process.env.NODE_ENV && pt(vt, n3, t2);
  for (var e2 = arguments.length, r2 = new Array(e2 > 2 ? e2 - 2 : 0), o2 = 2; o2 < e2; o2++)
    r2[o2 - 2] = arguments[o2];
  return gn.apply(void 0, [lt, n3, t2].concat(r2));
}
function ht(n3, t2) {
  "production" !== process.env.NODE_ENV && pt(ht, n3, t2);
  for (var e2 = arguments.length, r2 = new Array(e2 > 2 ? e2 - 2 : 0), o2 = 2; o2 < e2; o2++)
    r2[o2 - 2] = arguments[o2];
  return gn.apply(void 0, [dt, n3, t2].concat(r2));
}
export {
  ln as a,
  vt as b,
  hn as c,
  Nn as d,
  En as e,
  ct as f,
  sn as p,
  mn as s,
  ht as t
};
