"use strict";Liferay.Loader.define("portal-workflow-kaleo-designer-web$redux@4.1.2/lib/redux",["module","exports","require","@portal-workflow-kaleo-designer-web$babel/runtime/helpers/objectSpread2"],(function(r,e,t){window;{Object.defineProperty(e,"__esModule",{value:!0});var o=function _interopDefaultLegacy(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}(t("@portal-workflow-kaleo-designer-web$babel/runtime/helpers/objectSpread2"));function formatProdErrorMessage(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var n="function"==typeof Symbol&&Symbol.observable||"@@observable",i=function randomString(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+i(),REPLACE:"@@redux/REPLACE"+i(),PROBE_UNKNOWN_ACTION:function PROBE_UNKNOWN_ACTION(){return"@@redux/PROBE_UNKNOWN_ACTION"+i()}};function isPlainObject(r){if("object"!=typeof r||null===r)return!1;for(var e=r;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function bindActionCreator(r,e){return function(){return e(r.apply(this,arguments))}}function compose(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return 0===e.length?function(r){return r}:1===e.length?e[0]:e.reduce((function(r,e){return function(){return r(e.apply(void 0,arguments))}}))}e.__DO_NOT_USE__ActionTypes=a,e.applyMiddleware=function applyMiddleware(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(r){return function(){var t=r.apply(void 0,arguments),n=function dispatch(){throw new Error(formatProdErrorMessage(15))},i={getState:t.getState,dispatch:function dispatch(){return n.apply(void 0,arguments)}},a=e.map((function(r){return r(i)}));return n=compose.apply(void 0,a)(t.dispatch),o.default(o.default({},t),{},{dispatch:n})}}},e.bindActionCreators=function bindActionCreators(r,e){if("function"==typeof r)return bindActionCreator(r,e);if("object"!=typeof r||null===r)throw new Error(formatProdErrorMessage(16));var t={};for(var o in r){var n=r[o];"function"==typeof n&&(t[o]=bindActionCreator(n,e))}return t},e.combineReducers=function combineReducers(r){for(var e=Object.keys(r),t={},o=0;o<e.length;o++){var n=e[o];"function"==typeof r[n]&&(t[n]=r[n])}var i,f=Object.keys(t);try{!function assertReducerShape(r){Object.keys(r).forEach((function(e){var t=r[e];if(void 0===t(void 0,{type:a.INIT}))throw new Error(formatProdErrorMessage(12));if(void 0===t(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(formatProdErrorMessage(13))}))}(t)}catch(r){i=r}return function combination(r,e){if(void 0===r&&(r={}),i)throw i;for(var o=!1,n={},a=0;a<f.length;a++){var u=f[a],s=t[u],c=r[u],d=s(c,e);if(void 0===d)throw e&&e.type,new Error(formatProdErrorMessage(14));n[u]=d,o=o||d!==c}return(o=o||f.length!==Object.keys(r).length)?n:r}},e.compose=compose,e.createStore=function createStore(r,e,t){var o;if("function"==typeof e&&"function"==typeof t||"function"==typeof t&&"function"==typeof arguments[3])throw new Error(formatProdErrorMessage(0));if("function"==typeof e&&void 0===t&&(t=e,e=void 0),void 0!==t){if("function"!=typeof t)throw new Error(formatProdErrorMessage(1));return t(createStore)(r,e)}if("function"!=typeof r)throw new Error(formatProdErrorMessage(2));var i=r,f=e,u=[],s=u,c=!1;function ensureCanMutateNextListeners(){s===u&&(s=u.slice())}function getState(){if(c)throw new Error(formatProdErrorMessage(3));return f}function subscribe(r){if("function"!=typeof r)throw new Error(formatProdErrorMessage(4));if(c)throw new Error(formatProdErrorMessage(5));var e=!0;return ensureCanMutateNextListeners(),s.push(r),function unsubscribe(){if(e){if(c)throw new Error(formatProdErrorMessage(6));e=!1,ensureCanMutateNextListeners();var t=s.indexOf(r);s.splice(t,1),u=null}}}function dispatch(r){if(!isPlainObject(r))throw new Error(formatProdErrorMessage(7));if(void 0===r.type)throw new Error(formatProdErrorMessage(8));if(c)throw new Error(formatProdErrorMessage(9));try{c=!0,f=i(f,r)}finally{c=!1}for(var e=u=s,t=0;t<e.length;t++)(0,e[t])();return r}return dispatch({type:a.INIT}),(o={dispatch:dispatch,subscribe:subscribe,getState:getState,replaceReducer:function replaceReducer(r){if("function"!=typeof r)throw new Error(formatProdErrorMessage(10));i=r,dispatch({type:a.REPLACE})}})[n]=function observable(){var r,e=subscribe;return(r={subscribe:function subscribe(r){if("object"!=typeof r||null===r)throw new Error(formatProdErrorMessage(11));function observeState(){r.next&&r.next(getState())}return observeState(),{unsubscribe:e(observeState)}}})[n]=function(){return this},r},o}}}));
//# sourceMappingURL=redux.js.map