WordPress/wp-includes/js/dist/redux-routine.min.js
Gary Pendergast 158cbdbf03 Build Tools: Copy package JavaScript and CSS into wp-includes.
- `grunt webpack:dev` now copies packages JS into `/src/wp-includes/js/dist`, and CSS into `/src/wp-includes/css/dist`.
- `grunt webpack:prod` does the same, but into `/build` instead of `/src`.
- `grunt build` now runs the `webpack:prod` task.

Props atimmer, pento.
Fixes #45119.


Built from https://develop.svn.wordpress.org/branches/5.0@43760


git-svn-id: http://core.svn.wordpress.org/branches/5.0@43589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-19 06:06:46 +00:00

1 line
10 KiB
JavaScript

this.wp=this.wp||{},this.wp.reduxRoutine=function(t){var r={};function n(e){if(r[e])return r[e].exports;var u=r[e]={i:e,l:!1,exports:{}};return t[e].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:e})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,r){if(1&r&&(t=n(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var u in t)n.d(e,u,function(r){return t[r]}.bind(null,u));return e},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},n.p="",n(n.s=384)}({1:function(t,r){!function(){t.exports=this.lodash}()},155:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createChannel=r.subscribe=r.cps=r.apply=r.call=r.invoke=r.delay=r.race=r.join=r.fork=r.error=r.all=void 0;var e=function(t){return t&&t.__esModule?t:{default:t}}(n(156));r.all=function(t){return{type:e.default.all,value:t}},r.error=function(t){return{type:e.default.error,error:t}},r.fork=function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),u=1;u<r;u++)n[u-1]=arguments[u];return{type:e.default.fork,iterator:t,args:n}},r.join=function(t){return{type:e.default.join,task:t}},r.race=function(t){return{type:e.default.race,competitors:t}},r.delay=function(t){return new Promise(function(r){setTimeout(function(){return r(!0)},t)})},r.invoke=function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),u=1;u<r;u++)n[u-1]=arguments[u];return{type:e.default.call,func:t,context:null,args:n}},r.call=function(t,r){for(var n=arguments.length,u=Array(n>2?n-2:0),o=2;o<n;o++)u[o-2]=arguments[o];return{type:e.default.call,func:t,context:r,args:u}},r.apply=function(t,r,n){return{type:e.default.call,func:t,context:r,args:n}},r.cps=function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),u=1;u<r;u++)n[u-1]=arguments[u];return{type:e.default.cps,func:t,args:n}},r.subscribe=function(t){return{type:e.default.subscribe,channel:t}},r.createChannel=function(t){var r=[];return t(function(t){return r.forEach(function(r){return r(t)})}),{subscribe:function(t){return r.push(t),function(){return r.splice(r.indexOf(t),1)}}}}},156:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var e={all:Symbol("all"),error:Symbol("error"),fork:Symbol("fork"),join:Symbol("join"),race:Symbol("race"),call:Symbol("call"),cps:Symbol("cps"),subscribe:Symbol("subscribe")};r.default=e},172:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.wrapControls=r.asyncControls=r.create=void 0;var e=n(155);Object.keys(e).forEach(function(t){"default"!==t&&Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})});var u=f(n(355)),o=f(n(357)),c=f(n(359));function f(t){return t&&t.__esModule?t:{default:t}}r.create=u.default,r.asyncControls=o.default,r.wrapControls=c.default},27:function(t,r,n){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t){return(u="function"==typeof Symbol&&"symbol"===e(Symbol.iterator)?function(t){return e(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":e(t)})(t)}n.d(r,"a",function(){return u})},355:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var e=o(n(356)),u=o(n(88));function o(t){return t&&t.__esModule?t:{default:t}}function c(t){if(Array.isArray(t)){for(var r=0,n=Array(t.length);r<t.length;r++)n[r]=t[r];return n}return Array.from(t)}r.default=function(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],r=[].concat(c(t),c(e.default));return function t(n){var e=arguments.length<=1||void 0===arguments[1]?function(){}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?function(){}:arguments[2];!function(n){var u=function(t){return function(r){try{var u=t?n.throw(r):n.next(r),f=u.value;if(u.done)return e(f);c(f)}catch(t){return o(t)}}},c=function n(e){r.some(function(r){return r(e,n,t,u(!1),u(!0))})};u(!1)()}(u.default.iterator(n)?n:regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n;case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)})())}}},356:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.iterator=r.array=r.object=r.error=r.any=void 0;var e=function(t){return t&&t.__esModule?t:{default:t}}(n(88));var u=r.any=function(t,r,n,e){return e(t),!0},o=r.error=function(t,r,n,u,o){return!!e.default.error(t)&&(o(t.error),!0)},c=r.object=function(t,r,n,u,o){if(!e.default.all(t)||!e.default.obj(t.value))return!1;var c={},f=Object.keys(t.value),i=0,a=!1;return f.map(function(r){n(t.value[r],function(t){return function(t,r){a||(c[t]=r,++i===f.length&&u(c))}(r,t)},function(t){return function(t,r){a||(a=!0,o(r))}(0,t)})}),!0},f=r.array=function(t,r,n,u,o){if(!e.default.all(t)||!e.default.array(t.value))return!1;var c=[],f=0,i=!1;return t.value.map(function(r,e){n(r,function(r){return function(r,n){i||(c[r]=n,++f===t.value.length&&u(c))}(e,r)},function(t){return function(t,r){i||(i=!0,o(r))}(0,t)})}),!0},i=r.iterator=function(t,r,n,u,o){return!!e.default.iterator(t)&&(n(t,r,o),!0)};r.default=[o,i,f,c,u]},357:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.race=r.join=r.fork=r.promise=void 0;var e=c(n(88)),u=n(155),o=c(n(358));function c(t){return t&&t.__esModule?t:{default:t}}var f=r.promise=function(t,r,n,u,o){return!!e.default.promise(t)&&(t.then(r,o),!0)},i=new Map,a=r.fork=function(t,r,n){if(!e.default.fork(t))return!1;var c=Symbol("fork"),f=(0,o.default)();i.set(c,f),n(t.iterator.apply(null,t.args),function(t){return f.dispatch(t)},function(t){return f.dispatch((0,u.error)(t))});var a=f.subscribe(function(){a(),i.delete(c)});return r(c),!0},l=r.join=function(t,r,n,u,o){if(!e.default.join(t))return!1;var c=i.get(t.task);return c?function(){var t=c.subscribe(function(n){t(),r(n)})}():o("join error : task not found"),!0},s=r.race=function(t,r,n,u,o){if(!e.default.race(t))return!1;var c=!1,f=function(t,n,e){c||(c=!0,t[n]=e,r(t))},i=function(t){c||o(t)};return e.default.array(t.competitors)?function(){var r=t.competitors.map(function(){return!1});t.competitors.forEach(function(t,e){n(t,function(t){return f(r,e,t)},i)})}():function(){var r=Object.keys(t.competitors).reduce(function(t,r){return t[r]=!1,t},{});Object.keys(t.competitors).forEach(function(e){n(t.competitors[e],function(t){return f(r,e,t)},i)})}(),!0};r.default=[f,a,l,s,function(t,r){if(!e.default.subscribe(t))return!1;if(!e.default.channel(t.channel))throw new Error('the first argument of "subscribe" must be a valid channel');var n=t.channel.subscribe(function(t){n&&n(),r(t)});return!0}]},358:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.default=function(){var t=[];return{subscribe:function(r){return t.push(r),function(){t=t.filter(function(t){return t!==r})}},dispatch:function(r){t.slice().forEach(function(t){return t(r)})}}}},359:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.cps=r.call=void 0;var e=function(t){return t&&t.__esModule?t:{default:t}}(n(88));var u=r.call=function(t,r,n,u,o){if(!e.default.call(t))return!1;try{r(t.func.apply(t.context,t.args))}catch(t){o(t)}return!0},o=r.cps=function(t,r,n,u,o){var c;return!!e.default.cps(t)&&((c=t.func).call.apply(c,[null].concat(function(t){if(Array.isArray(t)){for(var r=0,n=Array(t.length);r<t.length;r++)n[r]=t[r];return n}return Array.from(t)}(t.args),[function(t,n){t?o(t):r(n)}])),!0)};r.default=[u,o]},384:function(t,r,n){"use strict";n.r(r);var e=n(27),u=n(172),o=n(1),c=n(77),f=n.n(c);function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=Object(o.map)(t,function(t,r){return function(n,u,o,c,i){if("object"!==Object(e.a)(n)||n.type!==r)return!1;var a=t(n);return f()(a)?a.then(c,function(t){return i(function(t){return t instanceof Error||(t=new Error(t)),t}(t))}):u(a),!0}});n.push(function(t,n){return!("object"!==Object(e.a)(t)||!Object(o.isString)(t.type)||(r(t),n(),0))});var c=Object(u.create)(n);return function(t){return new Promise(function(n,u){return c(t,function(t){"object"===Object(e.a)(t)&&Object(o.isString)(t.type)&&r(t),n(t)},u)})}}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(r){var n=i(t,r.dispatch);return function(t){return function(r){return function(t){return!!t&&"Generator"===t[Symbol.toStringTag]}(r)?n(r):t(r)}}}}n.d(r,"default",function(){return a})},77:function(t,r){t.exports=function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}},88:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},u=function(t){return t&&t.__esModule?t:{default:t}}(n(156));var o={obj:function(t){return"object"===(void 0===t?"undefined":e(t))&&!!t},all:function(t){return o.obj(t)&&t.type===u.default.all},error:function(t){return o.obj(t)&&t.type===u.default.error},array:Array.isArray,func:function(t){return"function"==typeof t},promise:function(t){return t&&o.func(t.then)},iterator:function(t){return t&&o.func(t.next)&&o.func(t.throw)},fork:function(t){return o.obj(t)&&t.type===u.default.fork},join:function(t){return o.obj(t)&&t.type===u.default.join},race:function(t){return o.obj(t)&&t.type===u.default.race},call:function(t){return o.obj(t)&&t.type===u.default.call},cps:function(t){return o.obj(t)&&t.type===u.default.cps},subscribe:function(t){return o.obj(t)&&t.type===u.default.subscribe},channel:function(t){return o.obj(t)&&o.func(t.subscribe)}};r.default=o}}).default;