function n(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";
}(), v = function() {
  return Math.random().toString(36).substring(7).split("").join(".");
}, N = {
  INIT: "@@redux/INIT" + v(),
  REPLACE: "@@redux/REPLACE" + v()
};
function D(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 S(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 (j(e)) return "date";
  if (V(e)) return "error";
  var o = I(e);
  switch (o) {
    case "Symbol":
    case "Promise":
    case "WeakMap":
    case "WeakSet":
    case "Map":
    case "Set":
      return o;
  }
  return t.slice(8, -1).toLowerCase().replace(/\s/g, "");
}
function I(e) {
  return typeof e.constructor == "function" ? e.constructor.name : null;
}
function V(e) {
  return e instanceof Error || typeof e.message == "string" && e.constructor && typeof e.constructor.stackTraceLimit == "number";
}
function j(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 = S(e)), t;
}
function k(e, t, o) {
  var d;
  if (typeof t == "function" && typeof o == "function" || typeof o == "function" && typeof arguments[3] == "function")
    throw new Error(process.env.NODE_ENV === "production" ? n(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 o > "u" && (o = t, t = void 0), typeof o < "u") {
    if (typeof o != "function")
      throw new Error(process.env.NODE_ENV === "production" ? n(1) : "Expected the enhancer to be a function. Instead, received: '" + a(o) + "'");
    return o(k)(e, t);
  }
  if (typeof e != "function")
    throw new Error(process.env.NODE_ENV === "production" ? n(2) : "Expected the root reducer to be a function. Instead, received: '" + a(e) + "'");
  var y = e, l = t, f = [], u = f, c = !1;
  function b() {
    u === f && (u = f.slice());
  }
  function E() {
    if (c)
      throw new Error(process.env.NODE_ENV === "production" ? n(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 l;
  }
  function m(r) {
    if (typeof r != "function")
      throw new Error(process.env.NODE_ENV === "production" ? n(4) : "Expected the listener to be a function. Instead, received: '" + a(r) + "'");
    if (c)
      throw new Error(process.env.NODE_ENV === "production" ? n(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 b(), u.push(r), function() {
      if (i) {
        if (c)
          throw new Error(process.env.NODE_ENV === "production" ? n(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, b();
        var s = u.indexOf(r);
        u.splice(s, 1), f = null;
      }
    };
  }
  function h(r) {
    if (!D(r))
      throw new Error(process.env.NODE_ENV === "production" ? n(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" ? n(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" ? n(9) : "Reducers may not dispatch actions.");
    try {
      c = !0, l = y(l, 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" ? n(10) : "Expected the nextReducer to be a function. Instead, received: '" + a(r));
    y = r, h({
      type: N.REPLACE
    });
  }
  function O() {
    var r, i = m;
    return r = {
      /**
       * The minimal observable subscription method.
       * @param {Object} observer Any object that can be used as an observer.
       * The observer object should have a `next` method.
       * @returns {subscription} An object with an `unsubscribe` method that can
       * be used to unsubscribe the observable from the store, and prevent further
       * emission of values from the observable.
       */
      subscribe: function(s) {
        if (typeof s != "object" || s === null)
          throw new Error(process.env.NODE_ENV === "production" ? n(11) : "Expected the observer to be an object. Instead, received: '" + a(s) + "'");
        function g() {
          s.next && s.next(E());
        }
        g();
        var _ = i(g);
        return {
          unsubscribe: _
        };
      }
    }, r[w] = function() {
      return this;
    }, r;
  }
  return h({
    type: N.INIT
  }), d = {
    dispatch: h,
    subscribe: m,
    getState: E,
    replaceReducer: x
  }, d[w] = O, d;
}
export {
  N as __DO_NOT_USE__ActionTypes,
  k as createStore
};
//# sourceMappingURL=redux.js.map
