function o(e) {
  return "Minified Redux error #" + e + "; visit https://redux.js.org/Errors?code=" + e + " for the full message or use the non-minified dev environment for full errors. ";
}
var w = function() {
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
}(), y = function() {
  return Math.random().toString(36).substring(7).split("").join(".");
}, v = {
  INIT: "@@redux/INIT" + y(),
  REPLACE: "@@redux/REPLACE" + y(),
  PROBE_UNKNOWN_ACTION: function() {
    return "@@redux/PROBE_UNKNOWN_ACTION" + y();
  }
};
function S(e) {
  if (typeof e != "object" || e === null)
    return !1;
  for (var t = e; Object.getPrototypeOf(t) !== null; )
    t = Object.getPrototypeOf(t);
  return Object.getPrototypeOf(e) === t;
}
function I(e) {
  if (e === void 0)
    return "undefined";
  if (e === null)
    return "null";
  var t = typeof e;
  switch (t) {
    case "boolean":
    case "string":
    case "number":
    case "symbol":
    case "function":
      return t;
  }
  if (Array.isArray(e))
    return "array";
  if (k(e))
    return "date";
  if (j(e))
    return "error";
  var n = V(e);
  switch (n) {
    case "Symbol":
    case "Promise":
    case "WeakMap":
    case "WeakSet":
    case "Map":
    case "Set":
      return n;
  }
  return t.slice(8, -1).toLowerCase().replace(/\s/g, "");
}
function V(e) {
  return typeof e.constructor == "function" ? e.constructor.name : null;
}
function j(e) {
  return e instanceof Error || typeof e.message == "string" && e.constructor && typeof e.constructor.stackTraceLimit == "number";
}
function k(e) {
  return e instanceof Date ? !0 : typeof e.toDateString == "function" && typeof e.getDate == "function" && typeof e.setDate == "function";
}
function a(e) {
  var t = typeof e;
  return process.env.NODE_ENV !== "production" && (t = I(e)), t;
}
function P(e, t, n) {
  var d;
  if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function")
    throw new Error(process.env.NODE_ENV === "production" ? o(0) : "It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");
  if (typeof t == "function" && typeof n > "u" && (n = t, t = void 0), typeof n < "u") {
    if (typeof n != "function")
      throw new Error(process.env.NODE_ENV === "production" ? o(1) : "Expected the enhancer to be a function. Instead, received: '" + a(n) + "'");
    return n(P)(e, t);
  }
  if (typeof e != "function")
    throw new Error(process.env.NODE_ENV === "production" ? o(2) : "Expected the root reducer to be a function. Instead, received: '" + a(e) + "'");
  var b = e, h = t, f = [], u = f, c = !1;
  function E() {
    u === f && (u = f.slice());
  }
  function m() {
    if (c)
      throw new Error(process.env.NODE_ENV === "production" ? o(3) : "You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");
    return h;
  }
  function N(r) {
    if (typeof r != "function")
      throw new Error(process.env.NODE_ENV === "production" ? o(4) : "Expected the listener to be a function. Instead, received: '" + a(r) + "'");
    if (c)
      throw new Error(process.env.NODE_ENV === "production" ? o(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
    var i = !0;
    return E(), u.push(r), function() {
      if (!!i) {
        if (c)
          throw new Error(process.env.NODE_ENV === "production" ? o(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
        i = !1, E();
        var s = u.indexOf(r);
        u.splice(s, 1), f = null;
      }
    };
  }
  function l(r) {
    if (!S(r))
      throw new Error(process.env.NODE_ENV === "production" ? o(7) : "Actions must be plain objects. Instead, the actual type was: '" + a(r) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
    if (typeof r.type > "u")
      throw new Error(process.env.NODE_ENV === "production" ? o(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
    if (c)
      throw new Error(process.env.NODE_ENV === "production" ? o(9) : "Reducers may not dispatch actions.");
    try {
      c = !0, h = b(h, r);
    } finally {
      c = !1;
    }
    for (var i = f = u, p = 0; p < i.length; p++) {
      var s = i[p];
      s();
    }
    return r;
  }
  function x(r) {
    if (typeof r != "function")
      throw new Error(process.env.NODE_ENV === "production" ? o(10) : "Expected the nextReducer to be a function. Instead, received: '" + a(r));
    b = r, l({
      type: v.REPLACE
    });
  }
  function _() {
    var r, i = N;
    return r = {
      subscribe: function(s) {
        if (typeof s != "object" || s === null)
          throw new Error(process.env.NODE_ENV === "production" ? o(11) : "Expected the observer to be an object. Instead, received: '" + a(s) + "'");
        function g() {
          s.next && s.next(m());
        }
        g();
        var D = i(g);
        return {
          unsubscribe: D
        };
      }
    }, r[w] = function() {
      return this;
    }, r;
  }
  return l({
    type: v.INIT
  }), d = {
    dispatch: l,
    subscribe: N,
    getState: m,
    replaceReducer: x
  }, d[w] = _, d;
}
function T(e) {
  typeof console < "u" && typeof console.error == "function" && console.error(e);
  try {
    throw new Error(e);
  } catch {
  }
}
function O() {
}
process.env.NODE_ENV !== "production" && typeof O.name == "string" && O.name !== "isCrushed" && T('You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) to ensure you have the correct code for your production build.');
export {
  v as __DO_NOT_USE__ActionTypes,
  P as createStore
};
//# sourceMappingURL=redux.es.js.map
