WordPress/wp-includes/js/dist/redux-routine.min.js

2 lines
11 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.reduxRoutine=function(e){var n={};function t(r){if(n[r])return n[r].exports;var u=n[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var u in e)t.d(r,u,function(n){return e[n]}.bind(null,u));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s="./node_modules/@wordpress/redux-routine/build-module/index.js")}({"./node_modules/@wordpress/redux-routine/build-module/index.js":function(e,n,t){"use strict";function r(e){return!!e&&"function"==typeof e[Symbol.iterator]&&"function"==typeof e.next}t.r(n),t.d(n,"default",(function(){return a}));var u=t("./node_modules/rungen/dist/index.js"),o=t("lodash"),i=t("./node_modules/is-promise/index.js"),c=t.n(i);function f(e){return Object(o.isPlainObject)(e)&&Object(o.isString)(e.type)}function l(e,n){return f(e)&&e.type===n}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,t=Object(o.map)(e,(function(e,n){return function(t,r,u,o,i){if(!l(t,n))return!1;var f=e(t);return c()(f)?f.then(o,i):o(f),!0}})),r=function(e,t){return!!f(e)&&(n(e),t(),!0)};t.push(r);var i=Object(u.create)(t);return function(e){return new Promise((function(t,r){return i(e,(function(e){f(e)&&n(e),t(e)}),r)}))}}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(n){var t=s(e,n.dispatch);return function(e){return function(n){return r(n)?t(n):e(n)}}}}},"./node_modules/is-promise/index.js":function(e,n){function t(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}e.exports=t,e.exports.default=t},"./node_modules/rungen/dist/controls/async.js":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.race=n.join=n.fork=n.promise=void 0;var r=i(t("./node_modules/rungen/dist/utils/is.js")),u=t("./node_modules/rungen/dist/utils/helpers.js"),o=i(t("./node_modules/rungen/dist/utils/dispatcher.js"));function i(e){return e&&e.__esModule?e:{default:e}}var c=n.promise=function(e,n,t,u,o){return!!r.default.promise(e)&&(e.then(n,o),!0)},f=new Map,l=n.fork=function(e,n,t){if(!r.default.fork(e))return!1;var i=Symbol("fork"),c=(0,o.default)();f.set(i,c),t(e.iterator.apply(null,e.args),(function(e){return c.dispatch(e)}),(function(e){return c.dispatch((0,u.error)(e))}));var l=c.subscribe((function(){l(),f.delete(i)}));return n(i),!0},s=n.join=function(e,n,t,u,o){if(!r.default.join(e))return!1;var i,c=f.get(e.task);return c?i=c.subscribe((function(e){i(),n(e)})):o("join error : task not found"),!0},a=n.race=function(e,n,t,u,o){if(!r.default.race(e))return!1;var i,c=!1,f=function(e,t,r){c||(c=!0,e[t]=r,n(e))},l=function(e){c||o(e)};return r.default.array(e.competitors)?(i=e.competitors.map((function(){return!1})),e.competitors.forEach((function(e,n){t(e,(function(e){return f(i,n,e)}),l)}))):function(){var n=Object.keys(e.competitors).reduce((function(e,n){return e[n]=!1,e}),{});Object.keys(e.competitors).forEach((function(r){t(e.competitors[r],(function(e){return f(n,r,e)}),l)}))}(),!0};n.default=[c,l,s,a,function(e,n){if(!r.default.subscribe(e))return!1;if(!r.default.channel(e.channel))throw new Error('the first argument of "subscribe" must be a valid channel');var t=e.channel.subscribe((function(e){t&&t(),n(e)}));return!0}]},"./node_modules/rungen/dist/controls/builtin.js":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.iterator=n.array=n.object=n.